* {
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
}
.header {
    text-align: center;
    padding: 2rem 1rem;
}
.header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}
.tagline {
    color: #aaa;
    margin: 0 0 1rem;
}
.back-link {
    color: #3498db;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.main {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem;
}
.status {
    min-height: 1.5em;
    margin-bottom: 1rem;
    color: #e74c3c;
}
.status:empty {
    display: none;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.btn-primary {
    background: #3498db;
    color: #fff;
}
.btn-primary:hover {
    background: #2980b9;
}
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-content {
    background: #222;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.close-modal {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.close-modal:hover {
    color: #fff;
}
.movie-rank-slot {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin: 15px 0;
    border: 2px solid #444;
    border-radius: 8px;
    background: #2a2a2a;
    cursor: move;
}
.movie-rank-slot:hover {
    border-color: #3498db;
}
.movie-rank-slot img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}
.movie-rank-slot h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.movie-rank-slot p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}
.slot-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    min-width: 40px;
}
.result-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}
.result-row.correct {
    border: 2px solid #2ecc71;
    background: #1a3d2a;
}
.result-row.incorrect {
    border: 2px solid #e74c3c;
    background: #3d1a1a;
}
.result-row img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}
.results-score {
    text-align: center;
    margin: 20px 0;
}
.results-emoji {
    font-size: 2.5rem;
    margin: 10px 0;
}
