:root {
      color-scheme: light;
      --paper: #f3f0ea;
      --card: #fffcf8;
      --ink: #1d1a16;
      --muted: #6f675e;
      --line: #e6dfd4;
      --stamp: rgba(92, 84, 74, 0.72);
      --shadow: 0 18px 40px rgba(72, 56, 32, 0.08);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(1200px 500px at 50% -10%, #faf7f2, transparent 60%),
        var(--paper);
      color: var(--ink);
      font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    }

    button, a { font: inherit; }

    .frame {
      width: min(520px, calc(100% - 32px));
      margin: 0 auto;
      padding: 28px 0 36px;
    }

    .kicker {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    h1 {
      margin: 6px 0 0;
      font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
      font-size: 34px;
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.2;
    }

    .note {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .stack, .group { display: grid; gap: 16px; }
    .stack { margin-top: 22px; }
    .group { margin-top: 22px; }
    .group h2 {
      margin: 0 0 -4px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--muted);
    }
    .group h2 span {
      margin-left: 6px;
      font-weight: 500;
      letter-spacing: 0;
    }

    .stub {
      position: relative;
      display: grid;
      grid-template-columns: 132px 1fr;
      gap: 8px;
      align-items: center;
      min-height: 196px;
      padding: 18px 18px 18px 12px;
      background: var(--card);
      border: 1px solid rgba(70, 52, 28, 0.06);
      border-radius: 28px;
      box-shadow: var(--shadow);
    }

    .poster-wrap { position: relative; height: 168px; }
    .clip {
      position: absolute;
      top: -2px;
      left: 10px;
      width: 26px;
      height: 40px;
      z-index: 2;
      transform: rotate(-18deg);
      filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
    }
    .poster {
      display: block;
      width: 118px;
      height: 158px;
      margin-top: 8px;
      border-radius: 12px;
      overflow: hidden;
      transform: rotate(-8deg);
      box-shadow: 0 14px 24px rgba(40, 30, 16, 0.18);
      background: #241f1a;
    }
    a.poster {
      cursor: pointer;
      text-decoration: none;
    }
    .poster img, .poster-fallback {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .poster-fallback {
      display: grid;
      place-items: center;
      color: #f3ece2;
      font-family: "Iowan Old Style", Palatino, "Songti SC", serif;
      font-size: 42px;
    }

    .stub-body { padding: 6px 78px 2px 8px; }
    .stub-body h2 {
      margin: 0;
      font-size: 18px;
      font-weight: 650;
      letter-spacing: -0.02em;
      line-height: 1.35;
    }
    .when {
      margin: 12px 0 0;
      font-size: 14px;
      font-variant-numeric: tabular-nums;
    }
    .where {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }
    .origin {
      display: inline-block;
      margin-top: 14px;
      color: var(--muted);
      font-size: 13px;
      text-decoration: none;
      border-bottom: 1px solid #ddd4c8;
      padding-bottom: 1px;
    }
    .origin:hover { color: var(--ink); border-bottom-color: var(--ink); }

    .stamp {
      position: absolute;
      top: 16px;
      right: 12px;
      width: 76px;
      height: 76px;
      color: var(--stamp);
      transform: rotate(14deg);
      pointer-events: none;
    }
    .stamp text {
      font-family: "Songti SC", "Iowan Old Style", serif;
      fill: currentColor;
    }

    .stub.is-live .stamp {
      color: #8c3d32;
    }

    .stub.is-ended {
      background: #f6f4f1;
      box-shadow: none;
      filter: grayscale(1);
      opacity: 0.62;
    }

    .stub.is-ended .poster {
      box-shadow: none;
    }

    .elsewhere {
      margin: 28px 0 0;
      text-align: center;
    }
    .elsewhere a {
      color: var(--ink);
      font-size: 15px;
      text-underline-offset: 4px;
    }

    .switch, .chips {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .switch { margin-top: 18px; }
    .chips::-webkit-scrollbar, .switch::-webkit-scrollbar { display: none; }
    .switch a, .chips a, .switch button, .chips button, .proto button {
      border: 1px solid var(--line);
      background: transparent;
      color: var(--ink);
      border-radius: 999px;
      padding: 10px 14px;
      white-space: nowrap;
      cursor: pointer;
      text-decoration: none;
    }
    .switch a.on, .chips a.on, .switch button.on, .chips button.on, .proto button.on {
      background: var(--ink);
      border-color: var(--ink);
      color: #f6f1e8;
    }

    .quiet {
      margin: 22px 0 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .proto {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 10px 16px 14px;
      background: rgba(255, 252, 248, 0.94);
      border-top: 1px solid var(--line);
      backdrop-filter: blur(10px);
    }
    .proto p {
      width: min(920px, 100%);
      margin: 0 auto 8px;
      color: #9a9186;
      font-size: 12px;
      letter-spacing: 0.04em;
    }
    .proto .chips {
      width: min(920px, 100%);
      margin: 0 auto;
    }

    @media (max-width: 420px) {
      h1 { font-size: 30px; }
      .stub { grid-template-columns: 108px 1fr; min-height: 0; }
      .poster { width: 96px; height: 132px; }
      .poster-wrap { height: 142px; }
      .stub-body { padding-right: 62px; }
      .stub-body h2 { font-size: 16px; }
      .stamp { width: 64px; height: 64px; top: 12px; right: 8px; }
    }
