:root {
    --primary: #E50914;
    --primary-hover: #ff1e27;
    --primary-glow: rgba(229, 9, 20, 0.4);
    --bg: #141414;
    --card: #1E1E1E;
    --text: #ffffff;
    --text-muted: #a9a9a9;
    --border: #262626;
    --border-light: rgba(255, 255, 255, 0.08);
    --container-max: 960px;
    --nav-top-height: 56px;
    --cat-nav-height: 42px;
    --header-total-height: 98px;

    /* Unitless line-height scale for robust typographic hierarchy */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;

    /* Fluid Typography Scale (rem + small vw within clamp for accessible user-zoom) */
    /* Mobile (<480px) -> Tablet (481px-768px) -> Desktop (769px-960px+) */
    --font-xs: clamp(0.6875rem, 0.65rem + 0.18vw, 0.75rem);       /* 11px -> 12px: badges, timestamps, tags */
    --font-sm: clamp(0.8125rem, 0.78rem + 0.22vw, 0.875rem);      /* 13px -> 14px: chips, breadcrumbs, nav text */
    --font-base: clamp(0.875rem, 0.84rem + 0.28vw, 0.95rem);      /* 14px -> 15.2px: body text, inputs, descriptions */
    --font-md: clamp(0.9375rem, 0.89rem + 0.35vw, 1.05rem);       /* 15px -> 16.8px: card headline, buttons */
    --font-lg: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);           /* 17px -> 20px: section titles (h2), card titles */
    --font-xl: clamp(1.25rem, 1.12rem + 0.85vw, 1.55rem);         /* 20px -> 24.8px: page h1 titles (v-title) */
    --font-2xl: clamp(1.5rem, 1.35rem + 1.2vw, 1.85rem);          /* 24px -> 29.6px: countdown, big metrics */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Universal SVG Icon Component (Source: koleksi_ikon_placeholder_svg_web_lengkap.html) */
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
    transition: color 0.2s, stroke 0.2s, transform 0.2s;
}

.svg-icon use {
    pointer-events: none;
}

.nav-toggle-btn .svg-icon {
    width: 20px;
    height: 20px;
}

.nav-link .svg-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -2px;
}

.cat-chip .svg-icon {
    width: 13px;
    height: 13px;
    vertical-align: -1px;
    opacity: 0.85;
}

.drawer-icon.svg-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
}

.drawer-nav-link:hover .drawer-icon.svg-icon,
.drawer-nav-link.active .drawer-icon.svg-icon {
    color: var(--primary);
}

.drawer-close-btn .svg-icon {
    width: 20px;
    height: 20px;
}

.drawer-brand-text .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    vertical-align: -2px;
    margin-right: 4px;
}

.drawer-section-title .svg-icon {
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-right: 6px;
    color: var(--primary);
}

.search-input-icon.svg-icon {
    width: 16px;
    height: 16px;
    color: #888;
}

.search-clear-btn .svg-icon {
    width: 16px;
    height: 16px;
}

.search-submit .svg-icon {
    width: 16px;
    height: 16px;
}

.card-play-btn .svg-icon {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.play-btn .svg-icon {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.v-card-meta .svg-icon,
.v-card-views .svg-icon,
.v-card-source .svg-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1.5px;
    margin-right: 3px;
}

.breadcrumb .svg-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin: 0 4px;
    opacity: 0.6;
}

.v-stats .svg-icon {
    width: 13px;
    height: 13px;
    vertical-align: -1.5px;
    margin-right: 4px;
    color: var(--primary);
}

.waiting-icon .svg-icon {
    width: 48px;
    height: 48px;
}

.dl-btn .svg-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -2px;
}

#backToTop .svg-icon {
    width: 20px;
    height: 20px;
}

html {
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #000;
    color: var(--text);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    overflow-wrap: break-word;
    text-align: start;
}

.main-wrapper {
    background: var(--bg);
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgb(0 0 0 / .8);
    padding-top: var(--header-total-height);
}

.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Header & Navigation */
.header {
    background: rgb(20 20 20 / .95);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-top {
    height: var(--nav-top-height);
    display: flex;
    align-items: center;
}

.nav-top-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 900;
    font-size: var(--font-xl);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.9;
}

