
* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: #0d0d0d;
    color: white;
    font-family: Arial, sans-serif;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #151515;
    border-bottom: 1px solid #c9a44c;
}

.admin-header h2 {
    color: #c9a44c;
    font-size: 20px;
}

.admin-header a {
    color: #c9a44c;
    text-decoration: none;
}

.admin-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 25px;
}

#admin-status {
    color: #aaa;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
}

.stat-card h2 {
    color: #c9a44c;
    font-size: 36px;
    margin: 0;
}

.stat-card p {
    color: #aaa;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
}

button {
    background: #c9a44c;
    color: black;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #e0bc63;
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .admin-header h2 {
        font-size: 15px;
    }

    .admin-container {
        padding: 20px;
    }
}

/* MOVIE EDITOR */

#movie-editor {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#movie-form {
    background: #151515;
    border: 1px solid #c9a44c;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

#movie-form h2 {
    color: #c9a44c;
    margin-top: 0;
}

#movie-form label {
    display: block;
    margin: 15px 0 8px;
    color: #ccc;
}

#movie-form input:not([type="checkbox"]),
#movie-form textarea,
#movie-form select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 15px;
}

#movie-form textarea {
    min-height: 100px;
    resize: vertical;
}

#movie-form .publish-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions button {
    flex: 1;
}

#cancel-editor {
    background: #333;
    color: white;
}

/* ADMIN MOVIE LIST */

.admin-movie-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.admin-movie-card h3 {
    margin: 0 0 8px;
}

.admin-movie-card p {
    color: #aaa;
    margin: 5px 0;
}

.admin-movie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .admin-movie-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* DELETE MOVIE BUTTON */

.delete-btn {
    background: #301717;
    color: #ff6b6b;
    border: 1px solid #a83232;
}

.delete-btn:hover {
    background: #a83232;
    color: white;
}
