/* Tinkerplay studio showcase — dark slate + warm amber, no external fonts/CDNs */
:root {
  --bg: #0c1016;
  --bg-elev: #141a24;
  --bg-card: #171e2a;
  --line: rgba(232, 213, 180, 0.12);
  --line-strong: rgba(232, 165, 75, 0.38);
  --text: #f4efe6;
  --muted: #9aa3b2;
  --soft: #c9c2b4;
  --amber: #e8a54b;
  --amber-bright: #f3c77a;
  --amber-deep: #c47a22;
  --ink: #1a140c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "Palatino Linotype", Palatino, "Iowan Old Style", "Times New Roman", "Noto Serif", Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --bar-h: 58px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 80% -10%, rgba(232, 165, 75, 0.14), transparent 55%),
    radial-gradient(900px 480px at -10% 0%, rgba(80, 110, 160, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-bright); text-decoration: none; }
a:hover { color: var(--amber); }
button { font-family: inherit; }

/* ===== Home ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(232, 165, 75, 0.35));
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: var(--amber-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 650;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.tagline {
  margin: 0 0 1.1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--soft);
  max-width: 28em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.6rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(232, 165, 75, 0.08);
  color: var(--amber-bright);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(20, 26, 36, 0.7);
  color: var(--soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.filters button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.filters button.active {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  border-color: transparent;
  color: var(--ink);
}

.catalog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.8rem 1.4rem 3rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(232, 165, 75, 0.08);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0d12;
}

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .cover-link img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.05rem 1.1rem 1.15rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.15;
  font-weight: 700;
}

.genre {
  flex: 0 0 auto;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--amber-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hook {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.pill {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.play {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-bright), var(--amber-deep));
  color: var(--ink) !important;
  font-weight: 750;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(196, 122, 34, 0.32);
  transition: filter .15s ease, transform .15s ease;
}

.play:hover { filter: brightness(1.08); transform: translateY(-1px); }

.card.is-hidden { display: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.4rem 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--amber-bright); }

/* ===== Play wrapper ===== */
body.play-page {
  background: #07090d;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.8rem;
  background: linear-gradient(180deg, #161b24, #10141b);
  border-bottom: 1px solid var(--line);
}

.topbar .back,
.topbar .bar-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.05);
  color: var(--text);
  border-radius: 10px;
  padding: 0.38rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.topbar .back:hover,
.topbar .bar-btn:hover {
  border-color: var(--line-strong);
  color: var(--amber-bright);
  background: rgba(232, 165, 75, 0.08);
}

.topbar .identity {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .genre { font-size: 0.64rem; }

.stage {
  height: calc(100vh - var(--bar-h));
  background: #000;
}

.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.more-panel {
  display: none;
  position: absolute;
  top: calc(var(--bar-h) + 8px);
  right: 10px;
  width: min(360px, calc(100vw - 20px));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.55rem;
  z-index: 20;
}

.more-panel.open { display: block; }

.more-panel a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem;
  border-radius: 10px;
  color: var(--text);
}

.more-panel a:hover { background: rgba(232, 165, 75, 0.1); }

.more-panel img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
  flex: 0 0 auto;
  background: #0a0d12;
}

.more-panel .m-title { font-weight: 700; font-size: 0.92rem; }
.more-panel .m-genre { color: var(--muted); font-size: 0.75rem; }

.play-error {
  display: grid;
  place-items: center;
  height: calc(100vh - var(--bar-h));
  text-align: center;
  padding: 2rem;
}

.play-error h1 { font-family: var(--font-display); margin-bottom: 0.4rem; }
.play-error p { color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding: 2rem 1rem 1.2rem; }
  .catalog { padding: 1.2rem 1rem 2.2rem; }
  .brand h1 { font-size: 2.15rem; }
  .card-meta { flex-wrap: wrap; }
  .topbar .genre { display: none; }
  .topbar h1 { font-size: 0.98rem; }
  .bar-btn.fs-label { padding: 0.38rem 0.55rem; }
}
