/* =========================================
   AnimeNest - Master Stylesheet
   ========================================= */

:root {
    --bg-color: #0b0f19;
    --card-bg: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-color: #a371f7;
    --accent-hover: #c084fc;
    --rating-color: #f1c40f;
    --border-radius: 12px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for bottom nav */
}

.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* =========================================
   1. Hero Banner Section
   ========================================= */
.hero-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    height: 220px;
    background: #1a1a1a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    z-index: 3;
    width: 100%;
}

.hero-badge {
    background-color: #ff4b2b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.btn-watch {
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-watch:hover {
    background-color: var(--accent-hover);
}

.hero-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 4;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-color);
    width: 15px;
    border-radius: 4px;
}

/* =========================================
   2. Category Icons Section
   ========================================= */
.category-icons {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
}
.category-icons::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    min-width: 65px;
    transition: color 0.3s;
}

.cat-item:hover {
    color: var(--text-primary);
}

.cat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

/* =========================================
   3. Anime Sections & Cards
   ========================================= */
.app-section {
    margin-bottom: 25px;
}

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

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.see-all {
    color: var(--accent-color);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Horizontal Scrolling Row */
.anime-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.anime-row::-webkit-scrollbar {
    display: none;
}

/* Anime Card */
.anime-card {
    position: relative;
    flex: 0 0 110px; /* Card width */
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.anime-card:hover {
    transform: translateY(-3px);
}

.anime-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-color);
    display: block;
}

