/* Fonts load from includes/fonts.php (non-blocking); the @import here chained two blocking requests. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-arabic: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;

    /* Keep Zapflix Red as Primary Accent */
    --netflix-red: #E50914;
    --netflix-red-hover: #F40612;
    
    /* Apple Dark Theme Colors */
    --netflix-black: #000000;
    --netflix-dark: #1d1d1f;
    --netflix-card: #272729;
    --netflix-gray: #7a7a7a;
    --netflix-light-gray: #cccccc;
    --netflix-white: #ffffff;
    --netflix-border: #333333;
    
    /* System Tokens */
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    
    /* Liquid Glass Tokens */
    --glass-bg: rgba(20, 20, 20, 0.45);
    --glass-blur: blur(30px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --glass-glow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

body {
    font-family: var(--font-sans);
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.47;
    letter-spacing: -0.022em;
}

html[lang="ar"], html[lang="ar"] body, html[dir="rtl"], html[dir="rtl"] body, body[dir="rtl"], [dir="rtl"] {
    font-family: var(--font-arabic);
}

button, input, select, textarea, .btn, .logo, .nav-links, h1, h2, h3, h4, h5, h6, p, span, a {
    font-family: inherit;
}

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

img {
    display: block;
}

/* ==================== NAVBAR ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 68px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.4s ease, border-bottom 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--netflix-red);
    text-decoration: none;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a {
    color: #e5e5e5;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--netflix-white);
}

.nav-links a.active {
    color: var(--netflix-white);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--netflix-red), #B20710);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.nav-right .username {
    font-size: 13px;
    color: #e5e5e5;
}

.role-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.free { background: #6c757d; color: #fff; }
.role-badge.paid { background: var(--netflix-red); color: #fff; }
.role-badge.admin { background: #E5B109; color: #000; }
.role-badge.root { background: #9b59b6; color: #fff; }

/* Buttons */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--netflix-red);
    color: white;
}

.btn-primary:hover {
    background: var(--netflix-red-hover);
}

.btn-white {
    background: white;
    color: #000;
}

.btn-white:hover {
    background: rgba(255,255,255,0.85);
}

.btn-gray {
    background: rgba(109,109,110,0.7);
    color: white;
}

.btn-gray:hover {
    background: rgba(109,109,110,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-logout {
    background: transparent;
    color: #e5e5e5;
    font-size: 13px;
    padding: 6px 12px;
}

.btn-logout:hover {
    color: white;
}

/* ==================== HERO / BILLBOARD ==================== */
.billboard {
    position: relative;
    height: 85vh;
    min-height: 600px;
    margin-bottom: -80px;
    overflow: hidden;
}

.billboard-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
    pointer-events: none;
    z-index: 1;
}

.billboard-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
    z-index: 5;
}

.billboard-indicators {
    position: absolute;
    bottom: 100px;
    right: 60px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.billboard-indicators .indicator {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.billboard-indicators .indicator.active {
    width: 28px;
    background: var(--netflix-red);
}

.billboard-indicators .indicator:hover {
    background: rgba(255,255,255,0.6);
}

.billboard-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 0;
}

.billboard-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(77deg, rgba(0,0,0,0.6) 0%, transparent 85%);
}

.billboard-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14.7vw;
    background: linear-gradient(0deg, var(--netflix-black), transparent);
    z-index: 1;
}

.billboard-content {
    position: relative;
    z-index: 2;
    padding: 0 4%;
    max-width: 36%;
    padding-bottom: 20px;
}

.billboard-content .movie-logo {
    font-size: 3vw;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5vw;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
}

.billboard-content .movie-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.billboard-content .movie-meta .match {
    color: #46d369;
    font-weight: 700;
}

.billboard-content .movie-meta .rating {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 1px 6px;
    font-size: 12px;
}

.billboard-content .synopsis {
    font-size: 1.2vw;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 1.5vw;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2em;
}

.billboard-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.billboard-buttons .btn {
    padding: 0.5vw 1.8vw;
    font-size: 1.1vw;
    font-weight: 700;
    border-radius: 4px;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

/* ==================== MOVIE ROWS ==================== */
.content-section {
    position: relative;
    z-index: 5;
    padding: 0 4%;
    margin-bottom: 3vw;
}

.content-section .section-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #e5e5e5;
}

.movie-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.movie-row::-webkit-scrollbar {
    height: 0;
}

.movie-card {
    position: relative;
    flex: 0 0 calc((100% - 42px) / 8); /* 8 cards on very large screens */
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    background: var(--netflix-dark);
}

.movie-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.movie-card:hover .card-img {
    transform: scale(1.02);
}

.movie-card .card-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
}

.movie-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 12px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 200ms ease;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-overlay .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
}

.card-overlay .card-meta .match {
    color: #46d369;
    font-weight: 600;
}

