/* No changes were provided in the plan, so the code remains the same. */

:root {
    --main-bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --accent-color: #e50914;
    --text-color: #f5f5f5;
    --secondary-text: #aaaaaa;
    --border-color: #333333;
    --star-color: #ffc107;
    --tab-active-bg: rgba(229, 9, 20, 0.2);
    --tab-active-border: rgba(229, 9, 20, 0.4);
    --success-color: #28a745;
    --player-bg-color: #0a0a0a;
    --player-control-bg: rgba(0, 0, 0, 0.7);
    --player-progress-bg: #444;
    --player-progress-color: var(--accent-color);
    --player-buffer-color: #666;
    --neon-glow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff, 0 0 20px #0ff;
    --neon-text-color: #0ff;
    --neon-purple: #f0f;
    --neon-purple-glow: 0 0 5px #f0f, 0 0 10px #f0f, 0 0 15px #f0f, 0 0 20px #f0f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--main-bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 60px;
}

.cinema-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.projector {
    width: 70px;
    margin-right: 15px;
}

.projector-svg {
    width: 100%;
    height: auto;
}

.light-beam {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

h1 {
    font-size: 2.5rem;
    color: var(--neon-text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--neon-glow);
    font-family: 'Audiowide', 'Orbitron', sans-serif;
}

.tagline {
    font-size: 1.2rem;
    color: var(--neon-purple);
    font-style: italic;
    text-shadow: var(--neon-purple-glow);
}

/* Section Title with Film Strip */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.film-strip {
    width: 150px;
    height: 20px;
    margin: 0 20px;
}

.film-svg {
    width: 100%;
    height: auto;
}

.flip {
    transform: scaleX(-1);
}

.section-title h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Movie Grid Styles */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.movie-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.movie-card.unsaved {
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.movie-card .rating {
    display: none;
}

.poster {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
}

.card-content {
    padding: 15px;
}

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

.card-year {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.unsaved-indicator {
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 5px;
}

/* Genre Checkbox Styles */
.genre-selection {
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
}

.genre-title {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.genre-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.genre-options label {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.genre-options label:hover {
    background-color: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-color);
}

.genre-options input[type="checkbox"] {
    margin-right: 5px;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--secondary-text);
    border-radius: 3px;
    background-color: transparent;
    position: relative;
}

.genre-options input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.genre-options input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 10px;
    top: 0;
    left: 2px;
}

/* Options Selection Styles */
.options-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 15px 0 25px;
}

@media (min-width: 768px) {
    .options-section {
        grid-template-columns: 1fr 1fr;
    }
}

.options-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.options-group {
    width: 100%;
}

.options-title {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--secondary-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 5px;
}

.options-row label {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.options-row label:hover {
    background-color: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-color);
}

.options-row input[type="checkbox"],
.options-row input[type="radio"] {
    margin-right: 5px;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--secondary-text);
    border-radius: 3px;
    background-color: transparent;
    position: relative;
}

.options-row input[type="radio"] {
    border-radius: 50%;
}

.options-row input[type="checkbox"]:checked,
.options-row input[type="radio"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.options-row input[type="checkbox"]:checked::before,
.options-row input[type="radio"]:checked::before {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 10px;
    top: 0;
    left: 2px;
}

/* Production model diagram adjustments */
.model-svg {
    max-height: 150px;
    width: auto;
}

.model-description {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Content Area Styles */
.content-area {
    position: relative;
}

/* Movie List View */
#movie-list-view {
    display: block;
}

#movie-list-view.hidden {
    display: none;
}

/* Movie Details View Styles */
.movie-details-view {
    display: none;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.movie-details-view.active {
    display: block;
}

.details-nav {
    margin-bottom: 20px;
    padding: 10px 0;
}

.back-button {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.back-button:hover {
    color: var(--accent-color);
}

.detail-header {
    margin-bottom: 30px;
    position: relative;
}

.detail-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.header-metadata {
    font-size: 1.1rem;
    color: var(--secondary-text);
}

.header-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 193, 7, 0.1);
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    color: var(--star-color);
    font-size: 1.2rem;
}

.star.half {
    position: relative;
    opacity: 0.5;
}

.rating-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--star-color);
}

.movie-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .movie-content {
        flex-direction: row;
    }
    
    .detail-poster-container {
        flex: 0 0 350px;
    }
    
    .detail-info {
        flex: 1;
    }
}

