/* --- Global Resets for Mobile and Fonts --- */
* {
    box-sizing: border-box; /* Stops padding from making boxes wider than the screen */
}

input, select, textarea, button {
    font-family: inherit; /* Forces these elements to use your Raleway font */
}

:root {
    --bg-color: #050a1f; /* Deep Blue base */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --accent: #0a84ff; /* Apple-style blue */
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.admin-input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    outline: none;
    font-family: 'Raleway', sans-serif;
}

.admin-input:focus {
    border-color: var(--accent);
}

.admin-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: #0070e0;
}

/* --- Admin Panel Mobile Responsiveness --- */
/* --- Admin Panel Mobile Responsiveness --- */
@media (max-width: 768px) {
    button[id^="tab-"] {
        width: 100%;
        margin-bottom: 5px;
    }
    div:has(> #tab-content) {
        flex-direction: column;
        gap: 0 !important;
    }
    #content-form > div {
        flex-direction: column;
    }
    .admin-input, select.admin-input {
        width: 100% !important;
    }

    /* 📍 FIX 1: Target both series AND movie links to stack */
    .series-link-row, .movie-link-row, .episode-block > div:first-child, .season-block > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
    }

    /* 📍 FIX 2: Stack the library items and make buttons full-width */
    .library-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }
    .library-row > div:last-child {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    .library-row > div:last-child button {
        flex: 1; /* Makes Edit and Delete buttons perfectly split the space */
        margin: 0 !important;
    }
}