:root {
    --primary-color: #FFA07A;
    /* Soft Turuncu */
    --primary-color-dark: #FF8C5A;
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.4) 100%);
    --nav-bg: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Tam ekran deneyimi için kaydırmayı gizle */
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Mobil tarayıcılar için dinamik viewport yüksekliği */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Üst Menü */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.top-nav h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.top-icons {
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    cursor: pointer;
}

/* Video Akışı Konteyneri */
.feed-container {
    flex-grow: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Scrollbar gizleme */
    -ms-overflow-style: none;
    /* IE ve Edge */
    scrollbar-width: none;
    /* Firefox */
}

.feed-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari ve Opera */
}

/* Video Postu */
.video-post {
    position: relative;
    width: 100%;
    height: 100dvh;
    /* Tam ekran */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
}

.reels-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

/* Video Yoksa */
.no-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color);
    text-align: center;
    padding: 30px;
}

.no-video i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.no-video p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Video Üzerindeki Yazılar ve İkonlar */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px;
    padding-bottom: 110px;
    /* Yeni yüzen menü için boşluk artırıldı */
}

/* Sol Bilgi Alanı */
.video-info {
    flex: 1;
    margin-right: 20px;
    pointer-events: auto;
}

.video-info h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.video-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
}

.music-info span {
    display: inline-block;
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Sağ İkon Aksiyonları */
.side-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-btn:active {
    transform: scale(0.85);
}

.action-btn i {
    font-size: 1.8rem;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.8));
}

.action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.like-btn.liked i {
    color: var(--primary-color);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.profile-pic {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid white;
    margin-bottom: 8px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.follow-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
    border: 2px solid var(--bg-color);
}

.music-disc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 8px solid #222;
    overflow: hidden;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.video-post.playing .music-disc {
    animation-play-state: running;
}

.music-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Alt Menü - Ultra Premium Minimal / Floating Pill */
.bottom-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 65px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Yazıları daha sade ve temiz bir görünüm için tamamen gizliyoruz */
.nav-item span {
    display: none;
}

.nav-item i {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.nav-item:active i {
    transform: scale(0.85);
}

.nav-item.active {
    color: #ffffff;
}

.nav-item.active i {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

/* Ortadaki Ekleme İkonu - Sade, Klas, Modern (Squircle/Rounded Rect) */
.nav-item.add-btn {
    position: relative;
    top: 0;
    width: 48px;
    height: 38px;
    background: var(--primary-color);
    border-radius: 12px;
    color: #000000;
    /* Turuncu üzerine siyah premium bir kontrast yaratır */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 160, 122, 0.25);
    z-index: 15;
}

.nav-item.add-btn i {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-item.add-btn:active {
    transform: scale(0.92);
}

/* Oynat / Durdur Efekti Ortadaki İkon */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-pause-overlay.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Video İlerleme Çubuğu */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    /* Ekranın en alt çizgisine sabitle */
    left: 0;
    width: 100%;
    height: 3px;
    /* Daha premium, ince fakat belirgin bir çizgi */
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
    /* Menünün altında kalmaması için z-index artırıldı */
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    /* Hafif bir parlama efekti */
    transition: width 0.1s linear;
}