:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --secondary: #0f79af;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border: #333333;
    --success: #46d369;
    --warning: #ffa53d;
    --gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, #E50914, #B81D24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

/* Live Search Results */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 2px;
    display: block;
}

.search-result-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #888;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}


.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(to bottom, transparent, var(--bg-dark)),
        url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Section */
.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.8;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.content-card-info {
    padding: 1rem;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-star {
    color: #ffd700;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Details Page */
.details-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 2rem;
}

.details-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
}

.details-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    transform: translateY(-100px);
}

.details-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-poster {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.details-poster img {
    width: 100%;
    height: auto;
}

.details-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.details-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.details-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.overview {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.details-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Seasons */
.seasons-container {
    margin-top: 3rem;
}

.season-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Mobile: Full width season card */
@media (max-width: 768px) {
    .season-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }

    .season-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.season-card:hover {
    background: var(--bg-card-hover);
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.episode-card {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
}

.episode-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.episode-info {
    padding: 1rem;
}

.episode-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.episode-overview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: Episodes Horizontal Scroll */
@media (max-width: 768px) {
    .season-card {
        position: relative;
    }

    .episodes-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        grid-template-columns: none;
        gap: 0.75rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .episodes-grid::-webkit-scrollbar {
        display: none;
    }

    .episode-card {
        flex: 0 0 auto;
        width: calc(100vw - 6rem);
        max-width: 300px;
        min-height: auto;
        scroll-snap-align: start;
    }

    .episode-card img {
        height: 180px;
    }

    .episode-info {
        padding: 0.75rem;
    }

    .episode-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .episode-overview {
        font-size: 0.8rem;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .episode-nav-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.8);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 50;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .episode-nav-btn:active {
        background: rgba(229, 9, 20, 0.9);
        transform: translateY(-50%) scale(0.95);
    }

    .episode-nav-left {
        left: 5px;
    }

    .episode-nav-right {
        right: 5px;
    }
}

/* Desktop: Hide episode navigation arrows */
@media (min-width: 769px) {
    .episode-nav-btn {
        display: none;
    }
}

/* Cast Section */
.cast-section {
    margin: 2rem 0;
}

.cast-section h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cast-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cast-grid::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 auto;
    width: 140px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.cast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.cast-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cast-info {
    padding: 0.75rem;
}

.cast-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.cast-character {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: Cast Section */
@media (max-width: 768px) {
    .cast-grid {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cast-grid::-webkit-scrollbar {
        display: none;
    }

    .cast-card {
        width: 120px;
    }

    .cast-card img {
        height: 160px;
    }

    .cast-name {
        font-size: 0.85rem;
    }

    .cast-character {
        font-size: 0.75rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-toggle {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.form-toggle a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-search {
        margin: 0;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .details-main {
        grid-template-columns: 1fr;
    }

    /* Horizontal scroll for content on mobile */
    .content-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    /* Hide scrollbar completely */
    .content-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .content-card {
        flex: 0 0 150px;
        min-width: 150px;
        scroll-snap-align: start;
    }

    .content-card img {
        height: 225px;
    }
}

/* Providers */
.providers {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.provider-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

/* Notification Center */
.notification-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: var(--bg-card-hover);
}

.notification-item.unread {
    background: rgba(229, 9, 20, 0.1);
}

.notification-message {
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Desktop Profile Dropdown */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
}

/* Avatar container with level badge */
.user-avatar-container {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.user-level-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #1a1a1a;
    z-index: 10;
    padding: 0;
    min-width: auto;
}

.user-name-desktop {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item i {
    font-size: 1.1rem;
}

/* Settings Page */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.settings-container h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.settings-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-photo-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
}

.profile-photo-preview.initial-avatar {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    border: 4px solid var(--border);
}

.settings-form-row {
    margin-bottom: 1.5rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .settings-container {
        padding: 1rem;
    }

    .profile-photo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-section {
        padding: 1.5rem;
    }
}

/* Top 10 Section - Netflix Style */
.content-section {
    padding: 0 2rem;
    /* Add padding to prevent number cutoff */
}

.top10-container {
    position: relative;
}

.top10-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.top10-nav-btn:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.top10-nav-left {
    left: -25px;
}

.top10-nav-right {
    right: -25px;
}

.top10-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding: 1rem 0 3rem 0;
    /* Extra bottom padding for titles */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox - hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge - hide scrollbar */
}

.top10-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera - hide scrollbar */
}

.top10-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.top10-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.top10-rank {
    font-size: 13rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Impact', 'Arial Black', sans-serif;
    user-select: none;
    pointer-events: none;
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 2px var(--text-secondary);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8));
    margin-right: -20px;
    z-index: 1;
}

.top10-poster {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    z-index: 2;
}

.top10-card:hover .top10-poster {
    box-shadow: 0 8px 35px rgba(229, 9, 20, 0.5);
}

.top10-poster img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    display: block;
}

.top10-info {
    padding: 0.5rem 0;
    width: 150px;
}

.top10-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.top10-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 500;
}

.top10-rating i {
    font-size: 0.85rem;
}

/* Mobile Responsive for Top 10 */
@media (max-width: 768px) {
    .content-section {
        padding: 0 1rem;
    }

    .top10-nav-btn {
        display: none;
        /* Hide arrows on mobile */
    }

    .top10-rank {
        font-size: 10rem;
        margin-right: -15px;
    }

    .top10-poster img {
        width: 120px;
        height: 180px;
    }

    .top10-info {
        width: 120px;
    }

    .top10-title {
        font-size: 0.75rem;
    }

    .top10-rating {
        font-size: 0.75rem;
    }
}

/* AI Robot Result Card - Premium Design */
.ai-card {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    z-index: 0;
    transform: scale(1.1);
    /* Prevent blur edges */
}

.ai-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 3rem 6rem;
    width: 100%;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.ai-card-poster {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.ai-card-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.ai-card-poster:hover {
    transform: scale(1.02);
}

.ai-card-info {
    flex: 1;
    color: white;
    text-align: left;
}

.ai-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ai-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.ai-badge-match {
    background: rgba(70, 211, 105, 0.2);
    color: #46d369;
    border: 1px solid rgba(70, 211, 105, 0.3);
}

.ai-badge-year {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-badge-rating {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ai-card-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ai-card-overview {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 800px;
}

.ai-card-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.ai-btn-primary {
    flex: 2;
    /* Main button takes more space */
    padding: 1rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.ai-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6);
}

.ai-btn-secondary {
    flex: 1;
    /* Secondary buttons share remaining space */
    padding: 1rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.ai-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for AI Card */
@media (max-width: 768px) {
    .ai-card {
        min-height: auto;
    }

    .ai-card-content {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.95) 60%);
    }

    .ai-card-poster {
        width: 160px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .ai-card-info {
        text-align: center;
    }

    .ai-card-meta {
        justify-content: center;
    }

    .ai-card-title {
        font-size: 2rem;
    }

    .ai-card-overview {
        font-size: 1rem;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }

    .ai-card-actions {
        flex-direction: column;
        width: 100%;
    }

    .ai-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Top 10 Navigation Buttons & Sliders */
.top10-container {
    position: relative;
    padding: 0 100px;
}

/* Standard Content Grid (5 items per row) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0;
    /* Remove slider padding */
}

/* Responsive Grid */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-card {
    width: 100%;
    min-width: 0;
}


.nav-btn-prev,
.nav-btn-next {
    position: absolute;
    top: 40%;
    /* Slightly higher to center on posters */
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.85);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    backdrop-filter: blur(4px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.nav-btn-prev {
    left: 5px;
}

.nav-btn-next {
    right: 5px;
}

.nav-btn-prev:hover,
.nav-btn-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.nav-btn-prev i,
.nav-btn-next i {
    font-size: 1.5rem;
}

/* Robot Modal Container */
.robot-modal-container {
    width: 95vw;
    max-width: 1600px;
    /* min-width: 1200px;  REMOVED FOR RESPONSIVENESS */
    position: relative;
    margin: 0 auto;
    pointer-events: auto;
}



/* Content Robot Promo Card */
.robot-promo-card {
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.robot-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.robot-promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #7928ca, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.robot-promo-text p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 500px;
}

.robot-promo-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}
/* Responsive Logo Sizing */
.site-logo {
    max-height: 60px;
    width: auto;
}
