/* TelosCMS venue pages (guest phone page and big screen). Self-contained and responsive: phones first, TVs scale with the window. */
:root { --v-bg: #12131a; --v-card: #1d1f2b; --v-text: #f4f5fa; --v-dim: #a3a7bd; --v-accent: #ffb400; --v-ok: #4cd08a; --v-bad: #ff6b6b; }
* { box-sizing: border-box; }
body.v-guest, body.v-screen { margin: 0; background: var(--v-bg); color: var(--v-text); font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
.v-loading { padding: 2rem; text-align: center; color: var(--v-dim); }

/* Logos (the site's, then the venue's) */
.v-logos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.v-logos[hidden] { display: none; }
.v-logos img { display: block; max-height: 3.5rem; max-width: 40vw; width: auto; height: auto; object-fit: contain; }
.v-guest .v-logos { margin: .25rem 0 .5rem; }
.v-screen .v-logos { gap: 2vmin; flex-wrap: nowrap; }
.v-screen .v-logos img { max-height: 8vmin; max-width: 22vw; }

/* ---- Guest page ---- */
.v-guest main { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.v-guest h1 { font-size: 1.6rem; margin: .5rem 0 .25rem; }
.v-guest .v-intro { margin: 0 0 1rem; color: var(--v-dim); }
.v-card { background: var(--v-card); border-radius: 1rem; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.v-card h2 { margin: 0 0 .6rem; font-size: 1.1rem; color: var(--v-accent); text-transform: uppercase; letter-spacing: .06em; }
.v-now { display: flex; gap: 1rem; align-items: center; }
.v-now img { width: 5.5rem; height: 5.5rem; border-radius: .6rem; object-fit: cover; flex: none; }
.v-now .v-title { font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
.v-now .v-artist { font-size: 1.1rem; color: var(--v-dim); overflow-wrap: anywhere; }
.v-nothing { color: var(--v-dim); margin: 0; }
.v-played { list-style: none; margin: 0; padding: 0; }
.v-played li { padding: .45rem 0; border-top: 1px solid #2c2f40; overflow-wrap: anywhere; }
.v-played li:first-child { border-top: 0; }
.v-played span { color: var(--v-dim); }
.v-form { display: grid; gap: .7rem; }
.v-form label { font-weight: 600; font-size: .95rem; }
.v-form input[type=text], .v-form textarea { width: 100%; font: inherit; font-size: 1.1rem; color: var(--v-text); background: #12131a; border: 2px solid #34374c; border-radius: .7rem; padding: .8rem .9rem; }
.v-form input:focus, .v-form textarea:focus { outline: none; border-color: var(--v-accent); }
.v-form textarea { min-height: 5.5rem; resize: vertical; }
.v-form .v-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-form button { font: inherit; font-size: 1.15rem; font-weight: 700; color: #1a1300; background: var(--v-accent); border: 0; border-radius: .8rem; padding: .9rem 1rem; min-height: 3.2rem; cursor: pointer; }
.v-form button:disabled { opacity: .55; }
.v-msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.v-msg.ok { color: var(--v-ok); }
.v-msg.bad { color: var(--v-bad); }
.v-count { color: var(--v-dim); font-size: .85rem; text-align: right; }
.v-closed { color: var(--v-dim); margin: 0; }

.v-footer { max-width: 40rem; margin: 0 auto; padding: 0 1rem 2rem; text-align: center; font-size: .85rem; }
.v-footer a { color: var(--v-dim); text-decoration: none; border-bottom: 1px solid #3a3d52; }
.v-footer a:hover { color: var(--v-text); }

/* ---- Big screen: everything is sized from the window, so a TV, a laptop and a phone propped up all work ---- */
body.v-screen { overflow: hidden; height: 100vh; }
.v-screen main { height: 100vh; display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: auto 1fr auto; gap: 2.2vmin; padding: 3vmin; font-size: clamp(14px, 2.4vmin, 40px); }
.v-screen header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 3vmin; }
.v-screen header h1 { flex: 1; text-align: center; }
.v-screen header h1 { margin: 0; font-size: 3.2vmin; letter-spacing: .04em; text-transform: uppercase; color: var(--v-accent); }
.v-screen .v-clock { font-size: 3.2vmin; color: var(--v-dim); font-variant-numeric: tabular-nums; }
.v-screen .v-big { background: var(--v-card); border-radius: 2vmin; padding: 3vmin; display: flex; gap: 3vmin; align-items: center; min-height: 0; }
.v-screen .v-big img { height: 100%; max-height: 38vmin; aspect-ratio: 1; object-fit: cover; border-radius: 1.5vmin; flex: none; }
.v-screen .v-big .v-label { font-size: 2.2vmin; text-transform: uppercase; letter-spacing: .12em; color: var(--v-accent); margin: 0 0 1.5vmin; }
.v-screen .v-big .v-title { font-size: 7vmin; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.v-screen .v-big .v-artist { font-size: 4.4vmin; color: var(--v-dim); margin-top: 1vmin; overflow-wrap: anywhere; }
.v-screen aside { display: flex; flex-direction: column; gap: 2.2vmin; min-height: 0; }
.v-screen .v-qrbox { background: #fff; color: #111; border-radius: 2vmin; padding: 2vmin; text-align: center; }
.v-screen .v-qrbox img { width: 100%; max-width: 30vmin; height: auto; display: block; margin: 0 auto 1vmin; }
.v-screen .v-qrbox strong { display: block; font-size: 2.6vmin; }
.v-screen .v-qrbox span { font-size: 1.9vmin; word-break: break-all; }
.v-screen .v-recent { background: var(--v-card); border-radius: 2vmin; padding: 2.2vmin 2.6vmin; overflow: hidden; flex: 1; min-height: 0; }
.v-screen .v-recent h2 { margin: 0 0 1vmin; font-size: 2vmin; text-transform: uppercase; letter-spacing: .12em; color: var(--v-accent); }
.v-screen .v-played li { font-size: 2.4vmin; padding: .8vmin 0; }
.v-screen .v-shout { grid-column: 1 / -1; min-height: 14vmin; background: var(--v-accent); color: #1a1300; border-radius: 2vmin; padding: 2.4vmin 3vmin; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 5vmin; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; transition: opacity .6s; }
.v-screen .v-shout small { display: block; font-size: 2.6vmin; font-weight: 600; margin-top: .6vmin; opacity: .8; }
.v-screen .v-shout.v-idle { background: var(--v-card); color: var(--v-dim); font-size: 3vmin; font-weight: 600; }
.v-screen .v-fade { opacity: 0; }

/* A portrait screen or a phone: stack it. */
@media (max-aspect-ratio: 1/1) {
  body.v-screen { overflow: auto; height: auto; }
  .v-screen main { height: auto; min-height: 100vh; grid-template-columns: 1fr; grid-template-rows: none; }
  .v-screen .v-big { flex-direction: column; text-align: center; }
  .v-screen .v-big .v-title { font-size: 6.5vmin; }
}
