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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --accent: #e50914;
    --accent-gold: #d4a843;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-fire: linear-gradient(135deg, #e50914, #ff6b35, #d4a843);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#app {
    max-width: 100%;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 70%);
    z-index: 1;
}

.hero-logo {
    width: 200px;
    max-width: 60vw;
    margin-bottom: 20px;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.5));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(229, 9, 20, 0.7)); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
}

.tagline {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
}

.premiere-badge {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 168, 67, 0.3); }
    50% { box-shadow: 0 0 25px rgba(212, 168, 67, 0.6); }
}

.countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #333;
    min-width: 60px;
    text-align: center;
}

.time-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.cta-btn.secondary {
    background: var(--bg-card);
    border: 1px solid #333;
    box-shadow: none;
}

.cta-btn.secondary:hover {
    border-color: var(--accent);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(229, 9, 20, 0.6);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.hosts-section {
    padding: 50px 20px;
    background: var(--bg-secondary);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 24px auto 0;
}

.host-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease;
}

.host-card:hover {
    transform: translateY(-4px);
}

.host-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 12px;
    color: white;
}

.host-avatar.farah {
    background: linear-gradient(135deg, #e50914, #ff6b35);
}

.host-avatar.riteish {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.host-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.host-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.host-role {
    font-size: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-section {
    padding: 50px 20px;
    background: var(--bg-primary);
}

.schedule-card {
    max-width: 350px;
    margin: 24px auto 0;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #2a2a2a;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.schedule-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.schedule-value {
    font-weight: 700;
    font-size: 14px;
}

.schedule-value.highlight {
    color: var(--accent);
}

.schedule-divider {
    height: 1px;
    background: #2a2a2a;
}

.contestants-section {
    padding: 50px 20px;
    background: var(--bg-secondary);
}

.contestants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.contestant-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
}

.contestant-card.locked {
    background: var(--bg-card);
    border: 1px dashed #333;
    color: var(--text-secondary);
}

.contestant-card.revealed {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    flex-direction: column;
    gap: 4px;
}

.contestant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
}

.contestant-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.contestant-tag {
    font-size: 9px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lock-icon {
    font-size: 1.5rem;
    opacity: 0.4;
}

.footer {
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid #1a1a1a;
}

.footer-logo {
    width: 60px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.footer p {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.footer span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== FORMAT SECTION ===== */
.format-section {
    padding: 50px 20px;
    background: var(--bg-primary);
}

.format-cards {
    display: grid;
    gap: 12px;
    max-width: 400px;
    margin: 24px auto 0;
}

.format-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.format-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.format-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.format-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (min-width: 480px) {
    .tagline {
        font-size: 3rem;
    }

    .contestants-grid {
        gap: 12px;
    }
}

/* ===== TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid #1a1a1a;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
}

/* ===== EPISODES LIST ===== */
.episodes-list {
    padding: 8px 16px 40px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid #2a2a2a;
    transition: transform 0.2s, border-color 0.2s;
}

.episode-item:active {
    transform: scale(0.98);
}

.ep-number {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.ep-info {
    flex: 1;
    min-width: 0;
}

.ep-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.ep-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.ep-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.ep-status.available {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.ep-status.pending {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

/* ===== EPISODE DETAIL ===== */
.episode-detail {
    padding: 20px 16px 40px;
}

.ep-detail-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #2a2a2a;
    margin-bottom: 24px;
}

.ep-detail-number {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ep-detail-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ep-detail-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ep-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ep-detail-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green { background: #22c55e; }
.status-dot.yellow { background: #facc15; }

.download-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.download-btn:active { transform: scale(0.97); }
.download-btn.disabled { background: #333; box-shadow: none; color: #666; cursor: not-allowed; }

.ep-bottom-spacer { height: 20px; }

/* ===== LINK MODAL ===== */
.link-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.link-container {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
}

.link-header {
    padding: 16px;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.link-body {
    padding: 24px 16px;
    text-align: center;
}

.link-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s;
}

.link-btn:active { transform: scale(0.97); }

.link-copy {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: transparent;
    border: 1px solid #333;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.link-copy:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.link-close {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    border-top: 1px solid #2a2a2a;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== UTILITY ===== */
.loading, .empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
    padding: 20px 16px 40px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #2a2a2a;
    max-width: 400px;
    margin: 40px auto;
}

.admin-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.admin-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.admin-input, .admin-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
}

.admin-input:focus, .admin-select:focus {
    border-color: var(--accent);
}

.admin-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-btn:active { transform: scale(0.98); }
.admin-btn:disabled { background: #333; color: #666; cursor: not-allowed; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.admin-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.upload-zone {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.upload-zone span {
    color: var(--text-secondary);
    font-size: 12px;
}

.upload-btn {
    margin-top: 8px;
}

.upload-progress {
    margin-top: 12px;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

#uploadStatus {
    font-size: 13px;
    color: var(--text-secondary);
}

.ep-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid #2a2a2a;
}

.ep-row-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ep-row-info {
    flex: 1;
    min-width: 0;
}

.ep-row-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.ep-row-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

.ep-row-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.ep-row-status.uploaded {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.ep-row-status.pending {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.bot-commands {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cmd-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.cmd-card code {
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.cmd-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #2a2a2a;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

/* ===== EDIT MODAL ===== */
.edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.edit-modal {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #333;
    overflow: hidden;
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.edit-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.edit-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.edit-body {
    padding: 16px;
}

.edit-body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    margin-top: 12px;
}

.edit-body label:first-child {
    margin-top: 0;
}

.edit-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 16px 0;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
}

/* ===== EP ROW ACTIONS ===== */
.ep-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.edit-btn {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.edit-btn:hover {
    border-color: var(--accent);
}

/* ===== LINKS LIST ===== */
.link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid #2a2a2a;
}

.link-row-info {
    flex: 1;
    min-width: 0;
}

.link-row-info strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.link-url {
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
}

.copy-link-btn {
    padding: 6px 12px;
    background: #0088cc;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== UPLOAD INSTRUCTIONS ===== */
.upload-instructions {
    display: grid;
    gap: 8px;
}

.inst-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    font-size: 13px;
}

.inst-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.inst-step code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== QUALITY BADGES ===== */
.quality-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.quality-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.quality-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.quality-badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

.quality-badge.q480 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.quality-badge.q720 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.quality-badge.q1080 { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.quality-input {
    flex: 1;
    margin-bottom: 0 !important;
}

.ep-qualities {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.q-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.q-tag.q480 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.q-tag.q720 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.q-tag.q1080 { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.q-tag.qnone { background: rgba(100, 100, 100, 0.15); color: #888; }

/* ===== QUALITY PICKER (Download Page) ===== */
.quality-picker {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.quality-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.quality-option:active {
    transform: scale(0.98);
}

.quality-option .q-badge {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    min-width: 60px;
    text-align: center;
}

.quality-option .q-badge.q480 { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.quality-option .q-badge.q720 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.quality-option .q-badge.q1080 { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.quality-option .q-info {
    flex: 1;
}

.quality-option .q-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.quality-option .q-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.quality-option .q-arrow {
    color: var(--text-secondary);
}

.no-quality-msg {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed #333;
}

/* ===== VIDEO PLAYER ===== */
.video-player-container {
    width: 100%;
    background: #000;
    min-height: 50vh;
}

.video-player-container video {
    width: 100%;
    max-height: 60vh;
    background: #000;
    display: block;
}

.player-info {
    padding: 20px;
    text-align: center;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid #2a2a2a;
}

.player-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.player-back-btn:hover {
    border-color: var(--accent);
}

.player-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-download-btn:active {
    transform: scale(0.97);
}

.download-btn.secondary {
    background: var(--bg-card);
    border: 1px solid #333;
    box-shadow: none;
}

.episode-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .video-player-container video {
        max-height: 70vh;
    }
}
