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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled,
.navbar.solid {
    background: #141414;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #e50914;
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.search-input {
    width: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-input.active {
    width: 250px;
    opacity: 1;
    margin-left: 10px;
}

.search-input::placeholder {
    color: #999;
}

.profile img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    position: relative;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(20,20,20,0.9) 0%, rgba(20,20,20,0.4) 50%, transparent 100%),
                linear-gradient(to top, #141414 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-play {
    background: #fff;
    color: #000;
}

.btn-play:hover {
    background: rgba(255,255,255,0.8);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
}

.btn-add {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-add:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* Main Content */
.main-content {
    position: relative;
    margin-top: -150px;
    padding: 0 60px 60px;
    z-index: 10;
}

.main-content.no-hero {
    margin-top: 0;
    padding-top: 80px;
}

/* Movie Row */
.movie-row {
    margin-bottom: 40px;
}

.movie-row h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.clickable-header {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.clickable-header:hover {
    color: #46d369;
}

.header-arrow {
    margin-left: 8px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clickable-header:hover .header-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.movie-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.movie-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
}

.movie-list::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 auto;
    width: 150px;
    height: 225px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.15);
    z-index: 100;
}

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

.movie-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.movie-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-rating {
    font-size: 0.8rem;
    color: #46d369;
}

.movie-card-type {
    font-size: 0.7rem;
    color: #999;
    margin-top: 3px;
}

/* My List Empty State */
.mylist-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* Browse Page */
#browseContent {
    /* Styles handled by .main-content.no-hero */
}

.browse-header {
    margin-bottom: 30px;
}

.browse-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.browse-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 15px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: #666;
}

.filter-select:focus {
    outline: none;
    border-color: #e50914;
}

.browse-results {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}

.browse-grid .movie-card {
    width: 100%;
    height: 270px;
}

.browse-grid .movie-card img {
    object-fit: cover;
}

