:root {
    --bg: #05060c;
    --panel: #101a37;
    --line: #33508f;
    --text: #eaf2ff;
    --muted: #9cb4df;
    --cyan: #62f7ff;
    --pink: #ff6fda;
    --amber: #ffcb72;
    --good: #7dffb2;
    --bad: #ff789f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(98, 247, 255, 0.15), transparent 46%),
        radial-gradient(circle at 82% 12%, rgba(255, 111, 218, 0.16), transparent 48%),
        linear-gradient(165deg, #02030a, #060d1e 55%, #04060f);
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.app {
    width: min(980px, 100%);
    display: grid;
    gap: 0.82rem;
}

.panel {
    background: linear-gradient(180deg, rgba(16, 26, 55, 0.96), rgba(7, 12, 25, 0.96));
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.topbar {
    padding: 0.95rem 1rem;
}

.back {
    color: var(--amber);
    text-decoration: none;
    font-weight: 700;
}

h1 {
    margin: 0.62rem 0 0.3rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.topbar p {
    margin: 0;
    color: var(--muted);
}

.hud {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 0.52rem;
}

.hud div {
    border: 1px solid #355292;
    border-radius: 9px;
    padding: 0.4rem 0.55rem;
    background: rgba(4, 9, 20, 0.74);
    display: grid;
    gap: 0.11rem;
}

.hud span,
.summary span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.67rem;
    color: var(--muted);
}

.hud strong,
.summary strong {
    font-size: 0.95rem;
}

.lineup-panel {
    padding: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.lineup-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

h2 {
    margin: 0;
    font-size: 1rem;
}

.lineup-head p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.mini-clock {
    border: 1px solid #4a6cb8;
    border-radius: 8px;
    padding: 0.4rem 0.58rem;
    font-family: "IBM Plex Mono", "Cascadia Code", monospace;
    color: var(--cyan);
    min-width: 74px;
    text-align: center;
    background: rgba(8, 16, 35, 0.72);
}

.shows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.55rem;
}

.show-card {
    border: 1px solid #36569a;
    border-radius: 10px;
    background: rgba(8, 15, 33, 0.86);
    padding: 0.52rem;
    display: grid;
    gap: 0.32rem;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.show-card:hover {
    transform: translateY(-1px);
    border-color: #7fa7ff;
}

.show-card.selected {
    border-color: #8e62f2;
    box-shadow: inset 0 0 0 1px rgba(142, 98, 242, 0.45);
}

.show-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
}

.show-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.show-score {
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.86rem;
}

.show-meta {
    font-size: 0.79rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.tag {
    font-size: 0.73rem;
    border: 1px solid #4b66a5;
    color: #d9e7ff;
    border-radius: 999px;
    padding: 0.14rem 0.42rem;
    justify-self: start;
    background: rgba(12, 23, 49, 0.82);
}

.planner {
    padding: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 0.5rem;
}

.summary div {
    border: 1px solid #355292;
    border-radius: 9px;
    background: rgba(4, 9, 20, 0.74);
    padding: 0.42rem 0.55rem;
    display: grid;
    gap: 0.12rem;
}

.status {
    margin: 0;
    color: var(--muted);
    min-height: 1.2rem;
}

.status.good { color: var(--good); }
.status.bad { color: var(--bad); }

.actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 0.48rem;
}

button {
    border: 1px solid #4364ad;
    border-radius: 9px;
    background: #152754;
    color: var(--text);
    font: inherit;
    font-weight: 640;
    font-size: 0.9rem;
    padding: 0.56rem 0.62rem;
    cursor: pointer;
    transition: transform 110ms ease, border-color 110ms ease;
}

button:hover {
    transform: translateY(-1px);
    border-color: #85afff;
}

button:active {
    transform: translateY(1px);
}

button.accent {
    border-color: #9a67ff;
    background: linear-gradient(180deg, #7d4ddd, #5833a2);
}

button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 900px) {
    .hud {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    .actions {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .lineup-head {
        flex-direction: column;
    }
}