.card-overlay .card-buttons {
    display: flex;
    gap: 6px;
}

.card-overlay .card-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(42,42,42,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.card-overlay .card-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.card-overlay .card-btn.play-btn {
    background: white;
    color: #000;
    border-color: white;
}

.card-overlay .card-btn.play-btn:hover {
    background: #e0e0e0;
}

.card-overlay .card-btn.like-btn.liked {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.card-overlay .card-btn.like-btn.liked:hover {
    background: #b20710;
    border-color: #b20710;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
}

.movie-card .premium-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--netflix-red);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.movie-card .lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(3px);
    border-radius: 4px;
}

.movie-card:hover .lock-overlay {
    opacity: 1;
    border-radius: 6px;
}

.lock-overlay .lock-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.lock-overlay .lock-text {
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}

.lock-overlay .upgrade-btn {
    margin-top: 12px;
    padding: 7px 18px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.lock-overlay .upgrade-btn:hover {
    background: var(--netflix-red-hover);
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background: url('https://assets.nflxext.com/ffe/siteui/vlv3/93da5c27-be66-427c-8b72-5cb39d275279/94eb5ad7-10d8-4571-8c10-f3861a9471af/US-en-20231023-popsignuptwoithins498702702_1_medium.jpg') center/cover;
    z-index: 0;
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.auth-header {
    position: relative;
    z-index: 2;
    padding: 20px 60px;
}

.auth-header .logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--netflix-red);
    letter-spacing: -1.5px;
}

.auth-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 60px 68px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--glass-glow), var(--glass-shadow);
}

.auth-box h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 16px 8px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #e87c03;
    background: #454545;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8c8c8c;
    pointer-events: none;
    transition: all 0.2s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: #b3b3b3;
}

.auth-box .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    margin-top: -3px;
    margin-right: 5px;
}

html[dir="rtl"] .billboard-bg::after {
    background: linear-gradient(-77deg, rgba(0,0,0,0.6) 0%, transparent 85%);
}

html[dir="rtl"] .synopsis,
html[dir="rtl"] .movie-logo,
html[dir="rtl"] .card-title,
html[dir="rtl"] .movie-name {
    unicode-bidi: plaintext;
    text-align: start;
}

/* =========================================================================
   RTL (RIGHT-TO-LEFT) SUPPORT (Arabic, Hebrew)
   ========================================================================= */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .nav-left {
    flex-direction: row;
}

html[dir="rtl"] .billboard-indicators {
    right: auto;
    left: 60px;
}

html[dir="rtl"] .btn {
    flex-direction: row;
}

