/* ============================================
   Videos.LK — Global Stylesheet
   Theme: Red/White/Black Cinematic Dark UI
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --bg-glass: rgba(26, 26, 26, 0.7);
    --bg-glass-border: rgba(255, 255, 255, 0.06);

    --red-primary: #FF0033;
    --red-glow: rgba(255, 0, 51, 0.5);
    --red-bright: #FF1744;
    --red-dark: #CC0029;
    --red-gradient: linear-gradient(135deg, #FF0033, #FF6B00);
    --red-gradient-hover: linear-gradient(135deg, #FF1744, #FF8A00);

    --white: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-red: rgba(255, 0, 51, 0.3);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 0 20px rgba(255, 0, 51, 0.3);
    --shadow-red-strong: 0 0 40px rgba(255, 0, 51, 0.5);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1200px;
    --header-height: 64px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-bright);
}

/* ---------- Particle Canvas ---------- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-bar-container {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--red-gradient);
    border-radius: 2px;
    animation: loadingProgress 1.5s ease-in-out forwards;
}

@keyframes loadingPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ---------- Header / Navbar ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--red-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-red);
}

.logo-text span {
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red-primary);
    border-radius: 1px;
}

.nav-telegram {
    background: var(--red-gradient) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 8px 20px;
    box-shadow: var(--shadow-red);
    transition: all var(--transition-fast);
}

.nav-telegram:hover {
    box-shadow: var(--shadow-red-strong);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Main Content ---------- */
.main {
    margin-top: var(--header-height);
    position: relative;
    z-index: 1;
}

/* ---------- Ad Slots ---------- */
.ad-slot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin: 20px 0;
    overflow: hidden;
}

.ad-slot-top {
    min-height: 90px;
}

.ad-slot-content {
    min-height: 250px;
}

.ad-slot-footer {
    min-height: 90px;
}

.ad-slot-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 60px;
    z-index: 999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
}

.ad-slot-floating {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 300px;
    min-height: 250px;
    z-index: 998;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%,
            rgba(255, 0, 51, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red-primary);
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--red-primary);
    border-radius: 50%;
    animation: blink 1.5s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease;
}

.hero-title .highlight {
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--red-gradient);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    box-shadow: var(--shadow-red-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 1.3rem;
}

.section-link {
    color: var(--red-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.section-link:hover {
    gap: 8px;
}

/* ---------- Video Grid ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-red);
}

.video-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-thumbnail .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-thumbnail .badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red-primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 51, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-red);
}

.card-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
}

.card-info {
    padding: 14px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- Video Carousel (Trending) ---------- */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .video-card {
    min-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

.carousel-btn-left {
    left: 8px;
}

.carousel-btn-right {
    right: 8px;
}

/* ---------- Telegram CTA Section ---------- */
.telegram-cta {
    position: relative;
    padding: 48px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-red);
    text-align: center;
    overflow: hidden;
    margin: 20px 0;
}

.telegram-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%,
            rgba(255, 0, 51, 0.1) 0%,
            transparent 70%);
    pointer-events: none;
}

.telegram-cta-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.telegram-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    position: relative;
}

.telegram-cta .btn {
    position: relative;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0 100px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--red-primary);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Category Tags ---------- */
.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.category-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.category-tag:hover,
.category-tag.active {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    color: var(--red-primary);
}

/* ---------- Stats Counter ---------- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 24px 0;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .card-info {
        padding: 10px;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .carousel-track .video-card {
        min-width: 240px;
    }

    .telegram-cta {
        padding: 32px 20px;
    }

    .telegram-cta-title {
        font-size: 1.3rem;
    }

    .stats-bar {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .ad-slot-floating {
        display: none;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-meta {
        font-size: 0.7rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* ---------- Utility Classes ---------- */
.text-red {
    color: var(--red-primary);
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   WATCH PAGE STYLES
   ============================================ */

/* ---------- Watch Page Layout ---------- */
.watch-page {
    padding-top: 20px;
}

.watch-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Preview Player ---------- */
.player-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.preview-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: lockBounce 2s ease infinite;
}

@keyframes lockBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.locked-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.locked-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: var(--shadow-red);
    animation: previewPulse 2s ease infinite;
}

@keyframes previewPulse {

    0%,
    100% {
        box-shadow: var(--shadow-red);
    }

    50% {
        box-shadow: var(--shadow-red-strong);
    }
}

/* ---------- Video Info ---------- */
.video-info {
    padding: 0;
}

.video-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.video-tag {
    padding: 3px 10px;
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--red-primary);
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* ---------- Unlock Section ---------- */
.unlock-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-red);
    overflow: hidden;
    position: relative;
}

.unlock-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red-gradient);
}

.unlock-header {
    padding: 20px 24px 0;
    text-align: center;
}

.unlock-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.unlock-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Progress Bar ---------- */
.unlock-progress {
    padding: 16px 24px;
}

.unlock-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.unlock-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--red-gradient);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
}

.unlock-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.unlock-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ---------- Steps ---------- */
.unlock-steps {
    padding: 0 24px 16px;
}

