/* ========== CSS वेरिएबल्स और थीम ========== */
:root {
    --bg: #0a0a0f;
    --bg-secondary: #111118;
    --card: #16161f;
    --card-hover: #1e1e2a;
    --border: #2a2a3a;
    --text: #e8e8ef;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --accent-secondary: #7c4dff;
    --accent-gradient: linear-gradient(135deg, #00e5ff, #7c4dff);
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --like-color: #00e5ff;
    --dislike-color: #ff4757;
    --subscribe-bg: #00e5ff;
    --subscribe-text: #0a0a0f;
    --sidebar-width: 240px;
    --topbar-height: 56px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #f0f0f5;
    --bg-secondary: #e8e8ef;
    --card: #ffffff;
    --card-hover: #f5f5fa;
    --border: #d8d8e5;
    --text: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --accent: #00b8d4;
    --accent-glow: rgba(0, 184, 212, 0.15);
    --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ========== रीसेट और बेस ========== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: 0.95rem;
}

img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========== स्प्लैश स्क्रीन ========== */
#splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.hide {
    opacity: 0; visibility: hidden;
}

.splash-content { text-align: center; }

.nova-logo {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 40px;
}

.nova-star {
    width: 50px; height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    position: relative;
    animation: novaPulse 2s ease-in-out infinite;
}

.nova-star::before, .nova-star::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.nova-star::before {
    inset: -8px;
    opacity: 0.3;
    animation: novaRing 2s ease-in-out infinite;
}

.nova-star::after {
    inset: -16px;
    opacity: 0.1;
    animation: novaRing 2s ease-in-out infinite 0.3s;
}

.nova-star.small { width: 36px; height: 36px; }
.nova-star.tiny { width: 24px; height: 24px; }

.nova-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.splash-loader {
    width: 200px; height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.loader-bar {
    width: 0%; height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: splashLoad 2.5s ease-in-out forwards;
}

.splash-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes novaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes novaRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

@keyframes splashLoad {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* ========== ऑथ स्क्रीन ========== */
#auth-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

#auth-container::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -150px; right: -150px;
    pointer-events: none;
}

#auth-container::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,77,255,0.15), transparent 70%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}

.auth-screen {
    display: none;
    width: 100%; max-width: 440px;
    animation: fadeUp 0.4s ease;
}

.auth-screen.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 24px;
}

.auth-logo span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.auth-card > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
}

.input-group textarea { padding-left: 42px; resize: vertical; }

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group.error input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.field-error {
    min-height: 18px;
    margin-top: -8px;
    margin-bottom: 12px;
    color: var(--danger);
    font-size: 0.82rem;
}

.auth-error {
    color: var(--danger);
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.92rem;
    display: none;
}

.auth-card .auth-error {
    display: block;
}

.toggle-pw {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 0.85rem; color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px; height: 16px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active { transform: scale(0.98); }

.divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border);
}

.btn-google, .btn-otp {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: var(--transition);
    margin-bottom: 10px;
    color: var(--text);
}

.btn-google:hover, .btn-otp:hover {
    background: var(--card-hover);
    border-color: var(--text-muted);
}

.btn-google i { color: #ea4335; }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* OTP इनपुट्स */
.otp-inputs {
    display: flex; gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-box {
    width: 48px; height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
}

.otp-box:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.resend-otp {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 16px;
}

#otp-timer { color: var(--accent); }

/* ========== मुख्य ऐप लेआउट ========== */
#app {
    display: flex;
    min-height: 100vh;
}

/* ========== साइडबार ========== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
}

.sidebar-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
}

.sidebar-logo span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
}

.sidebar-close:hover { background: var(--card); }

.sidebar-nav {
    flex: 1;
    padding: 8px;
}

.nav-item {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--card);
    color: var(--text);
    text-decoration: none;
}

.nav-item.active {
    background: var(--card);
    color: var(--accent);
    font-weight: 600;
}

.nav-item i { width: 20px; text-align: center; font-size: 1rem; }

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

.sidebar-footer {
    padding: 16px;
}

.sidebar-links {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.sidebar-links a { color: var(--text-muted); }
.sidebar-links a:hover { color: var(--text-secondary); text-decoration: none; }

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ========== मुख्य रैपर ========== */
#main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== टॉपबार ========== */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky; top: 0;
    z-index: 50;
    gap: 16px;
}

.topbar-left {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}

