@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --bg: #060810;
    --bg-surface: #0c0e1a;
    --bg-card: #12152a;
    --bg-elevated: #1a1e38;
    --bg-glass: rgba(6, 8, 16, 0.92);
    --accent: #e63946;
    --accent-light: #ff4d5a;
    --accent-dark: #b71c2a;
    --accent-glow: rgba(230, 57, 70, 0.12);
    --accent-glow-strong: rgba(230, 57, 70, 0.28);
    --accent-gradient: linear-gradient(135deg, #e63946 0%, #ff6b6b 50%, #e63946 100%);
    --neon-red: 0 0 15px rgba(230, 57, 70, 0.4), 0 0 45px rgba(230, 57, 70, 0.1);
    --gold: #f0c040;
    --gold-dim: rgba(240, 192, 64, 0.12);
    --cyan: #00d4ff;
    --purple: #a855f7;
    --text: #eef0fa;
    --text-sec: #b8bdd4;
    --text-dim: #6b72a0;
    --text-muted: #3d4268;
    --border: rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(230, 57, 70, 0.15);
    --r-xl: 24px;
    --r: 20px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 8px 32px rgba(230, 57, 70, 0.35);
    --p-page: 16px;
    --bottom-nav-h: 0px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(230, 57, 70, 0.03) 0%, transparent 60%);
    color: var(--text);
    direction: rtl;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-h);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 8px var(--accent-glow-strong);
    }

    50% {
        box-shadow: 0 0 24px var(--accent-glow-strong), 0 0 48px rgba(230, 57, 70, 0.1);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(230, 57, 70, 0.15);
    }

    50% {
        border-color: rgba(230, 57, 70, 0.4);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.anim-fade-up {
    animation: fadeUp 0.5s ease both;
}

.anim-fade-in {
    animation: fadeIn 0.4s ease both;
}

.anim-scale-in {
    animation: scaleIn 0.4s ease both;
}

/* ===== TOP BAR ===== */
.navbar {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0 var(--p-page);
    height: 60px;
    transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: saturate(200%) blur(28px);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 10px;
}

.nav-right,
.nav-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.nav-center i {
    color: var(--accent);
    font-size: 0.7rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.icon-btn:hover,
.icon-btn:active {
    background: rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.2);
    color: var(--accent-light);
    transform: scale(1.08);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    padding: 12px var(--p-page);
    animation: fadeIn 0.2s ease;
}

.search-overlay.active {
    display: flex;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
}

.search-bar input {
    flex: 1;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0 20px;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.search-bar input:focus {
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(230, 57, 70, 0.2);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar .search-close {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px;
    font-family: 'Cairo', sans-serif;
}

/* Legacy search-box (fallback) */
.search-box {
    display: flex;
    flex: 1;
    max-width: 360px;
    height: 38px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px var(--accent-glow-strong);
}

.search-box input {
    flex: 1;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    width: 40px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
}

/* (bottom nav removed) */

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--p-page);
    width: 100%;
}

.main-content {
    flex: 1;
    padding-top: 56px;
    padding-bottom: 16px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
    animation: fadeUp 0.4s ease both;
}

.section-header .sec-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to left, #ffffff, #b8bdd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header .see-all {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 800;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.section-header .see-all:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 420px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 700px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
}

/* ===== CARD ===== */
.card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
    will-change: transform;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

.card:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--neon-red);
        border-color: rgba(230, 57, 70, 0.4);
    }
}

.card-img {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 18px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
    .card:hover .card-img img {
        transform: scale(1.1);
    }
}

.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(6, 8, 16, 1) 0%, rgba(6, 8, 16, 0.6) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 18px 18px;
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-surface));
}

.card-duration {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 2;
}

.card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-hover i {
    color: #fff;
    background: var(--accent);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(229, 71, 80, 0.4);
}

@media (hover: hover) {
    .card:hover .card-hover {
        opacity: 1;
    }

    .card:hover .card-hover i {
        transform: scale(1);
    }
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

.card-body h3 {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    transition: color 0.3s;
}

@media (hover: hover) {
    .card:hover .card-body h3 {
        color: #ffb8b8;
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0 16px;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-sec);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.pg-btn:hover,
.pg-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   WATCH PAGE
   ======================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 16px 40px;
    width: 100%;
}

.watch-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===== PLAYER AREA ===== */
.player-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: none;
}

