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

body {
    font-family: 'Arial', sans-serif;
    background: url('https://images.unsplash.com/photo-1440404653325-ab127d49abc1?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 2rem;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-brand h1 {
    color: #f39c12;
    font-size: 1.8rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

#searchInput {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
}

#searchBtn {
    padding: 0.5rem 1.5rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#searchBtn:hover {
    background: #e67e22;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.controls-section {
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
}

.quick-filters {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.range-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.range-filter input {
    width: 80px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
}

.quick-filters select,
.quick-filters input[type="range"] {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
}

.rating-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.results-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.movies-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #f39c12;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.movie-info {
    padding: 1rem;
}

.movie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
}

.watchlist-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.watchlist-btn.active {
    background: rgba(231, 76, 60, 0.9);
    border-color: transparent;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
    font-size: 0.85rem;
    color: #f1c40f;
}

.star-rating .star.empty {
    color: rgba(241, 196, 15, 0.3);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.movie-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.movie-year {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.movie-rating {
    background: #27ae60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    padding: 2rem;
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 96%;
    max-width: 1200px;
    height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #f39c12;
}

.movie-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.movie-poster-large {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.movie-info-detailed {
    flex: 1;
    min-width: 300px;
}

.rating-meter {
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem;
}

.rating-meter .meter-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.rating-meter .meter-fill {
    height: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    width: 0;
    transition: width 0.4s ease;
}

.user-rating {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-rating .star-btn {
    background: transparent;
    border: none;
    color: rgba(241, 196, 15, 0.3);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.user-rating .star-btn.active {
    color: #f1c40f;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.cast-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 0.5rem;
}

.cast-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cast-card .cast-name {
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.review-form {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 10px;
}

.review-form textarea {
    width: 100%;
    min-height: 100px;
    border-radius: 10px;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.review-form button {
    margin-top: 0.6rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.overview-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
}

.collection-graph {
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 10px;
}

.ott-section {
    margin-top: 1rem;
}

.ott-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.ott-logo {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ott-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.languages-section {
    margin-top: 1rem;
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.language-tag {
    background: rgba(100, 150, 200, 0.3);
    color: #ecf0f1;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(100, 150, 200, 0.5);
}

.certification-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    font-weight: bold !important;
    color: white !important;
}

.graph-row {
    display: grid;
    grid-template-columns: 80px 1fr 90px;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.graph-bar {
    height: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.graph-fill {
    height: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.trailer-section {
    margin-top: 1.5rem;
}

.trailer-frame {
    width: 100%;
    height: 360px;
    border: none;
    border-radius: 10px;
}

.similar-movies {
    margin-top: 1.5rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.similar-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.similar-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.similar-card .similar-title {
    font-size: 0.75rem;
    padding: 0.4rem;
}

.movie-title-large {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.title-with-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.title-with-rating .movie-title-large {
    margin-bottom: 0;
}

.age-rating-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.movie-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.movie-plot {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.movie-cast {
    margin-top: 1rem;
}

.cast-title {
    color: #f39c12;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.movie-reviews {
    margin-top: 1.5rem;
}

.review-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid #f39c12;
}

.review-item strong {
    color: #f39c12;
}

.review-item p {
    margin-top: 0.5rem;
    line-height: 1.5;
    color: #ecf0f1;
}

/* Awards Styles */
.movie-awards {
    margin-top: 1.5rem;
}

.awards-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.awards-section {
    margin-bottom: 1rem;
}

.award-type {
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.award-item {
    color: #ecf0f1;
    margin-bottom: 0.3rem;
    padding-left: 0.5rem;
    line-height: 1.4;
}

/* Filters Section */
.filters-section {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 0.8rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 280px;
    display: none;
}

.filters-section.show-filters {
    display: block;
}

.filter-toggle {
    position: fixed !important;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1001;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.filter-icon {
    font-size: 20px;
    line-height: 1;
}

.filter-text {
    display: none;
}

.filters-content {
    transition: all 0.3s ease;
}

.filters-content.hidden {
    display: none;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.filter-group label {
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.filter-group select {
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.filter-group select option {
    background: #1a1a1a;
    color: white;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#applyFilters, #clearFilters {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    flex: 1;
}

#applyFilters {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

#applyFilters:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

#clearFilters {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

#clearFilters:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.movie-summary {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid #f39c12;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.summary-title {
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Download Section */
.download-section {
    margin-top: 1.5rem;
}

.download-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.download-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Chat Toggle Button */
.chat-toggle {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1002;
    visibility: visible !important;
    opacity: 1 !important;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.chat-icon {
    font-size: 20px;
    line-height: 1;
}

.chat-text {
    display: none;
}

/* Chatbot Styles */
.chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.chatbot.show-chat {
    display: block;
}

.chatbot-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.chat-window {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
}

.bot-message, .user-message {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    max-width: 80%;
}

.bot-message {
    background: rgba(52, 73, 94, 0.8);
    color: #ecf0f1;
    align-self: flex-start;
}

.user-message {
    background: rgba(243, 156, 18, 0.8);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
}

#chatInput {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#sendBtn {
    padding: 0.5rem 1rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-window.hidden {
    display: none;
}

@media (max-width: 768px) {
    .chat-toggle {
        position: fixed !important;
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        z-index: 1002;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .chat-icon {
        font-size: 16px;
    }
    
    .chatbot {
        width: 90%;
        max-width: 300px;
        right: 5%;
        bottom: 70px;
        left: 5%;
    }
    
    .chatbot.show-chat {
        display: block;
    }
    
    .chat-window {
        height: 250px;
    }
    
    .awards-container {
        padding: 0.5rem;
    }
    
    .award-item {
        font-size: 0.9rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .filters-section {
        background-attachment: scroll;
        position: fixed;
        top: 80px;
        right: 10px;
        width: 90%;
        max-width: 320px;
    }
    
    .filters-section.show-filters {
        display: block;
    }
    
    .filter-toggle {
        position: fixed !important;
        top: 80px;
        right: 15px;
        width: 35px;
        height: 35px;
        z-index: 1001;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filter-icon {
        font-size: 16px;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0;
        width: 100%;
    }
    
    .filter-group {
        min-width: 200px;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-group select {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    #applyFilters, #clearFilters {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

footer {
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    #searchInput {
        width: 250px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .controls-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-filters {
        width: 100%;
    }
    
    .movie-card {
        border-radius: 8px;
    }
    
    .movie-poster {
        height: 180px;
    }
    
    .movie-info {
        padding: 0.5rem;
    }
    
    .movie-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .movie-rating {
        font-size: 0.7rem;
    }
    
    .movie-year {
        font-size: 0.7rem;
    }
    
    .movie-details {
        flex-direction: column;
    }
    
    .movie-poster-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        padding: 0 0.3rem;
    }
    
    .movie-card {
        border-radius: 6px;
    }
    
    .movie-poster {
        height: 150px;
    }
    
    .movie-info {
        padding: 0.3rem;
    }
    
    .movie-title {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .movie-rating,
    .movie-year {
        font-size: 0.6rem;
    }
}