html[dir="rtl"] .movie-actions .btn-white svg {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .movie-actions .btn-gray span:first-child {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .movie-card {
    text-align: right;
}

html[dir="rtl"] .search-box input {
    padding-left: 15px;
    padding-right: 40px;
}

html[dir="rtl"] .search-box::before {
    left: auto;
    right: 15px;
}

html[dir="rtl"] .search-results {
    right: 0;
    left: auto;
}

html[dir="rtl"] .lang-switcher {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .cast-row {
    flex-direction: row;
}

.auth-box .switch-text {
    margin-top: 20px;
    color: #737373;
    font-size: 16px;
}

.auth-box .switch-text a {
    color: white;
    font-weight: 500;
}

.auth-box .switch-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #E873140D;
    color: #E87314;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #5cb85c;
}

/* ==================== SUBSCRIPTION PAGE ==================== */
.subscription-page {
    padding-top: 90px;
    min-height: 100vh;
    background: linear-gradient(180deg, #141414 0%, #1a1a2e 100%);
}

.subscription-header {
    text-align: center;
    padding: 40px 20px;
}

.subscription-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.subscription-header p {
    font-size: 18px;
    color: var(--netflix-light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.plans-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    flex: 1;
    max-width: 380px;
    background: linear-gradient(145deg, #1e1e2e, #252535);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--netflix-red);
}

.plan-card.popular {
    border-color: var(--netflix-red);
}

.plan-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--netflix-red);
    padding: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-card .plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 10px;
}

.plan-card .plan-quality {
    font-size: 14px;
    color: var(--netflix-light-gray);
    margin-bottom: 20px;
}

.plan-card .plan-price {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 5px;
}

.plan-card .plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--netflix-light-gray);
}

.plan-card .plan-features {
    list-style: none;
    margin: 24px 0;
}

.plan-card .plan-features li {
    padding: 10px 0;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card .plan-features li::before {
    content: '✓';
    color: var(--netflix-red);
    font-weight: 700;
    font-size: 16px;
}

.plan-card .btn-subscribe {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 10px;
}

/* Payment Form */
.payment-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.payment-box {
    background: #1e1e2e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
}

.payment-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-box .plan-summary {
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-box .plan-summary .plan-label {
    font-size: 14px;
    color: #ccc;
}

.payment-box .plan-summary .plan-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--netflix-red);
}

.card-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.card-icons .card-icon {
    width: 50px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #444;
}

.card-icons .visa { background: #1A1F71; color: white; }
.card-icons .mastercard { background: #EB001B; color: white; }

.payment-form .form-row {
    display: flex;
    gap: 12px;
}

.payment-form .form-row .form-group {
    flex: 1;
}

.payment-form .form-group input {
    background: #2a2a3a;
    border: 1px solid #444;
    border-bottom: 1px solid #444;
}

.payment-form .form-group input:focus {
    border-color: var(--netflix-red);
    background: #333345;
}

.payment-form .secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    margin: 20px 0;
}

.payment-form .btn-pay {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
    padding: 90px 60px 60px;
}

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

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, #1e1e2e, #252535);
    border: 1px solid #333;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 38px;
    font-weight: 900;
    color: var(--netflix-red);
}

.stat-card .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-admin {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.users-table th,
.users-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #2a2a3a;
}

.users-table th {
    background: #252535;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.users-table td {
    font-size: 14px;
}

.users-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

select.role-select {
    background: #2a2a3a;
    color: white;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete {
    background: transparent;
    color: var(--netflix-red);
    border: 1px solid var(--netflix-red);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: var(--netflix-red);
    color: white;
}

/* ==================== PRIVILEGE PAGE ==================== */
.privilege-card {
    background: linear-gradient(145deg, #1e1e2e, #252535);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.privilege-card h3 {
    color: var(--netflix-red);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.privilege-card .description {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.grant-line {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: #7ee787;
    overflow-x: auto;
}

.security-demo {
    background: linear-gradient(145deg, #1e1e2e, #252535);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.security-demo h3 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 18px;
}

.issue-item {
    background: rgba(229,9,20,0.05);
    border-left: 3px solid var(--netflix-red);
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 0 8px 8px 0;
}

.issue-item h4 { color: #ff6b6b; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.issue-item p { color: #aaa; font-size: 13px; line-height: 1.5; }

.solution-item {
    background: rgba(40,167,69,0.05);
    border-left: 3px solid #28a745;
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 0 8px 8px 0;
}

.solution-item h4 { color: #51cf66; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.solution-item p { color: #aaa; font-size: 13px; line-height: 1.5; }

/* ==================== VIDEO MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 960px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: var(--glass-shadow), var(--glass-glow);
}

iframe:-webkit-full-screen,
iframe:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
}

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

.modal-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #141414;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-decoration: none;
}
.btn-submit:hover {
    background: #f40612;
}

/* ========================================================= */
/* STUDIO SECTION AND HOMEPAGE ROWS
/* ========================================================= */
.studio-section {
    padding-top: 20px;
    padding-bottom: 20px;
}
.trending-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.trending-section-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.trending-section-tabs {
    display: flex;
    gap: 10px;
}
.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9em;
}
.tab-button:hover, .tab-button.active {
    background: rgba(255, 255, 255, 0.2);
}
.view-all-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s;
}
.view-all-link:hover {
    color: #fff;
}
.top-number-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.8);
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
    z-index: 10;
    pointer-events: none;
    transition: 0.3s;
}
.movie-card:hover .top-number-badge {
    color: #fff;
    -webkit-text-stroke: 1.5px #fff;
    transform: scale(1.1);
}
.movie-card:hover .top-number-badge {
    -webkit-text-stroke: 2px #fff;
}

/* STUDIO PAGE */
.studio-page-body {
    background: #000;
    color: #fff;
    padding-top: 70px;
}
.studio-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #111, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}
.studio-banner-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}
.studio-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 120px;
    max-width: 300px;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.6)) drop-shadow(0 0 10px rgba(255,255,255,0.4));
    transition: transform 0.3s ease;
}
.studio-logo:hover {
    transform: scale(1.05);
}
.studio-text-logo {
    font-size: 4em;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.studio-subtitle {
    font-size: 1.2em;
    color: #bbb;
    margin-bottom: 40px;
}
.studio-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}
.studio-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 30px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.tab-btn:hover {
    color: #fff;
}
.tab-btn.active {
    background: #fff;
    color: #000;
}
.filter-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}
.filter-btn:hover {
    background: rgba(255,255,255,0.2);
}
.studio-grid-container {
    padding: 40px 4%;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}
.search-grid .movie-card {
    width: 100%;
    margin-bottom: 20px;
}
@media (max-width: 1400px) {
    .search-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1024px) {
    .search-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .search-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .search-grid .movie-card { margin-bottom: 10px; }
}
@media (max-width: 480px) {
    .search-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.modal-video {
    width: 100%;
    min-height: 500px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}

.modal-video iframe,
.modal-video video {
    flex: 1;
    min-height: 460px;
    border-radius: 0;
    border: none;
}

.modal-video .play-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.4);
}