.logo img {
    height: 26px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: var(--font-lg);
    cursor: pointer;
    padding: 8px 10px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    user-select: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.nav-btn:active {
    transform: scale(0.96);
}

.nav-btn-text {
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.3px;
    display: none;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-item {
    display: inline-flex;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-link.active {
    color: var(--primary);
    background: rgba(229, 9, 20, 0.12);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-search-desktop {
    display: none;
    flex: 1;
    max-width: 400px;
    margin: 0 16px;
}

.nav-search-desktop .search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.nav-search-desktop .search-input {
    width: 100%;
    padding: 9px 44px 9px 18px;
    background: #202020;
    border: 1px solid #333;
    color: #fff;
    border-radius: 24px;
    outline: none;
    font-size: var(--font-base);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-search-desktop .search-input:focus {
    border-color: var(--primary);
    background: #181818;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.nav-search-desktop .search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.nav-search-desktop .search-submit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Search Dropdown Bar */
.search-bar {
    position: absolute;
    top: var(--nav-top-height);
    left: 0;
    width: 100%;
    background: #181818;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.search-bar.active {
    display: block;
    animation: slideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    color: #888;
    font-size: var(--font-base);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    background: #242424;
    border: 1px solid #383838;
    color: #fff;
    border-radius: 8px;
    outline: none;
    font-size: var(--font-base);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: var(--font-base);
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: #fff;
}

.search-submit {
    background: var(--primary);
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: var(--font-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--primary-hover);
}

.search-submit:active {
    transform: scale(0.97);
}

/* Category Chips Strip (Horizontal Subnav for SEO & Quick Browsing) */
.nav-categories-bar {
    height: var(--cat-nav-height);
    background: rgb(18 18 18 / 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: relative;
}

.nav-categories-container {
    overflow: hidden;
    position: relative;
}

.nav-categories-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.nav-categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-sm);
    font-weight: 500;
    padding: 5px 13px;
    min-height: 32px;
    border-radius: 20px;
    color: #b0b0b0;
    background: #222222;
    border: 1px solid #333333;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    user-select: none;
}

.cat-chip:hover {
    color: #ffffff;
    background: #2e2e2e;
    border-color: #4a4a4a;
    transform: translateY(-1px);
}

.cat-chip.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.cat-chip i {
    font-size: var(--font-sm);
    opacity: 0.85;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* Off-Canvas Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #141414;
    z-index: 1200;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, opacity 0.2s ease, visibility 0.28s;
    border-right: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    will-change: transform;
}

.drawer.active {
    display: flex !important;
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.85);
}

.drawer-header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #1a1a1a;
    flex-shrink: 0;
}

.drawer-brand-text {
    font-size: var(--font-base);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #262626;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.drawer-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.drawer-search {
    padding: 12px 16px;
    background: #181818;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-search .search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.drawer-search .search-input {
    width: 100%;
    padding: 8px 40px 8px 14px;
    background: #242424;
    border: 1px solid #333;
    color: #fff;
    border-radius: 20px;
    outline: none;
    font-size: var(--font-base);
    transition: border-color 0.2s;
}

.drawer-search .search-input:focus {
    border-color: var(--primary);
}

.drawer-search .search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    padding: 6px 10px;
    cursor: pointer;
    min-height: auto;
    transition: color 0.2s;
}

.drawer-search .search-submit:hover {
    color: var(--primary);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    -webkit-overflow-scrolling: touch;
}

.drawer-content::-webkit-scrollbar {
    width: 5px;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: #2c2c2c;
    border-radius: 4px;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section:last-child {
    margin-bottom: 8px;
}

.drawer-section-title {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #777;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

.drawer-section-title i {
    color: var(--primary);
    font-size: var(--font-sm);
}

.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #dcdcdc;
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.drawer-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(3px);
}

.drawer-nav-link.active {
    background: rgba(229, 9, 20, 0.14);
    color: #ff525c;
    font-weight: 600;
    border-left-color: var(--primary);
}

.drawer-icon {
    width: 20px;
    text-align: center;
    font-size: var(--font-base);
    color: #888;
    transition: color 0.2s;
}

.drawer-nav-link:hover .drawer-icon,
.drawer-nav-link.active .drawer-icon {
    color: var(--primary);
}

.drawer-badge {
    margin-left: auto;
    font-size: var(--font-xs);
    padding: 2px 7px;
    border-radius: 10px;
    background: #262626;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.drawer-badge.badge-hot {
    background: var(--primary);
    color: #fff;
}

.drawer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer-tags .tag-pill {
    background: #1f1f1f;
    color: #bbb;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: var(--font-xs);
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.drawer-tags .tag-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.drawer-tags .tag-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.drawer-nav-sub .drawer-nav-link {
    font-size: var(--font-sm);
    color: #999;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: var(--font-sm);
    line-height: var(--leading-normal);
    color: var(--text-muted);
    margin: 15px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
    flex-wrap: wrap;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

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

/* Video Player & Media Components */
.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: #0000008a;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    z-index: 5;
    transition: transform 0.2s;
}

.video-box:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

h1.v-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: var(--leading-tight);
    color: #ffffff;
    text-wrap: balance;
}

.page-brand-title {
    margin: 20px 0 10px;
    color: var(--primary) !important;
}

.section-title {
    font-size: var(--font-lg);
    font-weight: 700;
    line-height: var(--leading-snug);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin: 24px 0 16px;
    color: #ffffff;
    text-wrap: balance;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.intro-text {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: var(--leading-relaxed);
    margin-bottom: 20px;
    text-wrap: pretty;
    max-width: 80ch;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    padding: 16px 0;
}

.v-stats {
    font-size: var(--font-sm);
    line-height: var(--leading-normal);
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: var(--font-base);
    line-height: var(--leading-tight);
    margin-bottom: 20px;
    width: 100%;
}

.v-desc {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 6px;
    font-size: var(--font-base);
    color: #ccc;
    margin-bottom: 20px;
    border: 1px solid #222;
    line-height: var(--leading-relaxed);
    max-width: 80ch;
    text-wrap: pretty;
}

.scroll-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.tag-pill {
    background: #262626;
    color: #eee;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--font-xs);
    line-height: var(--leading-normal);
    text-decoration: none;
    border: 1px solid #333;
}

/* Video Grid & Cards */
.v-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.v-card {
    background: var(--card);
    border-radius: 6px;
    overflow: hidden;
}

.v-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.v-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.v-card-meta, .v-card-views, .v-card-source {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--font-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: var(--leading-none);
    z-index: 2;
    pointer-events: none;
    font-weight: 500;
}

.v-card-meta {
    bottom: 6px;
    left: 6px;
}

.v-card-views {
    bottom: 6px;
    right: 6px;
}

.v-card-source {
    top: 6px;
    right: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.v-card-info {
    padding: 10px;
}

.v-card-info h3 {
    font-size: var(--font-md);
    line-height: var(--leading-snug);
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
    font-weight: 600;
    color: #f0f0f0;
}

/* Download Page Waiting Card */
.waiting-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.waiting-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
    animation: waitPulse 1.5s infinite ease-in-out;
}

.waiting-title {
    font-size: var(--font-lg);
    font-weight: 700;
    line-height: var(--leading-snug);
    margin-bottom: 6px;
    color: #fff;
    text-wrap: balance;
}

.waiting-subtitle {
    font-size: var(--font-sm);
    line-height: var(--leading-normal);
    color: var(--text-muted);
    margin-bottom: 20px;
    text-wrap: pretty;
}

.countdown-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #242424;
    border: 3px solid var(--primary);
    font-size: var(--font-2xl);
    line-height: var(--leading-none);
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}

.progress-wrap {
    width: 100%;
    max-width: 360px;
    height: 6px;
    background: #282828;
    border-radius: 4px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.dl-btn.waiting-btn {
    background: #333;
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes waitPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.75; }
}

/* Footer & Back to top */
footer {
    padding: 35px 15px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--font-sm);
    line-height: var(--leading-relaxed);
    color: #888;
    background: #0d0d0d;
}

.footer-desc {
    margin-top: 8px;
    color: #666;
    font-size: var(--font-xs);
    line-height: var(--leading-normal);
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

/* Responsive Pagination Component */
.pagination {
    margin: 28px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    font-size: var(--font-sm) !important;
    line-height: var(--leading-none);
    min-width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}

.pagination a:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .pagination > div {
        gap: 4px;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: var(--font-xs) !important;
        padding: 0 6px;
    }
    .pagination a[style*="width: 100px"],
    .pagination a[style*="width:100px"] {
        width: auto !important;
        padding: 0 10px !important;
    }
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

#backToTop:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .v-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .nav-search-desktop {
        display: block;
    }
    .nav-link {
        display: inline-flex;
    }
    .nav-btn-text {
        display: inline;
    }
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-only {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) {
    .v-grid {
        gap: 18px;
    }
    .desktop-only {
        display: inline-flex !important;
    }
    .nav-toggle-btn {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    .nav-toggle-btn {
        display: inline-flex !important;
    }
}

/* Lazyload */
img.lazy {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img.lazy-loaded {
    opacity: 1;
}

/* Ads */
.ad-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: var(--container-max);
    background: #fff0;
    z-index: 9999;
    text-align: center;
    display: none;
    left: 50%;
    transform: translateX(-50%);
}

.close-btn {
    position: absolute;
    top: -30px;
    right: 5px;
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    font-size: var(--font-sm);
    border-radius: 4px 4px 0 0;
}

.ad-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 15px auto 10px;
    width: 100%;
    min-height: 50px;
    overflow: hidden;
}

.ad-header-slot {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.ad-header-slot [data-cl-spot] {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.ad-center-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    min-height: 50px;
    overflow: hidden;
}

.ad-center-wrapper > div {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}