.player-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.4), transparent 60%);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

.player-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

.player-wrapper video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 20px;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d2e 0%, #141625 100%);
    color: var(--text-dim);
    gap: 16px;
}

.player-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.player-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

.player-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d2e 0%, #141625 100%);
    gap: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(229, 71, 80, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.player-loading p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

/* ===== PLAYER CONTROLS ===== */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-wrap: wrap;
    gap: 12px;
}

.ctrl-right,
.ctrl-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ctrl-btn {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-sec);
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ctrl-btn:hover {
    background: var(--accent);
    color: #fff;
}

.ctrl-info {
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 0 8px;
}

/* Watch Info Row */
.watch-body {
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% 10%, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
}

.watch-body .main-content {
    padding-top: 72px;
}

.watch-info-row {
    padding: 24px;
    background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border-radius: var(--r-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.4s ease both;
    animation-delay: 0.1s;
}

.watch-meta h1 {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 16px;
    background: linear-gradient(to left, #ffffff, #b8bdd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-sec);
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.chip:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: #fff;
}

.chip i {
    font-size: 0.65rem;
    color: var(--accent);
}

/* ===== PANELS ===== */
.panel {
    background: var(--bg-surface);
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    animation: fadeUp 0.4s ease both;
}

.panel:nth-child(2) {
    animation-delay: 0.15s;
}

.panel:nth-child(3) {
    animation-delay: 0.25s;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-header span {
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header span i {
    color: var(--accent);
    font-size: 0.85rem;
}

.panel-header small {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== SERVERS GRID ===== */
.servers-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.servers-grid::-webkit-scrollbar {
    display: none;
}

.srv-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-sec);
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.srv-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: all 0.3s;
    color: var(--text-dim);
}

.srv-btn:hover,
.srv-btn:active {
    border-color: rgba(230, 57, 70, 0.5);
    color: #fff;
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.srv-btn:hover .srv-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.srv-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.srv-btn.active .srv-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== SEASON TABS ===== */
.season-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.season-tabs::-webkit-scrollbar {
    display: none;
}

.season-tab {
    padding: 10px 24px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-sec);
    font-size: 0.85rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.season-tab:hover,
.season-tab:active {
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.season-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

/* ===== EPISODES GRID ===== */
.episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ep-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 70px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 4px;
}

.ep-label {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.6;
    text-transform: uppercase;
}

.ep-btn:hover,
.ep-btn:active {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ep-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.ep-btn.active .ep-label {
    opacity: 0.85;
}

.ep-num {
    font-size: inherit;
    line-height: 1;
}

/* ===== QUICK NAV ===== */
.quick-nav {
    display: flex;
    gap: 8px;
    padding: 6px 0 0;
    animation: fadeUp 0.4s ease both;
    animation-delay: 0.3s;
}

.qnav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-sec);
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.qnav-btn i {
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.qnav-btn:hover,
.qnav-btn:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qnav-btn.next {
    color: #fff;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.qnav-btn.next i {
    color: #fff;
}

.qnav-btn.next:hover,
.qnav-btn.next:active {
    background: linear-gradient(135deg, #ff4d5a 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.6);
}

.qnav-btn.prev:hover i {
    transform: translateX(4px);
}

.qnav-btn.next:hover i {
    transform: translateX(-4px);
}

/* ===== LIGHTS OVERLAY ===== */
.lights-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.lights-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== THEATER MODE ===== */
.theater-mode .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
}

.theater-mode .watch-page {
    max-width: 100%;
    padding: 0;
}

.theater-mode .player-area {
    border-radius: 0;
}

.theater-mode .player-wrapper iframe {
    aspect-ratio: auto;
    height: 75vh;
}

.theater-mode .main-content {
    padding: 0;
}

.theater-mode .container.main-content {
    max-width: 100%;
    padding: 0 0 32px;
}

.theater-mode .watch-info-row,
.theater-mode .panel,
.theater-mode .quick-nav {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--p-page);
    padding-right: var(--p-page);
}

/* ===== COPYRIGHT ===== */
.copyright {
    text-align: center;
    padding: 20px var(--p-page) 8px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(to top, rgba(230, 57, 70, 0.03), transparent);
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

/* ===== ERROR ===== */
.error-msg {
    background: var(--accent-glow);
    border: 1px solid rgba(229, 71, 80, 0.15);
    border-radius: var(--r);
    padding: 40px 20px;
    text-align: center;
    margin: 24px 0;
    animation: scaleIn 0.4s ease both;
}

.error-msg i {
    font-size: 2.2rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.error-msg p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .card-body h3 {
        font-size: 0.68rem;
    }

    .watch-meta h1 {
        font-size: 0.95rem;
    }

    .ep-btn {
        width: 50px;
        height: 54px;
        font-size: 0.88rem;
    }

    .srv-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    .player-area {
        border-radius: var(--r-md);
    }

    .ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .chip {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .qnav-btn {
        padding: 11px 8px;
        font-size: 0.72rem;
    }

    .panel {
        padding: 14px 12px;
    }
}

@media (max-width: 360px) {
    .cards-grid {
        gap: 8px;
    }

    .nav-center {
        font-size: 0.8rem;
    }

    .qnav-btn span {
        font-size: 0.68rem;
    }
}

@media (min-width: 601px) {
    :root {
        --p-page: 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .navbar {
        position: sticky;
        background: var(--bg-glass);
        backdrop-filter: saturate(180%) blur(24px);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
    }

    .watch-body .navbar {
        position: fixed;
    }

    .main-content {
        padding-top: 0;
    }

    .watch-body .main-content {
        padding-top: 64px;
    }

    .section-header .sec-title {
        font-size: 1.3rem;
    }

    .card-body h3 {
        font-size: 0.78rem;
    }
}

@media (min-width: 768px) {
    :root {
        --p-page: 32px;
    }

    .watch-page {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }

    .watch-body .nav-inner {
        max-width: 900px;
    }

    .player-area {
        border-radius: var(--r);
    }

    .nav-center {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --p-page: 40px;
    }

    .section-header .sec-title {
        font-size: 1.4rem;
    }

    .card-body h3 {
        font-size: 0.82rem;
    }

    .card-body {
        padding: 14px;
    }

    .watch-meta h1 {
        font-size: 1.2rem;
    }

    .chip {
        font-size: 0.75rem;
        padding: 7px 16px;
    }

    .srv-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .ep-btn {
        width: 56px;
        height: 60px;
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

/* ========================================
   NEW FEATURES
   ======================================== */

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 150;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top:active {
    transform: scale(0.9);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    backdrop-filter: blur(12px);
    width: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.success i {
    color: #4caf50;
}

.toast.error i {
    color: var(--accent);
}

.toast.info i {
    color: var(--gold);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}

/* ===== FAVORITE HEART ANIMATION ===== */
.fav-heart {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.fav-heart i {
    font-size: 3rem;
    color: var(--accent);
    animation: heartPop 0.8s ease both;
    filter: drop-shadow(0 4px 20px rgba(229, 71, 80, 0.6));
}

@keyframes heartPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    30% {
        transform: scale(1.3);
        opacity: 1;
    }

    60% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* ===== ACTION BUTTONS ROW ===== */
.action-row {
    display: flex;
    justify-content: space-around;
    padding: 14px 0 6px;
    animation: fadeUp 0.35s ease both;
    animation-delay: 0.08s;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.62rem;
    font-weight: 700;
    transition: all 0.25s;
    padding: 8px 12px;
    border-radius: var(--r-sm);
}

.action-btn i {
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all 0.25s;
}

.action-btn:hover,
.action-btn:active {
    color: var(--accent);
}

.action-btn:hover i,
.action-btn:active i {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== KEYBOARD SHORTCUTS PANEL ===== */
.shortcuts-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 350;
    background: var(--bg-surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 20px var(--p-page) 32px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 0 auto;
}

.shortcuts-panel.active {
    transform: translateY(0);
}

.shortcuts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 800;
}

.shortcuts-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts-header span i {
    color: var(--gold);
}

.shortcuts-header button {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-sec);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item kbd {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xs);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Cairo', monospace;
    color: var(--gold);
    min-width: 40px;
    text-align: center;
}

/* ===== AUTO-NEXT COUNTDOWN ===== */
.auto-next {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 160;
    animation: fadeUp 0.4s ease both;
}

.auto-next-inner {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.auto-next-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-sec);
}

.auto-next-text strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.auto-next-cancel {
    padding: 6px 14px;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
}

.auto-next-cancel:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* (hero slider CSS is inline in index.php) */

/* ========================================
   FILTER CHIPS
   ======================================== */
.filter-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-sec);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.filter-chip i {
    font-size: 0.75rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.filter-chip:hover {
    border-color: rgba(230, 57, 70, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.filter-chip:hover i {
    color: var(--accent);
}

.filter-chip.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.filter-chip.active i {
    color: #fff;
}

/* ========================================
   CARDS COUNT
   ======================================== */
.cards-count {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.cards-count span {
    color: var(--accent);
    font-weight: 800;
}

/* ========================================
   TRENDING BADGE
   ======================================== */
.card-trending {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #e54750);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--r-sm);
    font-size: 0.58rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(229, 71, 80, 0.4);
    animation: pulse 2s ease infinite;
}

.card-trending i {
    font-size: 0.55rem;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   CARD DURATION ICON
   ======================================== */
.card-duration i {
    font-size: 0.55rem;
    margin-left: 2px;
}

/* ========================================
   SIDEBAR MENU
   ======================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar-overlay.active .sidebar {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-close:hover {
    background: var(--bg-card);
    color: var(--accent);
}

.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 4px 12px;
    background: transparent;
}

.sidebar-item:hover,
.sidebar-item:active {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-4px);
    color: #fff;
}

.sidebar-item i {
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.sidebar-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .sidebar {
        width: 320px;
    }

    .sidebar-item {
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    .sidebar-title {
        font-size: 0.9rem;
    }
}

/* ========================================
   WATCH HISTORY ROW
   ======================================== */
.history-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.history-row::-webkit-scrollbar {
    display: none;
}

.hist-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    transition: transform 0.25s ease;
}

.hist-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hist-link:active {
    transform: scale(0.96);
}

.hist-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.55rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hist-card:hover .hist-remove,
.hist-card:active .hist-remove {
    opacity: 1;
}

.hist-remove:hover {
    background: var(--accent);
}

@media (hover: hover) {
    .hist-card:hover {
        transform: translateY(-3px);
    }

    .hist-card:hover .hist-play {
        opacity: 1;
    }

    .hist-card:hover .hist-play i {
        transform: scale(1);
    }
}

@media (hover: none) {
    .hist-remove {
        opacity: 1;
    }
}

.hist-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-card);
}

.hist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hist-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-surface));
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hist-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.25s;
}

.hist-play i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    transform: scale(0.7);
    transition: transform 0.25s;
    box-shadow: 0 4px 12px rgba(229, 71, 80, 0.4);
}

.hist-dur {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.hist-info {
    padding: 8px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hist-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hist-ago {
    font-size: 0.58rem;
    color: var(--text-dim);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.hist-ago i {
    font-size: 0.5rem;
}

/* Responsive history cards */
@media (min-width: 768px) {
    .hist-card {
        width: 170px;
    }

    .hist-title {
        font-size: 0.72rem;
    }
}

@media (min-width: 1024px) {
    .hist-card {
        width: 200px;
    }

    .hist-title {
        font-size: 0.76rem;
    }

    .hist-img {
        border-radius: var(--r);
    }
}

/* ========================================
   LIGHT THEME
   ======================================== */
body.light-theme {
    --bg: #f0f2f8;
    --bg-surface: #e4e6f0;
    --bg-card: #ffffff;
    --bg-elevated: #eceef6;
    --bg-glass: rgba(240, 242, 248, 0.92);
    --text: #151530;
    --text-sec: #33335a;
    --text-dim: #5a5a8a;
    --text-muted: #8888aa;
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.04);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --neon-red: 0 0 10px rgba(230, 57, 70, 0.15);
    background-image: none;
}

body.light-theme .navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-center,
body.light-theme .nav-center a {
    color: var(--text);
}

body.light-theme .icon-btn {
    color: var(--text);
}

body.light-theme .icon-btn:hover,
body.light-theme .icon-btn:active {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.light-theme .filter-chip {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

body.light-theme .filter-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

body.light-theme .sidebar {
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

body.light-theme .search-bar input {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

body.light-theme .pg-btn {
    background: var(--bg-card);
    color: var(--text);
}

body.light-theme .hist-remove {
    background: rgba(255, 255, 255, 0.85);
    color: #333;
}

body.light-theme .toast {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ========================================
   CARD FAVORITE BUTTON
   ======================================== */
.card-fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card:hover .card-fav-btn,
.card:active .card-fav-btn {
    opacity: 1;
}

.card-fav-btn.active {
    opacity: 1;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.7);
}

.card-fav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.15);
}

@media (hover: none) {
    .card-fav-btn {
        opacity: 1;
    }
}

/* ========================================
   SEARCH AUTOCOMPLETE
   ======================================== */
.autocomplete-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    max-height: 280px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.ac-item:hover {
    background: var(--bg-elevated);
}

.ac-item i {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.telegram {
    background: #0088cc;
    color: #fff;
}

.share-btn.copy-link {
    background: var(--bg-elevated);
    color: var(--text);
}

.share-btn i {
    font-size: 0.8rem;
}

/* ========================================
   PWA INSTALL BANNER
   ======================================== */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
}

.pwa-banner.show {
    transform: translateX(-50%) translateY(0);
}

.pwa-banner-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.pwa-banner-btn {
    padding: 8px 16px;
    border-radius: var(--r-xs);
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}

/* ========================================
   TRENDING BADGE ANIMATION
   ======================================== */
@keyframes trendPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 71, 80, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(229, 71, 80, 0);
    }
}

.card-trending {
    animation: trendPulse 2s ease infinite;
}

/* ========================================
   TRENDING RANK BADGE
   ======================================== */
.trending-rank {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    background: var(--accent);
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 71, 80, 0.4);
}

/* ========================================
   PLAYER AREA & SERVERS
   ======================================== */
.player-area {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease both;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* UNIFORM SIZE FOR ALL */
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.player-wrapper iframe,
.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.servers-inline {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.015);
}

.servers-inline-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.servers-inline-header span {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.servers-inline-header span i {
    color: var(--accent);
    font-size: 0.9rem;
}

.servers-inline-header small {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.8;
}

/* Servers grid with better alignment */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.srv-btn {
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-align: right;
}

.srv-btn.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.srv-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
    transform: translateY(-2px);
    color: #fff;
}

.srv-icon {
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: center;
}

.srv-btn.active .srv-icon {
    color: #fff;
}

@media (max-width: 600px) {
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .srv-btn {
        padding: 0 12px;
        font-size: 0.78rem;
        height: 46px;
    }
}

/* Compact Circular Action Buttons */
.action-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    transition: transform 0.3s;
}

.action-btn .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: color 0.3s;
}

.action-btn:hover {
    transform: translateY(-5px);
}

.action-btn:hover .icon-box {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.action-btn:hover span {
    color: #fff;
}

@media (max-width: 500px) {
    .action-row {
        gap: 15px;
    }

    .action-btn .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .action-btn span {
        font-size: 0.65rem;
    }
}

/* Share Row - Re-added and polished */
.share-row {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    animation: fadeUp 0.3s ease both;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.share-row.active {
    display: grid;
}

.share-btn {
    height: 42px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-btn i {
    font-size: 0.9rem;
}

.share-btn.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.2);
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.2);
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.2);
}

.share-btn.telegram {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.2);
}

.share-btn.copy-link {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SKIP SERVER BUTTON
   ======================================== */
.skip-server-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 20;
    padding: 10px 20px;
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Cairo', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
    animation: fadeUp 0.3s ease both;
}

.skip-server-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.skip-server-btn i {
    font-size: 0.65rem;
}

/* ========================================
   KEYBOARD SHORTCUT HINTS
   ======================================== */
.kbd-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-dim);
    font-family: monospace;
}

/* ===== NEW PREMIUM COMPONENTS ===== */

/* Announcement Bar */
.announcement-bar {
    background: var(--accent-gradient);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 1001;
    animation: slideDown 0.5s ease;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Live Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 8px;
    animation: fadeIn 0.2s ease;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--r-sm);
    transition: all 0.2s;
    cursor: pointer;
    text-align: right;
}

