/* Golden Sunset — rear-seat tablet (passenger view). Navy / gold, touch-first. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --gold: #c9a227; --gold-soft: #e6c877; --ink: #05070f; --panel: #0a0f1e;
    --line: rgba(201, 162, 39,.35); --txt: #efe8d5; --muted: #a9b6c6;
}
html, body { height: 100%; }
body {
    background: var(--ink); color: var(--txt);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none;
}

/* ---------- Banner ---------- */
.banner {
    height: 56px; display: flex; align-items: center; gap: 14px;
    padding: 0 18px; background: #070708; border-bottom: 1px solid var(--line);
    position: relative; z-index: 5;
}
.banner-logo { height: 40px; width: auto; }
.banner-text { font-size: 19px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.banner-text .dot { color: var(--gold); }
.banner-url { color: var(--gold-soft); }
.lang-switch { margin-left: auto; display: flex; gap: 6px; }
.lang-btn {
    background: transparent; color: var(--muted); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer;
}
.lang-btn.on { color: #0b0b0d; background: var(--gold); border-color: var(--gold); font-weight: 700; }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: flex; }
#view-home { height: calc(100vh - 56px); height: calc(100dvh - 56px); }

/* ---------- Media area (the star) ---------- */
.media-area {
    flex: 1 1 auto; position: relative; overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, #16161a 0%, #070708 70%);
    display: flex; align-items: center; justify-content: center;
}
/* Owner order 2026-11-08: the media plays INSIDE a visible framed area and is
   never cropped (object-fit: contain) — his promo video carries text and a QR
   baked into its edges, so cover-cropping cut them off.
   v3 fix: the box is sized with explicit left/top/width/height longhands —
   sizing it with the `inset` shorthand alone left the <video> at its
   intrinsic 1920x1080 size on the tablet's browser (a giant "zoom"). */
.media-area video, .media-area .slide {
    position: absolute; left: 18px; top: 18px;
    width: calc(100% - 36px); height: calc(100% - 36px);
    object-fit: contain;
    background: #070708; border: 2px solid var(--line); border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.65), 0 0 34px rgba(201, 162, 39,.08);
}
.media-area .slide { opacity: 0; transition: opacity 1.2s ease; }
.media-area .slide.on { opacity: 1; }
.brand-cover { text-align: center; padding: 24px; }
.brand-cover img { width: min(34vh, 300px); height: auto; }
.brand-cover h1 { font-size: clamp(26px, 4.2vw, 46px); letter-spacing: .06em; margin-top: 14px; color: var(--txt); }
.brand-cover p { color: var(--gold-soft); font-size: clamp(15px, 1.8vw, 22px); margin-top: 8px; letter-spacing: .08em; }

/* ---------- Side panel (discreet) ---------- */
.side-panel {
    flex: 0 0 196px; display: flex; flex-direction: column; gap: 14px;
    padding: 18px 14px; background: var(--panel); border-left: 1px solid var(--line);
    justify-content: center;
}
.action-btn {
    flex: 1; max-height: 150px; display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
    border-radius: 20px; font-size: 21px; cursor: pointer;
}
.action-btn:active { background: #141419; border-color: var(--gold); }
.action-ico { line-height: 0; }
.action-ico svg { width: 36px; height: 36px; display: block; }

/* Two-line call-to-action labels (owner idea 2026-11-08): a small ice-blue
   "TOUCH HERE" line over the action line. */
.action-txt {
    display: flex; flex-direction: column; gap: 3px;
    align-items: center; text-align: center;
}
.action-cta {
    font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold);
}
.action-main {
    font-size: 19px; font-weight: 600; color: var(--txt); line-height: 1.15;
    text-wrap: balance;
}

/* Arrow tour (owner idea 2026-11-08): a small ice-blue arrow that points
   at Book -> Review -> Tip in turn, with a gentle nudge, then rests and
   repeats; it stops for good on the passenger's first touch. The nudge
   animation touches transform ONLY — an opacity keyframe would override
   the .on opacity and the arrow could never hide (that bug killed the
   earlier floating pill). */
.side-panel { position: relative; }
.cta-arrow {
    position: absolute; left: -22px; top: 0; width: 18px; height: 18px; z-index: 5;
    opacity: 0; pointer-events: none; transform: translate(0, -50%);
    transition: opacity .45s ease;
    filter: drop-shadow(0 0 6px rgba(201, 162, 39,.45));
}
.cta-arrow svg { width: 100%; height: 100%; display: block; }
.cta-arrow.on { opacity: 1; animation: arrowNudge 1.1s ease-in-out infinite; }
@keyframes arrowNudge {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(4px, -50%); }
}

/* ---------- Sheets (tip / book / review) ---------- */
.sheet {
    position: fixed; inset: 0; background: radial-gradient(120% 120% at 50% 0%, #141310 0%, #070708 60%);
    flex-direction: column; z-index: 10;
}
.sheet-body { flex: 1; overflow-y: auto; padding: 24px 26px 104px; max-width: 760px; width: 100%; margin: 0 auto; }
.sheet-body.center { text-align: center; }
.sheet h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: .02em; }
.sheet-sub { color: var(--muted); font-size: clamp(16px, 2vw, 21px); margin-top: 8px; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.method-btn {
    padding: 30px 12px; font-size: 24px; border-radius: 20px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.method-btn:active { border-color: var(--gold); background: #141419; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.chip {
    padding: 24px 0; font-size: 26px; border-radius: 18px; cursor: pointer;
    background: #101014; color: var(--gold-soft); border: 1px solid var(--line); font-weight: 700;
}
.chip:active { background: var(--gold); color: #0b0b0d; }
.custom-amount { display: flex; gap: 12px; align-items: stretch; margin-top: 22px; }
.custom-amount .cur { font-size: 28px; align-self: center; color: var(--gold-soft); }
.custom-amount input {
    flex: 1; min-width: 0; background: #0d0d10; border: 1px solid var(--line); border-radius: 14px;
    color: var(--txt); font-size: 28px; padding: 14px 16px;
}
.go-btn {
    background: var(--gold); color: #0b0b0d; border: none; border-radius: 14px;
    font-size: 19px; font-weight: 700; padding: 0 22px; cursor: pointer;
}

.result-amount { font-size: clamp(38px, 5.5vw, 60px); font-weight: 800; color: var(--gold-soft); margin: 6px 0 2px; }
.pay-handle { margin-top: 12px; font-size: 19px; color: var(--muted); }
.pay-handle strong { color: var(--gold-soft); font-size: 25px; letter-spacing: .02em; }
.qr-box {
    display: inline-block; background: #fff; border-radius: 18px; padding: 12px; margin-top: 10px;
}
.qr-box svg { width: min(37vh, 290px); height: auto; display: block; }
.qr-link { color: #0b0b0d; word-break: break-all; max-width: 300px; }
.zelle-img {
    width: min(35vh, 270px); height: auto; background: #fff; border-radius: 18px; padding: 10px; margin-top: 10px;
}
.zelle-panel { margin: 18px auto 0; max-width: 520px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: rgba(255,255,255,.03); }
.zelle-name { font-size: 20px; font-weight: 700; }
.zelle-phone { font-size: 30px; color: var(--gold-soft); font-weight: 800; letter-spacing: .03em; margin: 4px 0 8px; }
.zelle-panel p { color: var(--muted); font-size: 16px; line-height: 1.45; }

/* ---------- Book view: QR left, book-on-this-tablet panel right ---------- */
.book-body { max-width: 1120px; }
.book-split { display: flex; align-items: center; justify-content: center; gap: 34px; }
.book-qr-side { flex: 0 1 auto; }
#view-book .qr-box svg { width: min(50vh, 370px); }
.book-direct {
    flex: 0 1 340px; text-align: center; background: #191920;
    border: 1px solid var(--gold); border-radius: 20px; padding: 28px 24px;
}
.book-direct h3 { font-size: clamp(22px, 2.6vw, 30px); color: var(--gold-soft); }
.book-direct p { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 12px 0 20px; }
.book-direct-btn {
    display: block; background: var(--gold); color: #0b0b0d; font-weight: 800; font-size: 20px;
    padding: 16px 18px; border-radius: 14px; text-decoration: none;
}
.book-direct-btn:active { background: var(--gold-soft); }

@media (max-width: 760px) {
    .book-split { flex-direction: column; gap: 22px; }
    .book-direct { flex-basis: auto; width: 100%; max-width: 420px; }
}

/* ---------- Fixed Back / Home bar ---------- */
.view-nav {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 14px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: rgba(8,26,49,.88); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.nav-btn {
    flex: 1; padding: 18px 0; font-size: 21px; border-radius: 16px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.nav-btn:active { border-color: var(--gold); background: #141419; }

@media (max-width: 640px) {
    .side-panel { flex-basis: 148px; padding: 12px 10px; }
    .action-btn { font-size: 17px; }
    .banner-text { font-size: 15px; }
    .method-grid { grid-template-columns: 1fr; }
}

/* ================= ENTERTAINMENT (owner idea 2026-11-08) ================= */
.hidden { display: none !important; }
.game-body { max-width: 820px; }
.game-msg { min-height: 30px; font-size: 21px; font-weight: 600; margin: 12px 0; }
.game-msg.good { color: var(--gold); }
.game-msg.bad { color: #e0685f; }
.game-stats { font-size: 18px; color: var(--muted); margin: 8px 0 14px; }
.g-btn {
    padding: 14px 30px; font-size: 19px; font-weight: 700; border-radius: 14px;
    background: linear-gradient(180deg, #8fb9de, var(--gold)); color: #0b0b0d;
    border: none; cursor: pointer; margin-top: 10px;
}
.g-btn:active { filter: brightness(1.12); }
.mode-row { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; flex-wrap: wrap; }
.mode-chip {
    padding: 10px 18px; font-size: 16px; border-radius: 999px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.mode-chip.on { border-color: var(--gold); color: var(--gold); font-weight: 700; }

/* Hub */
.game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px;
}
.game-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 22px 8px 18px; border-radius: 18px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
    font-size: 17px; font-weight: 600;
}
.game-card:active { border-color: var(--gold); background: #141419; }
.game-glyph { font-size: 34px; color: var(--gold); line-height: 1; font-weight: 700; }
@media (max-width: 640px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }

/* Trivia */
.trivia-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.trivia-progress { color: var(--muted); font-size: 16px; min-height: 22px; }
.trivia-q { font-size: clamp(21px, 2.8vw, 28px); font-weight: 700; margin: 14px auto; max-width: 620px; line-height: 1.3; }
.trivia-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }
.trivia-opt {
    padding: 18px 14px; font-size: 19px; border-radius: 14px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.trivia-opt.correct { border-color: var(--gold); background: #1d3a5c; color: var(--gold); font-weight: 700; }
.trivia-opt.wrong { border-color: #e0685f; background: #2a100d; color: #e0685f; }
.trivia-opt:disabled { opacity: .85; cursor: default; }
@media (max-width: 640px) { .trivia-opts { grid-template-columns: 1fr; } }

/* Memory */
.memory-grid { display: grid; grid-template-columns: repeat(4, 84px); gap: 12px; justify-content: center; margin: 8px auto; }
.mem-card {
    width: 84px; height: 104px; border-radius: 14px; cursor: pointer; font-size: 38px;
    background: #14304f; color: var(--gold); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.mem-card .face { display: none; }
.mem-card.open .face, .mem-card.done .face { display: block; }
.mem-card.open .back, .mem-card.done .back { display: none; }
.mem-card .back { color: #54677e; font-size: 30px; }
.mem-card.done { border-color: var(--gold); background: #141419; cursor: default; }

/* Tic-tac-toe */
.ttt-board { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; justify-content: center; margin: 10px auto; }
.ttt-cell {
    width: 96px; height: 96px; border-radius: 16px; font-size: 46px; font-weight: 800; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.ttt-cell.x { color: var(--gold); }
.ttt-cell.o { color: #d8d8d8; }
.ttt-cell.win { border-color: var(--gold); background: #1d3a5c; }

/* Simon */
.simon-board { display: grid; grid-template-columns: repeat(2, 128px); gap: 14px; justify-content: center; margin: 14px auto; }
.simon-pad { width: 128px; height: 128px; border-radius: 22px; border: 1px solid var(--line); cursor: pointer; background: #141419; }
.simon-pad[data-pad="0"] { background: #1b3350; }
.simon-pad[data-pad="1"] { background: #24476b; }
.simon-pad[data-pad="2"] { background: #2f5b87; }
.simon-pad[data-pad="3"] { background: #3e73a8; }
.simon-pad.lit { background: var(--gold) !important; box-shadow: 0 0 34px rgba(201, 162, 39,.75); }

/* Reaction */
.reaction-stage {
    max-width: 560px; margin: 16px auto; padding: 64px 20px; border-radius: 22px; cursor: pointer;
    background: #101014; border: 1px solid var(--line); font-size: 26px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; min-height: 190px;
}
.reaction-stage.wait { background: #2a100d; border-color: #7a2d26; }
.reaction-stage.ready { background: var(--gold); color: #0b0b0d; border-color: var(--gold); }

/* Rock paper scissors */
.rps-stage { font-size: 30px; min-height: 48px; font-weight: 700; margin-top: 10px; }
.rps-choices { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.rps-choice {
    width: 104px; padding: 18px 6px 12px; border-radius: 16px; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line); font-size: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.rps-choice .gly { font-size: 38px; color: var(--gold); }
.rps-choice:active { border-color: var(--gold); }

/* Guess the number */
.guess-display {
    font-size: 56px; font-weight: 800; color: var(--gold); min-height: 70px;
    letter-spacing: .06em; margin-top: 6px;
}
.digit-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; margin-top: 10px; }
.digit-btn {
    height: 62px; border-radius: 14px; font-size: 24px; font-weight: 700; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.digit-btn:active { border-color: var(--gold); }
.digit-btn.wide { grid-column: span 3; background: linear-gradient(180deg, #8fb9de, var(--gold)); color: #0b0b0d; border: none; }

/* Connect 4 */
.c4-board { display: grid; grid-template-columns: repeat(7, 52px); gap: 7px; justify-content: center; margin: 10px auto; padding: 12px; background: #121216; border: 1px solid var(--line); border-radius: 18px; width: max-content; }
.c4-cell { width: 52px; height: 52px; border-radius: 50%; background: #1b3b5f; cursor: pointer; }
.c4-cell.p1 { background: var(--gold); }
.c4-cell.p2 { background: #e8e8e8; }
.c4-cell.win { box-shadow: 0 0 0 3px #fff inset, 0 0 16px rgba(201, 162, 39,.8); }

/* Snake + shared dpad */
#snakeCanvas { background: #16161a; border: 1px solid var(--line); border-radius: 14px; margin: 6px auto; display: block; touch-action: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 62px); gap: 8px; justify-content: center; margin: 12px auto 2px; }
.dpad button {
    height: 54px; border-radius: 12px; font-size: 20px; cursor: pointer;
    background: #101014; color: var(--gold); border: 1px solid var(--line);
}
.dpad button:active { background: #141419; border-color: var(--gold); }

/* 2048 */
.g2048-board { display: grid; grid-template-columns: repeat(4, 68px); gap: 9px; justify-content: center; margin: 10px auto; padding: 11px; background: #121216; border: 1px solid var(--line); border-radius: 16px; width: max-content; touch-action: none; }
.g2048-tile {
    width: 68px; height: 68px; border-radius: 10px; background: #18375a;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px; font-weight: 800; color: var(--muted);
}
.g2048-tile.v2 { background: #1b3350; color: #b9cfe6; } .g2048-tile.v4 { background: #24476b; color: #c3d7ec; }
.g2048-tile.v8 { background: #52451d; color: #0b0b0d; background-color: #2f5b87; } .g2048-tile.v16 { background: #3e73a8; color: #0b0b0d; }
.g2048-tile.v32 { background: #c9a227; color: #0b0b0d; } .g2048-tile.v64 { background: #8fb9de; color: #0b0b0d; }
.g2048-tile.v128 { background: #bcd4ec; color: #0b0b0d; font-size: 20px; } .g2048-tile.v256 { background: #d2e2f2; color: #0b0b0d; font-size: 20px; }
.g2048-tile.v512 { background: #dceaf6; color: #0b0b0d; font-size: 20px; } .g2048-tile.v1024 { background: #e6eff8; color: #0b0b0d; font-size: 17px; }
.g2048-tile.v2048 { background: #f0f6fb; color: #0b0b0d; font-size: 17px; box-shadow: 0 0 22px rgba(201, 162, 39,.9); }

/* True or false */
.tf-timer { max-width: 520px; height: 10px; margin: 14px auto 4px; background: #18375a; border-radius: 6px; overflow: hidden; }
.tf-timer-fill { height: 100%; width: 100%; background: var(--gold); transition: width 1s linear; }
.tf-card {
    max-width: 560px; margin: 14px auto; padding: 30px 24px; min-height: 110px;
    display: flex; align-items: center; justify-content: center;
    background: #101014; border: 1px solid var(--line); border-radius: 18px;
    font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.35;
}
.tf-card.good { border-color: var(--gold); } .tf-card.bad { border-color: #e0685f; }
.tf-btns { display: flex; gap: 14px; justify-content: center; }
.tf-btns .g-btn { min-width: 150px; }
.tf-false { background: #1b3b5f !important; color: var(--txt) !important; border: 1px solid var(--line) !important; }

/* Hangman */
.hang-tries { font-size: 24px; letter-spacing: .35em; color: var(--gold); min-height: 32px; margin-top: 10px; }
.hang-tries .spent { color: #3a3a3a; }
.hang-word { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: .28em; margin: 16px 0 4px; color: var(--txt); }
.hang-keys { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-width: 600px; margin: 12px auto 0; }
.hang-key {
    width: 46px; height: 52px; border-radius: 10px; font-size: 19px; font-weight: 700; cursor: pointer;
    background: #101014; color: var(--txt); border: 1px solid var(--line);
}
.hang-key:disabled { opacity: .28; cursor: default; }
.hang-key.hit { border-color: var(--gold); color: var(--gold); opacity: 1; }
.hang-key.miss { border-color: #e0685f; color: #e0685f; opacity: 1; }

/* Paint */
#paintCanvas { background: #fff; border: 1px solid var(--line); border-radius: 14px; max-width: 100%; touch-action: none; display: block; margin: 8px auto; }
.paint-tools { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.paint-colors { display: flex; gap: 9px; }
.paint-dot { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #333; cursor: pointer; }
.paint-dot.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }

/* Catch the logo */
.whack-grid { display: grid; grid-template-columns: repeat(3, 96px); gap: 12px; justify-content: center; margin: 10px auto; }
.whack-hole {
    width: 96px; height: 96px; border-radius: 50%; background: #122c4c; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
}
.whack-hole img { width: 62px; height: 62px; object-fit: contain; display: none; }
.whack-hole.up img { display: block; }
.whack-hole.up { border-color: var(--gold); background: #141419; }

/* Photo puzzle */
.puzzle-board { display: grid; grid-template-columns: repeat(3, 104px); gap: 6px; justify-content: center; margin: 10px auto; }
.puzzle-tile {
    width: 104px; height: 104px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line);
    background-color: #14304f; background-repeat: no-repeat;
    font-size: 34px; font-weight: 800; color: var(--gold);
    display: flex; align-items: center; justify-content: center;
}
.puzzle-tile.empty { background: #0c0c0c; border-style: dashed; cursor: default; }

/* ---------- Play Your Music (owner idea 2026-11-12) ----------
   The layer fills the same gold frame as the promo (explicit longhands,
   never the inset shorthand — same tablet sizing lesson as the video). */
.music-layer {
    position: absolute; left: 18px; top: 18px;
    width: calc(100% - 36px); height: calc(100% - 36px);
    background: #000; border: 2px solid var(--line); border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.65);
    overflow: hidden; z-index: 6; display: flex; flex-direction: column;
}
.music-layer[hidden] { display: none; }
.music-bar {
    display: flex; gap: 10px; align-items: center; padding: 10px 12px;
    background: linear-gradient(180deg, #141414, #0a0a0a); border-bottom: 1px solid var(--line);
}
.music-back, .music-go {
    flex: none; background: var(--gold); color: #000; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; padding: 12px 16px; cursor: pointer;
}
.music-back { background: transparent; color: var(--gold-soft); border: 1px solid var(--line); }
#musicQuery {
    flex: 1; min-width: 0; background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px;
    color: var(--txt); font-size: 19px; padding: 12px 14px;
}
.music-stage { position: relative; flex: 1; }
.music-player { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.music-player iframe { width: 100%; height: 100%; display: block; border: 0; }
.music-results {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.92); overflow-y: auto; padding: 14px;
}
.music-results[hidden] { display: none; }
.music-msg { color: var(--muted); font-size: 17px; text-align: center; padding: 10px 6px; }
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.music-card {
    background: #141414; border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
    padding: 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px;
}
.music-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; display: block; }
.music-card-t { color: var(--txt); font-size: 14.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.music-card-c { color: var(--muted); font-size: 12.5px; }

/* Skip control belongs to the YouTube view only: floating chip, bottom-right
   of the music layer — never mixed into the system's own top bar. (2026-11-15) */
.music-next {
    position: absolute; right: 14px; bottom: 14px; z-index: 9;
    background: var(--gold); color: #000; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; padding: 12px 16px; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