.modal-video .play-circle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.modal-info {
    padding: 28px 36px;
}

.modal-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-info .meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.modal-info .meta-row .match { color: #46d369; font-weight: 600; }

.modal-info .description {
    font-size: 15px;
    line-height: 1.7;
    color: #d2d2d2;
}

/* TV Series Controls - Netflix Style */
.tv-controls {
    padding: 20px 36px 30px;
    border-top: 1px solid #404040;
}

.tv-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tv-controls-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.season-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    background: #242424 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 40px 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.season-dropdown select:hover {
    border-color: #fff;
}

.season-dropdown select:focus {
    outline: none;
    border-color: #fff;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 340px;
    overflow-y: auto;
}

.episodes-list::-webkit-scrollbar {
    width: 5px;
}

.episodes-list::-webkit-scrollbar-track {
    background: transparent;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #333;
    border-radius: 4px;
}

.episode-item:hover {
    background: #333;
}

.episode-item.playing {
    background: #333;
}

.episode-number {
    font-size: 20px;
    font-weight: 600;
    color: #d2d2d2;
    min-width: 28px;
    text-align: center;
}

.episode-item.playing .episode-number {
    color: #fff;
}

.episode-thumb {
    width: 130px;
    height: 73px;
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.episode-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.episode-item:hover .episode-thumb::after {
    background: rgba(0,0,0,0.15);
}

.episode-thumb .ep-play {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
}

.episode-item:hover .ep-play {
    transform: scale(1.1);
}

.episode-item.playing .ep-play {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.episode-details {
    flex: 1;
    min-width: 0;
}

.episode-details .ep-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.episode-details .ep-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.nav-links a.active {
    font-weight: 600;
    color: #fff;
}

/* Rewards Button Animation (Warm Heartbeat) */
.rewards-btn-glow {
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    animation: warm-heartbeat 6s infinite ease-in-out;
}

@keyframes warm-heartbeat {
    0% {
        color: #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
        background: rgba(255, 0, 0, 0.05);
        transform: scale(1);
    }
    12.5% {
        color: #ff4500;
        box-shadow: 0 0 12px rgba(255, 69, 0, 0.5);
        background: rgba(255, 69, 0, 0.1);
        transform: scale(1.1);
    }
    25% {
        color: #ff8c00;
        box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
        background: rgba(255, 140, 0, 0.08);
        transform: scale(1.05);
    }
    37.5% {
        color: #ffd700;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
        background: rgba(255, 215, 0, 0.1);
        transform: scale(1.1);
    }
    50% {
        color: #ffff00;
        box-shadow: 0 0 8px rgba(255, 255, 0, 0.3);
        background: rgba(255, 255, 0, 0.08);
        transform: scale(1.05);
    }
    62.5% {
        color: #ffa500;
        box-shadow: 0 0 12px rgba(255, 165, 0, 0.5);
        background: rgba(255, 165, 0, 0.1);
        transform: scale(1.1);
    }
    75% {
        color: #ff6347;
        box-shadow: 0 0 8px rgba(255, 99, 71, 0.3);
        background: rgba(255, 99, 71, 0.08);
        transform: scale(1.05);
    }
    87.5% {
        color: #dc143c;
        box-shadow: 0 0 12px rgba(220, 20, 60, 0.5);
        background: rgba(220, 20, 60, 0.1);
        transform: scale(1.1);
    }
    100% {
        color: #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
        background: rgba(255, 0, 0, 0.05);
        transform: scale(1);
    }
}

.episode-details .ep-len {
    font-size: 12px;
    color: #808080;
    flex-shrink: 0;
}

.episode-details .ep-desc {
    font-size: 12px;
    color: #808080;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-item.playing .ep-name {
    color: #46d369;
}

/* Upgrade Modal */
.upgrade-modal-content {
    text-align: center;
    padding: 50px 40px;
    max-width: 450px;
}

.upgrade-modal-content .lock-big {
    font-size: 56px;
    margin-bottom: 16px;
}

.upgrade-modal-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.upgrade-modal-content p {
    color: #888;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 4%;
    margin-top: 20px;
}

.footer p {
    color: #757575;
    font-size: 11px;
    text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
    .movie-card { flex: 0 0 calc((100% - 30px) / 6); }
}

@media (max-width: 1024px) {
    .billboard-content { max-width: 50%; }
    .billboard-content .movie-logo { font-size: 2.4em; }
    .billboard-content .synopsis { font-size: 14px; -webkit-line-clamp: 3; height: 4.2em; }
    .billboard-buttons .btn { padding: 8px 22px; font-size: 14px; }
    .admin-container { padding: 90px 30px 30px; }
    .movie-card { flex: 0 0 calc((100% - 24px) / 5); }
}

@media (max-width: 768px) {
    .navbar { padding: 0 4%; height: 50px; }
    .navbar .logo { font-size: 20px; }
    .nav-links { display: none; }

    .billboard { height: 56vh; min-height: 350px; }
    .billboard-content { max-width: 70%; padding: 0 4%; }
    .billboard-content .movie-logo { font-size: 1.6em; }
    .billboard-content .synopsis { font-size: 12px; -webkit-line-clamp: 2; height: 2.8em; }
    .billboard-content .movie-meta { font-size: 11px; }
    .billboard-buttons .btn { padding: 7px 16px; font-size: 12px; min-height: 34px; }

    .content-section { padding: 0 4%; }
    .content-section .section-title { font-size: 16px; }
    .movie-card { flex: 0 0 calc((100% - 18px) / 4); }
    .card-overlay .card-title { font-size: 11px; }
    .card-overlay .card-meta { font-size: 10px; }
    .card-overlay .card-btn { width: 24px; height: 24px; font-size: 10px; }

    .auth-box { padding: 40px 30px; }
    .plans-container { flex-direction: column; align-items: center; }
    .plan-card { max-width: 100%; }

    .admin-container { padding: 70px 15px 20px; }
    .users-table { font-size: 12px; }
    .users-table th, .users-table td { padding: 10px 12px; }
    .search-box { order: -1; }
    .search-box input { width: 140px; font-size: 12px; }
}

@media (max-width: 480px) {
    .movie-card { flex: 0 0 calc((100% - 6px) / 2); }
    .movie-row { gap: 6px; }
}

/* ==================== PASSWORD TOGGLE & RULES ==================== */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
    user-select: none;
}

.toggle-password:hover {
    opacity: 1;
}

.password-rules {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.password-rules p {
    font-size: 12px;
    color: #e87c03;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.password-rules p:last-child {
    margin-bottom: 0;
}

.password-rules .rule-icon {
    margin-right: 6px;
    font-weight: bold;
}

.password-match-msg {
    font-size: 12px;
    margin-bottom: 12px;
    min-height: 16px;
}/* ==================== SEARCH BOX & NETFLIX SEARCH UI ==================== */
.search-box, .netflix-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    vertical-align: middle;
}

.search-box .search-toggle-btn, .netflix-search-box .search-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-box .search-toggle-btn:hover, .netflix-search-box .search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.search-box.active .search-toggle-btn, .netflix-search-box.active .search-toggle-btn {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 2px 8px 2px 14px;
    min-height: 38px;
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    transition: width 280ms cubic-bezier(0.32, 0.94, 0.6, 1), opacity 200ms ease, border-color 200ms ease;
}

.search-box.active .search-input-wrapper,
.netflix-search-box.active .search-input-wrapper,
.netflix-search-page .search-input-wrapper {
    width: 320px;
    opacity: 1;
    pointer-events: auto;
}

html[dir="rtl"] .search-input-wrapper {
    padding: 2px 14px 2px 8px;
}

.search-icon-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
    flex-shrink: 0;
}

