/* ================= BASE & RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #09090b; 
    color: #ffffff;
    padding-bottom: 80px; /* Bottom nav ke liye space */
}

/* ================= STICKY HEADER ================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    
    /* Sticky Header Magic */
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Glass effect (Piche ka content blur hoga) */
    background: rgba(9, 9, 11, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: white;
    padding-left: 3px; 
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text .purple-text {
    color: #a855f7; 
}

.logo-text p {
    font-size: 9px;
    color: #888;
    margin-top: 2px;
}

.search-area {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* ================= MAIN CONTENT & CARDS ================= */
.main-content {
    padding: 10px 0;
}

.content-section {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 12px;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vertical-bar {
    width: 4px;
    height: 18px;
    background-color: #a855f7;
    border-radius: 4px;
}

.title-left h2 {
    font-size: 18px;
    font-weight: 600;
}

.view-more {
    font-size: 12px;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

/* Horizontal Carousel */
.cards-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 15px;
    scroll-behavior: smooth;
    scrollbar-width: none; 
}

.cards-container::-webkit-scrollbar {
    display: none; 
}

.anime-card {
    display: block;
    flex: 0 0 auto;
    width: 130px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    text-decoration: none;
}

.anime-card:active {
    transform: scale(0.95);
}

.anime-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= ANIMATED BOTTOM NAVIGATION ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 20px 0; 
    border-top: 1px solid #1a1a24;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    position: relative;
    padding: 5px 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Active State (Neon Purple glow & bounce) */
.nav-item.active {
    color: #a855f7; 
}

.nav-item.active i {
    transform: translateY(-4px) scale(1.15);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.nav-item.active span {
    font-weight: 600;
    transform: translateY(-2px);
}

/* Pulse Dot Indicator */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #a855f7;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* ================= SEARCH PANEL CSS ================= */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #09090b;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #0d0d12;
    border-bottom: 1px solid #1a1a24;
}

.search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #1a1a24;
    border-radius: 8px;
    padding: 12px 15px;
    gap: 10px;
}

.search-input-box i {
    color: #888;
}

.search-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.search-input-box input::placeholder {
    color: #666;
}

.cancel-btn {
    background-color: #1a1a24;
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-btn:hover, .cancel-btn:active {
    background-color: #2a2a35;
    color: #a855f7;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.search-hint {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-size: 14px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #0d0d12;
    border-radius: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid #1a1a24;
    transition: background 0.2s;
}

.search-item:active {
    background-color: #1a1a24;
}

.search-item img {
    width: 55px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}

.search-item-info {
    flex: 1;
}

.search-item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-item-info p {
    font-size: 11px;
    color: #a855f7; 
}

.search-item i.fa-chevron-right {
    color: #555;
    font-size: 14px;
}

/* ================= ANIME & MOVIES GRID PAGE CSS ================= */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); 
    gap: 15px;
    padding: 0 15px 20px 15px;
}

.grid-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    gap: 5px;
}

.grid-card img {
    width: 100%;
    aspect-ratio: 2 / 3; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.grid-card:active img {
    transform: scale(0.95);
}

.grid-card-title {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    text-align: center;
    color: #ddd;
}

/* ================= SETTINGS PAGE CSS ================= */
.settings-container {
    padding: 0 15px 20px 15px;
}

.settings-group {
    margin-bottom: 25px;
}

.group-title {
    font-size: 12px;
    color: #a855f7; 
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 5px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d0d12;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #1a1a24;
    text-decoration: none;
    color: white;
}

.settings-item.clickable:active {
    background-color: #1a1a24;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-icon {
    font-size: 18px;
    color: #888;
    width: 20px;
    text-align: center;
}

.item-left span {
    font-size: 14px;
    font-weight: 500;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-value {
    font-size: 12px;
    color: #888;
}

.chevron {
    font-size: 12px;
    color: #555;
}

/* --- Toggle Switch Design --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a35;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #a855f7; 
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* --- Clear Cache / Danger Button --- */
.danger-btn {
    width: 100%;
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: background 0.2s;
}

.danger-btn:active {
    background-color: rgba(255, 77, 77, 0.2);
}

.app-version {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 25px;
}

/* ================= ANIME DETAILS PAGE CSS ================= */
.details-page-body {
    padding-bottom: 80px; 
}

.hero-section {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.floating-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.floating-back-btn:active {
    background: rgba(0, 0, 0, 0.8);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: blur(10px) brightness(0.4);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #09090b 0%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    z-index: 2;
}

.detail-poster {
    width: 110px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-info h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.meta-tags {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 10px;
    color: #ccc;
    align-items: center;
}

.meta-tags .rating {
    color: #f5c518;
    font-weight: 600;
}

.meta-tags .quality {
    background: #a855f7;
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: #ddd;
}

/* Synopsis */
.synopsis-section {
    padding: 20px 15px;
}

.synopsis-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #a855f7;
}

.synopsis-section p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}

/* ================= WATCH MOVIE NOW BUTTON ================= */
.watch-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #a855f7 0%, #6a11cb 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-now-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.6);
}

/* Episodes Section (Details Page) */
.episodes-section {
    padding: 0 15px 20px 15px;
}

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

.episode-header h3 {
    font-size: 16px;
    color: #fff;
}

.episode-header span {
    font-size: 12px;
    color: #888;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-card {
    display: flex;
    align-items: center;
    background: #0d0d12;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    border: 1px solid #1a1a24;
    transition: background 0.2s;
}

.episode-card:active {
    background: #1a1a24;
}

.ep-play-icon {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
}

.ep-info {
    flex: 1;
}

.ep-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ep-info p {
    font-size: 11px;
    color: #666;
}

.ep-arrow {
    color: #555;
}

.episode-skeleton {
    height: 66px;
    background: #1a1a24;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ================= WATCH / VIDEO PLAYER PAGE ================= */
.watch-page-body {
    background-color: #09090b;
    padding-bottom: 80px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* 🔥 FULLSCREEN LANDSCAPE FIX 🔥 */
.player-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin-top: 0;
}
.player-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin-top: 0;
}

#customVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Top Controls Wrapper (Back & Top Right Icons) */
.top-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 30; 
    transition: opacity 0.3s ease;
}

