* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 40px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.system-section,
.movies-section {
    padding: 14px 40px;
}

.system-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.system-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* reset global button styles */
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition: none;
}

.system-toggle:hover {
    background: none;
    transform: none;
    opacity: 1;
}

.system-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.system-section h2 {
    margin-bottom: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.system-subtitle {
    color: #888;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
}

.toggle-arrow {
    font-size: 0.9rem;
    color: #2c3e50;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.system-toggle[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

.system-explanation {
    line-height: 1.6;
    color: #555;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.under-construction-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.under-construction-text {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.movies-section h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.system-explanation p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.system-explanation p:last-child {
    margin-bottom: 0;
}

.system-explanation em {
    font-style: italic;
    color: #2c3e50;
    font-weight: 600;
}



.search-container {
    position: relative;
}

.search-container input {
    width: 200px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background: #f8f9ff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.filter-sort {
    margin-bottom: 30px;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters select {
    width: auto;
    min-width: 150px;
    padding: 10px;
}

.movies-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.year-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.year-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.year-header__stats {
    display: flex;
    gap: 24px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.year-header__stats strong {
    font-weight: 700;
}

.score-value.positive {
    color: #2ecc71;
}

.score-value.negative {
    color: #e74c3c;
}

.movies-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 15px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    transition: background-color 0.2s;
}

.table-row:hover {
    background: #f8f9ff;
}

.table-row:last-child {
    border-bottom: none;
}

.col-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.movie-poster {
    width: 46px;
    height: 69px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.movie-poster--placeholder {
    width: 46px;
    height: 69px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
    background: #f1f3f5;
}

.movie-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.col-title .movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

.col-title .movie-notes {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.3;
}

.col-score {
    text-align: center;
}

.score-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
}

.score-badge.score--1 {
    background: #f8d7da;
    color: #721c24;
}

.score-badge.score-0 {
    background: #fff3cd;
    color: #856404;
}

.score-badge.score-1 {
    background: #d4edda;
    color: #155724;
}

.score-badge.score-2 {
    background: #d4edda;
    color: #155724;
    border: 3px solid #28a745;
    font-weight: 700;
}

.col-date {
    color: #666;
    font-size: 0.9rem;
}

.col-actions {
    text-align: center;
}

.delete-btn {
    background: #e74c3c;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 15px;
}

.delete-btn:hover {
    background: #c0392b;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }

    header {
        padding: 10px 20px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .system-section,
    .movies-section {
        padding: 12px 20px;
    }
    
    .banner-image {
        height: 200px;
    }
    
    .system-explanation {
        font-size: 0.95rem;
    }
    
    .search-container input {
        width: 150px;
        font-size: 13px;
    }
    
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters select,
    .search-container {
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 60px;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .table-header {
        font-size: 0.8rem;
    }
    
    .col-title .movie-title {
        font-size: 1rem;
    }
    
    .col-title .movie-notes {
        font-size: 0.8rem;
    }

    .movie-poster,
    .movie-poster--placeholder {
        width: 36px;
        height: 54px;
    }
    
    .year-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .year-header h3 {
        font-size: 1.3rem;
    }
}

/* ── Poster hover preview ── */
.poster-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    overflow: hidden;
    width: 180px;
}

.poster-preview--visible {
    opacity: 1;
    transform: scale(1);
}

.poster-preview img {
    display: block;
    width: 180px;
    height: auto;
}

@media (hover: none) {
    /* Hide hover preview on touch devices */
    .poster-preview { display: none; }
}

/* ── Poster modal ── */
.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.poster-modal[hidden] {
    display: none;
}

.poster-modal__img {
    max-width: min(500px, 90vw);
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    display: block;
}

.poster-modal__close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-modal__close:hover {
    background: rgba(255,255,255,0.3);
    transform: none;
}

body.modal-open {
    overflow: hidden;
}

/* Make poster cursor a pointer to signal it's clickable */
img.movie-poster:not(.movie-poster--placeholder) {
    cursor: pointer;
}

/* ── Awards Section ── */
.awards-year-section {
    border-top: 1px solid #e9ecef;
}

.awards-year-section:first-child {
    border-top: none;
}

.awards-year-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition: none;
}

.awards-year-toggle:hover {
    background: none;
    transform: none;
    opacity: 0.75;
}

.awards-year-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.awards-year-body {
    padding-bottom: 20px;
}

/* Featured awards row — Hot Joshy left, Shameful Joshua right */
.awards-featured {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 0 8px;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.award-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.award-movie-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    text-align: center;
}

.award-poster {
    width: 180px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: block;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.award-poster:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Secondary awards (future additions) */
.awards-secondary {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
    margin-top: 12px;
}

.award-card--small {
    flex: 0 0 auto;
}

.award-name--small {
    font-size: 1rem;
    font-weight: 600;
}

.award-poster--small {
    width: 120px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .awards-featured {
        gap: 24px;
        justify-content: center;
    }

    .award-poster {
        width: 140px;
    }

    .award-poster--small {
        width: 100px;
    }

    .awards-secondary {
        justify-content: center;
    }
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* ── Banner buttons (Subscribe + Requests) ── */
.banner-buttons {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ── Newsletter signup modal ── */
.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.signup-modal[hidden] {
    display: none;
}

.signup-modal__box {
    background: white;
    border-radius: 12px;
    padding: 36px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}

.signup-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    box-shadow: none;
    transition: color 0.15s;
}

.signup-modal__close:hover {
    color: #2c3e50;
    background: none;
    transform: none;
}

.signup-modal__title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.signup-modal__subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signup-form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.signup-form__field input {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
}

.signup-form__field input:focus {
    outline: none;
    border-color: #667eea;
}

.signup-form__field textarea {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
    resize: vertical;
}

.signup-form__field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.signup-form__message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.signup-form__message.success {
    background: #d4edda;
    color: #155724;
}

.signup-form__message.error {
    background: #f8d7da;
    color: #721c24;
}

.signup-form__submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    margin-top: 4px;
}

.signup-form__submit:hover {
    transform: translateY(-2px);
}

.signup-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .signup-modal__box {
        padding: 28px 24px;
    }

    .banner-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ── Lifetime Stats Table ── */
.lifetime-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.lifetime-stats-table tr {
    border-bottom: 1px solid #f1f3f4;
}

.lifetime-stats-table tr:last-child {
    border-bottom: none;
}

.lifetime-stats-table__label {
    padding: 12px 16px 12px 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.lifetime-stats-table__value {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
}

/* ── Synopsis ? button ── */
.synopsis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e9ecef;
    border: none;
    box-shadow: none;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.synopsis-btn:hover {
    background: #667eea;
    color: white;
    transform: none;
}

.synopsis-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-top: 16px;
}