html[dir="rtl"] .search-icon-fixed {
    margin-right: 0;
    margin-left: 8px;
}

.search-input-wrapper input, .netflix-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    padding: 6px 0;
    line-height: 1.4;
    font-family: inherit;
}

.search-input-wrapper input::placeholder, .netflix-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, background 150ms ease, color 150ms ease;
    flex-shrink: 0;
}

html[dir="rtl"] .search-clear-btn {
    margin-left: 0;
    margin-right: 4px;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.search-results, .search-results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
}

html[dir="rtl"] .search-results,
html[dir="rtl"] .search-results-dropdown {
    right: auto;
    left: 0;
}

.search-results.active, .search-results-dropdown.active {
    display: block;
    animation: zfFadeSlideDown 180ms ease forwards;
}

.search-result-item, .search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 150ms ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child, .search-dropdown-item:last-child {
    border-bottom: none;
}

.search-result-item:hover, .search-result-item.selected, .search-result-item.active,
.search-dropdown-item:hover, .search-dropdown-item.selected {
    background: rgba(255, 255, 255, 0.1);
}

.search-dropdown-poster, .search-result-item img {
    width: 48px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

.search-dropdown-info, .search-result-info {
    flex: 1;
    min-width: 0;
}

.search-dropdown-title, .search-result-info .title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.search-dropdown-meta, .search-result-info .meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-dropdown-match {
    color: #46d369;
    font-weight: 700;
}

.search-dropdown-badge {
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-dropdown-footer {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.search-dropdown-view-all {
    color: #e50914;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.search-dropdown-view-all:hover {
    color: #ff333e;
    text-decoration: underline;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== SERVER SELECTOR ==================== */
.server-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #000;
    flex-wrap: wrap;
}

.server-selector .server-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
}

.server-selector .server-btn {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #666;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.server-selector .server-btn:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.server-selector .server-btn.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.server-selector .server-btn .quality-tag {
    font-size: 9px;
    opacity: 0.6;
    font-weight: 400;
}

.server-selector .server-btn.active .quality-tag {
    opacity: 0.7;
}

.server-selector .fullscreen-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    gap: 5px;
}

.server-selector .fullscreen-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .server-selector {
        padding: 8px 10px;
        gap: 5px;
    }
    .server-selector .server-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .server-selector .server-label {
        display: none;
    }
}

