/* AIro3D: brand colours from the end card (navy 31,45,62; sand 200,170,125) */
:root {
  --navy: #1f2d3e;
  --navy-2: #16212e;
  --navy-3: #2a3c52;
  --sand: #c8aa7d;
  --sand-2: #e3cfa9;
  --paper: #f4efe6;
  --ink: #1b2430;
  --muted: #5d6a78;
  --card: #ffffff;
  --line: #e2dccf;
  --serif: "EB Garamond", Garamond, "Garamond Premier Pro", "Times New Roman", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
a { color: #8a5a2b; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero (compact) */
.hero { background: radial-gradient(ellipse at 30% 0%, var(--navy-3), var(--navy) 60%, var(--navy-2)); color: #f0ece4; padding: 18px 0 16px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.emblem { width: 64px; height: 64px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.wordmark { height: 46px; width: auto; display: block; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--sand); font-size: 1.05rem; line-height: 1.1; }
.yt-channel { display: inline-flex; align-items: center; gap: 8px; color: #f0ece4; text-decoration: none; border: 1px solid rgba(240, 236, 228, .35); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; }
.yt-channel:hover { border-color: var(--sand); color: var(--sand-2); }
.yt-channel svg { color: #e8b4a0; }
.hero-sub { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 10px; }
.intro { margin: 0; color: #cdd2d9; font-size: .95rem; flex: 1 1 420px; }
.soon { padding: 4px 12px; border: 1px solid var(--sand); border-radius: 999px; color: var(--sand-2); font-family: var(--serif); font-size: 1rem; white-space: nowrap; }
.soon[hidden] { display: none; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin: 28px 0 8px; }
.search { flex: 1 1 320px; }
.search input { width: 100%; padding: 12px 16px; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.search input:focus { outline: 2px solid var(--sand); outline-offset: 1px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; font: inherit; cursor: pointer; }
.cat[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.count { color: var(--muted); font-size: .92rem; margin: 6px 0 14px; min-height: 1.2em; }

/* cards */
.cards { display: grid; gap: 28px; margin-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 30, 45, .06); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.media { background: #0e151e; min-height: 100%; display: flex; flex-direction: column; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0e151e center / cover no-repeat; }
.media.single .player { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; }
.player { overflow: hidden; }
.ribbon { position: absolute; z-index: 2; top: 22px; left: -46px; width: 180px; transform: rotate(-45deg); text-align: center;
  background: #e8b4a0; color: #3a1d12; font-weight: 700; font-size: .85rem; letter-spacing: .03em; padding: 6px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.new-tag { background: #e8b4a0; color: #3a1d12; border-radius: 4px; padding: 0 5px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(20, 30, 45, .55); color: #fff; font-size: 30px; cursor: pointer; }
.player .play:hover { background: rgba(200, 170, 125, .85); }
.player .badge-soon { position: absolute; left: 14px; bottom: 14px; background: rgba(15, 22, 32, .78); color: var(--sand-2); padding: 6px 12px; border-radius: 8px; font-family: var(--serif); font-size: 1.05rem; }
.vlist { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 6px; }
.vlist button { width: 100%; text-align: left; background: transparent; color: #d9dde2; border: 1px solid #2a3a4e; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .92rem; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.vlist button[aria-current="true"] { border-color: var(--sand); color: #fff; }
.vlist .min { color: var(--sand); white-space: nowrap; }
.body { padding: 22px 24px 18px; display: flex; flex-direction: column; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; }
.chip { background: #efe7d8; color: #6b4e25; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.15; margin: 10px 0 2px; }
.card h2 .year { color: #8a5a2b; font-weight: 500; }
.sub { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 0 10px; font-size: 1.1rem; }
.loc { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.desc p { margin: 0 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.btn-shop { background: var(--navy); color: #fff; }
.btn-shop:hover { background: var(--navy-3); }
.btn-yt { background: #f3ede2; color: var(--ink); border: 1px solid var(--line); }
.credits { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: .86rem; color: var(--muted); }
.credits summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.credits ul { margin: 8px 0 0; padding-left: 18px; }
.credits li { margin: 2px 0; }
.credits .credit-line { margin: 6px 0 0; }
mark { background: #f5e3b8; color: inherit; border-radius: 2px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* footer */
.footer { background: var(--navy); color: #c9ced6; padding: 28px 0 36px; font-size: .92rem; }
.footer .wrap { display: grid; grid-template-columns: 32px 1fr; gap: 6px 14px; align-items: start; }
.footer p { margin: 0; grid-column: 2; }
.footer img { grid-row: span 2; }
.footer a { color: var(--sand-2); }
.footer .small { color: #9aa4b1; font-size: .84rem; margin-top: 6px; }

@media (max-width: 820px) {
  .card { grid-template-columns: 1fr; }
  .body { padding: 18px 16px 14px; }
  .card h2 { font-size: 1.6rem; }
  .emblem { width: 52px; height: 52px; }
  .wordmark { height: 38px; }
  .yt-channel span { display: none; }
  .yt-channel { padding: 8px; }
}