.browse-loading {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.btn-load-more {
    margin-top: 30px;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #999;
}

.browse-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

.browse-grid .movie-card-year {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .browse-controls {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

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

    .browse-grid .movie-card {
        height: 210px;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100%;
    background: rgba(20, 20, 20, 0.7);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-slider:hover .slider-btn {
    opacity: 1;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.slider-btn:hover {
    background: rgba(20, 20, 20, 0.9);
}

/* Search Results */
.search-results {
    min-height: 50vh;
}

.search-results h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.search-grid .movie-card {
    width: 100%;
    height: 300px;
}

.search-grid .movie-card img {
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #181818;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #181818;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #333;
}

.modal-backdrop {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, #181818);
}

.modal-info {
    padding: 0 50px 50px;
    margin-top: -100px;
    position: relative;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-rating {
    color: #46d369;
    font-weight: 600;
}

.modal-overview {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
}

.modal-details {
    margin-bottom: 25px;
    color: #999;
}

.modal-details p {
    margin-bottom: 8px;
}

.modal-details strong {
    color: #777;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-trailer {
    margin-top: 20px;
}

.modal-trailer iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

/* Watch Providers */
.watch-providers {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.watch-providers h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.providers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.provider-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.provider-section-title {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provider-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.provider-icon:hover {
    transform: scale(1.1);
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #46d369;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
}

.provider-link:hover {
    text-decoration: underline;
}

/* Release Dates */
.release-dates {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.release-dates h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.release-dates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.release-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    gap: 10px;
}

.release-type {
    font-size: 0.85rem;
    color: #46d369;
    font-weight: 500;
    flex: 1;
}

.release-date {
    font-size: 0.9rem;
    color: #fff;
}

.release-country {
    font-size: 0.75rem;
    color: #999;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Clickable Tags */
.clickable-tags {
    display: inline;
}

.clickable-tag {
    color: #46d369;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-tag:hover {
    color: #5ae07a;
    text-decoration: underline;
}

/* Person Modal */
.person-modal-content {
    max-width: 1000px;
}

.person-modal-body {
    padding: 30px;
}

.person-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.person-photo {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 2rem;
    margin-bottom: 15px;
}

.person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.95rem;
}

.person-meta span:not(:empty)::before {
    content: '';
}

.person-meta span:not(:first-child):not(:empty)::before {
    content: '•';
    margin-right: 15px;
}

.person-bio {
    color: #ccc;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.person-bio::-webkit-scrollbar {
    width: 6px;
}

.person-bio::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.person-filmography h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.filmography-grid::-webkit-scrollbar {
    width: 6px;
}

.filmography-grid::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.filmography-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.filmography-item:hover {
    transform: scale(1.05);
}

.filmography-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
}

.filmography-item-title {
    font-size: 0.85rem;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filmography-item-year {
    font-size: 0.75rem;
    color: #999;
}

.filmography-item-character {
    font-size: 0.75rem;
    color: #46d369;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .person-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .person-photo {
        width: 150px;
        height: 225px;
    }

    .person-meta {
        justify-content: center;
    }

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

    .filmography-item img {
        height: 150px;
    }
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 225px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        padding: 15px 30px;
    }

    .hero {
        padding: 0 30px;
    }

    .main-content {
        padding: 0 30px 60px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    .navbar-left {
        gap: 15px;
    }

    /* Mobile navigation menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #141414;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        border-bottom: 1px solid #333;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    /* Mobile menu overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Search on mobile */
    .search-input.active {
        width: 150px;
    }

    /* Hero adjustments */
    .hero {
        height: 70vh;
        padding: 0 20px;
    }

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

    .hero-description {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    /* Main content */
    .main-content {
        padding: 0 20px 60px;
        margin-top: -100px;
    }

    /* Movie cards */
    .movie-card {
        width: 130px;
        height: 195px;
    }

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

    /* Always show card info on touch devices */
    .movie-card-info {
        opacity: 1;
        padding: 8px;
    }

    .movie-card-title {
        font-size: 0.75rem;
    }

    .movie-card-rating {
        font-size: 0.7rem;
    }

    /* Movie row */
    .movie-row h3 {
        font-size: 1.2rem;
    }

    /* Browse page */
    .browse-controls {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

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

    .browse-grid .movie-card {
        height: 210px;
    }

    /* Modal */
    .modal {
        padding: 15px;
    }

    .modal-content {
        max-height: 90vh;
    }

    .modal-backdrop {
        height: 300px;
    }

    .modal-info {
        padding: 0 20px 30px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.9rem;
    }

    .modal-overview {
        font-size: 0.9rem;
    }

    .modal-buttons {
        flex-wrap: wrap;
    }

    .modal-trailer iframe {
        height: 250px;
    }

    /* Watch providers */
    .watch-providers {
        padding: 15px;
    }

    .provider-icon {
        width: 40px;
        height: 40px;
    }

    /* Person modal */
    .person-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .person-photo {
        width: 150px;
        height: 225px;
    }

    .person-name {
        font-size: 1.5rem;
    }

    .person-meta {
        justify-content: center;
        font-size: 0.85rem;
    }

    .person-bio {
        font-size: 0.9rem;
        max-height: 150px;
    }

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

    .filmography-item img {
        height: 150px;
    }

    .filmography-item-title {
        font-size: 0.75rem;
    }

    .main-content.no-hero {
        padding-top: 70px;
    }

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

    .search-grid .movie-card {
        height: 210px;
    }

    .browse-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .search-input.active {
        position: absolute;
        right: 0;
        top: 50px;
        width: calc(100vw - 30px);
    }

    .profile img {
        width: 28px;
        height: 28px;
    }

    .hero {
        height: 60vh;
        padding: 0 15px;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    .main-content {
        padding: 0 10px 40px;
        margin-top: -60px;
    }

    .movie-row {
        margin-bottom: 25px;
    }

    .movie-row h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .movie-card {
        width: 110px;
        height: 165px;
    }

    .movie-list {
        gap: 6px;
        padding: 10px 0;
    }

    .slider-btn {
        width: 35px;
        font-size: 1.5rem;
    }

    /* Browse on small screens */
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .browse-grid .movie-card {
        height: 180px;
    }

    .filter-select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .btn-load-more {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Modal on small screens */
    .modal {
        padding: 0;
        align-items: stretch;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }

    .modal-backdrop {
        height: 220px;
    }

    .modal-info {
        padding: 0 15px 20px;
        margin-top: -60px;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .modal-meta {
        gap: 8px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .modal-overview {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .modal-details {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .modal-buttons {
        gap: 10px;
        margin-bottom: 20px;
    }

    .modal-buttons .btn {
        flex: 1;
        justify-content: center;
    }

    .modal-trailer iframe {
        height: 200px;
    }

    /* Watch providers small screen */
    .watch-providers {
        margin: 15px 0;
        padding: 12px;
    }

    .watch-providers h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .provider-section-title {
        font-size: 0.75rem;
    }

    .provider-icons {
        gap: 8px;
    }

    .provider-icon {
        width: 36px;
        height: 36px;
    }

    /* Person modal small screen */
    .person-modal-body {
        padding: 20px 15px;
    }

    .person-photo {
        width: 120px;
        height: 180px;
    }

    .person-name {
        font-size: 1.3rem;
    }

    .person-meta {
        font-size: 0.8rem;
        gap: 10px;
    }

    .person-bio {
        font-size: 0.85rem;
        max-height: 120px;
    }

    .person-filmography h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .filmography-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 300px;
    }

    .filmography-item img {
        height: 120px;
    }

    .filmography-item-title,
    .filmography-item-year,
    .filmography-item-character {
        font-size: 0.7rem;
    }

    /* Search on small screens */
    .search-results h3 {
        font-size: 1.1rem;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .search-grid .movie-card {
        height: 180px;
    }

    /* My list empty state */
    .mylist-empty {
        padding: 40px 15px;
        font-size: 0.95rem;
    }

    .main-content.no-hero {
        padding-top: 60px;
    }
}

/* ==================== NEW FEATURES STYLES ==================== */

/* People Cards */
.people-list .movie-card,
.people-card {
    width: 150px;
    height: 225px;
    border-radius: 8px;
}

.people-list .movie-card img,
.people-card img {
    border-radius: 8px;
}

.people-card-info {
    padding: 8px;
    text-align: center;
}

.people-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.people-card-department {
    font-size: 0.75rem;
    color: #999;
}

/* Keywords */
.modal-keywords {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.modal-keywords h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

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

.keyword-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    background: #e50914;
    color: #fff;
}

/* Collection Info */
.modal-collection {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.modal-collection h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.collection-info {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.collection-info:hover {
    opacity: 0.8;
}

.collection-poster {
    width: 80px;
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
}

.collection-details-mini {
    flex: 1;
}

.collection-name-mini {
    font-size: 1rem;
    font-weight: 600;
    color: #46d369;
    margin-bottom: 5px;
}

.collection-count {
    font-size: 0.85rem;
    color: #999;
}

/* Seasons List */
.modal-seasons {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.modal-seasons h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.seasons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.season-card {
    width: 120px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.season-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.season-card-title {
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

.season-card-episodes {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

/* Reviews */
.modal-reviews {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.modal-reviews h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.review-author {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
}

.review-rating {
    background: #e50914;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.review-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    max-height: 150px;
    overflow-y: auto;
}

.review-content::-webkit-scrollbar {
    width: 4px;
}

.review-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

/* Similar & Recommendations */
.modal-similar,
.modal-recommendations {
    margin: 25px 0;
}

.modal-similar h4,
.modal-recommendations h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

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

.similar-grid .movie-card,
.recommendations-grid .movie-card {
    width: 100%;
    height: 180px;
}

/* Images Gallery */
.modal-images {
    margin: 25px 0;
}

.modal-images h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.1rem;
}

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

.image-thumb {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-thumb:hover {
    transform: scale(1.05);
}

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

/* Season Modal */
.season-modal-content {
    max-width: 900px;
}

.season-modal-body {
    padding: 30px;
}

.season-header {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.season-poster {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.season-info {
    flex: 1;
}

.season-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.season-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #999;
}

.season-overview {
    color: #ccc;
    line-height: 1.6;
}

.season-episodes h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.episode-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.episode-still {
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
    background: #333;
}

.episode-info {
    flex: 1;
}

.episode-number {
    font-size: 0.8rem;
    color: #46d369;
    margin-bottom: 5px;
}

.episode-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.episode-runtime {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.episode-overview {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Collection Modal */
.collection-modal-content {
    max-width: 1000px;
}

.collection-modal-body {
    position: relative;
}

.collection-backdrop {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.collection-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, #181818);
}

.collection-details {
    padding: 0 30px;
    margin-top: -80px;
    position: relative;
}

.collection-name {
    font-size: 2rem;
    margin-bottom: 15px;
}

.collection-overview {
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
}

.collection-movies {
    padding: 30px;
}

.collection-movies h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.collection-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.collection-movies-grid .movie-card {
    width: 100%;
    height: 240px;
}

/* Gallery Modal */
#galleryModal {
    background: rgba(0, 0, 0, 0.95);
}

.gallery-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
}

/* Content Rating Badge */
.content-rating-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #999;
    margin-left: 10px;
}

/* Network Logo */
.network-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.network-logo img {
    height: 20px;
    object-fit: contain;
}

.network-logo span {
    color: #999;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background-color: #141414;
    color: #999;
    text-align: center;
    padding: 30px 60px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer p {
    font-size: 0.9rem;
    margin: 0;
}

.footer a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #e50914;
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 20px;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .logo {
        font-size: 1.4rem;
    }

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

    .movie-card {
        width: 100px;
        height: 150px;
    }

    .browse-grid,
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-grid .movie-card,
    .search-grid .movie-card {
        height: 160px;
    }

    .filmography-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-description {
        -webkit-line-clamp: 2;
    }

    .modal-backdrop {
        height: 200px;
    }

    .person-header {
        flex-direction: row;
        text-align: left;
    }

    .person-photo {
        width: 100px;
        height: 150px;
    }
}