/* ==================== SUBTITLE OVERLAY (on top of video) ==================== */
.subtitle-overlay {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    padding: 0 10%;
}

.subtitle-overlay .subtitle-text {
    display: inline-block;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 4px;
    direction: rtl;
    unicode-bidi: bidi-override;
    font-family: 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', Arial, sans-serif;
    line-height: 1.5;
    text-shadow: 1px 1px 2px #000, 0 0 8px rgba(0,0,0,0.6);
    max-width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.subtitle-overlay .subtitle-text:empty {
    display: none;
}

/* CC button in server selector */
.server-selector .cc-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
}

.server-selector .cc-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.server-selector .cc-btn.active {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: #fff;
}

/* Subtitle overlay responsive */
@media (max-width: 768px) {
    .subtitle-overlay {
        bottom: 40px;
        padding: 0 5%;
    }

    .subtitle-overlay .subtitle-text {
        font-size: 16px;
        padding: 4px 10px;
    }
}


@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.6) rotate(-15deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    75% { transform: scale(1.4) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}
.card-overlay .card-btn.like-btn.animating {
    animation: heartPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* SPA Card Animations */
.movie-card {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.card-enter {
    animation: cardEnter 0.5s ease forwards;
}
.card-exit {
    animation: cardExit 0.5s ease forwards;
}
@keyframes cardEnter {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cardExit {
    from { opacity: 1; transform: scale(1) translateY(0); width: 250px; margin-right: 15px; }
    to { opacity: 0; transform: scale(0.8) translateY(-20px); width: 0; margin-right: 0; padding: 0; overflow: hidden; }
}


@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
/* Still placeholder behind the poster. The old endless background-position shimmer
   restyled and repainted every card (255 on the home page) on every frame. */
.movie-card {
    background: #1c1c1e;
}


.billboard-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.billboard-bg img.loaded, .card-img.loaded {
    opacity: 1;
}
.card-img {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
.billboard-slide.active .billboard-content {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Netflix-like fast search overlay */
.search-box::before {
    content: '⌕';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    pointer-events: none;
    z-index: 1;
}
html[dir="rtl"] .search-box::before { left: auto; right: 10px; }
.search-box input {
    padding-left: 34px;
    border-radius: 2px;
    backdrop-filter: blur(8px);
}
html[dir="rtl"] .search-box input { padding-left: 14px; padding-right: 34px; }
.search-box input:focus {
    width: min(360px, 52vw);
    background: rgba(0,0,0,0.92);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.search-results {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: min(430px, 90vw);
    background: rgba(15,15,15,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.65);
    overflow: hidden auto;
}
html[dir="rtl"] .search-results { right: auto; left: 0; }
.search-result-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.search-result-item:hover,
.search-result-item.active {
    background: rgba(255,255,255,0.10);
}
.search-result-info .title {
    font-size: 14px;
    font-weight: 800;
}
.search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 11px;
    color: #ddd;
}
.search-vote {
    margin-left: auto;
    color: #46d369;
    font-weight: 800;
}
html[dir="rtl"] .search-vote { margin-left: 0; margin-right: auto; }

/* ==================== SCROLL-REVEAL ANIMATIONS ==================== */
/* Section fade-in from below when scrolling into view */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.content-section.zf-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card entrance animation */
.content-section.zf-visible .movie-card {
    animation: zf-card-appear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.content-section.zf-visible .movie-card:nth-child(1) { animation-delay: 0ms; }
.content-section.zf-visible .movie-card:nth-child(2) { animation-delay: 40ms; }
.content-section.zf-visible .movie-card:nth-child(3) { animation-delay: 80ms; }
.content-section.zf-visible .movie-card:nth-child(4) { animation-delay: 120ms; }
.content-section.zf-visible .movie-card:nth-child(5) { animation-delay: 160ms; }
.content-section.zf-visible .movie-card:nth-child(6) { animation-delay: 200ms; }
.content-section.zf-visible .movie-card:nth-child(7) { animation-delay: 240ms; }
.content-section.zf-visible .movie-card:nth-child(8) { animation-delay: 280ms; }

@keyframes zf-card-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Section title shimmer on reveal */
.content-section.zf-visible .section-title {
    animation: zf-title-slide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes zf-title-slide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RTL support for title animation */
html[dir="rtl"] .content-section.zf-visible .section-title {
    animation-name: zf-title-slide-rtl;
}

@keyframes zf-title-slide-rtl {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrollbar for movie rows */
.movie-row {
    -webkit-overflow-scrolling: touch;
}

.movie-row::-webkit-scrollbar {
    height: 4px;
}

.movie-row::-webkit-scrollbar-track {
    background: transparent;
}

.movie-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.movie-row:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
}

/* Card image loading skeleton */
.movie-card .card-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card .card-img.loaded {
    opacity: 1;
}

/* Billboard first-section overlap seamless */
.billboard + .content-section,
.billboard ~ .content-section:first-of-type {
    margin-top: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .content-section,
    .content-section.zf-visible .movie-card,
    .content-section.zf-visible .section-title {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================================= */
/* FILTER MODAL
/* ========================================================= */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: flex-end; /* Slide in from right */
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.filter-modal {
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #141414;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.filter-modal-overlay.active .filter-modal {
    transform: translateX(0);
}
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
}
.filter-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}
.close-filter-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.close-filter-btn:hover {
    color: #fff;
}
.filter-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}
.filter-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}
.filter-section {
    margin-bottom: 30px;
}
.filter-section h3 {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 600;
}
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.genre-pill {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.genre-pill:hover {
    border-color: #888;
    color: #fff;
}
.genre-pill.selected {
    background: #fff;
    border-color: #fff;
    color: #000;
    font-weight: 600;
}
.filter-select {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    outline: none;
}
.filter-select:focus {
    border-color: #fff;
}
.filter-modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #333;
    background: #141414;
}
.filter-clear-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.filter-clear-btn:hover {
    background: rgba(255,255,255,0.1);
}
.filter-save-btn {
    flex: 1;
    background: #fff;
    border: none;
    color: #000;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.filter-save-btn:hover {
    background: #e5e5e5;
}

/* =========================================================
   ZF Ad Section Cards — Sponsored Content Rows
   Matches the existing .content-section > .movie-row > .movie-card pattern
   ========================================================= */

/* Section-level styling — Guarantee no top line on any page */
.zf-ad-section {
    position: relative;
    border: none !important;
    border-top: none !important;
}

.zf-ad-section::before,
.zf-ad-section::after {
    display: none !important;
    content: none !important;
    border: none !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* "AD" badge next to section title */
.zf-ad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, #E50914, #ff6b35);
    color: #fff;
    margin-left: 12px;
    vertical-align: middle;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
    animation: zf-ad-badge-pulse 3s ease-in-out infinite;
}

@keyframes zf-ad-badge-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35); }
    50% { box-shadow: 0 2px 16px rgba(229, 9, 20, 0.55); }
}

/* Ad card item — extends .movie-card sizing & hover behavior */
.zf-ad-card-item {
    position: relative;
}

.zf-ad-card-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.zf-ad-card-item:hover::after {
    border-color: rgba(229, 9, 20, 0.4);
}

/* Video thumbnail within ad card */
.zf-ad-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
}

.zf-ad-video-thumb.loaded {
    opacity: 1;
}

/* Ad type badge (top-left corner) */
.zf-ad-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    color: #fff;
    z-index: 10;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.zf-ad-type-video {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.85), rgba(255, 107, 53, 0.85));
}

