/* CSS Variables */
:root {
    --bg-color: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #e10092;
    --accent-dark: #c1007d;
    --crown-color: #ffc107;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on mobile */
}

.app-container {
    max-width: 450px; /* Simulating mobile width */
    margin: 0 auto;
    background-color: #0c0c0c;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* Space for bottom nav */
}

/* Page Hiding/Showing Logic */
.page {
    display: none;
    padding: 15px;
    animation: fadeIn 0.3s ease-in-out;
}
.page.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 450px;
    margin: 0 auto;
    background-color: #101010;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #222;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--accent-color);
}

/* ==================== HOME PAGE STYLES ==================== */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.logo {
    height: 30px;
}
.renew-plan-btn {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.renew-plan-btn:hover {
    background-color: var(--accent-dark);
}

.hero-banner {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}
.hero-banner img {
    width: 100%;
    display: block;
}
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
}
.banner-overlay h1 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.watch-now-btn {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.dot {
    width: 8px;
    height: 8px;
    background-color: #555;
    border-radius: 50%;
}
.dot.active {
    background-color: var(--text-primary);
}

.content-section {
    margin-bottom: 25px;
}
.content-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 12px;
}
/* Hide scrollbar */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.card-vertical {
    flex: 0 0 130px; /* Don't grow, don't shrink, base width 130px */
    width: 130px;
    position: relative;
}
.card-vertical img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}
.play-icon-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.2s;
}
.card-vertical:hover .play-icon-overlay {
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-top: -12px;
    position: relative;
    z-index: 2;
}
.progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.episode-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}
.card-vertical h3 {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.original-tag {
    font-size: 11px;
    color: var(--crown-color);
    font-weight: 500;
}
.original-tag i {
    margin-right: 3px;
}

/* Top 10 Styles */
.top-10-scroll {
    align-items: flex-end;
}
.top-10-item {
    display: flex;
    align-items: center;
}
.top-10-number {
    font-size: 100px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-right: -20px;
    z-index: 1;
}
.top-10-item img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #555;
}

/* Binge Worthy Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-header a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}
.card-horizontal img {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
}

/* ==================== GENERIC PAGE HEADER ==================== */
.page-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}
.placeholder-content {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
}

/* ==================== PREMIUM PAGE ==================== */
.premium-content .video-promo {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}
.premium-content .video-promo img {
    width: 100%;
    display: block;
}
.premium-content .promo-text {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
}
.users-bought {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.plan-option {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.plan-option.selected {
    border-color: var(--accent-color);
}
.plan-details {
    flex-grow: 1;
}
.plan-title { font-weight: 600; }
.plan-price { font-size: 20px; font-weight: 700; }
.old-price { font-size: 14px; text-decoration: line-through; color: var(--text-secondary); }
.discount-tag { background-color: #333; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.plan-duration { color: var(--text-secondary); }
.radio-button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
}
.plan-option.selected .radio-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}
.payment-section {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #111;
    border-radius: 12px;
    margin-top: 30px;
}
.pay-via { display: flex; align-items: center; flex-grow: 1; }
.pay-via img { height: 30px; margin-right: 10px; }
.pay-via span { font-size: 12px; line-height: 1.2; }
.pay-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
}

/* ==================== MY LIST / HISTORY PAGE ==================== */
.tab-header {
    display: flex;
    gap: 20px;
}
.tab-header .tab {
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
}
.tab-header .tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.list-item img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}
.list-item-info {
    flex-grow: 1;
}
.list-item-info h3 {
    font-size: 16px;
    font-weight: 500;
}
.list-item-icon {
    font-size: 20px;
    color: var(--crown-color);
}
#history-content .list-item-icon {
    color: var(--text-secondary);
}

/* ==================== PROFILE PAGE ==================== */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-id, .language-selector {
    background-color: #222;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}
.plan-card {
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.plan-info h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}
.plan-info p {
    font-size: 12px;
    color: var(--text-secondary);
}
.renew-now-btn {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
}
.premium-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
}
.benefit-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.benefit-item span {
    font-size: 14px;
}




/* CSS Variables */
:root {
    --bg-color: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #e10092;
    --accent-dark: #c1007d;
    --crown-color: #ffc107;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on mobile */
    overflow-x: hidden;
}

.app-container {
    max-width: 450px; /* Simulating mobile width */
    margin: 0 auto;
    background-color: #0c0c0c;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* Space for bottom nav */
}

/* Page Hiding/Showing Logic */
.page { display: none; padding: 15px; animation: fadeIn 0.3s ease-in-out; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; max-width: 450px; margin: 0 auto;
    background-color: #101010; display: flex; justify-content: space-around;
    padding: 8px 0; border-top: 1px solid #222; z-index: 1000;
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-secondary); font-size: 12px; cursor: pointer; transition: color 0.2s; }
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item.active { color: var(--accent-color); }

