@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --primary-color: #ffffff;
    --accent-color: #ffffff;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 80%);
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    display: none;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 2rem;
}

.search-form {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.2rem;
    padding-right: 3rem;
    border-radius: 50px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.search-form button {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-form button:hover {
    color: var(--primary-color);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

main {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    opacity: 0.9;
}

/* Hero Section - Slider Style */
.hero {
    height: 70vh;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

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

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 60%, transparent);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    transform: translateY(30px);
    transition: transform 0.8s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Telegram Slide Specific */
.slide-telegram {
    background: linear-gradient(135deg, #0088cc, #005580) !important;
}

.slide-telegram::before {
    background: radial-gradient(circle at 70%, rgba(255,255,255,0.1), transparent) !important;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px #fff;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3rem 2rem;
}

.movie-card {
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.movie-card:hover .movie-poster-wrapper {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-info {
    padding: 0;
    background: transparent;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #fff;
}

.movie-meta {
    font-size: 0.85rem;
    color: #666;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #fbbf24;
    font-weight: 600;
}

.movie-genre {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

/* Single Movie Page */
.movie-detail-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.detail-poster {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detail-synopsis {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    color: var(--text-main);
    transform: translateX(-5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .movie-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        border-radius: 20px;
    }

    .detail-poster {
        max-width: 280px;
        margin: 0 auto;
        display: block;
        aspect-ratio: 2/3;
        object-fit: cover;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    
    .detail-title {
        font-size: 2rem;
        word-break: break-word;
        text-align: center;
    }

    .detail-meta {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.95rem;
        gap: 1rem;
    }

    .detail-synopsis {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .detail-synopsis p {
        color: rgba(255, 255, 255, 0.8);
    }

    .share-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .share-container span {
        text-align: center;
    }

    .share-btn {
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero {
        height: 50vh;
        min-height: 400px;
        padding: 0;
        border-radius: 20px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    background: #fff;
}

.btn-danger {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Data Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

/* Skeleton Loader */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* New Badge */
.badge-new {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Share Buttons */
.share-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.share-tg { background: #0088cc; color: white; }
.share-wa { background: #25d366; color: white; }
.share-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* Join Our Channels Box */
.join-channels-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
}
.join-channels-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.channel-btn:hover { transform: translateY(-2px); }
.channel-btn-tg { background: #0088cc; }
.channel-btn-tg:hover { box-shadow: 0 4px 18px rgba(0, 136, 204, 0.4); }
.channel-btn-wa { background: #25D366; }
.channel-btn-wa:hover { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.page-link.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.page-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Request Page */
.request-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--primary-color);
}

/* Mobile Fixes for Android/iPhone */
@media (max-width: 600px) {
    header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 5%;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.4rem;
        flex: initial;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .search-form input {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    header .btn-small {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        order: 2;
    }

    .category-menu {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .category-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .category-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.5rem 1rem;
    }

    .movie-title {
        font-size: 0.85rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        margin-right: 0 !important;
    }
}


/* Main Footer */
.main-footer {
    margin-top: 8rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 4rem;
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.footer-badges .badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Mobile Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-description {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Live Search Results */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.search-result-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Trending Section (Horizontal Scroll) */
.trending-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2.5rem;
    scrollbar-width: none;
    align-items: start;
}

.trending-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.trending-card {
    width: 100%;
}

.trending-card .movie-poster-wrapper {
    width: 180px !important;
    height: 270px !important;
    padding-top: 0 !important;
    display: block;
    position: relative;
    overflow: hidden;
}

.trending-card .movie-title {
    width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Love Button */
.love-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: white;
}

.love-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

.love-btn.loved {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.love-btn ion-icon {
    font-size: 1.2rem;
}

/* Accordion UX for Episodes */
.season-accordion {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.season-header {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.season-header:hover {
    background: rgba(255,255,255,0.05);
}

.season-header.active {
    background: rgba(255,255,255,0.08);
    border-bottom: 1px solid var(--glass-border);
}

.season-content {
    display: none;
    padding: 1rem;
}

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

/* Dashboard Premium Layout */
.dashboard-body {
    background: #020205;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Nav section label (divider with text) */
.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    padding: 0.8rem 1.2rem 0.3rem;
    margin-top: 0.5rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
    width: calc(100% - 280px);
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none;
    margin-bottom: 3rem;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item ion-icon {
    font-size: 1.4rem;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: var(--primary-color);
    color: #000;
}

.nav-item.active ion-icon {
    color: #000;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.user-info-sidebar {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }
    .sidebar-logo span { display: none; }
    .nav-item span { display: none; }
    .main-content { margin-left: 80px; width: calc(100% - 80px); }
    .user-details { display: none; }
}

@media (max-width: 768px) {
    .sidebar { 
        transform: translateX(-100%); 
        width: 280px;
        padding: 2rem 1.5rem;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    .sidebar-logo span { display: inline; }
    .nav-item span { display: inline; }
    .user-details { display: flex; }
    
    .main-content { 
        margin-left: 0; 
        width: 100%; 
        padding: 1.5rem; 
        padding-top: 5rem;
    }
    
    .sidebar.open { 
        transform: translateX(0); 
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .admin-header .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-container {
        padding: 1rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 15px;
    }

    .admin-table thead {
        display: none; /* Hide headers on mobile for a card-like view or horizontal scroll */
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        position: relative;
    }

    .admin-table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.75rem;
        text-align: left;
    }

    .admin-table td:first-child {
        justify-content: center;
        padding-bottom: 1rem;
    }

    .admin-table td:first-child::before { display: none; }
    
    .admin-table img {
        width: 80px;
        height: 120px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
        z-index: 1001;
        background: var(--primary-color);
        color: #000;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        cursor: pointer;
    }

    .sidebar-close {
        display: flex !important;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: var(--text-muted);
        font-size: 1.8rem;
        cursor: pointer;
    }
}

/* Base states for mobile components (hidden on desktop) */
.mobile-menu-toggle, .sidebar-close {
    display: none;
}

/* Utilities */
.rotating {
    animation: rotate 1.5s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ==========================================================================
   GLOBAL RESPONSIVENESS REFINEMENTS
   ========================================================================== */

@media (max-width: 1200px) {
    .movie-detail-container { gap: 2rem; }
    .detail-title { font-size: 3rem; }
}

@media (max-width: 992px) {
    main { padding: 2rem 4%; }
    .hero { height: 60vh; }
    .hero-title { font-size: 3.5rem; letter-spacing: -1.5px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem 1.5rem; }
    
    /* Dashboard Specific */
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 1rem 5%; gap: 1rem; }
    .logo { font-size: 1.5rem; }
    .search-form { max-width: none; width: 100%; order: 3; }
    .header-actions { order: 2; }
    
    .hero { height: 50vh; margin-bottom: 3rem; border-radius: 15px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.9rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
    .movie-title { font-size: 0.9rem; }
    
    .admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .admin-container { padding: 1rem; border-radius: 12px; }
    
    .form-container { padding: 1.5rem; border-radius: 15px; }
    .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero { height: 40vh; }
    .hero-title { font-size: 2rem; letter-spacing: -1px; }
    .hero-dots { bottom: 1rem; }
    
    .category-menu { gap: 0.8rem; }
    .category-link { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.8rem; }
    .movie-poster-wrapper { border-radius: 8px; }
    
    .dashboard-stats { grid-template-columns: 1fr; }
    .admin-table th, .admin-table td { padding: 0.8rem 0.5rem; font-size: 0.8rem; }
    
    /* Request Form */
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    
    .pagination { gap: 0.3rem; }
    .page-link { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* Landscape orientation optimization for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { height: 80vh; }
    header { padding: 0.5rem 5%; }
}