.zf-ad-type-vast {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(236, 72, 153, 0.85));
}

.zf-ad-type-code {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.85), rgba(34, 211, 238, 0.85));
}

/* Duration badge (bottom-right corner) */
.zf-ad-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Overlay adjustments for ad cards */
.zf-ad-card-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%) !important;
}

/* Sponsored label in card meta */
.zf-ad-sponsored-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ff6b35;
    text-transform: uppercase;
}

/* Ad play button accent */
.zf-ad-play-btn {
    background: linear-gradient(135deg, #E50914, #ff6b35) !important;
    color: #fff !important;
}

.zf-ad-info-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    font-size: 12px !important;
}

/* Hover: subtle glow effect on ad cards */
.zf-ad-card-item:hover {
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.2), 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}

/* RTL adjustments */
[dir="rtl"] .zf-ad-badge {
    margin-left: 0;
    margin-right: 12px;
}

[dir="rtl"] .zf-ad-type-badge {
    left: auto;
    right: 8px;
}

[dir="rtl"] .zf-ad-duration-badge {
    right: auto;
    left: 8px;
}

/* =====================================================================
   ZFR1 — MID-SIZE WINDOW & ZOOM RESILIENCE (top navbar) — ADDITIVE
   ---------------------------------------------------------------------
   Problem this solves: between 901px and ~1300px (a half-screen window,
   or browser zoom 150–200% on a 1080p/1440p display) NOTHING adapted:
   .nav-links text wrapped to 2+ lines ("Admin Panel" broke in half),
   the username wrapped to 3 lines, the fixed 200px search input could
   not shrink, and .nav-right overflowed past the right edge of the
   screen inside the fixed 68px bar.

   Rules below are layout-only (sizes/spacings/shrink behaviour):
   - no colors, fonts-families, or theme values are changed
   - desktop (>=1281px) visuals are untouched: the tiers start at 1280
   - the mobile layer (css/mobile.css, <=900px) keeps full control:
     every rule here is gated to (min-width: 901px)
   ===================================================================== */

