:root {
    --bg: #121212;
    --text: #ffffff;
    --primary: #ff0050;
    --surface: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 1rem;
}

.hidden {
    display: none !important;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

#app-screen {
    justify-content: flex-start;
}

header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

h1 {
    color: var(--primary);
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    background: var(--surface);
    color: white;
    outline: none;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

button.small-btn {
    width: auto;
    padding: 8px 12px;
}

button.secondary-btn {
    background-color: #444;
    margin-bottom: 10px;
}

button.danger-btn {
    background-color: #d32f2f;
    margin-bottom: 10px;
}

.alert {
    background: #00c853;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.manual-add,
.player-section,
.admin-actions,
.lists-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

/* Player */
.video-wrapper {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 9/16;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    padding: 10px;
    border-radius: 8px;
}

/* Tabs & Lists */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tabs button {
    background: var(--surface);
    color: #888;
}

.tabs button.active {
    background: var(--primary);
    color: white;
}

.item-card {
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-card:hover {
    background: #333;
}

.status-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
}

.status-ready {
    background: #00c853;
}

.status-pending {
    background: #f57c00;
}

.status-failed {
    background: #d32f2f;
}

.status-deleted {
    background: #757575;
}

/* --- Styles pour le logo --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* Arrondit les bords de l'image */
    object-fit: cover;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
    /* Petit effet lumineux */
}