.top-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-back-btn {
    color: white;
    font-size: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.top-right-controls {
    display: flex;
    gap: 10px;
}

.top-icon-btn {
    color: white;
    font-size: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.top-icon-btn:active {
    background: rgba(168, 85, 247, 0.8);
}

/* ================= MODERN LOADING SPINNER ================= */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    z-index: 10;
    display: none; /* JS isko block karega */
}

/* Purane FontAwesome icon ko chhupa do */
.loading-spinner i {
    display: none; 
}

/* Naya Premium Ring Spinner */
.loading-spinner::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.2); /* Faint Purple Background */
    border-top-color: #a855f7; /* Solid Purple Rotating Line */
    animation: smoothSpin 0.8s linear infinite;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); /* Purple Glow */
    box-sizing: border-box;
}

@keyframes smoothSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Controls (Bottom) */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 15px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-controls.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* 🔥 SEEK BAR PURPLE COLOR 🔥 */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
}

#seekBar {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    accent-color: #a855f7; 
}

#seekBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-controls button, .right-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.left-controls button:hover, .right-controls button:hover {
    color: #a855f7;
}

#skipBackBtn, #skipForwardBtn {
    font-size: 12px;
    font-weight: 500;
}

#timeDisplay {
    font-size: 11px;
    font-weight: 400;
    color: #ddd;
    margin-left: 5px;
}