/* -- Tier 0: wide-but-not-full (1561-1880px): the admin navbar still exceeds
      the base budget here; the two lightweight cuts (decorative role chip and
      the redundant Manage Movies link, reachable from Admin Panel) fix it
      without touching anything else. Full desktop (>1880) stays untouched. -- */
@media (min-width: 1561px) and (max-width: 1880px) {
    .nav-right .role-badge { display: none; }
    .nav-links a[href*="admin/movies.php"] { display: none; }
}

/* -- Flex hardening: distribute space instead of wrapping/overflowing -- */
@media (min-width: 901px) {
    .navbar { flex-wrap: nowrap; }
    .nav-left, .nav-right, .nav-links, .user-info { min-width: 0; }
    .nav-left  { flex: 0 1 auto; }
    .nav-right { flex: 0 1 auto; flex-wrap: nowrap; }
    .nav-links { flex: 0 1 auto; overflow: hidden; }
    .nav-links a { white-space: nowrap; flex-shrink: 0; }
    /* The injected "Report an issue" BUTTON wraps its label into 3 lines when
       squeezed (links got nowrap above, buttons need it explicitly). */
    .nav-links button { white-space: nowrap; flex-shrink: 0; }
    .search-box { flex: 0 1 auto; min-width: 0; }
    .search-box input { max-width: 100%; }
    .user-info { overflow: hidden; }
    .nav-right .role-badge,
    .nav-right .btn { flex-shrink: 0; }
    .nav-right .username {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }
}

/* -- Tier 1: compact (<=1560px; 150% zoom on 1920, half of 2560/4K, and the
      admin navbar needs it even at 1281-1560 where the base rules overflow) -- */
@media (min-width: 901px) and (max-width: 1560px) {
    .nav-left { gap: 16px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 14px; }
    .nav-right { gap: 12px; }
    .navbar .logo { font-size: 26px; }
    .search-box input { width: 150px; }
    .search-box input:focus { width: 190px; }
    .nav-right .btn { padding: 8px 16px; font-size: 13px; }
    /* Netflix pattern: the avatar alone identifies the user; the role chip is
       decorative. Keeps the admin navbar (2 extra links) on one line. */
    .nav-right .username { display: none; }
    .nav-right .role-badge { display: none; }
    /* "Manage Movies" is reachable from Admin Panel; on tight widths keep only
       the primary Admin Panel link so every link stays fully visible. */
    .nav-links a[href*="admin/movies.php"] { display: none; }
}

/* -- Tier 2: dense (<=1100px; covers 175% zoom / narrow half-windows) -- */
@media (min-width: 901px) and (max-width: 1100px) {
    .navbar { padding: 0 2.5%; }
    .nav-left { gap: 12px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 12.5px; }
    .nav-right { gap: 8px; }
    .navbar .logo { font-size: 22px; }
    .search-box input { width: 100px; }
    .search-box input:focus { width: 160px; }
    .nav-right .btn { padding: 7px 12px; font-size: 12px; }
}

/* -- Tier 3: last desktop step before the mobile layer takes over (900) -- */
@media (min-width: 901px) and (max-width: 1000px) {
    .navbar { padding: 0 2%; }
    .nav-left { gap: 8px; }
    .nav-links { gap: 5px; }
    .nav-links a { font-size: 11px; }
    .nav-links button { font-size: 10.5px; padding: 4px 6px; }
    .nav-right { gap: 6px; }
    .navbar .logo { font-size: 20px; }
    /* Netflix-style collapsed search: just the magnifier pill; expands on focus.
       The ::before magnifier glyph already exists in the base theme. */
    .search-box input {
        width: 30px;
        padding: 8px 8px 8px 30px;
        color: transparent;
        transition: width 0.25s ease, color 0.25s ease, border-color 0.3s;
    }
    .search-box input::placeholder { color: transparent; }
    .search-box input:focus {
        width: 170px;
        color: #fff;
        border-color: #fff;
    }
}
