@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg: #0f172a;
    --card: #ffffff;
    --accent: #0ea5e9;
    --accent-strong: #0b8ac3;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 35%), #0b1224;
    color: #0b0f1a;
}

.brand-logo {
    height: 42px;
    width: auto;
    margin-right: 16px;
}

a {
    color: var(--accent);
}

.page-header {
    background: linear-gradient(120deg, #0ea5e9, #0369a1);
    border: 1px solid rgba(3, 105, 161, 0.35);
    border-radius: 18px;
    padding: 20px 24px;
    color: #ffffff;
    margin-bottom: 18px;
    position: sticky;
    top: 12px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    color: #0b4f71;
}

.page-header .eyebrow {
    color: #e0f2fe;
}

.page-title {
    font-weight: 800;
    margin: 6px 0;
    color: #ffffff;
}

.page-subtitle {
    color: #dbeafe;
    font-weight: 500;
}

.btn-outline-secondary.logout-btn {
    color: #0f172a;
    background: #e0f2fe;
    border-color: #dbeafe;
    font-weight: 700;
}

.btn-outline-secondary.logout-btn:hover {
    color: #0b1224;
    background: #bae6fd;
    border-color: #7dd3fc;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.video-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    min-height: calc(1.2em * 3);
    line-height: 1.2em;
}

.meta-row {
    color: var(--muted);
}

.variant-buttons .btn {
    font-weight: 700;
    min-width: 110px;
}

.variant-buttons .btn.active,
.variant-buttons .btn:focus {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.player-shell {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.empty-state {
    background: var(--card);
    border-radius: 14px;
    padding: 28px;
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
}

.day-header {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0 6px 0;
    border: 1px solid #1f2937;
    scroll-margin-top: var(--day-scroll-offset, 160px);
}

.day-label {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.login-wrapper {
    min-height: 70vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(420px, 100%);
    background: var(--card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.login-header .app-title {
    font-weight: 800;
    font-size: 22px;
}

.login-header .app-subtitle {
    color: var(--muted);
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border-color: var(--accent-strong);
    font-weight: 700;
}

.badge {
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 576px) {
    .poster-wrapper {
        width: 100%;
        height: 180px;
    }
}