.unlock-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.unlock-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.step-number.completed {
    background: rgba(255, 0, 51, 0.15);
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.step-content {
    flex: 1;
}

.step-instruction {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-instruction-si {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-action {
    flex-shrink: 0;
}

/* ---------- Sponsor Buttons ---------- */
.sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sponsor-btn:hover:not(.clicked):not(:disabled) {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}

.sponsor-btn.clicked {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
    color: #00C853;
    cursor: default;
}

.sponsor-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.sponsor-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: btnLoading 1s ease infinite;
}

@keyframes btnLoading {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(50%);
    }
}

.btn-status {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ---------- Unlock Button ---------- */
.unlock-btn-wrapper {
    padding: 16px 24px 24px;
    text-align: center;
}

.unlock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: not-allowed;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.unlock-btn.active {
    background: var(--red-gradient);
    border-color: var(--red-primary);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-red-strong);
    animation: unlockGlow 2s ease infinite;
}

@keyframes unlockGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 51, 0.4),
            0 0 40px rgba(255, 0, 51, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 0, 51, 0.6),
            0 0 60px rgba(255, 0, 51, 0.3);
    }
}

.unlock-btn.active:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 51, 0.6),
        0 0 80px rgba(255, 0, 51, 0.3);
}

.unlock-btn.pulse-attention {
    animation: pulseAttention 0.5s ease 5;
}

@keyframes pulseAttention {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.unlock-btn.unlocking {
    background: linear-gradient(135deg, #00C853, #00E676) !important;
    border-color: #00C853 !important;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.5) !important;
    animation: none !important;
}

.unlock-btn-text {
    position: relative;
    z-index: 1;
}

/* ---------- Confetti Canvas ---------- */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

/* ---------- Toast Notification ---------- */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-red);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Share Buttons ---------- */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    transform: translateY(-2px);
}

/* ---------- Related Videos on Watch Page ---------- */
.related-section {
    padding: 40px 0;
}

.related-section .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ---------- Watch Page Responsive ---------- */
@media (max-width: 768px) {
    .video-title {
        font-size: 1.15rem;
    }

    .unlock-step {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-action {
        width: 100%;
    }

    .sponsor-btn {
        width: 100%;
        justify-content: center;
    }

    .unlock-btn {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .unlock-header {
        padding: 16px 16px 0;
    }

    .unlock-progress {
        padding: 12px 16px;
    }

    .unlock-steps {
        padding: 0 16px 12px;
    }

    .unlock-btn-wrapper {
        padding: 12px 16px 20px;
    }

    .share-section {
        flex-wrap: wrap;
    }

    .related-section .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locked-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .related-section .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ============================================
   AD BLOCK NOTICE + AD MANAGEMENT STYLES
   ============================================ */

/* ---------- Ad Block Notice ---------- */
.adblock-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.adblock-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-red-strong);
}

.adblock-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--red-primary);
}

.adblock-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.adblock-close {
    margin: 0 auto;
}

/* ---------- Ad Loaded State ---------- */
.ad-slot.ad-loaded {
    border-style: solid;
    border-color: transparent;
    background: transparent;
}

/* ---------- Floating Ad Close ---------- */
.floating-ad-close:hover {
    background: rgba(255, 0, 51, 0.8) !important;
}

/* ---------- Ad Label ---------- */
.ad-slot::before {
    content: '';
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}

/* ---------- Performance: Reduce Layout Shift ---------- */
.ad-slot-top {
    min-height: 90px;
    contain: layout;
}

.ad-slot-content {
    min-height: 250px;
    contain: layout;
}

.ad-slot-footer {
    min-height: 90px;
    contain: layout;
}

.ad-slot-sticky {
    min-height: 60px;
    contain: layout;
}

/* ---------- Print Styles: Hide Ads ---------- */
@media print {

    .ad-slot,
    .ad-slot-sticky,
    .ad-slot-floating,
    .adblock-notice {
        display: none !important;
    }
}


/* ============================================
   SEO COMPONENTS STYLES
   Breadcrumbs, Search, FAQ, Tags, Internal Links
   ============================================ */

/* ---------- Breadcrumbs ---------- */
.breadcrumb-container {
    padding: 12px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.breadcrumb-link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: var(--red-primary);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 8px;
    font-size: 0.75rem;
}

/* ---------- Search Overlay ---------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.search-close-btn:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: var(--border-red);
    color: var(--red-primary);
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.search-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.search-result-card:hover {
    border-color: var(--border-red);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.search-result-thumb {
    position: relative;
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-thumb .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-highlight {
    background: rgba(255, 0, 51, 0.2);
    color: var(--red-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ---------- Search Toggle Button ---------- */
.search-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    margin-right: 4px;
}

.search-toggle-btn:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: var(--border-red);
    color: var(--red-primary);
}

/* ---------- FAQ Section ---------- */
.faq-section-wrapper {
    padding: 40px 0;
}

.faq-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-red);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-main);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--red-primary);
}

