.home { background: var(--bg); color: var(--text); min-height: 100svh; display: flex; flex-direction: column; }
.home a { color: var(--text); text-underline-offset: 3px; }

.live {
    flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; box-sizing: border-box;
    padding: max(18px, env(safe-area-inset-top)) 18px 20px;
    display: grid; gap: 24px; align-content: start;
}
.live-intro { min-width: 0; }
.live-logo { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: 30px; letter-spacing: -.03em; text-decoration: none; }
.live-mark { width: 52px; height: 52px; flex: none; }
.live-h1 { margin: 22px 0 0; font-size: 40px; line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.live-h1 span { display: block; }
.live-h1 span + span { color: var(--accent); }
.live-tag { margin: 12px 0 0; font-size: 18px; font-weight: 600; color: var(--muted); max-width: 30ch; }

.live-form { position: relative; margin-top: 20px; max-width: 520px; }
.live-form > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.live-form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.live-input {
    flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 18px;
    border: 2px solid var(--line); background: var(--surface); color: var(--text); caret-color: var(--accent);
    font: inherit; font-size: 24px; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums;
}
.live-input::placeholder { color: var(--muted); font-weight: 600; opacity: 1; }
.live-input:focus-visible { outline: none; border-color: var(--accent); }
.live-btn {
    flex: 1 1 auto; height: 56px; padding: 0 26px; border-radius: 18px; border: 0;
    background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
    transition: filter .15s ease-out;
}
.live-btn:hover { filter: brightness(1.08); }
.live-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.live-results {
    position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); max-height: min(340px, 50vh); overflow-y: auto; padding: 6px;
    border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.live-results[hidden], .live-favs[hidden] { display: none; }
.live-favs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.live-favs > span { font-size: 13px; font-weight: 700; color: var(--muted); }

.live-day { min-width: 0; perspective: 1200px; }
.live-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.live-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; transform-origin: top center; }
.live-time { padding-top: 12px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.live-time b { font-size: 18px; font-weight: 800; }
.live-time > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.live-card { min-width: 0; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.live-card strong { font-size: 17px; font-weight: 800; line-height: 1.2; }
.live-card .sub { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.live-card .sub span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

.live-foot { flex: none; width: 100%; max-width: 1120px; margin: 0 auto; box-sizing: border-box; padding: 14px 18px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.live-foot p { margin: 0; }
.live-foot .fine { margin-top: 4px; font-size: 12px; }

@media (max-width: 899px) {
    .live-list li:nth-child(n + 3) { display: none; }
}
@media (max-width: 899px) and (max-height: 760px) {
    .live { gap: 16px; padding-bottom: 14px; }
    .live-list li:nth-child(n + 2) { display: none; }
    .live-h1 { font-size: 33px; margin-top: 14px; }
    .live-tag { margin-top: 8px; }
    .live-form { margin-top: 14px; }
    .live-favs { margin-top: 10px; }
}
@media (max-width: 899px) and (max-height: 600px) {
    .live-day { display: none; }
}


html[data-redirecting] body { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
    .live-mark > :nth-child(n + 3) { transform-box: fill-box; transform-origin: center; animation: home-pop 260ms cubic-bezier(.2, .9, .3, 1.2) backwards; }
    .live-mark > :nth-child(5), .live-mark > :nth-child(6) { animation-delay: 60ms; }
    .live-mark > :nth-child(7) { animation-delay: 120ms; }
    .live-mark > :nth-child(8) { animation-delay: 170ms; }
    .live-mark > :nth-child(9) { animation-delay: 220ms; }
    .live-mark > :nth-child(10), .live-mark > :nth-child(11) { transform-origin: left center; animation: home-draw 300ms cubic-bezier(.16, 1, .3, 1) 260ms backwards; }
    .live-list li { transform-origin: top center; animation: home-flip 340ms cubic-bezier(.2, .9, .3, 1) calc(120ms + var(--i) * 70ms) backwards; }
}
@keyframes home-flip {
    from { transform: perspective(700px) rotateX(-90deg); opacity: 0; }
    45% { opacity: 1; }
}
@keyframes home-pop { from { transform: scale(.2); opacity: 0; } }
@keyframes home-draw { from { transform: scaleX(0); } }

@media (min-width: 900px) {
    .live { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-content: center; align-items: center; padding-top: 32px; padding-bottom: 32px; }
    .live-logo { font-size: 36px; }
    .live-mark { width: 64px; height: 64px; }
    .live-h1 { font-size: 64px; margin-top: 40px; }
    .live-input, .live-btn { height: 64px; }
    .live-day { padding-top: 96px; }
    .live-foot { padding-left: 18px; padding-right: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
    .live-foot .fine { margin-top: 0; }
}
@media (min-width: 900px) and (max-height: 760px) {
    .live-h1 { font-size: 52px; margin-top: 24px; }
    .live-day { padding-top: 72px; }
    .live-list li:nth-child(n + 4) { display: none; }
}