.detail-poster-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-poster {
    width: 100%;
    height: 525px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.detail-poster:hover {
    transform: scale(1.02);
}

.detail-key-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.detail-director, .detail-stars, .detail-genres {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.detail-genres .genre-tag {
    display: inline-block;
    background-color: rgba(229, 9, 20, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin: 5px 5px 0 0;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.detail-info {
    width: 100%;
}

.synopsis-header {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: 500;
}

.detail-description {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.watch-preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.watch-preview-button:hover {
    background-color: #ff0a16;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.7);
}

.play-icon {
    font-size: 1.4rem;
}

.detail-reviews h3, .production-notes h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.detail-reviews h3::before {
    content: "★";
    color: var(--star-color);
    margin-right: 8px;
}

.review {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.review:before {
    content: '"';
    position: absolute;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.05);
    left: 10px;
    top: -15px;
}

.review-source {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.review-text {
    font-style: italic;
    line-height: 1.5;
}

/* Production Notes Styles */
.production-notes {
    margin-top: 30px;
}

.production-notes .production-note {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--card-bg-color);
}

.production-notes .production-note::-webkit-scrollbar {
    width: 8px;
}

.production-notes .production-note::-webkit-scrollbar-track {
    background: var(--card-bg-color);
}

.production-notes .production-note::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.production-notes h3::before {
    content: "🎬";
    margin-right: 8px;
}

.production-notes h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.production-note {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.note-role {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.note-content {
    font-style: italic;
    line-height: 1.5;
    white-space: pre-line;
}

/* User comments section */
.user-comments {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.comment {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

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

.comment-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
    gap: 10px;
}

.comment-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-user {
    font-weight: bold;
    color: var(--accent-color);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.comment-persona {
    font-size: 0.75rem;
    color: var(--secondary-text);
    font-style: italic;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-rating .star {
    color: var(--star-color);
    font-size: 0.9rem;
}

.comment-rating .star.half {
    position: relative;
    opacity: 0.5;
}

.comment-rating-number {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--star-color);
}

.comment-text {
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-icon {
    color: var(--accent-color);
}

/* Movie List Tabs */
.movie-list-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.movie-list-tab-button {
    padding: 10px 25px;
    background: transparent;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.movie-list-tab-button:hover {
    opacity: 1;
}

.movie-list-tab-button.active {
    opacity: 1;
}

.movie-list-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--neon-text-color);
    box-shadow: var(--neon-glow);
}

.movie-list-tab-content {
    display: none;
}

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

.no-movies-message {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: var(--secondary-text);
}

/* Published movie cards */
.published-movie .card-creator {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 3px;
}

/* Detail actions buttons */
.detail-actions {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.detail-action-button {
    background-color: var(--card-bg-color);
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid var(--neon-text-color);
    color: var(--neon-text-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
    gap: 5px;
    transition: all 0.3s;
    transition: all 0.2s ease;
    text-shadow: 0 0 3px var(--neon-text-color);
}

.detail-action-button:hover:not(:disabled) {
    background-color: rgba(0, 255, 255, 0.2);
    transform: scale(1.01);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Movie Card Favorite Button */
.movie-card {
    position: relative;
}

.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 2;
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.favorite-button:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: scale(1.05);
}

.favorite-button.active {
    color: var(--star-color);
}

.favorite-count {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .detail-actions {
        position: static;
        margin-bottom: 20px;
    }
    
    .comment {
        padding: 15px;
    }
    
    .favorite-button {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* Tabs system */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    padding: 0 10px;
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--accent-color);
}

.tab-button.active {
    color: var(--accent-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Generate Section Styles */
.generate-section {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.generate-section h2 {
    margin-bottom: 25px;
}

.generate-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    background: var(--card-bg-color);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#movie-prompt {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background-color: #333;
    color: var(--text-color);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

#movie-prompt:focus {
    background-color: #444;
    outline: none;
}

#generate-button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: auto;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

#generate-button:hover:not(:disabled) {
    background-color: #ff0a16;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.7);
}

@media (max-width: 500px) {
    .generate-form {
        flex-direction: column;
    }
    
    #movie-prompt {
        border-radius: 5px 5px 0 0;
        width: 100%;
    }
    
    #generate-button {
        border-radius: 0 0 5px 5px;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .watch-preview-button {
        padding: 10px;
        font-size: 1rem;
    }
    
    .generate-form {
        padding: 10px;
    }
    
    #generate-button {
        width: 100%;
        min-width: 100px;
    }
}

/* Video Player Styles */
.video-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

.video-player-container {
    width: 90%;
    max-width: 1200px;
    background-color: var(--player-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.video-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.close-player-button {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-player-button:hover {
    color: var(--accent-color);
}

.video-content {
    width: 100%;
    position: relative;
    background-color: black;
    aspect-ratio: 16/9;
}

.frame-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.movie-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
    transition: opacity 0.3s ease;
}

.generation-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 15;
    display: none;
}

.subtitle-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle-text {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.4rem;
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.video-controls {
    padding: 12px 20px;
    background-color: var(--player-control-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-container {
    position: relative;
    height: 6px;
    background-color: var(--player-progress-bg);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.2s ease;
}

.progress-container:hover {
    height: 10px;
}

.buffering-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--player-buffer-color);
    transition: width 0.3s ease;
}

.playback-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--player-progress-color);
    transition: width 0.1s linear;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-pause-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.play-pause-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.time-display {
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: monospace;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-icon {
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
}

.volume-slider {
    width: 60px;
    -webkit-appearance: none;
    height: 4px;
    background: var(--player-progress-bg);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--player-progress-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--player-progress-color);
    cursor: pointer;
}

.fullscreen-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fullscreen-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.player-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.frame-container:hover .player-backdrop,
.video-controls:hover ~ .frame-container .player-backdrop {
    opacity: 1;
}

/* Center play icon for initial state */
.big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(229, 9, 20, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.big-play-button:hover {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.speed-control {
    position: relative;
    display: inline-block;
}

.speed-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 8px;
    border-radius: 4px;
}

.speed-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 100px;
    display: none;
    z-index: 100;
}

.speed-option {
    padding: 5px 15px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.speed-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.speed-option.active {
    color: var(--accent-color);
}

/* Responsive adjustments for video player */
@media (max-width: 768px) {
    .video-player-container {
        width: 95%;
    }
    
    .subtitle-text {
        font-size: 1rem;
        max-width: 90%;
        padding: 6px 12px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .control-buttons {
        padding: 2px 0;
    }
    
    .play-pause-button, .fullscreen-button {
        font-size: 1.1rem;
    }

    .volume-control {
        display: none;
    }

    .big-play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Hover states for player controls */
.progress-container:hover .playback-progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.frame-container:hover::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.frame-container:hover::after:hover {
    opacity: 1;
}

/* Animation for buffering bar */
@keyframes buffering {
    0% { width: 10%; }
    50% { width: 40%; }
    100% { width: 10%; }
}

/* Edit mode highlighting */
.edit-mode .editable {
    position: relative;
    padding: 5px;
    border: 1px dashed rgba(229, 9, 20, 0.3);
    border-radius: 4px;
    margin: -5px;
}

.edit-mode .editable:hover {
    background: rgba(229, 9, 20, 0.1);
}

.regenerate-button {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg-color);
    border: none;
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.edit-mode .editable:hover .regenerate-button {
    display: block;
}

/* Highlight when awaiting generation */
.awaiting-generation {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Footer Styles */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    color: var(--secondary-text);
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 767px) {
    .options-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-header h2 {
        font-size: 2rem;
    }
    
    .header-metadata, .header-rating {
        font-size: 0.9rem;
    }
    
    .detail-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .detail-header-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .generate-form {
        padding: 8px;
    }
    
    #generate-button {
        width: 100%;
        padding: 12px;
    }
    
    .detail-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .detail-action-button {
        flex: 1;
        min-width: 120px;
    }
}

/* Search and Sort Styles */
.search-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

#search-movies {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--text-color);
    font-size: 1rem;
}

#search-movies:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.sort-container {
    display: flex;
    gap: 10px;
}

.sort-container select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-container select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-button {
    padding: 12px 25px;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

@media (max-width: 600px) {
    .search-sort-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-container {
        justify-content: space-between;
    }
    
    .sort-container select {
        flex: 1;
    }
}

/* Top Navigation Bar Styles */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    display: flex;
    justify-content: center;
    padding: 10px 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--neon-text-color);
}

.nav-container {
    display: flex;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.nav-button {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    color: var(--neon-text-color);
    text-shadow: var(--neon-glow);
    background-color: rgba(0, 255, 255, 0.1);
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.page-overlay.active {
    display: flex;
}

.page-container {
    max-width: 1200px;
    width: 100%;
    padding: 70px 20px 40px;
    position: relative;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-overlay:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--neon-text-color);
    text-align: center;
    color: var(--neon-text-color);
    text-shadow: var(--neon-glow);
}