/* ==================== HOME PAGE STYLES ==================== */
.home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.logo { height: 30px; }
.renew-plan-btn { background-color: var(--accent-color); color: var(--text-primary); border: none; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.renew-plan-btn:hover { background-color: var(--accent-dark); }

.hero-banner { position: relative; width: 100%; height: 280px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: #222;}
/* ???999?? Auto Slider additions */
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); text-align: center; }
.banner-overlay h1 { font-size: 24px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.watch-now-btn { background-color: var(--accent-color); color: var(--text-primary); border: none; padding: 10px 25px; border-radius: 25px; font-size: 14px; font-weight: 600; cursor: pointer; z-index: 10; position: relative;}

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; background-color: #555; border-radius: 50%; transition: 0.3s; }
.dot.active { background-color: var(--text-primary); width: 20px; border-radius: 4px; }

.content-section { margin-bottom: 25px; }
.content-section h2 { font-size: 18px; margin-bottom: 15px; }

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

.card-vertical { flex: 0 0 130px; width: 130px; position: relative; cursor: pointer; }
.card-vertical img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.play-icon-overlay { position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.9); font-size: 35px; opacity: 0; transition: opacity 0.2s; pointer-events: none;}
.card-vertical:hover .play-icon-overlay { opacity: 1; }

.progress-bar { width: 100%; height: 4px; background-color: #333; border-radius: 2px; overflow: hidden; margin-top: -12px; position: relative; z-index: 2; }
.progress { height: 100%; background-color: var(--accent-color); border-radius: 2px; }
.episode-info { font-size: 12px; color: var(--text-secondary); margin-top: 8px; }
.card-vertical h3 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.original-tag { font-size: 11px; color: var(--crown-color); font-weight: 500; }

.top-10-scroll { align-items: flex-end; }
.top-10-item { display: flex; align-items: center; cursor: pointer;}
.top-10-number { font-size: 90px; font-weight: 700; color: #333; line-height: 1; margin-right: -15px; z-index: 1; }
.top-10-item img { width: 110px; height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid #444; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-header a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.card-horizontal img { width: 200px; height: 112px; object-fit: cover; border-radius: 8px; }

/* ==================== GENERIC PAGE HEADER ==================== */
.page-header { padding-bottom: 15px; border-bottom: 1px solid #222; margin-bottom: 20px; }
.placeholder-content { text-align: center; padding: 50px 0; color: var(--text-secondary); }

/* ==================== PREMIUM PAGE ==================== */
.premium-content .video-promo { width: 100%; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 10px; }
.premium-content .video-promo img { width: 100%; display: block; }
.premium-content .promo-text { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background-color: rgba(0,0,0,0.7); padding: 5px 15px; border-radius: 15px; font-size: 14px; }
.users-bought { text-align: center; font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.plan-option { display: flex; align-items: center; background-color: #1a1a1a; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.plan-option.selected { border-color: var(--accent-color); }
.plan-details { flex-grow: 1; }
.plan-price { font-size: 20px; font-weight: 700; }
.old-price { font-size: 14px; text-decoration: line-through; color: var(--text-secondary); }
.discount-tag { background-color: #333; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.radio-button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; position: relative; }
.plan-option.selected .radio-button::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background-color: var(--accent-color); border-radius: 50%; }
.payment-section { display: flex; align-items: center; padding: 10px; background-color: #111; border-radius: 12px; margin-top: 30px; }
.pay-btn { background-color: var(--accent-color); color: #fff; border: none; padding: 12px 30px; border-radius: 25px; font-size: 16px; font-weight: 600; width: 100%;}

/* ==================== MY LIST / HISTORY PAGE ==================== */
.tab-header { display: flex; gap: 20px; }
.tab-header .tab { color: var(--text-secondary); cursor: pointer; padding-bottom: 10px; border-bottom: 2px solid transparent; }
.tab-header .tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.list-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; background: #1a1a1a; padding: 10px; border-radius: 8px; cursor: pointer;}
.list-item img { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; }
.list-item-info { flex-grow: 1; }
.list-item-info h3 { font-size: 15px; font-weight: 500; margin-bottom: 5px;}
.list-item-icon { font-size: 20px; color: var(--accent-color); padding: 5px;}

/* ==================== PROFILE PAGE ==================== */
.profile-header { display: flex; justify-content: space-between; align-items: center; }
.user-id, .language-selector { background-color: #222; padding: 8px 12px; border-radius: 20px; font-size: 14px; }
.plan-card { background: linear-gradient(to right, #2a2a2a, #1a1a1a); padding: 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.plan-info h3 { color: var(--accent-color); margin-bottom: 5px; }
.renew-now-btn { background-color: var(--accent-color); color: var(--text-primary); border: none; padding: 10px 18px; border-radius: 20px; font-weight: 600; }



/* ???999?? NEW FEATURE: FULLSCREEN VIDEO PLAYER STYLES */
.fullscreen-player {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000; z-index: 9999; display: flex; flex-direction: column;
}
.fullscreen-player.hidden { display: none; }
.fullscreen-player video {
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
}

/* Player Header */
.player-header {
    position: absolute; top: 0; left: 0; width: 100%; padding: 40px 20px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex; align-items: center; z-index: 10; gap: 15px; color: #fff;
}
.player-back-btn { font-size: 24px; cursor: pointer; text-shadow: 1px 1px 2px #000;}
.player-title-box { flex-grow: 1; display: flex; align-items: center; gap: 8px;}
.player-title-box h3 { font-size: 16px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px #000;}
.ep-tracker { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 12px; font-size: 11px; white-space: nowrap; }

/* Quality Dropdown */
.quality-dropdown-container { position: relative; cursor: pointer; text-shadow: 1px 1px 2px #000;}
.quality-dropdown-container i { font-size: 20px; }
.quality-menu { position: absolute; right: 0; top: 35px; background: rgba(0,0,0,0.9); border-radius: 8px; overflow: hidden; width: 90px; border: 1px solid #333;}
.quality-menu.hidden { display: none; }
.q-opt { padding: 10px; text-align: center; font-size: 13px; border-bottom: 1px solid #222; transition: background 0.2s;}
.q-opt:hover { background: #222; }
.q-opt.active { color: var(--accent-color); font-weight: 600; }

/* Center Controls */
.player-center-controls {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 40px; z-index: 10;
}
.ctrl-btn {
    background: rgba(0,0,0,0.4); border: none; color: #fff; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; position: relative;
}
.ctrl-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.8); }
.skip-btn { width: 55px; height: 55px; font-size: 22px; }
.skip-btn span { font-size: 10px; position: absolute; font-weight: bold; margin-top: 4px; }
.play-pause-btn { width: 75px; height: 75px; font-size: 30px; background: rgba(225, 0, 146, 0.6); }

/* Right Actions */
.player-right-actions {
    position: absolute; right: 15px; bottom: 120px; display: flex; flex-direction: column; gap: 28px; z-index: 10;
}
.action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: #fff; text-shadow: 1px 1px 4px #000; transition: color 0.2s; }
.action-item i { font-size: 30px; }
.action-item span { font-size: 12px; font-weight: 600; }
.action-item.active i { color: var(--accent-color); }

/* Bottom Progress */
.player-bottom-area {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 10;
}
.subtitle-text { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 25px; text-shadow: 1px 1px 4px #000; }
.progress-container { width: 100%; height: 6px; background: rgba(255,255,255,0.3); border-radius: 3px; position: relative; cursor: pointer; }
.progress-bar-filled { height: 100%; width: 0%; background: var(--accent-color); border-radius: 3px; pointer-events: none; }
.progress-thumb { position: absolute; top: 50%; left: 0%; transform: translateY(-50%); width: 14px; height: 14px; background: #fff; border-radius: 50%; margin-left: -7px; pointer-events: none; box-shadow: 0 0 5px rgba(0,0,0,0.5);}

/* ???999?? NEW FEATURE: EPISODE BOTTOM SHEET STYLES */
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 10000; transition: opacity 0.3s; }
.modal-backdrop.hidden { display: none; opacity: 0; }

.bottom-sheet {
    position: fixed; bottom: -100%; left: 0; width: 100%; max-height: 80vh; overflow-y: auto;
    background: #0c0c0c; border-top-left-radius: 20px; border-top-right-radius: 20px;
    padding: 25px 20px; z-index: 10001; transition: bottom 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.bottom-sheet.show { bottom: 0; }

.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.sheet-header h2 { font-size: 20px; font-weight: 600; }
.sheet-header i { font-size: 24px; cursor: pointer; padding: 5px; }
.sheet-category { font-size: 11px; background: #222; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 25px; color: #ccc;}

.episode-ranges { display: flex; gap: 20px; border-bottom: 1px solid #222; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.range-tab { color: var(--text-secondary); font-size: 15px; font-weight: 600; padding-bottom: 15px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent;}
.range-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }

.episode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ep-btn {
    background: #1a1a1a; color: #fff; border: 1px solid transparent; padding: 15px 0;
    border-radius: 6px; font-size: 14px; font-family: inherit; cursor: pointer; transition: 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.ep-btn:hover { background: #2a2a2a; }
.ep-btn.active { background: rgba(225, 0, 146, 0.15); border-color: var(--accent-color); color: var(--accent-color); }
.ep-btn i { font-size: 16px; }




/* 🔥 Hide Controls */
.controls-hidden .player-header,
.controls-hidden .player-center-controls,
.controls-hidden .player-right-actions,
.controls-hidden .player-bottom-area {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-header,
.player-center-controls,
.player-right-actions,
.player-bottom-area {
    transition: opacity 0.3s ease;
}