/* ================= SIDE MENUS (NETFLIX/MX STYLE) ================= */
.side-menu {
    position: absolute;
    top: 0;
    right: -200px; /* Start hidden on the right */
    width: 180px; /* Normal mobile screen ke liye size */
    height: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.side-menu.active {
    right: 0;
}

/* 🔥 FULLSCREEN MENU SIZE FIX 🔥 */
.player-wrapper:fullscreen .side-menu,
.player-wrapper:-webkit-full-screen .side-menu {
    width: 300px; /* Fullscreen me menu bada hoga */
    right: -320px;
}

.player-wrapper:fullscreen .side-menu.active,
.player-wrapper:-webkit-full-screen .side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-header h4 {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    transition: 0.3s ease;
}

/* Fullscreen header font size */
.player-wrapper:fullscreen .side-menu-header h4,
.player-wrapper:-webkit-full-screen .side-menu-header h4 {
    font-size: 18px;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s ease;
}

/* Fullscreen close button size */
.player-wrapper:fullscreen .close-menu-btn,
.player-wrapper:-webkit-full-screen .close-menu-btn {
    font-size: 20px;
}

.side-menu-options {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    overflow-y: auto;
    flex: 1;
}

/* Radio Button Style */
.setting-btn {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 10px 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, font-size 0.3s, padding 0.3s;
    text-align: left;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

/* Fullscreen button sizes */
.player-wrapper:fullscreen .setting-btn,
.player-wrapper:-webkit-full-screen .setting-btn {
    padding: 15px 20px;
    font-size: 16px;
    gap: 15px;
}

.setting-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Empty Circle */
.setting-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Fullscreen circle size */
.player-wrapper:fullscreen .setting-btn::before,
.player-wrapper:-webkit-full-screen .setting-btn::before {
    width: 18px;
    height: 18px;
}

/* Active State (Blue Circle like screenshot) */
.setting-btn.active {
    color: #fff;
    font-weight: 500;
}

.setting-btn.active::before {
    border-color: #3b82f6; /* Blue */
    background: #3b82f6;
    box-shadow: inset 0 0 0 2px #0f0f14; /* Ring effect */
}

/* Fullscreen active circle ring */
.player-wrapper:fullscreen .setting-btn.active::before,
.player-wrapper:-webkit-full-screen .setting-btn.active::before {
    box-shadow: inset 0 0 0 3px #0f0f14;
}

/* ================= TAP OVERLAYS (Double Tap) ================= */
.tap-overlay {
    position: absolute;
    top: 0;
    bottom: 60px;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: auto;
}

.left-tap { left: 0; width: 30%; }
.center-tap { left: 30%; width: 40%; }
.right-tap { right: 0; width: 30%; }

.tap-feedback {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: scale(0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.tap-feedback i { font-size: 22px; }
.tap-overlay.active { opacity: 1; }
.tap-overlay.active .tap-feedback { transform: scale(1); }

/* ================= SEASONS & EPISODES INSIDE WATCH PAGE ================= */
.season-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

.season-tabs::-webkit-scrollbar {
    display: none;
}

.season-btn {
    background: #1a1a24;
    color: #aaa;
    border: 1px solid #2a2a35;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.season-btn.active {
    background: #a855f7;
    color: white;
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.watch-episode-list {
    margin-bottom: 20px;
}

.episode-card.active {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.episode-card.active .ep-play-icon {
    background: #a855f7;
    color: white;
}

/* ================= COMMENTS BUTTON ================= */
.comment-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a24;
    border: 1px solid #2a2a35;
    color: #fff;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Poppins', sans-serif;
}

.comment-trigger-btn:active {
    background: #2a2a35;
}

/* ================= BOTTOM SHEET (COMMENTS) ================= */
/* Backdrop */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Main Sheet */
.bottom-sheet {
    position: fixed;
    bottom: -100%; /* Hidden below screen */
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #0d0d12;
    border-radius: 20px 20px 0 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.bottom-sheet.active {
    bottom: 0;
}

/* Drag Handle */
.bottom-sheet-drag-handle {
    width: 40px;
    height: 5px;
    background: #333;
    border-radius: 5px;
    margin: 10px auto;
}

/* Sheet Header */
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px;
    border-bottom: 1px solid #1a1a24;
}

.bottom-sheet-header h3 {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-sheet-close {
    background: #1a1a24;
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Sheet Content (Scrollable) */
.bottom-sheet-content {
    padding: 15px 20px 30px;
    overflow-y: auto;
    flex: 1;
}

/* Forms */
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.comment-form .form-row { display: flex; gap: 10px; }
.comment-form input, .comment-form textarea {
    width: 100%; background: #1a1a24; border: 1px solid #2a2a35; border-radius: 8px;
    padding: 12px; color: #fff; font-family: 'Poppins', sans-serif; font-size: 13px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #a855f7; }
.submit-comment-btn {
    background: linear-gradient(135deg, #a855f7 0%, #6a11cb 100%); color: white;
    border: none; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
}

/* List */
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { background: #13131a; border: 1px solid #1a1a24; border-radius: 10px; padding: 12px; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.comment-name { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 10px; color: #666; }
.comment-text { font-size: 13px; color: #ccc; }

/* Delete Button */
.delete-comment-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: 0.2s;
}
.delete-comment-btn:hover { background: rgba(255, 77, 77, 0.1); }

/* ================= SPLASH SCREEN ================= */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: #09090b;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-logo {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 20px;
    display: flex; justify-content: center; align-items: center;
    font-size: 32px; color: white;
    padding-left: 5px;
    margin-bottom: 20px;
    animation: pulseLogo 1.5s infinite alternate;
}
@keyframes pulseLogo {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(106, 17, 203, 0); }
    100% { transform: scale(1.1); box-shadow: 0 0 30px rgba(106, 17, 203, 0.6); }
}
.splash-text {
    font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px;
}
.splash-text .purple-text { color: #a855f7; }
.splash-subtext {
    font-size: 12px; color: #888; margin-bottom: 30px;
}
.splash-loader {
    width: 40px; height: 40px;
    border: 3px solid rgba(168, 85, 247, 0.3);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= SHIMMER SKELETON LOADING ================= */
.skeleton-card {
    flex: 0 0 auto;
    width: 130px;
    height: 190px;
    border-radius: 12px;
    background: #1a1a24;
    background-image: linear-gradient(90deg, #1a1a24 0px, #2a2a35 40px, #1a1a24 80px);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-grid-card {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: #1a1a24;
    background-image: linear-gradient(90deg, #1a1a24 0px, #2a2a35 40px, #1a1a24 80px);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ================= CUSTOM CONFIRM MODAL ================= */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000; /* Bottom sheet se bhi upar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.custom-modal-box {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 15px;
    padding: 25px 20px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    to { transform: scale(1); }
}

.custom-modal-icon {
    color: #ef4444; /* Red color for warning */
    font-size: 40px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.custom-modal-box h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-modal-box p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Modal Button Specific Overrides */
.modal-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.modal-btn.cancel-btn {
    background: #2a2a35;
    color: #ddd;
}

.modal-btn.cancel-btn:hover {
    background: #3f3f4e;
}

.modal-btn.delete-btn {
    background: #ef4444;
    color: #fff;
}

.modal-btn.delete-btn:hover {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
