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

/* 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: 3120px; /* 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: 50px; }
.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: 250px; 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: fill; 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: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: none; }
.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: pink; border-radius: 50%; transition: 0.3s; }
.dot.active { background-color: var(--accent-color); 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; color: var(--accent-color);}
.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: 80px; font-weight: 700; color: pink; 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); }



/* ==================== NEW PREMIUM PAGE STYLES ==================== */
.premium-header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 10px; font-size: 18px; color: #fff;}
.premium-header-top i { font-size: 20px; cursor: pointer; padding: 5px;}
.faq-text { font-size: 14px; color: #aaa; cursor: pointer; }

.video-promo-container { position: relative; width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 20px; border: 1px solid #333; height: 200px; background: #000;}
.video-promo-container video { width: 100%; height: 100%; object-fit: cover; }
#mute-toggle-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;}
.promo-text { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background-color: #e10032; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; z-index: 2;}

.premium-title { text-align: center; color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.users-bought-info { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 25px; color: #aaa; font-size: 13px; }
.avatar-group { display: flex; }
.avatar-group img { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #000; margin-left: -5px; }
.avatar-group img:first-child { margin-left: 0; }

.plan-option { display: flex; align-items: flex-start; background-color: #1a1a1a; padding: 18px 15px; border-radius: 12px; margin-bottom: 15px; border: 2px solid transparent; cursor: pointer; transition: 0.2s; gap: 15px;}
.plan-option.selected { border-color: #e10032; background: rgba(225, 0, 50, 0.05); }

.plan-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #555; position: relative; margin-top: 5px; flex-shrink: 0;}
.plan-option.selected .plan-radio { border-color: #e10032; }
.plan-option.selected .plan-radio .radio-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background-color: #e10032; border-radius: 50%; }

.plan-details { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.plan-badge { background: #333; color: #ccc; font-size: 10px; padding: 2px 8px; border-radius: 4px; width: fit-content; text-transform: uppercase; letter-spacing: 0.5px;}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-size: 22px; font-weight: 700; color: #fff; }
.old-price { font-size: 14px; text-decoration: line-through; color: #666; }
.discount-tag { color: #00c853; font-size: 12px; font-weight: 600; }
.plan-duration { color: #888; font-size: 13px; margin-top: 5px;}

.premium-terms { list-style-type: disc; padding-left: 20px; color: #666; font-size: 11px; margin-top: 25px; margin-bottom: 80px;}
.premium-terms li { margin-bottom: 8px; line-height: 1.4; }

/* Sticky Payment Footer */
.payment-sticky-footer { position: fixed; bottom: 0; left: 0; right: 0; max-width: 450px; margin: 0 auto; background-color: #0c0c0c; padding: 15px 20px; border-top: 1px solid #222; z-index: 1001; display: flex; justify-content: space-between; align-items: center; display: none;}
#premium-page.active .payment-sticky-footer { display: flex; }

.payment-method-selector { display: flex; align-items: center; gap: 10px; }
.pay-via-text { display: flex; flex-direction: column; }
.pay-label { font-size: 11px; color: #888; margin-bottom: 2px;}
#upi-app-select { background: transparent; border: none; color: #fff; font-size: 15px; font-weight: 600; outline: none; cursor: pointer; font-family: 'Poppins', sans-serif;}
#upi-app-select option { background: #111; color: #fff; }

#trigger-payment-btn { background-color: #e10032; color: #fff; border: none; padding: 12px 30px; border-radius: 25px; font-size: 16px; font-weight: 600; min-width: 150px; cursor: pointer;}

/* ==================== 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: fix;
    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);
}



.faq-container{
    padding:20px 0;
}

.faq-item{
    background:#181818;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #333;
}

.faq-item h3{
    color:#fff;
    font-size:16px;
    margin-bottom:8px;
}

.faq-item p{
    color:#aaa;
    font-size:14px;
    line-height:1.6;
}




/* Add to style.css */
.social-handles a:hover {
    color: var(--accent-color) !important;
}
.legal-link-item:hover {
    background: #2a2a2a !important;
}


/* ==================== PROFILE PAGE ==================== */
/* ==================== NEW PROFILE PAGE STYLES (Matching Image) ==================== */
.profile-header-new { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 25px; }
.user-id-box { display: flex; align-items: center; gap: 8px; background: #1c1c1c; padding: 6px 12px 6px 6px; border-radius: 25px; font-size: 14px; color: #fff; font-weight: 500;}
.avatar-img { font-size: 30px; color: #555; }
.copy-icon { color: #888; cursor: pointer; font-size: 14px; margin-left: 4px; }
.language-selector-new { background: #1c1c1c; padding: 8px 15px; border-radius: 25px; font-size: 13px; font-weight: 500; color: #fff; cursor: pointer;}

.premium-user-card { 
    background: linear-gradient(180deg, #240c11 0%, #110808 100%); 
    padding: 20px; 
    border-radius: 16px; 
    border: 1px solid #3d1b22; 
    margin-bottom: 40px; 
}
.puc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.puc-info h3 { font-size: 17px; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.text-red { color: #e10032; font-size: 16px; }
.puc-subtitle { color: #e10032; font-size: 12px; }
.puc-plan-btn { background: #e10032; color: #fff; border: none; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }

.puc-divider { text-align: center; position: relative; margin-bottom: 25px; display: flex; justify-content: center; align-items: center;}
.puc-divider::before, .puc-divider::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(90deg, transparent, #44222a, transparent); }
.puc-divider span { font-size: 11px; color: #aaa; padding: 0 10px; display: flex; align-items: center; gap: 5px; font-weight: 500;}
.puc-divider span i { font-size: 9px; color: #555; }

.puc-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.benefit-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.b-icon { width: 45px; height: 45px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.2); }
.b-icon i { font-size: 18px; color: #aaa; }
.benefit-item span { font-size: 11px; color: #888; line-height: 1.3; font-weight: 500; }

.story-max-promo { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 0; position: relative; }
.smp-text h2 { font-size: 26px; color: #888; font-weight: 600; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.5px;}
.smp-text h2 span { color: #ddd; }
.story-max-logo { font-size: 24px; color: transparent; -webkit-text-stroke: 1px #888; font-weight: 800; font-style: italic; letter-spacing: 1px; }
.popcorn-img { width: 180px; height: auto; object-fit: contain; position: absolute; right: -10px; bottom: 0px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); z-index: 1;}


/* ==================== 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: fill; 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: var(--accent-color); 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: none}
.q-opt:hover { background: #222; }
.q-opt.active { color: var(--accent-color); font-weight: 600; }



.player-time{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color: var(--text-primary);
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
    text-shadow:0 1px 3px #000;
}

.player-time span{
    min-width:50px;
}

/* Center Controls */
.player-center-controls {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 20px; z-index: 10;
}
.ctrl-btn {
    background: var(--accent-color); 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: var(--accent-color); }
.skip-btn { width: 45px; height: 45px; font-size: 22px; background: none; color: var(--accent-color);}
.skip-btn span { font-size: 10px; position: absolute; font-weight: bold; margin-top: 4px; }
.play-pause-btn { width: 45px; height: 45px; font-size: 30px; background: none; color: var(--accent-color);}

/* Right Actions */
.player-right-actions {
    position: fixed;
    top: 50%;
    right: max(12px, env(safe-area-inset-right));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 9999;
}

.action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--text-primary); 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: fixed; 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;
}


.history-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.history-card {
    display: flex;
    align-items: center;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.history-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.history-info {
    flex: 1;
    padding: 10px;
}

.history-info h4 {
    font-size: 14px;
    margin: 0;
}

.delete-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.delete-btn:hover {
    color: red;
    transform: scale(1.2);
}


.see-all-btn {
  background: red;
  border: 4px solid red;;
  border-radius: 25px;
  color: gold;
  font-size: 14px;
  cursor: pointer;
}




.category-page-header {
    width: 100%;
    margin-bottom: 15px;
}

.category-page-header h2 {
    font-size: 20px;
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}



/* ================================================================= */
/* NEW: LOGIN AND REGISTER TABS CSS */
/* ================================================================= */
.auth-tabs { display: flex; justify-content: center; width: 100%; border-bottom: 2px solid #333; margin-bottom: 20px; }
.auth-tab { flex: 1; background: transparent; border: none; color: #888; font-size: 16px; font-weight: 600; padding: 10px 0; cursor: pointer; transition: 0.3s; }
.auth-tab.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); margin-bottom: -2px; }
.auth-form { display: none; flex-direction: column; width: 100%; }
.auth-form.active { display: flex; }
.auth-input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #444; background: #222; color: #fff; font-size: 15px; margin-bottom: 15px; }
.auth-submit-btn { width: 100%; background: #e10032; color: #fff; border: none; padding: 12px; border-radius: 25px; font-weight: 600; cursor: pointer; font-size: 16px; margin-top: 5px;}
.auth-error { color: red; font-size: 13px; margin-top: 10px; display: none; }


/* ======== NEW: Thumbnail wrapper logic for view counts ======== */
.card-vertical { flex: 0 0 130px; width: 130px; position: relative; cursor: pointer; }
.thumbnail-wrapper { position: relative; width: 100%; height: 170px; margin-bottom: 0px; }
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* The new live view count overlay at bottom right of thumbnail */
.view-count-overlay {
    position: absolute;
    bottom: 6px;
    right: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}
.view-count-overlay i { font-size: 9px; }

.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; color: var(--accent-color);}
.card-vertical:hover .play-icon-overlay { opacity: 1; }



/* Card Container */
.card-vertical { 
    flex: 0 0 130px; 
    width: 130px; 
    position: relative; 
    cursor: pointer; 
}

/* Thumbnail Container */
.thumbnail-wrapper { 
    position: relative; 
    width: 100%; 
    height: 170px; 
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px; 
}

.thumbnail-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* Top-Right Yellow Diamond Badge */
.top-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #ffd700; /* Gold/Yellow Diamond */
    font-size: 15px;
    z-index: 5;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* Bottom-Right View Counter Overlay (Always Visible) */
.view-count-overlay {
    position: absolute;
    bottom: 6px;
    right: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.view-count-overlay i { 
    font-size: 9px; 
    color: #ffffff;
}

/* Hover play icon overlay */
.play-icon-overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 35px; 
    opacity: 0; 
    transition: opacity 0.2s; 
    pointer-events: none; 
    color: var(--accent-color);
}

.thumbnail-wrapper:hover .play-icon-overlay { 
    opacity: 1; 
}

.top-badge {
    position: absolute;
    top: 5px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
}

.top-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}


/* Like Button Active State */
.action-item.liked i { 
    color: #ff0055; /* Red color for liked state */
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}


