/* Re-skins the legacy style.css components (inner public pages) onto the site.css design
   tokens. Loaded after style.css + site.css by layouts/app only. */

:root {
    --dark-bg: #08070d;
    --dark-bg-card: #14121e;
    --dark-bg-card-highlight: #1b1828;
    --dark-text: #f4f2fa;
    --dark-text-muted: #a19db3;
    --dark-border: rgba(255, 255, 255, 0.08);
    --dark-shadow: rgba(0, 0, 0, 0.5);

    --light-bg: #f7f6fb;
    --light-bg-card: #ffffff;
    --light-text: #15121f;
    --light-border: rgba(20, 16, 40, 0.1);
    --light-shadow: rgba(40, 30, 90, 0.12);
}

body.hp-page { background: var(--bg); color: var(--text); }
body.hp-page.light-mode { background: var(--bg); color: var(--text); }

/* Soft brand glow behind the top of every inner page */
.hp-page-band { position: relative; height: 0; z-index: 0; }
.hp-page-band .hp-aurora { position: absolute; left: 0; right: 0; top: -72px; height: 420px; inset-inline: 0; opacity: .55; }
html.light .hp-page-band .hp-aurora { opacity: .22; }

.hp-page .main-content { position: relative; z-index: 1; background: transparent; padding: 40px 0 110px; min-height: 55vh; }
body.light-mode.hp-page .main-content { background: transparent; }

/* ---------- Headings & type ---------- */
.hp-page .content-header { padding: 8px 0 28px; gap: 16px; }
.hp-page .title {
    font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -0.025em;
    font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--text);
}
body.light-mode.hp-page .title { color: var(--text); }
.hp-page .page-eyebrow {
    font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; opacity: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hp-page .main-content h1, .hp-page .main-content h2, .hp-page .main-content h3 { color: var(--text); }
.hp-page .main-content a:not([class]) { color: #ff6b9d; }
.hp-page .main-content a:not([class]):hover { text-decoration: underline; }

/* ---------- Channel pills ---------- */
.hp-page .channel-switch { position: relative; z-index: 2; background: transparent; border: 0; padding: 22px 0 0; }
body.light-mode.hp-page .channel-switch { background: transparent; border: 0; }
.hp-page .channel-switch-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.hp-page .channel-pill {
    font-family: var(--body); font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
    padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong); color: var(--muted); transition: all .2s;
}
body.light-mode.hp-page .channel-pill { background: var(--surface); color: var(--muted); border-color: var(--line-strong); }
.hp-page .channel-pill:hover, body.light-mode.hp-page .channel-pill:hover { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.hp-page .channel-pill-active, body.light-mode.hp-page .channel-pill-active {
    background: var(--c) !important; border-color: var(--c); color: #fff;
    box-shadow: 0 8px 22px -10px var(--c);
}

/* ---------- Cards & surfaces ---------- */
.hp-page .program-card,
.hp-page .calendar,
.hp-page .program-detail,
.hp-page .broadcast-item,
.hp-page .cart-items,
.hp-page .cart-summary,
.hp-page .auth-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: none;
}
body.light-mode.hp-page .program-card,
body.light-mode.hp-page .calendar,
body.light-mode.hp-page .program-detail,
body.light-mode.hp-page .broadcast-item,
body.light-mode.hp-page .cart-items,
body.light-mode.hp-page .cart-summary,
body.light-mode.hp-page .auth-card {
    background: var(--surface); border-color: var(--line); box-shadow: 0 20px 50px -35px var(--light-shadow);
}
.hp-page .program-card { transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.hp-page .program-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgba(177, 75, 255, .5); }

.hp-page .calendar-header, body.light-mode.hp-page .calendar-header { background: transparent; border-bottom: 1px solid var(--line); }
.hp-page .calendar-title { font-family: var(--display); font-weight: 700; color: var(--text); }
.hp-page .calendar-day, body.light-mode.hp-page .calendar-day { background: var(--surface-2); border-color: var(--line); border-radius: 10px; }
.hp-page .calendar-day-label, body.light-mode.hp-page .calendar-day-label { color: var(--faint); }
.hp-page .calendar-nav-btn { color: var(--muted); }
.hp-page .day-header, body.light-mode.hp-page .day-header { color: var(--text); border-color: var(--line); }
.hp-page .program-detail-header, body.light-mode.hp-page .program-detail-header { border-color: var(--line); }
.hp-page .broadcast-time, body.light-mode.hp-page .broadcast-time { color: var(--muted); }

.hp-page .view-controls { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.hp-page .view-btn { color: var(--muted); border-radius: 7px; }
.hp-page .view-btn.active { background: rgba(255, 255, 255, .1); color: var(--text); }
html.light .hp-page .view-btn.active { background: rgba(20, 16, 40, .08); }

/* ---------- Forms ---------- */
.hp-page .auth-card { padding: 36px; }
.hp-page .auth-header h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.hp-page .auth-header p, body.light-mode.hp-page .auth-header p { color: var(--muted); }
.hp-page .form-group label, body.light-mode.hp-page .form-group label { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.hp-page .form-control,
body.light-mode.hp-page .form-control {
    background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
    border-radius: 12px; min-height: 46px;
}
.hp-page .form-control:focus { outline: none; border-color: #b14bff; box-shadow: 0 0 0 3px rgba(177, 75, 255, .2); }
.hp-page .auth-btn {
    background: var(--grad); border: 0; border-radius: 999px; min-height: 50px;
    font-family: var(--body); font-weight: 600; color: #fff;
    box-shadow: 0 10px 30px -12px rgba(233, 30, 99, .7); transition: transform .2s, box-shadow .2s;
}
.hp-page .auth-btn:hover { background: var(--grad); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(177, 75, 255, .85); }
.hp-page .form-footer, body.light-mode.hp-page .form-footer { color: var(--muted); }

/* ---------- Alerts ---------- */
.hp-page .alert { border-radius: 14px; border: 1px solid transparent; padding: 14px 18px; margin-bottom: 22px; }
.hp-page .alert-success { background: rgba(22, 163, 74, .12) !important; border-color: rgba(22, 163, 74, .35); color: #4ade80 !important; }
.hp-page .alert-danger, .hp-page .alert-error { background: rgba(220, 38, 38, .12) !important; border-color: rgba(220, 38, 38, .35); color: #f87171 !important; }
.hp-page .alert-info { background: rgba(80, 68, 255, .12) !important; border-color: rgba(80, 68, 255, .35); color: #a5b4fc !important; }
html.light .hp-page .alert-success { color: #15803d !important; }
html.light .hp-page .alert-danger, html.light .hp-page .alert-error { color: #b91c1c !important; }
html.light .hp-page .alert-info { color: #4338ca !important; }

.hp-empty { color: var(--muted); padding: 40px 0; }
.hp-page-lead { color: var(--muted); font-size: 17px; max-width: 720px; margin: -12px 0 32px; }

body.hp-page .form-control, body.hp-page .form-select,
body.hp-page .form-control:focus, body.hp-page .form-select:focus {
    background-color: var(--surface-2); border-color: var(--line-strong); color: var(--text);
}
body.hp-page .form-control:focus, body.hp-page .form-select:focus { border-color: #b14bff; }

.hp-player {
    position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; margin-bottom: 24px;
    background: #000; border: 1px solid var(--line); box-shadow: 0 40px 90px -45px rgba(177, 75, 255, .6);
}
.hp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
