body {
    background-color: #000;
    color: white;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow: hidden;
}

.feed-tabs {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.tab-btn:hover:not(.active) {
    color: white;
}

.reels-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reel-item {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    transition: opacity 0.4s, transform 0.4s;
}

.reel-item.hidden-feed {
    display: none !important;
}

.reel-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: #111;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 768px) {
    .reel-content {
        max-width: 450px;
        height: 90vh;
        border-radius: 24px;
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.overlay-ui {
    position: absolute;
    bottom: 30px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 20;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s, filter 0.2s;
    cursor: pointer;
}

.action-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
    color: #00d2ff;
}

.action-btn i {
    font-size: 2.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.action-btn span {
    font-size: 0.8rem;
    font-weight: 600;
}

.reel-info {
    position: absolute;
    bottom: 30px;
    left: 15px;
    z-index: 20;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    max-width: 75%;
    pointer-events: none;
}

.nav-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    padding: 10px 14px;
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-back span {
        display: none;
    }

    .nav-back {
        padding: 10px;
    }

    .tab-btn {
        padding: 8px;
        border-radius: 50px;
    }

    .tab-btn span {
        display: none;
    }

    .overlay-ui {
        bottom: 100px;
    }

    .reel-info {
        bottom: 100px;
    }
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    overflow: hidden;
    transform: scale(1.5) translateZ(0);
    transform-origin: center;
    pointer-events: auto;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.is-paused .play-overlay {
    opacity: 1;
}

.record-disk {
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: spin-record 12s linear infinite;
    animation-play-state: paused;
    background: #111;
}

@keyframes spin-record {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(#111 0px,
            #111 4px,
            #181818 5px,
            #181818 6px);
    opacity: 0.9;
    pointer-events: none;
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    height: 45%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #222;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: #00d2ff;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 4px;
    box-shadow: 0 0 10px #00d2ff;
}

.photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.3s ease;
}

.heart-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #3b82f6;
    font-size: 8rem;
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

@keyframes like-animation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    30% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
    }

    45% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.heart-anim.animate {
    animation: like-animation 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.photo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}