* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

body {
    background-color: #0f171e;
    color: #ffffff;
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: #1a242f;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #00a8e1;
}

.logo span {
    color: #ffffff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00a8e1;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #2c3e50;
    color: #ffffff;
    width: 250px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: #00a8e1;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
}

/* Controls Section */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #1a242f;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    min-width: 150px;
}

.sort-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-btn {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sort-btn.active {
    background-color: #00a8e1;
}

.sort-btn:hover {
    background-color: #00a8e1;
}

.reset-btn {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #c0392b;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1743341942781-14f3c65603c4?q=80&w=1471&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cccccc;
}

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

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #00a8e1;
    color: white;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Movies Section */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00a8e1;
    display: inline-block;
}

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

.movie-card {
    background-color: #1a242f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

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

.movie-info {
    padding: 15px;
}

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

.movie-year {
    color: #cccccc;
    font-size: 14px;
}

.movie-audio {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.audio-badge {
    padding: 2px 6px;
    background-color: #00a8e1;
    border-radius: 3px;
    font-size: 10px;
}

/* Movie Details Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #1a242f;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

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

.movie-backdrop {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.movie-details-content {
    padding: 30px;
}

.movie-details-header {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.movie-details-poster {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.movie-details-info {
    flex: 1;
}

.movie-details-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.movie-details-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #cccccc;
}

.movie-details-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.movie-details-actions {
    display: flex;
    gap: 15px;
}

/* Footer */
footer {
    background-color: #1a242f;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #00a8e1;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #00a8e1;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    color: #cccccc;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00a8e1;
    animation: spin 1s ease-in-out infinite;
}

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

/* Results Info */
.results-info {
    margin: 10px 0;
    color: #cccccc;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #cccccc;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar input {
        width: 200px;
    }

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

    .filter-group, .sort-group {
        width: 100%;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 36px;
    }

    .movie-details-header {
        flex-direction: column;
    }

    .movie-details-poster {
        align-self: center;
    }
}

/* Utility & Additional Styles */
[v-cloak] { display: none; }

.modal-centered { display:flex; align-items:center; justify-content:center; }

/* Narrow variant for small modals like API key prompt */
.modal-content-narrow { max-width:420px; width:100%; padding:25px 25px 30px; }
.modal-content-narrow .modal-title { margin-top:0; margin-bottom:10px; }

.modal-note { font-size:14px; line-height:1.4; color:#cccccc; }

.api-key-input { width:100%; padding:10px; margin:12px 0 6px; background:#2c3e50; border:1px solid #2c3e50; border-radius:4px; color:#fff; }
.api-key-input:focus { outline:2px solid #00a8e1; }

.api-key-error { color:#ff6161; font-size:13px; margin-bottom:8px; }

.full-width { width:100%; }
.mb-8 { margin-bottom:8px; }

/* Config & TMDB Modals */
.tmdb-search-modal { padding: 20px; }
.config-actions { display:flex; gap:10px; margin-top:10px; }
.tmdb-search-title { margin:0 0 15px; }
.tmdb-missing-key { margin-bottom:10px; }
.tmdb-search-bar { display:flex; gap:10px; }
.tmdb-search-input { margin:0; }
.tmdb-no-results { margin-top:20px; }

/* TMDB Results Grid Styling */
.tmdb-results-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:20px; margin-top:25px; }
.tmdb-card { background:#1a242f; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 2px 6px rgba(0,0,0,0.4); }
.tmdb-poster { width:100%; aspect-ratio:2/3; object-fit:cover; background:#0f171e; }
.tmdb-info { padding:10px 12px 14px; display:flex; flex-direction:column; gap:6px; }
.tmdb-title { font-size:14px; font-weight:600; line-height:1.2; min-height:34px; overflow:hidden; }
.tmdb-year { font-size:12px; color:#ccc; }
.tmdb-add-btn { font-size:12px; padding:8px 10px; }
.tmdb-action-row { display:flex; gap:6px; align-items:stretch; }
.tmdb-action-row .tmdb-add-btn { flex:1; }
.tmdb-copy-btn { padding:0 10px; min-width:38px; display:flex; justify-content:center; align-items:center; font-size:12px; }
.tmdb-copy-btn:disabled { opacity:0.4; cursor:not-allowed; }

@media (max-width: 600px) {
    .tmdb-results-grid { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:14px; }
    .tmdb-title { font-size:12px; min-height:30px; }
}