.menu-btn {
    font-size: 1.2rem;
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-xs);
    display: none;
}

.menu-btn:hover { background: var(--card); }

.topbar-logo {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
}

.topbar-logo span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo image sizing */
.splash-logo {
    height: 84px;
    object-fit: contain;
}
.auth-logo-img {
    height: 44px;
    object-fit: contain;
}

/* Use the small circular spot to show the logo (blue bindi) next to PlayNova */
.nova-star.tiny {
    width: 36px; height: 36px;
    background: none;
    animation: none;
    position: relative;
}
.nova-star.tiny::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('playnova-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

.topbar-center {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
}

.search-box input:focus { outline: none; }

.search-btn {
    padding: 8px 18px;
    background: var(--card);
    border-left: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-btn:hover { background: var(--card-hover); color: var(--text); }

.voice-btn {
    padding: 8px 14px;
    color: var(--accent);
    font-size: 1rem;
    transition: var(--transition);
}

.voice-btn:hover { background: var(--accent-glow); }

.voice-btn.listening {
    animation: voicePulse 1s ease-in-out infinite;
    color: var(--danger);
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* सर्च सुझाव */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    box-shadow: var(--shadow);
    z-index: 60;
    max-height: 360px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.search-suggestion-item:hover { background: var(--card-hover); }

.search-suggestion-item i { color: var(--text-muted); width: 20px; text-align: center; }

.topbar-right {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
}

.topbar-icon {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.topbar-icon:hover { background: var(--card); }

.notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.notif-wrapper { position: relative; }

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -60px;
    width: 380px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 70;
    overflow: hidden;
}

.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.notif-header h3 { font-size: 1rem; }
.notif-header a { font-size: 0.8rem; }

.notif-list { max-height: 400px; overflow-y: auto; }

.notif-item {
    display: flex; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.notif-item:hover { background: var(--card-hover); }

.notif-item.unread { background: rgba(0,229,255,0.05); }

.notif-item img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-item-content { flex: 1; }
.notif-item-content p { font-size: 0.85rem; line-height: 1.4; }
.notif-item-content small { color: var(--text-muted); font-size: 0.75rem; }

/* प्रोफ़ाइल ड्रॉपडाउन */
.profile-wrapper { position: relative; }

.profile-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.profile-btn:hover { border-color: var(--accent); }

.profile-btn img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 70;
    overflow: hidden;
}

.profile-dropdown-header {
    display: flex; gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.profile-dropdown-header img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown-header strong { display: block; font-size: 0.95rem; }
.profile-dropdown-header small { color: var(--text-muted); font-size: 0.8rem; display: block; }
.profile-dropdown-header a { font-size: 0.8rem; display: inline-block; margin-top: 4px; }

.profile-dropdown-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.profile-dropdown-links a:hover {
    background: var(--card-hover);
    text-decoration: none;
}

.profile-dropdown-links a i { width: 20px; text-align: center; color: var(--text-secondary); }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.logout-link { color: var(--danger) !important; }
.logout-link i { color: var(--danger) !important; }

/* ========== कंटेंट एरिया ========== */
#content-area {
    flex: 1;
    padding: 16px 24px 80px;
}

/* ========== होम पेज ========== */
.category-chips {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar { display: none; }

.chip {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chip:hover { background: var(--card-hover); color: var(--text); }

.chip.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

/* वीडियो ग्रिड */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    cursor: pointer;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
    box-shadow: none;
}

.video-card:hover {
    transform: translateY(-2px);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: transparent;
    border-radius: var(--radius) var(--radius) 0 0;
}

.category-chips {
    display: flex; gap: 10px;
    overflow-x: auto;
    padding: 10px 0 18px;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar { display: none; }

.chip {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: transparent;
}

.video-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-live-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.video-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 0 3px 0 0;
}

.video-info {
    display: flex; gap: 12px;
    padding: 14px 14px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 var(--radius) var(--radius);
}

.video-channel-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
}

.video-meta { flex: 1; min-width: 0; }

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.video-channel-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.video-channel-name:hover { color: var(--text); }

.video-stats {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.video-card-menu {
    position: absolute;
    top: 0; right: 0;
    padding: 4px;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-card-menu { opacity: 1; }

/* ========== वीडियो प्लेयर पेज ========== */
.player-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    max-width: 1400px;
}

.player-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.player-container video {
    width: 100%; height: 100%;
    object-fit: contain;
}

.player-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex; flex-direction: column; gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-container:hover .player-controls { opacity: 1; }

.progress-container {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-container:hover { height: 6px; }

.progress-filled {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: -6px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-filled::after { opacity: 1; }

.controls-row {
    display: flex; align-items: center; justify-content: space-between;
}

.controls-left, .controls-right {
    display: flex; align-items: center; gap: 12px;
}

.control-btn {
    color: #fff;
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition);
    opacity: 0.9;
}

.control-btn:hover { opacity: 1; transform: scale(1.1); }

.time-display { color: #fff; font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

.volume-group:hover .volume-slider { width: 80px; }

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* प्लेयर राइट साइड */
.player-sidebar { max-height: calc(100vh - 80px); overflow-y: auto; }

.player-video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.video-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.video-tag:hover {
    background: rgba(255,255,255,0.14);
    color: var(--text);
}

.player-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}

.player-action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.player-action-btn:hover { background: var(--card-hover); }

.player-action-btn.liked { color: var(--accent); border-color: var(--accent); }
.player-action-btn.disliked { color: var(--dislike-color); border-color: var(--dislike-color); }

.player-action-btn.subscribed {
    background: var(--card);
    color: var(--text-secondary);
}

.player-action-btn.subscribe-btn {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.player-channel-info {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.player-channel-info img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.player-channel-text { flex: 1; }
.player-channel-text strong { display: block; font-size: 0.95rem; cursor: pointer; }
.player-channel-text strong:hover { color: var(--accent); }
.player-channel-text span { color: var(--text-muted); font-size: 0.8rem; }

/* विवरण बॉक्स */
.description-box {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.description-box:hover { background: var(--card-hover); }

.description-stats {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.description-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.description-box.expanded .description-text { max-height: 500px; }

/* कमेंट सेक्शन */
.comments-section { margin-top: 20px; }

.comments-header {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 20px;
}

.comments-header h3 { font-size: 1.1rem; }

.comments-sort {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.comment-input-box {
    display: flex; gap: 12px;
    margin-bottom: 24px;
}

.comment-input-box img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-wrapper { flex: 1; }

.comment-input-wrapper input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
}

.comment-input-wrapper input:focus { outline: none; border-color: var(--accent); }

.comment-input-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    margin-top: 8px;
    display: none;
}

.comment-input-wrapper:focus-within ~ .comment-input-actions,
.comment-input-actions.visible { display: flex; }

.btn-sm {
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-sm.primary { background: var(--accent); color: var(--bg); }
.btn-sm.primary:hover { box-shadow: 0 2px 12px var(--accent-glow); }
.btn-sm.secondary { color: var(--text-secondary); }
.btn-sm.secondary:hover { background: var(--card); }

.comment-item {
    display: flex; gap: 12px;
    margin-bottom: 20px;
}

.comment-item img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-author span {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
    font-size: 0.8rem;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-actions-row {
    display: flex; gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-action {
    display: flex; align-items: center; gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.comment-action:hover { color: var(--text); }

/* रिकमेंडेड वीडियो */
.recommended-list { display: flex; flex-direction: column; gap: 8px; }

.recommended-item {
    display: flex; gap: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 4px;
    transition: var(--transition);
}

.recommended-item:hover { background: var(--card); }

.recommended-thumb {
    width: 168px; height: 94px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--card);
}

.recommended-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.recommended-meta { flex: 1; min-width: 0; }

.recommended-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.recommended-channel {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ========== शॉर्ट्स पेज ========== */
.shorts-container {
    width: 100%;
    height: calc(100vh - 140px);
    overflow: hidden;
    padding: 0;
    position: relative;
}

.shorts-container::-webkit-scrollbar { display: none; }

.shorts-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.shorts-column::-webkit-scrollbar { display: none; }

.short-card {
    width: 100%;
    max-width: 720px;
    height: calc(100vh - 140px);
    min-height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #000;
    flex-shrink: 0;
    cursor: pointer;
    scroll-snap-align: start;
    margin: 0 auto;
}

.short-card img,
.short-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.short-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.8));
}

.short-info { flex: 1; }

.short-channel {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}

.short-channel img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.short-channel span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.short-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.short-views {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.short-actions {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* unmute overlay for shorts */
.short-unmute-overlay {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.35));
    z-index: 20;
}
.short-unmute-btn {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    cursor: pointer;
}

.short-action-btn {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    color: #fff;
    font-size: 0.7rem;
    transition: var(--transition);
}

.short-action-btn i { font-size: 1.4rem; }
.short-action-btn:hover { transform: scale(1.1); }
.short-action-btn.liked i { color: var(--accent); }

.short-action-btn img {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ========== चैनल पेज ========== */
.channel-banner {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    margin-bottom: -50px;
    position: relative;
}

.channel-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.channel-header {
    display: flex; align-items: flex-end; gap: 20px;
    padding: 0 24px 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.channel-avatar-large {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    object-fit: cover;
    flex-shrink: 0;
}

.channel-header-info { flex: 1; min-width: 200px; }

.channel-header-info h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

.channel-meta-row {
    display: flex; align-items: center; gap: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.channel-tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    margin: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.channel-tabs::-webkit-scrollbar { display: none; }

.channel-tab {
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.channel-tab:hover { color: var(--text); }

.channel-tab.active {
    color: var(--text);
    border-color: var(--accent);
}

.channel-content { padding: 20px 24px; }

/* ========== सेटिंग्स पेज ========== */
.settings-page {
    max-width: 800px;
}

.settings-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.settings-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.settings-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.settings-section-header:hover { background: var(--card-hover); }

.settings-section-header h3 {
    display: flex; align-items: center; gap: 12px;
    font-size: 1rem;
}

.settings-section-header h3 i {
    color: var(--accent);
    width: 24px; text-align: center;
}

.settings-section-header .chevron {
    transition: transform var(--transition);
    color: var(--text-muted);
}

.settings-section.open .chevron { transform: rotate(180deg); }

.settings-section-body {
    display: none;
    padding: 0 20px 16px;
}

.settings-section.open .settings-section-body { display: block; }

.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-label { font-size: 0.9rem; }
.setting-label small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }

.setting-control { flex-shrink: 0; }

/* टॉगल स्विच */
.toggle-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}

.toggle-label input { display: none; }

.toggle-switch {
    width: 44px; height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--accent);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

/* सेटिंग्स सेलेक्ट */
.setting-select {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 0.85rem;
}

.setting-select:focus { outline: none; border-color: var(--accent); }

/* ========== क्रिएटर स्टूडियो ========== */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.studio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.studio-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.studio-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.studio-card-icon.views { background: rgba(0,229,255,0.15); color: var(--accent); }
.studio-card-icon.watchtime { background: rgba(124,77,255,0.15); color: var(--accent-secondary); }
.studio-card-icon.subs { background: rgba(46,213,115,0.15); color: var(--success); }
.studio-card-icon.revenue { background: rgba(255,165,2,0.15); color: var(--warning); }

.studio-card h4 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.studio-card p { color: var(--text-muted); font-size: 0.8rem; }

/* ========== सर्च रिजल्ट ========== */
.search-result-item {
    display: flex; gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.search-result-item:hover { background: var(--card); padding-left: 8px; padding-right: 8px; }

.search-result-thumb {
    width: 360px; height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--card);
}

.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-result-meta { flex: 1; padding: 4px 0; }

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.search-result-stats {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.search-result-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== अपलोड मोडल ========== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%; max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.1rem; }

.modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover { background: var(--card-hover); color: var(--text); }

.upload-zone {
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    margin: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.upload-zone i { font-size: 3rem; color: var(--accent); margin-bottom: 16px; }
.upload-zone p { margin-bottom: 8px; color: var(--text-secondary); }
.upload-zone small { color: var(--text-muted); }

.upload-preview { margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.upload-preview video { width: 100%; max-height: 300px; }

.upload-row { display: flex; gap: 16px; margin-bottom: 16px; }

.upload-thumb-upload { flex-shrink: 0; }
.upload-thumb-upload label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-secondary); }

.thumb-upload-box {
    width: 160px; height: 90px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.thumb-upload-box:hover { border-color: var(--accent); }
.thumb-upload-box img { width: 100%; height: 100%; object-fit: cover; }
.thumb-upload-box i { font-size: 1.5rem; color: var(--text-muted); }

.upload-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.upload-fields .input-group input { padding-left: 14px; }

.upload-meta { padding: 0 20px 20px; }
.upload-meta .input-group { margin-bottom: 12px; }

.upload-selects {
    display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}

.upload-selects select {
    flex: 1; min-width: 140px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.upload-selects select:focus { outline: none; border-color: var(--accent); }

.upload-toggles {
    display: flex; gap: 24px; margin-bottom: 16px;
}

.upload-progress { margin: 0 20px 16px; }

.progress-bar {
    width: 100%; height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

.upload-progress p { font-size: 0.85rem; color: var(--text-secondary); text-align: center; }

.modal-actions {
    display: flex; justify-content: flex-end; gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover { background: var(--card-hover); }

/* ========== शेयर मोडल ========== */
.share-modal-card { max-width: 480px; }

.share-link-box {
    display: flex; gap: 8px;
    padding: 16px 20px;
}

.share-link-box input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
}

.share-link-box input:focus { outline: none; }

.share-link-box button {
    padding: 10px 18px;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.share-social {
    display: flex; justify-content: center; gap: 16px;
    padding: 16px 20px;
}

.share-social-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
}

.share-social-btn:hover { transform: scale(1.1); }
.share-social-btn.whatsapp { background: #25d366; }
.share-social-btn.facebook { background: #1877f2; }
.share-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-social-btn.telegram { background: #0088cc; }
.share-social-btn.twitter { background: #1a1a2e; }

.share-qr {
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.share-qr canvas { margin: 0 auto 8px; border-radius: var(--radius-sm); }
.share-qr p { font-size: 0.8rem; color: var(--text-muted); }

/* ========== मिनी प्लेयर ========== */
.mini-player {
    position: fixed;
    bottom: 0; left: var(--sidebar-width); right: 0;
    height: 64px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 80;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mini-thumbnail {
    width: 96px; height: 54px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    background: #000;
}

.mini-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.mini-play-btn {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition);
}

.mini-thumbnail:hover .mini-play-btn { opacity: 1; }

.mini-info { flex: 1; min-width: 0; }
.mini-info p { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info small { color: var(--text-muted); font-size: 0.75rem; }

.mini-controls { display: flex; gap: 8px; }
.mini-controls button { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); transition: var(--transition); }
.mini-controls button:hover { background: var(--card); }

/* ========== टोस्ट ========== */
.toast-container {
    position: fixed;
    bottom: 80px; right: 24px;
    z-index: 300;
    display: flex; flex-direction: column; gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== सेक्शन हेडर ========== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}

.section-header a {
    font-size: 0.85rem;
    color: var(--accent);
}

/* ========== लिस्ट पेज (हिस्ट्री, प्लेलिस्ट आदि) ========== */
.list-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.list-page-header h1 { font-size: 1.5rem; font-weight: 700; }

.btn-outline {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover { background: var(--card); border-color: var(--text-muted); }

.list-video-item {
    display: flex; gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.list-video-item .video-thumbnail {
    width: 180px; height: 100px;
    flex-shrink: 0;
}

/* ========== एम्प्टी स्टेट ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ========== हेल्प पेज ========== */
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}

.faq-question:hover { background: var(--card-hover); }

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 16px 14px;
}

/* ========== एडमिन पैनल ========== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.admin-table th {
    background: var(--card);
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table tr:hover td { background: var(--card-hover); }

.admin-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge.active { background: rgba(46,213,115,0.15); color: var(--success); }
.admin-badge.banned { background: rgba(255,71,87,0.15); color: var(--danger); }
.admin-badge.pending { background: rgba(255,165,2,0.15); color: var(--warning); }

/* ========== मोबाइल बॉटम नेविगेशन ========== */
.mobile-bottom-nav {
    display: none !important;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 68px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
    z-index: 90;
}

.bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    border-radius: 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.65rem;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--accent);
}

.bottom-nav-item.upload-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #0a0a0f;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
    margin-top: -24px;
}

.bottom-nav-item.upload-btn span { display: none; }

body.device-mobile #sidebar {
    transform: translateX(-100%);
}

body.device-mobile #sidebar.open {
    transform: translateX(0);
}

body.device-mobile #main-wrapper {
    margin-left: 0;
    padding-bottom: 110px;
}

body.device-mobile .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
}

body.device-mobile .topbar-center {
    display: none;
}

body.device-mobile .topbar-right {
    gap: 10px;
}

body.device-mobile .player-sidebar,
body.device-mobile .topbar .profile-wrapper,
body.device-mobile .topbar .notif-wrapper {
    display: none;
}

body.device-mobile #mobile-bottom-nav {
    display: flex !important;
}

body.device-desktop #mobile-bottom-nav {
    display: none !important;
}

body.device-desktop #main-wrapper {
    padding-bottom: 0;
}

/* ========== रेस्पॉन्सिव ========== */
@media (max-width: 1024px) {
    .player-page { grid-template-columns: 1fr; }
    .player-sidebar { max-height: none; }
    .recommended-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
    .recommended-item { flex-direction: column; }
    .recommended-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
    .menu-btn { display: inline-flex; }
    #sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 100;
    }
    #sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay {
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
    body.device-mobile #sidebar { transform: translateX(-100%); }
    body.device-mobile #sidebar.open { transform: translateX(0); }
    body.device-mobile #main-wrapper {
        margin-left: 0;
        padding-bottom: 120px;
    }
    body.device-mobile .topbar {
        position: sticky;
        top: 0;
        z-index: 90;
    }
    body.device-mobile .topbar-center {
        display: none;
    }
    body.device-mobile .topbar .profile-wrapper,
    body.device-mobile .topbar .notif-wrapper {
        display: none;
    }
    body.device-mobile #mobile-bottom-nav {
        display: flex !important;
    }
    body.device-desktop #mobile-bottom-nav {
        display: none !important;
    }
    #content-area {
        padding: 16px 16px 140px;
    }
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.video-card .video-info {
    background: rgba(0,0,0,0.06);
}

.player-page.short-player {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
}

.player-page.short-player {
        display: block;
        max-width: 100% !important;
        padding-bottom: 0;
    }

    .player-page.short-player .player-left {
        width: 100%;
    }

    .player-page.short-player .player-container {
        width: 100%;
        height: calc(100vh - 80px);
        border-radius: 0;
        max-width: 100%;
        max-height: calc(100vh - 80px);
    }

    .player-page.short-player .player-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.player-page.short-player .player-sidebar,
.player-page.short-player .description-box,
.player-page.short-player .comments-section,
.player-page.short-player .player-actions,
.player-page.short-player .player-channel-info,
.player-page.short-player .player-video-tags {
    display: none !important;
}

.player-page.short-player .controls-row {
    padding-bottom: 8px;
}
    .upload-thumb-upload { align-self: flex-start; }
    .nova-text { font-size: 1.8rem; }
    .studio-grid { grid-template-columns: repeat(2, 1fr); }
    .list-video-item { flex-direction: column; }
    .list-video-item .video-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }
    #content-area { padding-bottom: 120px; }
    #mobile-bottom-nav { display: flex; }
}

@media (max-width: 480px) {
    .nova-text { font-size: 1.4rem; }
    .auth-card { padding: 24px 16px; }
    .studio-grid { grid-template-columns: 1fr; }
    .upload-selects { flex-direction: column; }
    .upload-toggles { flex-direction: column; gap: 12px; }
    .topbar { padding: 0 12px; }
    .topbar-left { gap: 8px; }
    .topbar-right { gap: 6px; }
    .video-card { border-radius: 20px; }
    .video-meta { padding-right: 10px; }
    .video-title { font-size: 1rem; }
    .category-chips { padding: 12px 0 18px; }
    .chip { font-size: 0.78rem; padding: 10px 14px; }
    .video-grid { gap: 14px; }
    .topbar-center { display: none; }
    .topbar { position: sticky; top: 0; z-index: 50; }
    .search-box { width: 100%; }
}
    .nova-text { font-size: 1.4rem; }
    .auth-card { padding: 24px 16px; }
    .studio-grid { grid-template-columns: 1fr; }
    .upload-selects { flex-direction: column; }
    .upload-toggles { flex-direction: column; gap: 12px; }
}

/* ========== एनिमेशन यूटिलिटीज ========== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* बैकग्राउंड ग्लो इफ़ेक्ट */
.bg-glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 { background: var(--accent); top: -200px; right: -200px; }
.bg-glow-2 { background: var(--accent-secondary); bottom: -200px; left: -200px; }

/* चैनल अबाउट */
.about-section { max-width: 600px; }
.about-section p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.about-stats { display: flex; gap: 32px; margin-bottom: 16px; }
.about-stat-item h4 { font-size: 1.2rem; font-weight: 700; }
.about-stat-item small { color: var(--text-muted); font-size: 0.8rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* मोनेटाइज़ेशन */
.monetization-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.monet-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.monet-card h4 { font-size: 1.4rem; font-weight: 700; color: var(--success); }
.monet-card p { font-size: 0.8rem; color: var(--text-muted); }