.search-result-item:hover {
    background: var(--border-light);
}

.search-result-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    overflow: hidden;
}

.search-result-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.search-result-cat {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Notifications Bell */
.notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
    display: none;
}

.notif-badge.active {
    display: block;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Notification Popup */
.notif-popup {
    position: fixed;
    top: 70px;
    left: 20px;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    z-index: 1100;
    transform: translateX(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
    text-align: right;
}

.notif-popup.active {
    transform: translateX(0);
}

.notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.notif-body {
    font-size: 0.8rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* Surprise Me Button (Floating) */
.surprise-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--shadow-accent);
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surprise-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 24px rgba(230, 57, 70, 0.5);
}

/* Maintenance Mode Overlay */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: #060810;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.maintenance-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 24px;
    animation: maintenanceFloat 3s ease-in-out infinite;
}

@keyframes maintenanceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.maintenance-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.maintenance-p {
    color: var(--text-sec);
    max-width: 400px;
    line-height: 1.8;
}

/* Data Saver Toggle */
.ds-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.ds-toggle.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.ds-toggle i {
    font-size: 0.8rem;
}

/* ===== LIVE VIEWERS CHIP ===== */
.chip-live {
    background: rgba(76, 175, 80, 0.15) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #4ade80 !important;
    animation: livePulse 2s ease-in-out infinite;
    position: relative;
}