.anime-title {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 6px 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-meta {
    font-size: 0.6rem;
    color: var(--text-secondary);
    padding: 0 6px 6px 6px;
    display: flex;
    justify-content: space-between;
}

.rating {
    color: var(--rating-color);
}

/* Rank Number (1, 2, 3...) */
.rank-number {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-bottom-right-radius: 6px;
    z-index: 10;
}

/* Ongoing Badge */
.badge-ongoing {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2ecc71;
    color: #fff;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* =========================================
   4. Genres Section
   ========================================= */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 5px;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
}

.genre-card.action { background: linear-gradient(135deg, #ff4b2b, #ff416c); }
.genre-card.adventure { background: linear-gradient(135deg, #1cb5e0, #000046); }
.genre-card.comedy { background: linear-gradient(135deg, #f7971e, #ffd200); color: #000; }
.genre-card.fantasy { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.genre-card.romance { background: linear-gradient(135deg, #ff758c, #ff7eb3); }
.genre-card.horror { background: linear-gradient(135deg, #870000, #190a05); }

/* =========================================
   5. Responsive Layout (Tablets & Desktop)
   ========================================= */
@media (min-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .anime-card {
        flex: 0 0 140px;
    }
    .anime-card img {
        height: 190px;
    }
    .genre-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .anime-card {
        flex: 0 0 160px;
    }
    .anime-card img {
        height: 220px;
    }
}
/* =========================================
   BASE.HTML LAYOUT (Header & Bottom Nav)
   ========================================= */

body {
    padding-top: 60px; /* Header की ऊंचाई के हिसाब से जगह */
}

/* 1. Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0b0f19;
    z-index: 1000;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-left .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-crown {
    color: #a371f7;
    font-size: 1.2rem;
}

.logo-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo-text::after {
    content: "Nest";
    color: #a371f7;
}

.header-right-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #161b22;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: #ff4b2b;
    border-radius: 50%;
    border: 1.5px solid #0b0f19;
}

/* 2. Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0b0f19;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #161b22;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #8b949e;
    font-size: 0.65rem;
    transition: color 0.3s;
}

.nav-item.active, .nav-item:hover {
    color: #a371f7;
}

.nav-item i {
    font-size: 1.1rem;
}

/* 3. Splash Screen Styles (Already existing but ensuring no conflict) */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0b0f19;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.splash-logo { margin-bottom: 20px; }
.splash-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(163, 113, 247, 0.3);
    border-top: 3px solid #a371f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.splash-text { color: #8b949e; font-size: 0.8rem; }
/* =========================================
   AnimeNest UI - Master Stylesheet (Final)
   ========================================= */

/* 1. मुख्य सेटिंग्स */
:root {
    --bg-color: #0b0f19;
    --card-bg: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-color: #a371f7;
    --rating-color: #f1c40f;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: 60px; /* हेडर के लिए जगह */
    padding-bottom: 70px; /* बॉटम नेविगेशन के लिए जगह */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* =========================================
   2. Header (Top Nav) - base.html
   ========================================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0b0f19;
    z-index: 1000;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-left .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-crown {
    color: #a371f7;
    font-size: 1.2rem;
}

.logo-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 🛠️ Logo Fix: 'AnimeNestNest' वाली गलती हटाने के लिए */
.logo-text::after {
    content: "" !important; 
}

.header-right-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #161b22;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: #ff4b2b;
    border-radius: 50%;
    border: 1.5px solid #0b0f19;
}

/* =========================================
   3. Bottom Navigation - base.html
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0b0f19;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #161b22;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #8b949e;
    font-size: 0.65rem;
    transition: color 0.3s;
}

.nav-item.active, .nav-item:hover {
    color: #a371f7;
}

.nav-item i {
    font-size: 1.1rem;
}

/* =========================================
   4. Hero Banner - index.html
   ========================================= */
.hero-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 220px;
    background: #1a1a1a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    z-index: 3;
    width: 100%;
}

.hero-badge {
    background-color: #ff4b2b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.btn-watch {
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 4;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-color);
    width: 15px;
    border-radius: 4px;
}

/* =========================================
   5. Category Icons - index.html
   ========================================= */
.category-icons {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
}
.category-icons::-webkit-scrollbar {
    display: none;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    min-width: 65px;
}

.cat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

/* =========================================
   6. Anime Sections & Cards - index.html
   ========================================= */
.app-section {
    margin-bottom: 25px;
}

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

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.see-all {
    color: var(--accent-color);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Horizontal Scrolling Row */
.anime-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth;
}
.anime-row::-webkit-scrollbar {
    display: none !important;
}

/* Anime Card */
.anime-card {
    position: relative;
    flex: 0 0 110px !important; /* मोबाइल पर कार्ड की चौड़ाई */
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
}

.anime-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-color);
    display: block;
}

.anime-title {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 6px 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-meta {
    font-size: 0.6rem;
    color: var(--text-secondary);
    padding: 0 6px 6px 6px;
    display: flex;
    justify-content: space-between;
}

.rating {
    color: var(--rating-color);
}

/* Rank Number (1, 2, 3...) */
.rank-number {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-bottom-right-radius: 6px;
    z-index: 10;
}

/* Ongoing Badge */
.badge-ongoing {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2ecc71;
    color: #fff;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* =========================================
   7. Genres Section - index.html
   ========================================= */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 5px;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
}

.genre-card.action { background: linear-gradient(135deg, #ff4b2b, #ff416c); }
.genre-card.adventure { background: linear-gradient(135deg, #1cb5e0, #000046); }
.genre-card.comedy { background: linear-gradient(135deg, #f7971e, #ffd200); color: #000; }
.genre-card.fantasy { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.genre-card.romance { background: linear-gradient(135deg, #ff758c, #ff7eb3); }
.genre-card.horror { background: linear-gradient(135deg, #870000, #190a05); }

/* =========================================
   8. Responsive Layout (Tablets & Desktop)
   ========================================= */
@media (min-width: 768px) {
    .hero-banner { height: 300px; }
    .hero-title { font-size: 1.8rem; }
    .anime-card { flex: 0 0 140px !important; }
    .anime-card img { height: 190px; }
    .genre-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
    .anime-card { flex: 0 0 160px !important; }
    .anime-card img { height: 220px; }
}
/* ✅ WATCH PAGE - Crunchyroll Style */
.watch-page {
    max-width: 100%;
    padding-bottom: 100px;
}

.hero-detail {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.hero-detail-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4);
    transform: scale(1.1);
}

.hero-detail-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, #0d0d0d 5%, rgba(13,13,13,0.6) 60%, transparent);
    z-index: 2;
}

.hero-detail-content {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 30px;
    padding: 60px 60px 50px;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-poster {
    flex-shrink: 0;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
}

.hero-poster img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.hero-info { flex: 1; padding-bottom: 10px; min-width: 0; }

.featured-badge {
    display: inline-block;
    background-color: #7b2cbf;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.hero-anime-title {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-genres { color: #ff4d4d; font-size: 15px; font-weight: 600; margin-bottom: 15px; }
.hero-description { color: #ccc; font-size: 15px; line-height: 1.7; margin-bottom: 25px; max-width: 700px; }

.hero-action-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-watch-hero {
    background: linear-gradient(135deg, #7b2cbf, #ff4d4d);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.btn-watch-hero:hover { transform: scale(1.05); }

.btn-list-hero {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}
.btn-list-hero:hover { background-color: rgba(255,255,255,0.25); }
.btn-list-hero.active { background-color: #7b2cbf; border-color: #7b2cbf; }

/* Tabs */
.watch-tabs {
    display: flex;
    gap: 5px;
    padding: 0 60px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid #1a1a1a;
}

.watch-tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 17px;
    font-weight: bold;
    padding: 18px 25px;
    cursor: pointer;
    position: relative;
}

.watch-tab:hover { color: #ccc; }
.watch-tab.active { color: #7b2cbf; }

.watch-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 3px;
    background-color: #7b2cbf;
    border-radius: 3px 3px 0 0;
}

.tab-content { display: none; padding: 30px 60px; max-width: 1200px; margin: 0 auto; }
.tab-content.active { display: block; }

/* Video Player */
.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.video-player-crunchy iframe { width: 100%; height: 100%; border: none; display: block; }

.no-video-msg-crunchy {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border-radius: 12px;
    margin-bottom: 30px;
}
.no-video-msg-crunchy h3 { color: #ff4d4d; font-size: 22px; margin-bottom: 10px; }
.no-video-msg-crunchy p { color: #888; font-size: 14px; }

/* Season Dropdown */
.season-dropdown-wrapper { 
    position: relative; /* 👈 यह जरूर होना चाहिए */
    z-index: 100;       /* 👈 इसे 100 कर दो */
    margin-bottom: 20px; 
    background: #1a1a24; 
    border-radius: 12px; 
    padding: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}


.season-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 15px 28px;
    border-radius: 30px;
    border: 2px solid #7b2cbf;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}
.season-toggle-btn:hover { background-color: #7b2cbf; }

.season-toggle-btn i:first-child { color: #7b2cbf; font-size: 19px; }
.season-toggle-btn:hover i:first-child { color: #fff; }
.season-toggle-btn i:last-child { font-size: 13px; color: #888; }

.total-eps-label { color: #888; font-size: 15px; font-weight: 500; }

.season-dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 15px; 
    right: 15px; 
    background: #1a1a24; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; 
    z-index: 99999; /* 👈 इसे 99999 कर दो ताकि यह बॉटम नेविगेशन से भी ऊपर दिखे */
    overflow: hidden; 
    margin-top: 5px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); 
}


.dropdown-header {
    color: #7b2cbf;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    margin-top: 5px;
}

.season-option:hover { background-color: #333; }
.season-option.selected { background-color: #7b2cbf; }
.season-option.selected .season-thumb { border: 2px solid #fff; }

.season-thumb {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #333;
}

.season-option-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.season-option-info strong { font-size: 15px; color: #fff; }
.season-option-info span { font-size: 12px; color: #aaa; }
.season-option.selected .season-option-info span { color: #fff; }
.check-icon { color: #fff; font-size: 17px; }

/* Episodes List */
.episodes-list-crunchy { display: flex; flex-direction: column; gap: 8px; }

.episode-item-crunchy {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border-radius: 10px;
    background-color: #1a1a1a;
    border-left: 3px solid transparent;
}

.episode-item-crunchy:hover { background-color: #252525; }
.episode-item-crunchy.active-ep { background-color: rgba(123, 44, 191, 0.15); border-left-color: #7b2cbf; }

.ep-thumb {
    position: relative;
    flex-shrink: 0;
    width: 100px;   /* 👈 150px को 100px कर दो */
    height: 60px;   /* 👈 90px को 60px कर दो */
    border-radius: 8px;
    overflow: hidden;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ep-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ep-thumb:hover .ep-play-overlay { opacity: 1; }

.ep-info { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ep-number-title { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ep-num { color: #7b2cbf; font-weight: bold; font-size: 16px; }
.ep-title { color: #fff; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-meta { display: flex; gap: 10px; color: #888; font-size: 13px; align-items: center; }
.ep-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.ep-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #7b2cbf;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}
.ep-play-btn:hover { background-color: #ff4d4d; }

/* Episode Nav Bottom */
.episode-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 18px;
    background-color: #1a1a1a;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-btn-bottom {
    background-color: #7b2cbf;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
.nav-btn-bottom:hover { background-color: #ff4d4d; }
.nav-btn-bottom.disabled { background-color: #333; color: #666; cursor: not-allowed; }
.current-ep-label { color: #fff; font-weight: bold; font-size: 15px; }

/* Details Tab */
.details-box { background-color: #1a1a1a; padding: 30px; border-radius: 12px; margin-bottom: 30px; }
.details-box h3 { color: #7b2cbf; font-size: 22px; margin-bottom: 18px; border-left: 4px solid #7b2cbf; padding-left: 14px; }
.details-box p { color: #ccc; font-size: 16px; line-height: 1.8; margin-bottom: 25px; }
.details-meta { display: flex; flex-direction: column; gap: 12px; color: #fff; font-size: 15px; }
.details-meta strong { color: #7b2cbf; }

/* Rating */
.rating-section { background-color: #1a1a1a; border-radius: 12px; padding: 30px; text-align: center; }
.rating-section h3 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.stars { display: flex; justify-content: center; gap: 12px; margin-bottom: 15px; }
.stars i { font-size: 32px !important; color: #ffc107 !important; cursor: pointer; }
.rating-text { color: #888; font-size: 14px; margin-top: 10px; }

/* Similar Tab */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.similar-card { text-decoration: none; color: #fff; border-radius: 10px; overflow: hidden; }
.similar-card:hover { transform: translateY(-6px); }
.similar-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; display: block; }
.similar-card h4 { font-size: 14px; padding: 10px 5px; text-align: center; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile */
@media (max-width: 768px) {
    .hero-detail { min-height: 380px; }
    .hero-detail-content { padding: 30px 15px 25px; gap: 15px; }
    .hero-poster { width: 105px; }
    .hero-poster img { height: 150px; }
    .hero-anime-title { font-size: 20px; }
    .hero-genres { font-size: 12px; }
    .hero-description { font-size: 11px; max-height: 55px; overflow: hidden; }
    .featured-badge { font-size: 10px; padding: 3px 10px; margin-bottom: 8px; }
    .btn-watch-hero, .btn-list-hero { padding: 9px 16px; font-size: 12px; }
    
    .watch-tabs { padding: 0 15px; }
    .watch-tab { font-size: 14px; padding: 12px 14px; }
    .tab-content { padding: 15px; }
    
    .video-player-crunchy { margin-bottom: 20px; }
    
    .season-toggle-btn { padding: 11px 18px; font-size: 14px; }
    .season-dropdown-menu { width: calc(100% - 30px); left: 15px; top: 55px; }
    .season-thumb { width: 45px; height: 45px; }
    .season-option-info strong { font-size: 13px; }
    
    .ep-thumb { width: 90px; height: 55px; }
    .ep-title { font-size: 13px; }
    .ep-num { font-size: 13px; }
    .ep-play-btn { width: 36px; height: 36px; font-size: 12px; }
    .ep-meta { font-size: 11px; }
    
    .episode-nav-bottom { padding: 12px; }
    .nav-btn-bottom { padding: 9px 15px; font-size: 12px; }
    .current-ep-label { font-size: 12px; }
    
    .details-box { padding: 20px; }
    .details-box h3 { font-size: 18px; }
    .details-box p { font-size: 13px; }
    .details-meta { font-size: 13px; }
    
    .rating-section { padding: 20px; }
    .stars i { font-size: 26px !important; }
    
    .similar-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .similar-card img { height: 140px; }
    .similar-card h4 { font-size: 11px; padding: 6px 3px; }
}
/* =========================================
   PROFILE & SETTINGS PAGE STYLES
   ========================================= */

.profile-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

/* 1. Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a371f7;
    box-shadow: 0 0 15px rgba(163, 113, 247, 0.5);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.profile-info p {
    font-size: 0.8rem;
    color: #8b949e;
}

.edit-profile-btn {
    background: rgba(163, 113, 247, 0.1);
    color: #a371f7;
    border: 1px solid #a371f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.edit-profile-btn:hover {
    background: #a371f7;
    color: #fff;
}

/* 2. Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #161b22;
    border-radius: 12px;
    padding: 15px 10px;
    margin-bottom: 25px;
    border: 1px solid #30363d;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 3px;
}

.stat-item p {
    font-size: 0.7rem;
    color: #8b949e;
}

.stat-divider {
    width: 1px;
    height: 25px;
    background-color: #30363d;
}

/* 3. Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #161b22;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #30363d;
    transition: background 0.3s;
}

.setting-item:hover {
    background-color: #1f242d;
}

.setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.setting-text {
    flex: 1;
}

.setting-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.setting-text p {
    font-size: 0.7rem;
    color: #8b949e;
}

.setting-arrow {
    color: #8b949e;
    font-size: 0.9rem;
}

/* 4. Logout Button */
.logout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a371f7, #4a00e0);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(163, 113, 247, 0.3);
    transition: transform 0.3s;
}

.logout-btn:hover {
    transform: translateY(-2px);
}

/* 5. Light Mode Theme (Appearance Setting) */
body.light-mode {
    background-color: #f0f2f5 !important;
    color: #000000 !important;
}
body.light-mode .app-header,
body.light-mode .bottom-nav {
    background-color: #ffffff !important;
    border-color: #e1e4e8 !important;
}
body.light-mode .logo-text,
body.light-mode .profile-info h2,
body.light-mode .setting-text h3,
body.light-mode .stat-item span {
    color: #000000 !important;
}
body.light-mode .settings-list .setting-item,
body.light-mode .stats-bar {
    background-color: #ffffff !important;
    border-color: #e1e4e8 !important;
}
body.light-mode .setting-item:hover {
    background-color: #f6f8fa !important;
}
body.light-mode .icon-circle {
    background-color: #f0f2f5 !important;
    color: #000000 !important;
}
/* =========================================
   PREMIUM PROFILE PAGE UI
   ========================================= */

.profile-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 1. Cover Photo Section */
.profile-cover {
    position: relative;
    height: 180px;
    background-image: url('https://images.unsplash.com/photo-1541562232579-512a21360020?q=80&w=1000&auto=format&fit=crop'); /* आप इसे बदल सकते हैं */
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

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

/* 2. Profile Header (Avatar + Name) */
.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding: 0 20px;
    margin-top: -50px; /* एवाटर को कवर फोटो के ऊपर लाने के लिए */
    position: relative;
    z-index: 2;
}

.avatar-container {
    position: relative;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0b0f19; /* बैकग्राउंड के रंग का बॉर्डर */
    box-shadow: 0 0 20px rgba(163, 113, 247, 0.6); /* बैंगनी ग्लो */
}

.profile-info {
    flex: 1;
    padding-bottom: 5px;
}

.profile-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.profile-info p {
    font-size: 0.8rem;
    color: #a371f7;
    font-weight: 600;
}

.edit-profile-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.edit-profile-btn:hover {
    background: #a371f7;
    border-color: #a371f7;
}

/* 3. Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #161b22;
    border-radius: 16px;
    padding: 15px 10px;
    margin: 20px;
    border: 1px solid #30363d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.7rem;
    color: #8b949e;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #30363d;
}

/* 4. Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 20px 25px 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #161b22;
    padding: 14px 15px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #30363d;
    transition: background 0.3s, transform 0.2s;
}

.setting-item:hover {
    background-color: #1f242d;
    transform: translateX(5px);
}

.setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.setting-text {
    flex: 1;
}

.setting-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.setting-text p {
    font-size: 0.7rem;
    color: #8b949e;
}

.setting-arrow {
    color: #8b949e;
    font-size: 0.9rem;
}

/* 5. Logout Button */
.logout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 14px;
    background: linear-gradient(135deg, #4facfe 0%, #a371f7 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(163, 113, 247, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 113, 247, 0.6);
}

/* 6. Light Mode Theme (Appearance Setting) */
body.light-mode {
    background-color: #f0f2f5 !important;
    color: #000000 !important;
}
body.light-mode .app-header,
body.light-mode .bottom-nav {
    background-color: #ffffff !important;
    border-color: #e1e4e8 !important;
}
body.light-mode .logo-text,
body.light-mode .profile-info h2,
body.light-mode .setting-text h3,
body.light-mode .stat-item span {
    color: #000000 !important;
}
body.light-mode .settings-list .setting-item,
body.light-mode .stats-bar {
    background-color: #ffffff !important;
    border-color: #e1e4e8 !important;
}
body.light-mode .setting-item:hover {
    background-color: #f6f8fa !important;
}
body.light-mode .icon-circle {
    background-color: #f0f2f5 !important;
    color: #000000 !important;
}
/* =========================================
   Language Badge Styles
   ========================================= */

.lang-badge {
    position: absolute;
    top: 5px;
    right: 5px; /* कार्ड के ऊपर दाईं तरफ */
    background: linear-gradient(135deg, #a371f7, #4a00e0); /* बैंगनी ग्रेडिएंट */
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}
/* =========================================
   Watch Page Buttons & Language Badge Fixes
   ========================================= */

/* 1. Watch Now Button */
.btn-watch-now {
    background-color: #a371f7; /* बैंगनी रंग */
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-watch-now:hover {
    background-color: #c084fc;
    transform: translateY(-2px);
}

/* 2. My List Button */
.btn-my-list {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-my-list:hover {
    background-color: #a371f7;
    border-color: #a371f7;
}

.btn-my-list.active {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

/* 3. Hero Action Buttons Container */
.hero-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 4. Language Badge Position Fix */
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.lang-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a371f7, #4a00e0);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}
/* =========================================
   WATCH PAGE STYLES (Crunchyroll Look)
   ========================================= */

.watch-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* 1. Hero Detail Section */
.hero-detail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-color: #161b22;
}

.hero-detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: 1;
}

.hero-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0b0f19 0%, transparent 100%);
    z-index: 2;
}

.hero-detail-content {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-end;
}

.hero-poster img {
    width: 110px; /* 🛠️ FIX: इमेज की चौड़ाई तय कर दी */
    height: 160px; /* 🛠️ FIX: इमेज की ऊंचाई तय कर दी */
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #a371f7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-info {
    flex: 1;
}

.featured-badge {
    background-color: #a371f7;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
}

.hero-anime-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff;
    line-height: 1.2;
}

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

.hero-genres {
    font-size: 0.7rem;
    color: #ff4b2b;
    font-weight: 600;
}

.hero-description {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2. Tabs */
.watch-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #30363d;
    margin-bottom: 15px;
    padding: 0 5px;
}

.watch-tab {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.watch-tab.active {
    color: #a371f7;
    border-bottom-color: #a371f7;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

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

/* 3. Video Player */
.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #30363d;
}

.no-video-msg-crunchy, .no-video-msg {
    text-align: center;
    padding: 30px 20px;
    background-color: #161b22;
    border-radius: 8px;
    border: 1px dashed #30363d;
    margin-bottom: 15px;
}

.no-video-msg-crunchy h3, .no-video-msg h3 {
    color: #ff4b2b;
    font-size: 1rem;
    margin-bottom: 5px;
}

.no-video-msg-crunchy p, .no-video-msg p {
    color: #8b949e;
    font-size: 0.8rem;
}

/* 4. Episodes List */
.episodes-list-crunchy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-item-crunchy {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #161b22;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #30363d;
    transition: border-color 0.3s;
}

.episode-item-crunchy.active {
    border-color: #a371f7;
    background-color: rgba(163, 113, 247, 0.1);
}

.ep-thumb {
    position: relative;
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-thumb a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
}

.ep-info {
    flex: 1;
}

.ep-number-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.ep-meta {
    font-size: 0.65rem;
    color: #8b949e;
    display: flex;
    gap: 5px;
}

.ep-actions a {
    background-color: #a371f7;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.8rem;
}

/* 5. Bottom Nav (Prev/Next) */
.episode-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #30363d;
}

.nav-btn-bottom {
    background-color: #161b22;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #30363d;
    transition: all 0.3s;
}

.nav-btn-bottom:hover {
    background-color: #a371f7;
    border-color: #a371f7;
}

.nav-btn-bottom.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-ep-label {
    font-size: 0.8rem;
    color: #8b949e;
    font-weight: 600;
}

/* 6. Season Dropdown */
.season-dropdown-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.season-toggle-btn {
    background-color: #161b22;
    color: #ffffff;
    border: 1px solid #a371f7;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.total-eps-label {
    font-size: 0.75rem;
    color: #8b949e;
}

.season-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.dropdown-header {
    padding: 10px 15px;
    font-size: 0.8rem;
    color: #8b949e;
    border-bottom: 1px solid #30363d;
    font-weight: 600;
}

.season-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid #30363d;
    transition: background 0.3s;
}

.season-option:hover {
    background-color: #1f242d;
}

.season-option.active {
    background-color: rgba(163, 113, 247, 0.1);
    border-left: 3px solid #a371f7;
}

.season-option-img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.season-option-info {
    flex: 1;
}

.season-option-info strong {
    font-size: 0.85rem;
    display: block;
}

.season-option-info span {
    font-size: 0.7rem;
    color: #8b949e;
}

.check-icon {
    color: #a371f7;
}

/* 7. Details & Similar Tab */
.details-box, .similar-grid {
    background-color: #161b22;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
}

.details-box h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.details-box p {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 10px;
}

.details-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #ffffff;
    background-color: #0b0f19;
    padding: 10px;
    border-radius: 6px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.similar-card {
    text-decoration: none;
    color: #ffffff;
    text-align: center;
}

.similar-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}

.similar-card h4 {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 8. Rating Section */
.rating-section {
    text-align: center;
    padding: 20px;
    background-color: #161b22;
    border-radius: 8px;
    border: 1px solid #30363d;
    margin-top: 15px;
}

.rating-section h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars i {
    font-size: 1.5rem;
    color: #f1c40f;
    cursor: pointer;
    transition: transform 0.2s;
}

.stars i:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 0.75rem;
    color: #8b949e;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .hero-detail-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-poster img {
        width: 100px;
        height: 150px;
    }
    .hero-meta-row {
        justify-content: center;
    }
    .hero-action-buttons {
        justify-content: center;
    }
}
/* =========================================
   Custom Video Player Styles (For Movies)
   ========================================= */

.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.video-player-crunchy video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    outline: none;
}

.video-player-crunchy iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* =========================================
   Custom Video Player Styles (For Movies)
   ========================================= */

.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.video-player-crunchy video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    outline: none;
}

.video-player-crunchy iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* =========================================
   Custom Video Player Styles
   ========================================= */

.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.video-player-crunchy iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* =========================================
   LOGIN PAGE STYLES (Premium Anime Theme)
   ========================================= */

.login-page-body {
    background-color: #0b0f19;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 100%);
    z-index: 1;
}

.login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}
.logo-a {
    color: #ff4d4d;
    font-size: 2.2rem;
    font-weight: 900;
}
.logo-text {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-sub {
    color: #8b949e;
    font-size: 0.65rem;
    letter-spacing: 3px;
    margin-top: -5px;
    text-transform: uppercase;
}

.welcome-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}
.welcome-sub {
    color: #8b949e;
    font-size: 0.85rem;
    margin-bottom: 25px;
    text-align: center;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.input-group input:focus {
    border-color: #a371f7;
    box-shadow: 0 0 10px rgba(163, 113, 247, 0.2);
}
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
    font-size: 1rem;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 0.8rem;
}
.remember-me {
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.remember-me input {
    accent-color: #a371f7;
    width: 15px;
    height: 15px;
}
.forgot-pass {
    color: #a371f7;
    text-decoration: none;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ff4d4d, #a371f7);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}
.btn-signin:hover {
    opacity: 0.9;
}

.divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    color: #8b949e;
    font-size: 0.75rem;
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #30363d;
}
.divider span {
    padding: 0 10px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: background 0.3s;
}
.social-btn:hover {
    background-color: #161b22;
}

.signup-text {
    color: #8b949e;
    font-size: 0.8rem;
    margin-top: 15px;
}
.signup-text a {
    color: #a371f7;
    text-decoration: none;
    font-weight: 600;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}
.login-footer p {
    color: #8b949e;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.footer-line {
    width: 40px;
    height: 2px;
    background-color: #ff4d4d;
    margin: 8px auto 0 auto;
}
/* =========================================
   FIX: Compact Header (Puraane Jaisa)
   ========================================= */

.app-header {
    padding: 8px 15px !important;
}

.logo-crown {
    font-size: 1.1rem !important;
    color: #a371f7 !important;
}

.logo-text {
    font-size: 1.2rem !important; /* नाम का साइज़ छोटा कर दिया */
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

.header-right-icons .icon-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
}

.user-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
/* =========================================
   NETFLIX STYLE SEARCH OVERLAY
   ========================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.95); /* गहरा डार्क बैकग्राउंड */
    backdrop-filter: blur(12px); /* ब्लर इफेक्ट */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ऊपर से शुरू होगा */
    padding-top: 80px; /* हेडर के नीचे से */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
}

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

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.search-form-overlay {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon-overlay {
    position: absolute;
    left: 20px;
    color: #8b949e;
    font-size: 1.2rem;
}

.search-form-overlay input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form-overlay input:focus {
    border-color: #a371f7;
    box-shadow: 0 0 20px rgba(163, 113, 247, 0.3);
}

.close-search-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.close-search-btn:hover {
    color: #ff4d4d;
}
/* =========================================
   ULTIMATE GLASSMORPHISM THEME (Fully Transparent)
   ========================================= */

:root {
    --bg-color: #070a12;
    --glass-bg: rgba(15, 20, 30, 0.3); /* 🛠️ बहुत ज्यादा ट्रांसपेरेंट (सिर्फ 30% ओपेसिटी) */
    --glass-border: rgba(255, 255, 255, 0.12); /* हल्का सा चमकता बॉर्डर */
    --glass-blur: blur(25px); /* ज्यादा धुंधलापन (Blur) */
    --text-main: #ffffff;
    --text-sub: #9ca3af;
}

/* 🛠️ 1. बैकग्राउंड में एनीमे इमेज लगाओ */
body {
    background-color: var(--bg-color) !important;
    background-image: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=1000&auto=format&fit=crop') !important; /* यहाँ अपनी पसंद की इमेज का लिंक डाल सकते हो */
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding-top: 90px !important;
    padding-bottom: 95px !important;
}

/* 🛠️ 2. इमेज के ऊपर हल्का डार्क शेड डालो ताकि टेक्स्ट पढ़ा जा सके */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 10, 18, 0.6) 0%, rgba(7, 10, 18, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 3. FLOATING GLASS HEADER (ट्रांसपेरेंट) */
.header-wrapper {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 1000;
    box-sizing: border-box;
}

.glass-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-left .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-crown {
    color: #a371f7;
    font-size: 1.2rem;
}

.logo-text {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-right-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s;
}

.glass-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #1f2937;
}

/* 4. FLOATING GLASS BOTTOM NAV (ट्रांसपेरेंट) */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 1000;
    box-sizing: border-box;
}

.glass-bottom-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.65rem;
    transition: color 0.3s;
}

.nav-item.active, .nav-item:hover {
    color: #a371f7;
}

.nav-item i {
    font-size: 1.1rem;
}

/* 5. CARDS (ट्रांसपेरेंट ग्लास कार्ड्स) */
.anime-card {
    background: rgba(15, 20, 30, 0.5) !important; /* 50% ट्रांसपेरेंट */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.anime-card:hover {
    background: rgba(15, 20, 30, 0.7) !important;
    border-color: rgba(163, 113, 247, 0.4) !important;
}

.anime-card img {
    border-radius: 14px 14px 0 0 !important;
}

/* 6. HERO BANNER (ट्रांसपेरेंट ओवरले) */
.hero-banner {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content {
    background: linear-gradient(to top, rgba(7, 10, 18, 0.9) 0%, transparent 100%) !important;
}

/* 7. BUTTONS */
.btn-watch, .btn-signin, .btn-watch-now {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.btn-my-list {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(5px);
}

/* 8. CATEGORY ICONS */
.category-icons .cat-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(5px);
}

/* 9. SEARCH OVERLAY */
.search-overlay {
    background-color: rgba(7, 10, 18, 0.85) !important;
    backdrop-filter: blur(25px) !important;
}

.search-form-overlay input {
    background-color: rgba(15, 20, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    color: #fff;
}

/* 10. MAIN CONTENT PADDING */
.main-content {
    padding: 0 10px;
}
/* =========================================
   FIX: Compact Login/Signup Page (Fits in screen)
   ========================================= */

/* 1. Page को पूरी स्क्रीन में फिट करो */
.login-page-body {
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.login-container {
    height: 100vh !important;
    width: 100vw !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

/* 2. Content को कॉम्पैक्ट करो */
.login-content {
    padding: 10px 20px !important;
    max-width: 380px !important;
    width: 100% !important;
    max-height: 95vh !important;
    overflow-y: auto !important; /* जरूरत पड़े तो स्क्रॉल हो */
    scrollbar-width: none;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.login-content::-webkit-scrollbar {
    display: none;
}

/* 3. Logo और Heading का साइज़ कम करो */
.login-logo {
    margin-bottom: 12px !important;
}
.logo-a, .logo-text {
    font-size: 1.8rem !important;
}
.logo-sub {
    font-size: 0.55rem !important;
    letter-spacing: 2px !important;
}

.welcome-title {
    font-size: 1.4rem !important;
    margin-bottom: 3px !important;
}
.welcome-sub {
    font-size: 0.75rem !important;
    margin-bottom: 15px !important;
}

/* 4. Input Fields का साइज़ कम करो */
.input-group {
    margin-bottom: 10px !important;
}
.input-group input {
    padding: 11px 12px 11px 40px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}
.input-icon {
    left: 13px !important;
    font-size: 0.9rem !important;
}

/* 5. Form Options और Button का साइज़ कम करो */
.form-options {
    margin-bottom: 12px !important;
    font-size: 0.75rem !important;
}
.btn-signin {
    padding: 11px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
}

/* 6. Divider और Social Buttons का साइज़ कम करो */
.divider {
    margin: 12px 0 !important;
}
.social-btn {
    padding: 10px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
}

/* 7. Sign Up Link और Footer को ऊपर लाओ */
.signup-text {
    font-size: 0.75rem !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}
.login-footer {
    margin-top: 10px !important;
}
.login-footer p {
    font-size: 0.65rem !important;
}
.footer-line {
    margin: 5px auto 0 auto !important;
}
/* =========================================
   PREMIUM GLASSMORPHISM THEME (Final)
   ========================================= */

:root {
    --bg-color: #070a12;
    --glass-bg: rgba(15, 20, 30, 0.3);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(25px);
    --text-main: #ffffff;
    --text-sub: #9ca3af;
}

body {
    background-color: var(--bg-color) !important;
    background-image: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=1000&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding-top: 90px !important;
    padding-bottom: 95px !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(7, 10, 18, 0.6) 0%, rgba(7, 10, 18, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
.header-wrapper {
    position: fixed;
    top: 12px; left: 0;
    width: 100%;
    padding: 0 10px;
    z-index: 1000;
    box-sizing: border-box;
}

.glass-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-left .logo-link { display: flex; align-items: center; text-decoration: none; gap: 8px; }
.logo-crown { color: #a371f7; font-size: 1.2rem; }
.logo-text { color: var(--text-main); font-size: 1.2rem; font-weight: 800; }

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

.glass-icon-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 0.85rem;
    position: relative; transition: all 0.3s;
    flex-shrink: 0;
}

.glass-icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
.user-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; border: 2px solid #1f2937; }

/* BOTTOM NAV */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 15px; left: 0;
    width: 100%;
    padding: 0 10px;
    z-index: 1000;
    box-sizing: border-box;
}

.glass-bottom-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: var(--text-sub);
    font-size: 0.65rem; transition: color 0.3s;
}
.nav-item.active, .nav-item:hover { color: #a371f7; }
.nav-item i { font-size: 1.1rem; }

/* CARDS */
.anime-card {
    background: rgba(15, 20, 30, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}
.anime-card:hover { background: rgba(15, 20, 30, 0.7) !important; border-color: rgba(163, 113, 247, 0.4) !important; }
.anime-card img { border-radius: 14px 14px 0 0 !important; }

/* HERO */
.hero-banner { border-radius: 20px !important; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-content { background: linear-gradient(to top, rgba(7, 10, 18, 0.9) 0%, transparent 100%) !important; }

/* BUTTONS */
.btn-watch, .btn-signin, .btn-watch-now {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}
.btn-my-list { background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; border-radius: 15px !important; backdrop-filter: blur(5px); }

/* CATEGORY ICONS */
.category-icons .cat-icon { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important; backdrop-filter: blur(5px); }

/* SEARCH OVERLAY */
.search-overlay { background-color: rgba(7, 10, 18, 0.85) !important; backdrop-filter: blur(25px) !important; }
.search-form-overlay input { background-color: rgba(15, 20, 30, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; border-radius: 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; color: #fff; }

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

/* LOGIN PAGE */
.login-page-body { background-color: #0b0f19; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; overflow: hidden; }
.login-container { position: relative; width: 100vw; height: 100vh; background-image: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=1000&auto=format&fit=crop'); background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; }
.login-bg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 100%); z-index: 1; }
.login-content { position: relative; z-index: 2; width: 100%; max-width: 380px; padding: 10px 20px; display: flex; flex-direction: column; align-items: center; max-height: 95vh; overflow-y: auto; scrollbar-width: none; }
.login-content::-webkit-scrollbar { display: none; }
.login-logo { text-align: center; margin-bottom: 12px; }
.logo-a { color: #ff4d4d; font-size: 1.8rem; font-weight: 900; }
.logo-text { color: #ffffff; font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; }
.logo-sub { color: #8b949e; font-size: 0.55rem; letter-spacing: 2px; margin-top: -5px; text-transform: uppercase; }
.welcome-title { color: #ffffff; font-size: 1.4rem; font-weight: 700; margin-bottom: 3px; text-align: center; }
.welcome-sub { color: #8b949e; font-size: 0.75rem; margin-bottom: 15px; text-align: center; }
.input-group { position: relative; width: 100%; margin-bottom: 10px; }
.input-group input { width: 100%; padding: 11px 12px 11px 40px; background-color: transparent; border: 1px solid #30363d; border-radius: 10px; color: #ffffff; font-size: 0.85rem; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
.input-group input:focus { border-color: #a371f7; box-shadow: 0 0 10px rgba(163, 113, 247, 0.2); }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8b949e; font-size: 0.9rem; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8b949e; cursor: pointer; }
.form-options { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 12px; font-size: 0.75rem; }
.remember-me { color: #8b949e; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-me input { accent-color: #a371f7; width: 15px; height: 15px; }
.forgot-pass { color: #a371f7; text-decoration: none; }
.btn-signin { width: 100%; padding: 11px; background: linear-gradient(90deg, #ff4d4d, #a371f7); border: none; border-radius: 10px; color: #ffffff; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: opacity 0.3s; }
.btn-signin:hover { opacity: 0.9; }
.divider { display: flex; align-items: center; width: 100%; margin: 12px 0; color: #8b949e; font-size: 0.75rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background-color: #30363d; }
.divider span { padding: 0 10px; }
.social-btn { width: 100%; padding: 10px; background-color: transparent; border: 1px solid #30363d; border-radius: 10px; color: #ffffff; font-size: 0.8rem; text-decoration: none; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 8px; transition: background 0.3s; }
.social-btn:hover { background-color: #161b22; }
.signup-text { color: #8b949e; font-size: 0.75rem; margin-top: 10px; margin-bottom: 5px; }
.signup-text a { color: #a371f7; text-decoration: none; font-weight: 600; }
.login-footer { margin-top: 10px; text-align: center; }
.login-footer p { color: #8b949e; font-size: 0.65rem; letter-spacing: 1px; }
.footer-line { width: 40px; height: 2px; background-color: #ff4d4d; margin: 5px auto 0 auto; }

/* HEADER FIX */
.header-wrapper { padding: 0 10px !important; }
.glass-header { padding: 10px 15px !important; }
.header-right-icons { gap: 8px !important; }
.glass-icon-btn { width: 34px !important; height: 34px !important; font-size: 0.85rem !important; flex-shrink: 0; }
.user-avatar { width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover !important; }
.glass-bottom-nav .nav-item.active { color: #a371f7 !important; }
/* =========================================
   LOGIN PAGE STYLES (Premium Anime Theme)
   ========================================= */

.login-page-body {
    background-color: #0b0f19;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.7) 100%);
    z-index: 1;
}

.login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.login-content::-webkit-scrollbar { display: none; }

.login-logo { text-align: center; margin-bottom: 12px; }
.logo-a { color: #ff4d4d; font-size: 1.8rem; font-weight: 900; }
.logo-text { color: #ffffff; font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; }
.logo-sub { color: #8b949e; font-size: 0.55rem; letter-spacing: 2px; margin-top: -5px; text-transform: uppercase; }

.welcome-title { color: #ffffff; font-size: 1.4rem; font-weight: 700; margin-bottom: 3px; text-align: center; }
.welcome-sub { color: #8b949e; font-size: 0.75rem; margin-bottom: 15px; text-align: center; }

.input-group { position: relative; width: 100%; margin-bottom: 10px; }
.input-group input {
    width: 100%;
    padding: 11px 12px 11px 40px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.input-group input:focus { border-color: #a371f7; box-shadow: 0 0 10px rgba(163, 113, 247, 0.2); }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8b949e; font-size: 0.9rem; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8b949e; cursor: pointer; }

.form-options { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 12px; font-size: 0.75rem; }
.remember-me { color: #8b949e; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-me input { accent-color: #a371f7; width: 15px; height: 15px; }
.forgot-pass { color: #a371f7; text-decoration: none; }

.btn-signin {
    width: 100%;
    padding: 11px;
    background: linear-gradient(90deg, #ff4d4d, #a371f7);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}
.btn-signin:hover { opacity: 0.9; }

.divider { display: flex; align-items: center; width: 100%; margin: 12px 0; color: #8b949e; font-size: 0.75rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background-color: #30363d; }
.divider span { padding: 0 10px; }

.social-btn {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: background 0.3s;
}
.social-btn:hover { background-color: #161b22; }

.signup-text { color: #8b949e; font-size: 0.75rem; margin-top: 10px; margin-bottom: 5px; }
.signup-text a { color: #a371f7; text-decoration: none; font-weight: 600; }

.login-footer { margin-top: 10px; text-align: center; }
.login-footer p { color: #8b949e; font-size: 0.65rem; letter-spacing: 1px; }
.footer-line { width: 40px; height: 2px; background-color: #ff4d4d; margin: 5px auto 0 auto; }
/* =========================================
   Video Player Loading Spinner
   ========================================= */

.video-player-crunchy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.video-player-crunchy video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    outline: none;
}

.player-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #a371f7;
    gap: 15px;
}

.player-loading p {
    color: #8b949e;
    font-size: 0.85rem;
}
/* =========================================
   PERFECT STICKY PLAYER + HERO BANNER (FINAL)
   ========================================= */

.watch-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* 🎨 HERO BANNER (Crunchyroll Style) - FIXED Image */
.hero-detail {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 320px;
    max-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-color: #161b22;
    box-sizing: border-box;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    display: block;
}

.hero-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0b0f19 0%, rgba(11, 15, 25, 0.6) 60%, rgba(11, 15, 25, 0.1) 100%);
    z-index: 2;
}

.hero-detail-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
}

.featured-badge {
    background-color: #a371f7;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-anime-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
    line-height: 1.2;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.lang-badge {
    background: rgba(163, 113, 247, 0.2);
    color: #a371f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(163, 113, 247, 0.4);
}

.rating-badge {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.genre-text {
    color: #d1d5db;
    font-weight: 600;
}

.hero-description {
    font-size: 0.8rem;
    color: #d1d5db;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 🎬 VIDEO SECTION WRAPPER */
.video-section-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 100;
    background-color: #0b0f19;
    transition: all 0.3s ease;
}

/* 🛠️ STICKY MODE (YouTube Style) - FIXED */
.video-section-wrapper.sticky {
    position: fixed;
    top: 55px; /* हेडर के ठीक नीचे */
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    border-bottom: 2px solid rgba(163, 113, 247, 0.6);
}

.video-section-wrapper.sticky .video-info-bar {
    padding: 8px 12px;
}

.video-player-crunchy {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

.video-player-crunchy iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 🛠️ Video Info Bar */
.video-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #161b22, #0b0f19);
    border-bottom: 1px solid #30363d;
    border-left: 3px solid #a371f7;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
    transition: all 0.3s ease;
}

.video-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.video-info-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a371f7;
    background: rgba(163, 113, 247, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(163, 113, 247, 0.3);
}

/* 🛠️ Smooth Fade-In Hero Banner */
.hero-fade-in {
    animation: heroFadeIn 0.6s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🛠️ बाकी कंटेंट में side padding */
.watch-tabs,
.season-dropdown-wrapper,
.episodes-list-crunchy,
.episode-nav-bottom,
.tab-content {
    margin-left: 10px;
    margin-right: 10px;
}

/* 📱 मोबाइल पर */
@media (max-width: 480px) {
    .hero-anime-title { font-size: 1.2rem; }
    .hero-detail { height: 45vh; }
    .video-info-bar { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 5px; }
    .video-info-title { font-size: 0.8rem; }
    .video-info-meta { font-size: 0.7rem; }
}
/* =========================================
   A-Z GRID (3-COLUMN) + BROWSE A-Z BUTTONS
   ========================================= */

/* 🛠️ A-Z Page का 3-कॉलम ग्रिड (ToonStream Style) */
.az-anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.az-anime-grid .anime-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.az-anime-grid .anime-card img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

.az-anime-grid .anime-title {
    font-size: 0.7rem !important;
    padding: 6px 6px 2px 6px !important;
    margin: 0 !important;
    text-align: center;
}

.az-anime-grid .anime-meta {
    padding: 0 6px 8px 6px !important;
    font-size: 0.6rem !important;
    justify-content: center !important;
}

.az-anime-grid .rank-number {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
}

/* 📺 डेस्कटॉप पर 5-कॉलम ग्रिड */
@media (min-width: 768px) {
    .az-anime-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .az-anime-grid .anime-card img {
        height: 200px !important;
    }
}

/* 🛠️ A-Z Browse Buttons (होम पेज पर) */
.az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    padding: 0 10px;
}

.az-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid #30363d;
    border-radius: 10px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.az-btn:hover {
    background: #a371f7;
    color: #ffffff;
    border-color: #a371f7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(163, 113, 247, 0.4);
}

.az-btn.active {
    background: linear-gradient(135deg, #a371f7, #3b82f6);
    color: #ffffff;
    border-color: #a371f7;
    box-shadow: 0 5px 15px rgba(163, 113, 247, 0.5);
}
/* =========================================
   A-Z Navigation Bar (Bottom)
   ========================================= */
.alphabet-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 20px 10px 100px 10px; /* नीचे थोड़ी जगह छोड़ी है */
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 10px;
}

.alphabet-nav::-webkit-scrollbar {
    display: none;
}

.alphabet-nav .az-btn {
    text-decoration: none;
    color: #ccc;
    background: #2a2a2a;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    border: 1px solid #333;
}

.alphabet-nav .az-btn:hover,
.alphabet-nav .az-btn.active {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
    transform: scale(1.05);
}
/* =========================================
   Modern Floating Bottom Navigation Bar
   ========================================= */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none; /* ताकि नीचे का कंटेंट क्लिक करने पर ब्लॉक न हो */
}

.glass-bottom-nav {
    pointer-events: auto;
    width: calc(100% - 30px);
    max-width: 500px;
    background: rgba(20, 15, 30, 0.75); /* डार्क ट्रांसपेरेंट बैकग्राउंड */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

/* एक्टिव (Selected) टैब का डिज़ाइन */
.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);
}

/* My Anime पर लाल डॉट (Notification Badge) */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 22px;
    width: 9px;
    height: 9px;
    background-color: #ff4d4d;
    border-radius: 50%;
    border: 2px solid #140f1e;
}

/* मोबाइल पर नीचे की तरफ थोड़ी जगह छोड़ना ताकि कंटेंट बॉटम बार के पीछे न छिपे */
.main-content {
    padding-bottom: 100px !important;
}
/* =========================================
   Continue Watching Page Styles
   ========================================= */
.continue-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.continue-card {
    display: flex;
    background: #1a1a24;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.continue-card:hover {
    transform: scale(1.02);
}

.continue-img-wrap {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 90px;
}

.continue-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.continue-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.continue-card:hover .continue-overlay {
    opacity: 1;
}

.continue-overlay i {
    font-size: 24px;
    color: #a855f7;
    background: rgba(255,255,255,0.9);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px; /* Play icon alignment fix */
}

.continue-info {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.continue-info .anime-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-meta {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 10px 0;
}

.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #a855f7; /* पर्पल कलर */
    border-radius: 2px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.empty-state i {
    font-size: 50px;
    color: #a855f7;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}
/* =========================================
   Watch Page Hero Banner - Professional Redesign
   ========================================= */
.hero-detail {
    position: relative;
    width: 100%;
    min-height: 480px; /* बड़ा और शानदार लुक */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #0b0f19; /* Fallback color */
}

/* इमेज को बैकग्राउंड में सेट करने का सही तरीका */
.hero-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* टेक्स्ट को साफ दिखाने के लिए डार्क ग्रेडिएंट */
.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.7) 60%, #0b0f19 100%);
}

.hero-detail-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #a855f7, #d946ef);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.hero-anime-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.lang-badge, .rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.genre-text {
    font-size: 13px;
    color: #a1a1aa;
    font-weight: 500;
}

.hero-description {
    font-size: 15px;
    line-height: 1.6;
    color: #d4d4d8;
    margin: 0 0 25px 0;
    /* अब टेक्स्ट 4 लाइन तक दिखेगा, बीच में नहीं कटेगा */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 600px;
}

.hero-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-watch-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.btn-watch-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #9333ea, #6b21a8);
}

.btn-outline-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}
/* =========================================
   🟢 PREMIUM SEARCH OVERLAY STYLES 🟢
   ========================================= */
.premium-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #09090b; /* Dark background matching the app */
    z-index: 99999;
    display: none; /* Hidden by default */
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.premium-search-overlay.active {
    display: block;
}

.premium-search-content {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 10px;
}

/* Glowing Search Bar */
.premium-search-bar {
    display: flex;
    align-items: center;
    background: #111827;
    border: 2px solid #a855f7;
    border-radius: 30px;
    padding: 12px 20px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(168, 85, 247, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.premium-search-bar:focus-within {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), inset 0 0 15px rgba(168, 85, 247, 0.2);
    border-color: #d946ef;
}

.premium-search-bar .search-icon {
    color: #a855f7;
    font-size: 18px;
    margin-right: 12px;
}

.premium-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}

.premium-search-bar input::placeholder {
    color: #6b7280;
}

.premium-search-bar .close-search-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.premium-search-bar .close-search-btn:hover {
    color: #fff;
}

/* Sections */
.search-section {
    margin-bottom: 25px;
}

.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-header a {
    font-size: 12px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
}

/* Pill Tags (Recent & Trending) */
.pill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pill-tag.recent {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.pill-tag.recent:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
    color: #fff;
}

.pill-tag.trending {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.pill-tag.trending:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
}

.pill-tag i {
    font-size: 11px;
}

/* Horizontal Scroll Cards */
.search-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.search-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.search-anime-card {
    width: 120px;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
}

.search-anime-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-anime-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.search-anime-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: #888;
}

.search-anime-meta .rating {
    color: #f1c40f;
    font-weight: 600;
}
/* =========================================
   🟢 PREMIUM SEARCH OVERLAY STYLES (FIXED X BUTTON) 🟢
   ========================================= */
.premium-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #09090b;
    z-index: 99999;
    display: none;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.premium-search-overlay.active {
    display: block;
}

.premium-search-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    padding-top: 10px;
}

/* 🛠️ Glowing Search Bar - Fixed Padding */
.premium-search-bar {
    display: flex;
    align-items: center;
    background: #111827;
    border: 2px solid #a855f7;
    border-radius: 30px;
    padding: 12px 18px; /* Padding thodi kam ki */
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), inset 0 0 15px rgba(168, 85, 247, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.premium-search-bar:focus-within {
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7), inset 0 0 20px rgba(168, 85, 247, 0.2);
    border-color: #d946ef;
}

.premium-search-bar .search-icon {
    color: #a855f7;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0; /* Icon ko shrink hone se roka */
}

/* 🛠️ FIX: Input field ko shrink hone diya taaki X button bahar na nikle */
.premium-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    min-width: 0; /* Ye sabse important hai */
    width: 100%;
}

.premium-search-bar input::placeholder {
    color: #6b7280;
}

/* 🛠️ FIX: Close button ko fixed size aur proper space diya */
.premium-search-bar .close-search-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0; /* Button ko shrink hone se roka */
    margin-left: 8px; /* Input aur X button ke beech thodi jagah */
    transition: all 0.2s ease;
}

.premium-search-bar .close-search-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Baaki saare sections (Trending, Popular, etc.) waise hi rahenge */
.search-section {
    margin-bottom: 25px;
}

.search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-header a {
    font-size: 12px;
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
}

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

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pill-tag.recent {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.pill-tag.recent:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
    color: #fff;
}

.pill-tag.trending {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.pill-tag.trending:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
}

.pill-tag i {
    font-size: 12px;
}

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

.search-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.search-anime-card {
    width: 130px;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
}

.search-anime-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-anime-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.search-anime-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #888;
}

.search-anime-meta .rating {
    color: #f1c40f;
    font-weight: 600;
}
/* ========================================== */
/* 🛠️ WATCH PAGE CSS (Video Player, Servers) 🛠️ */
/* ========================================== */

/* PC वीडियो प्लेयर साइज़ फिक्स */
.video-section-wrapper {
    width: 100%;
    max-width: 1000px; /* PC पर वीडियो इससे बड़ा नहीं होगा */
    margin: 0 auto; /* स्क्रीन के बीच में रखेगा */
}

.video-player-crunchy {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px; /* PC पर सुंदर गोल कोने */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.video-player-crunchy iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 🛠️ मोबाइल के लिए फिक्स (ताकि वीडियो फुल स्क्रीन दिखे और काली लाइनें न आएं) */
@media (max-width: 768px) {
    .video-section-wrapper {
        padding: 0 !important; /* साइड का पैडिंग हटा दिया */
        max-width: 100%; 
    }
    .video-player-crunchy {
        border-radius: 0; /* मोबाइल पर गोल कोने हटा दिए ताकि फुल स्क्रीन फील आए */
    }
}

/* सर्वर बटन्स (Server 1, Server 2) */
.server-selection-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 15px;
    flex-wrap: wrap;
}
.server-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.server-btn i { font-size: 12px; }
.server-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.server-btn.active { 
    background: #a855f7 !important; 
    color: #fff !important; 
    border-color: #a855f7 !important; 
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important; 
}

/* सीज़न ड्रॉपडाउन */
.season-dropdown-wrapper {
    position: relative;
    z-index: 100;
    margin-bottom: 20px;
}
.season-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #1a1a24;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    z-index: 9999;
    overflow-y: auto;
    max-height: 250px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.season-dropdown-menu::-webkit-scrollbar { width: 6px; }
.season-dropdown-menu::-webkit-scrollbar-track { background: #1a1a24; }
.season-dropdown-menu::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 10px; }
/* ========================================== */
/* 🚀 ULTRA SMOOTH SCROLLING & PERFORMANCE FIXES 🚀 */
/* ========================================== */

/* 1. नेटिव स्मूथ स्क्रॉलिंग (iOS और Android के लिए) */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS Safari के लिए */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 2. हार्डवेयर एक्सेलेरेशन (GPU को एक्टिवेट करने के लिए) */
.glass-header, 
.glass-bottom-nav, 
.anime-card, 
.episode-item-crunchy,
.telegram-float-btn {
    transform: translateZ(0); /* ये ब्राउज़र को बोलता है कि GPU का इस्तेमाल करो */
    will-change: transform, scroll-position;
    backface-visibility: hidden;
}

/* 3. Content Visibility (ये सबसे बड़ा जादू है!) */
/* जो सेक्शन स्क्रीन पर नहीं दिख रहे, ब्राउज़र उन्हें रेंडर करना बंद कर देगा */
.app-section, 
.anime-row, 
.episodes-list-crunchy {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px; /* ट्रैकिंग साइज़ ताकि स्क्रॉल बार न कूदे */
}

/* 4. बैकड्रॉप फिल्टर (Glass Effect) को हल्का करना */
/* मोबाइल पर बहुत ज्यादा Blur (धुंधलापन) स्क्रॉल को अटकाता है */
@media (max-width: 768px) {
    .glass-header, .glass-bottom-nav {
        -webkit-backdrop-filter: blur(8px) !important;
        backdrop-filter: blur(8px) !important;
    }
}

/* 5. इमेज रेंडरिंग फास्ट करना */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 6. अनचाहे एनीमेशन्स को रोकना */
* {
    -webkit-tap-highlight-color: transparent; /* क्लिक करने पर नीला बॉक्स न आए */
}
/* =====================================================
   TOONSTREAM STYLE PLAY OVERLAY EFFECT (ONLY ON TOUCH/HOVER)
   ===================================================== */

/* Image Wrapper */
.anime-card-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2 / 3; 
}

.anime-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Dark Overlay (Default me hidden rahega) */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Normally hidden */
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* White Circle Play Button */
.play-button {
    width: 50px;
    height: 50px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 20px;
    padding-left: 4px; /* Play icon ko center karne ke liye */
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* 🛠️ Hover Effects (Desktop aur Mobile Touch dono ke liye) */
.anime-card:hover .play-overlay,
.anime-card:active .play-overlay {
    opacity: 1; /* Touch ya Hover karne par dikhega */
}

.anime-card:hover .anime-card-image-wrapper img,
.anime-card:active .anime-card-image-wrapper img {
    transform: scale(1.08); /* Image thodi zoom hogi */
}

.anime-card:hover .play-button,
.anime-card:active .play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
/* =====================================================
   EPISODE LANGUAGE BADGE STYLING
   ===================================================== */

.ep-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 8px;
}

.ep-lang-tag {
    background: rgba(163, 113, 247, 0.15); 
    color: #d1b3ff; 
    border: 1px solid rgba(163, 113, 247, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto; 
}

.ep-lang-tag i {
    font-size: 12px;
}

@media (max-width: 480px) {
    .ep-lang-tag {
        margin-left: 0; 
        margin-top: 4px;
        width: fit-content;
    }
}
/* =====================================================
   BOTTOM ANIME ROW (Below A-Z)
   ===================================================== */

.bottom-anime-row {
    margin-top: 20px;
    padding: 0 10px;
}

.bottom-anime-row .anime-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns, taaki 4 anime 2x2 grid banayein */
    gap: 15px;
}

.bottom-anime-row .anime-card {
    background: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.bottom-anime-row .anime-card:hover {
    transform: translateY(-3px);
}

.bottom-anime-row .anime-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
}

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

.bottom-anime-row .anime-title {
    font-size: 14px;
    margin: 8px 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.bottom-anime-row .anime-meta {
    font-size: 12px;
    color: #f1c40f;
    font-weight: bold;
}
/* =====================================================
   FIXED & RESPONSIVE COMMENTS + ANIMEKA CSS
   ===================================================== */

/* COMMENTS WRAPPER */
.comments-wrapper {
    background: rgba(20, 15, 25, 0.6) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-top: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.comments-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 10px !important;
}

.comments-header h3 {
    font-size: 16px !important;
    color: #fff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.comments-header h3 i { color: #a855f7 !important; }
.comments-sort { font-size: 12px !important; color: #aaa !important; }

/* ADD COMMENT BOX (Proper Flex) */
.add-comment-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 6px 10px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* AVATARS (Bulletproof Size) */
.comment-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important; /* Prevents shrinking/growing */
}

.comment-input {
    flex-grow: 1 !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    width: 100% !important;
}

/* SEND BUTTON (Fixes overflow) */
.comment-submit-btn {
    background: #a855f7 !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.comment-submit-btn i { font-size: 14px !important; margin: 0 !important; padding: 0 !important; }

/* COMMENT ITEMS */
.comment-list { display: flex !important; flex-direction: column !important; gap: 15px !important; }
.comment-item { display: flex !important; gap: 12px !important; align-items: flex-start !important; }
.comment-content { flex-grow: 1 !important; min-width: 0 !important; }

.comment-user { font-size: 14px !important; font-weight: 600 !important; color: #fff !important; display: flex !important; align-items: center !important; gap: 5px !important; }
.verified-tick { color: #a855f7 !important; font-size: 11px !important; }
.comment-time { font-size: 11px !important; color: #888 !important; margin-bottom: 4px !important; }
.comment-text { font-size: 13px !important; color: #ddd !important; margin: 0 0 8px 0 !important; line-height: 1.4 !important; }
.comment-actions { display: flex !important; gap: 15px !important; font-size: 12px !important; color: #888 !important; }

.load-more-comments {
    display: block !important; width: 100% !important; margin-top: 20px !important; padding: 10px !important;
    background: transparent !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; color: #a855f7 !important;
    border-radius: 10px !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
}

/* =====================================================
   ANIMEKA (HORIZONTAL SCROLL FIX)
   ===================================================== */

.animeka-section {
    background: rgba(20, 15, 25, 0.6) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-top: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.animeka-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 12px !important; }
.animeka-header h3 { font-size: 16px !important; color: #fff !important; margin: 0 !important; }
.animeka-header a { color: #a855f7 !important; text-decoration: none !important; font-size: 13px !important; font-weight: 600 !important; }

/* HORIZONTAL SCROLL CONTAINER */
.animeka-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important; 
    width: 100% !important;
    box-sizing: border-box !important;
}
.animeka-scroll::-webkit-scrollbar { display: none !important; }

/* FIXED WIDTH CARDS (So they don't stretch) */
.animeka-card {
    flex: 0 0 110px !important; /* Fixed width */
    max-width: 110px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.animeka-card img {
    width: 110px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.animeka-card h4 {
    font-size: 12px !important;
    color: #fff !important;
    margin: 6px 0 2px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.animeka-card .rating {
    font-size: 11px !important;
    color: #f1c40f !important;
    font-weight: 600 !important;
}
/* =====================================================
   LIVE COMMENTS SECTION STYLES
   ===================================================== */

.comments-wrapper {
    background: rgba(20, 15, 25, 0.6) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-top: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.comments-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 10px !important;
}

.comments-header h3 {
    font-size: 16px !important;
    color: #fff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.comments-header h3 i { color: #a855f7 !important; }

/* ADD COMMENT BOX */
.add-comment-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 6px 10px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* AVATARS (Size lock kiya gaya hai) */
.comment-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.comment-input {
    flex-grow: 1 !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    outline: none !important;
    width: 100% !important;
}
.comment-input::placeholder { color: #888 !important; }

/* SEND BUTTON (Overflow fix) */
.comment-submit-btn {
    background: #a855f7 !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: 0.3s !important;
}
.comment-submit-btn:hover { background: #9333ea !important; }
.comment-submit-btn i { font-size: 14px !important; margin: 0 !important; padding: 0 !important; }

/* COMMENT ITEMS */
.comment-list { display: flex !important; flex-direction: column !important; gap: 15px !important; }
.comment-item { display: flex !important; gap: 12px !important; align-items: flex-start !important; }
.comment-content { flex-grow: 1 !important; min-width: 0 !important; }

.comment-user { font-size: 14px !important; font-weight: 600 !important; color: #fff !important; display: flex !important; align-items: center !important; gap: 5px !important; }
.verified-tick { color: #a855f7 !important; font-size: 11px !important; }
.comment-time { font-size: 11px !important; color: #888 !important; margin-bottom: 4px !important; }
.comment-text { font-size: 13px !important; color: #ddd !important; margin: 0 0 8px 0 !important; line-height: 1.4 !important; }

.comment-actions { display: flex !important; gap: 15px !important; font-size: 12px !important; color: #888 !important; }
.comment-actions span { display: flex !important; align-items: center !important; gap: 5px !important; cursor: pointer !important; transition: color 0.3s !important; }
.comment-actions span:hover { color: #a855f7 !important; }

/* =====================================================
   ANIMEKA (HORIZONTAL SCROLL FIX)
   ===================================================== */

.animeka-section {
    background: rgba(20, 15, 25, 0.6) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    margin-top: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.animeka-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 12px !important; }
.animeka-header h3 { font-size: 16px !important; color: #fff !important; margin: 0 !important; }
.animeka-header a { color: #a855f7 !important; text-decoration: none !important; font-size: 13px !important; font-weight: 600 !important; }

/* HORIZONTAL SCROLL CONTAINER */
.animeka-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding-bottom: 10px !important;
    scrollbar-width: none !important; /* Firefox */
    width: 100% !important;
    box-sizing: border-box !important;
}
.animeka-scroll::-webkit-scrollbar { display: none !important; /* Chrome */ }

/* FIXED WIDTH CARDS */
.animeka-card {
    flex: 0 0 110px !important; /* Fixed width for scrolling */
    max-width: 110px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease !important;
}
.animeka-card:hover { transform: translateY(-5px) !important; }

.animeka-card img {
    width: 110px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.animeka-card h4 {
    font-size: 12px !important;
    color: #fff !important;
    margin: 6px 0 2px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.animeka-card .rating {
    font-size: 11px !important;
    color: #f1c40f !important;
    font-weight: 600 !important;
}
/* ===================================================== */
/* 🛠️ NEW PREMIUM EPISODE CARD DESIGN (From Screenshot) */
/* ===================================================== */

/* The main card container */
.ep-card-new {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(25, 25, 35, 0.8) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left side: Thumbnail */
.ep-thumb-new {
    position: relative !important;
    width: 130px !important;
    min-width: 130px !important;
    height: 75px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.ep-thumb-new img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Play icon in the middle of thumbnail */
.play-overlay-new {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.3) !important;
}

.play-overlay-new i {
    color: #fff !important;
    font-size: 20px !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)) !important;
}

/* Center: Text Details */
.ep-details-new {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 0% !important; /* Crucial for allowing text to fit */
    min-width: 0 !important; /* Prevents text from spilling over */
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Title row */
.ep-title-row-new {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.ep-num-new {
    color: #a855f7 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.ep-name-new {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
}

/* Meta info */
.ep-meta-row-new {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #aaa !important;
    margin-bottom: 6px !important;
    width: 100% !important;
}
.ep-meta-row-new i { font-size: 12px !important; margin-right: 3px !important; }
.meta-divider { color: #555 !important; margin: 0 2px !important; }

/* Multi Audio Tag */
.ep-tag-new {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: rgba(168, 85, 247, 0.15) !important;
    color: #d8b4fe !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    width: fit-content !important;
}

/* Right side: Play Button */
.ep-action-new {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 5px !important;
}

.play-btn-new {
    width: 42px !important;
    height: 42px !important;
    background: #a855f7 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 16px !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important;
    padding-left: 3px !important; /* Center the play icon perfectly */
    transition: transform 0.2s !important;
}
.play-btn-new:hover {
    transform: scale(1.1) !important;
}

/* Responsive adjustments for very small phones */
@media (max-width: 360px) {
    .ep-thumb-new { width: 100px !important; min-width: 100px !important; height: 60px !important; }
    .ep-name-new { font-size: 13px !important; }
    .ep-num-new { font-size: 13px !important; }
    .play-btn-new { width: 36px !important; height: 36px !important; font-size: 14px !important; }
}
/* ===================================================== */
/* 🛠️ SHOW HORIZONTAL SCROLLBAR FOR ALL ANIME ROWS */
/* ===================================================== */

/* 1. Settings for Firefox */
.anime-row {
    scrollbar-width: thin !important;
    scrollbar-color: #a855f7 rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 18px !important; /* स्क्रॉलबार के लिए थोड़ी जगह */
}

/* 2. Settings for Chrome, Edge, Safari */
.anime-row::-webkit-scrollbar {
    display: block !important; 
    height: 6px !important; /* स्क्रॉलबार की मोटाई */
}

.anime-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    margin: 0 10px !important; /* दाएं-बाएं थोड़ी जगह */
}

.anime-row::-webkit-scrollbar-thumb {
    background: #a855f7 !important; /* तेरे वेबसाइट का पर्पल कलर */
    border-radius: 10px !important;
}

.anime-row::-webkit-scrollbar-thumb:hover {
    background: #d8b4fe !important; /* होवर करने पर हल्का पर्पल */
}