.faq-q-text {
    flex: 1;
    margin-right: 16px;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Tag Cloud ---------- */
.tag-cloud-container {
    padding: 24px 0;
}

.tag-cloud-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(255, 0, 51, 0.06);
    border: 1px solid rgba(255, 0, 51, 0.12);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tag-cloud-item:hover {
    background: rgba(255, 0, 51, 0.15);
    border-color: rgba(255, 0, 51, 0.3);
    color: var(--red-primary);
    transform: translateY(-2px);
}

/* ---------- Internal Links ---------- */
.internal-links-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.internal-links-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.internal-link-group {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 16px;
}

.internal-link-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.internal-link-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.internal-link-list li {
    list-style: none;
}

.internal-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    padding: 4px 0;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.internal-link:hover {
    color: var(--red-primary);
}

.auto-link {
    color: var(--red-primary);
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 0, 51, 0.3);
    transition: all var(--transition-fast);
}

.auto-link:hover {
    border-bottom-color: var(--red-primary);
}

/* ---------- View Counter ---------- */
.view-counter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-counter {
    font-weight: 700;
    color: var(--red-primary);
}

/* ---------- Search Responsive ---------- */
@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
    }

    .search-result-card {
        gap: 10px;
        padding: 10px;
    }

    .search-result-thumb {
        width: 90px;
        min-width: 90px;
    }

    .search-result-title {
        font-size: 0.8rem;
    }

    .internal-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .breadcrumb-current {
        max-width: 120px;
    }

    .faq-question {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .internal-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REDUCED MOTION + PERFORMANCE
   ============================================ */

/* ---------- Reduced Motion ---------- */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.reduce-motion #particles-canvas {
    display: none;
}

/* ---------- Font Loading Optimization ---------- */
html:not(.fonts-loaded) body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Content Visibility for Below-Fold Content ---------- */
.section:nth-child(n+3) {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ---------- Print Optimization ---------- */
@media print {

    .header,
    .footer,
    .ad-slot,
    .ad-slot-sticky,
    .ad-slot-floating,
    #particles-canvas,
    #confetti-canvas,
    .loading-screen,
    .search-overlay,
    .adblock-notice,
    .telegram-cta,
    .unlock-section,
    .share-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .video-title,
    .card-title {
        color: black;
    }
}

/* ============================================
   CATEGORY PAGE STYLES
   Hero, Filter Bar, List View, Load More
   ============================================ */

/* ---------- Category Hero ---------- */
.category-hero {
    padding: 40px 0 24px;
    position: relative;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%,
            rgba(255, 0, 51, 0.06) 0%,
            transparent 60%);
    pointer-events: none;
}

.category-hero-content {
    text-align: center;
    position: relative;
}

.category-hero-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: heroIconFloat 3s ease-in-out infinite;
}

@keyframes heroIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.category-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.category-hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.category-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.category-stat {
    text-align: center;
}

.category-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    white-space: nowrap;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.filter-tab.active {
    background: rgba(255, 0, 51, 0.1);
    color: var(--red-primary);
    border-color: rgba(255, 0, 51, 0.2);
}

.filter-view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-muted);
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.view-btn.active {
    color: var(--red-primary);
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.2);
}

/* ---------- List View ---------- */
.video-grid-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-card-list {
    display: flex !important;
    flex-direction: row;
    gap: 16px;
    padding: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.video-card-list:hover {
    border-color: var(--border-red);
    transform: translateX(4px);
    box-shadow: var(--shadow-card);
}

.video-card-list .card-thumbnail {
    width: 200px;
    min-width: 200px;
    aspect-ratio: 16 / 9;
}

.video-card-list .card-info {
    flex: 1;
    padding: 14px 14px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-list .card-title {
    font-size: 1rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
}

.card-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--red-primary);
    background: rgba(255, 0, 51, 0.08);
    padding: 2px 8px;
    border-radius: 50px;
}

.video-card-list .badge-live {
    display: none;
}

/* ---------- Load More ---------- */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.load-more-btn {
    min-width: 240px;
    justify-content: center;
    font-size: 0.95rem;
}

.load-more-btn:hover {
    box-shadow: var(--shadow-red);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Category Page Responsive ---------- */
@media (max-width: 768px) {
    .category-hero-title {
        font-size: 1.6rem;
    }

    .category-hero-desc {
        font-size: 0.9rem;
    }

    .category-hero-stats {
        gap: 24px;
    }

    .category-stat-number {
        font-size: 1.3rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }

    .filter-tabs {
        justify-content: center;
    }

    .filter-view-toggle {
        justify-content: center;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .video-card-list {
        flex-direction: column;
    }

    .video-card-list .card-thumbnail {
        width: 100%;
        min-width: 100%;
    }

    .video-card-list .card-info {
        padding: 12px;
    }

    .category-hero {
        padding: 30px 0 16px;
    }

    .category-hero-icon {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .filter-tab {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .category-hero-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   ALSO WATCH SECTION
   ============================================ */

.also-watch-section {
    padding: 32px 0;
}

.also-watch-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.also-watch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.also-watch-card:hover {
    border-color: var(--border-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.also-watch-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.also-watch-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.also-watch-card:hover .also-watch-label {
    color: var(--white);
}

@media (max-width: 480px) {
    .also-watch-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .also-watch-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .also-watch-label {
        font-size: 0.8rem;
    }
}