.chip-live::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }

    50% {
        box-shadow: 0 0 12px 3px rgba(76, 175, 80, 0.15);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== VIDEO STATS STRIP ===== */
.video-stats-strip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
    animation: fadeUp 0.4s ease 0.2s both;
}

.video-stats-strip::-webkit-scrollbar {
    display: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    flex: 1;
    padding: 8px 4px;
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-item i {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    white-space: nowrap;
    font-weight: 600;
}

.stat-value {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

/* ===== RAMADAN COUNTDOWN ===== */
.ramadan-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(240, 192, 64, 0.06) 100%);
    border: 1px solid rgba(240, 192, 64, 0.15);
    border-radius: 20px;
    margin-top: 20px;
    animation: fadeUp 0.5s ease 0.3s both;
    position: relative;
    overflow: hidden;
}

.ramadan-countdown::before {
    content: '🌙';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 4rem;
    opacity: 0.06;
    pointer-events: none;
}

.countdown-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

.countdown-items {
    display: flex;
    gap: 12px;
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.countdown-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    min-width: 48px;
    padding: 6px 10px;
    text-align: center;
    line-height: 1;
}

.countdown-label {
    font-size: 0.55rem;
    color: var(--text-dim);
    font-weight: 700;
}

.countdown-sep {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 900;
    margin-bottom: 12px;
}

/* ===== QUICK STATS BAR FOR INDEX ===== */
.quick-stats {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-stats::-webkit-scrollbar {
    display: none;
}

.quick-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: fit-content;
    white-space: nowrap;
    transition: all 0.3s;
}

.quick-stat-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-2px);
}

.quick-stat-card i {
    font-size: 1.2rem;
    color: var(--accent);
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.quick-stat-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 480px) {
    .video-stats-strip {
        gap: 6px;
        padding: 10px 12px;
    }

    .stat-item {
        min-width: 65px;
        padding: 6px 2px;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .stat-value {
        font-size: 0.65rem;
    }

    .ramadan-countdown {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .countdown-num {
        font-size: 1.2rem;
        min-width: 38px;
        padding: 5px 8px;
    }
}