.tile.tile--grapes {
  --gp-ink: #211a3a;
  --gp-muted: #686078;
  --gp-line: rgb(67 36 115 / 13%);
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  color: var(--gp-ink);
  background: radial-gradient(ellipse at 10% 10%, #cce5ff 0, transparent 58%), radial-gradient(ellipse at 75% 57%, #f4dafa 0, transparent 65%), #eeeafa;
  isolation: isolate;
}
:root[data-theme="dark"] .tile.tile--grapes {
  --gp-ink: #f7f1ff;
  --gp-muted: #c5b6db;
  --gp-line: rgb(220 191 255 / 16%);
  background: radial-gradient(ellipse at 10% 0, #273763 0, transparent 60%), radial-gradient(ellipse at 80% 60%, #432151 0, transparent 65%), #1d172c;
}
.tile--grapes .gp-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; gap: 12px; z-index: 1; }
.tile--grapes .tile-app { color: inherit; display: inline-flex; align-items: center; gap: 10px; }
.tile--grapes .gp-logo { width: 20px; height: 20px; padding: 2px; box-sizing: border-box; object-fit: contain; background: #f7f7f7; border-radius: 5px; }
.gp-visit { font-size: 12px; font-weight: 600; color: inherit; text-decoration: none; white-space: nowrap; }
.gp-visit:hover { text-decoration: underline; }
.tile--grapes .gp-stage { position: relative; flex: 1 1 330px; min-height: 280px; overflow: hidden; }
.gp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .3s; }
[data-scene="ready"] .gp-canvas { opacity: 1; }
.gp-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 24px; color: var(--gp-ink); background: rgb(255 255 255 / 42%); border: 1px solid rgb(255 255 255 / 50%); font-size: 11px; text-align: center; pointer-events: none; }
:root[data-theme="dark"] .gp-hint { background: rgb(27 16 43 / 65%); border-color: var(--gp-line); }
.tile--grapes .gp-controls { flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; padding: 20px 24px 16px; border-top: 1px solid var(--gp-line); background: rgb(255 255 255 / 32%); }
:root[data-theme="dark"] .gp-controls { background: rgb(13 10 23 / 45%); }
.gp-now { min-width: 0; min-height: 52px; }
.tile--grapes [hidden] { display: none; }
.gp-empty { display: grid; align-content: center; gap: 9px; min-height: 52px; }
.gp-skeleton { display: block; border-radius: 5px; background: var(--gp-line); }
.gp-skeleton-title { width: min(76%, 270px); height: 24px; }
.gp-skeleton-artist { width: 58px; height: 10px; }
.gp-skeleton-time { width: 62px; height: 8px; }
.tile--grapes[data-selection="idle"] .gp-progress input { opacity: .35; cursor: default; }
.gp-label { display: block; font-size: 9px; letter-spacing: 1.1px; font-weight: 700; color: var(--gp-muted); margin-bottom: 6px; }
.gp-now h2 { font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -.6px; line-height: 1.15; margin: 0 0 4px; overflow-wrap: anywhere; }
.gp-now p { margin: 0; font-size: 12px; color: var(--gp-muted); }
.gp-transport { display: flex; gap: 8px; align-items: center; }
.gp-transport button { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 40px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; border-radius: 50%; padding: 0; }
.gp-transport [data-gp-play] { width: 48px; height: 48px; background: var(--gp-ink); color: #f4edff; font-size: 18px; }
:root[data-theme="dark"] .gp-transport [data-gp-play] { color: #211a3a; }
.gp-transport button:hover { opacity: .75; }
.gp-transport button:disabled { opacity: .4; cursor: default; }
.gp-track { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--gp-muted); }
.gp-track > span { flex-shrink: 0; }
.gp-track select { min-width: 0; width: 100%; border: 1px solid var(--gp-line); border-radius: 8px; color: var(--gp-ink); background: transparent; padding: 8px 28px 8px 10px; font-size: 12px; }
.gp-track option { color: #211a3a; background: #f4effb; }
.gp-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.gp-progress input { width: 100%; min-width: 0; height: 16px; accent-color: #a744dc; cursor: pointer; }
.gp-progress span { flex-shrink: 0; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--gp-muted); }
.gp-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tile--grapes :is(button, select, input, a):focus-visible { outline: 2px solid #aa4be7; outline-offset: 3px; }
.tile--grapes audio:not([hidden]) { grid-column: 1 / -1; width: 100%; }
.tile--grapes noscript { grid-column: 1 / -1; font-size: 12px; }
.gp-placeholder { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; padding: 24px; text-align: center; color: var(--gp-muted); font-size: 12px; }
[data-scene="ready"] .gp-placeholder { display: none; }
@media (min-width: 1181px) {
  .grid.is-ff-expanded .tile--grapes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 45px minmax(0, 1fr); }
  .grid.is-ff-expanded .tile--grapes .gp-header { grid-column: 1 / -1; padding-top: 12px; }
  .grid.is-ff-expanded .tile--grapes .gp-stage { min-height: 0; height: 100%; }
  .grid.is-ff-expanded .tile--grapes .gp-controls { grid-column: 2; grid-row: 2; padding: 12px 16px; gap: 10px 8px; align-content: center; border-top: 0; border-left: 1px solid var(--gp-line); }
  .grid.is-ff-expanded .gp-now h2 { font-size: 20px; }
  .grid.is-ff-expanded .gp-label { font-size: 8px; letter-spacing: .5px; }
  .grid.is-ff-expanded .gp-transport { gap: 2px; }
  .grid.is-ff-expanded .gp-transport button { width: 22px; }
  .grid.is-ff-expanded .gp-transport [data-gp-play] { width: 36px; height: 36px; font-size: 15px; }
  .grid.is-ff-expanded .gp-hint { font-size: 9px; padding: 6px 8px; bottom: 10px; }
}
@media (max-width: 600px) {
  .tile.tile--grapes { min-height: 570px; }
  .tile--grapes .gp-header { padding: 20px 18px 0; }
  .tile--grapes .gp-controls { padding: 18px 18px 14px; gap: 12px 8px; }
  .gp-transport { gap: 2px; }
  .gp-transport button { width: 28px; }
  .gp-transport [data-gp-play] { width: 42px; height: 42px; }
  .gp-label { font-size: 8px; letter-spacing: .6px; }
  .gp-now h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .gp-canvas { transition: none; } }
