.formats { width: 100%; max-width: 1760px; margin: 0 auto; padding: 8px clamp(10px, 2vw, 32px) clamp(56px, 8vh, 96px); }
.section-head { text-align: center; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(1.35rem, 1.9vw, 1.85rem); font-weight: 600; letter-spacing: -0.01em; }
.section-sub { margin: 6px auto 0; max-width: 40rem; color: var(--muted); font-size: 0.95rem; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 22px; }
.filter {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
@media (pointer: coarse) { .filter { min-height: 40px; } }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-n { margin-left: 6px; opacity: 0.6; font-variant-numeric: tabular-nums; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 0.9vw, 14px); }
.card { min-width: 0; }
.card-hit {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--panel); color: var(--ink); text-align: left; isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card-hit:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -24px rgba(0, 0, 0, 0.9); }
.card-hit:focus-visible { outline-offset: 3px; }
.card-poster, .card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-video { opacity: 0; transition: opacity 0.3s; }
.card.is-playing .card-video { opacity: 1; }
.card-shade { position: absolute; inset: auto 0 0; height: 58%; z-index: 1; background: linear-gradient(to top, rgba(9, 9, 11, 0.94) 8%, rgba(9, 9, 11, 0.55) 52%, rgba(9, 9, 11, 0)); }
.card-top { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.card-tag, .card-len {
  padding: 4px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  background: rgba(12, 12, 14, 0.6); border: 1px solid rgba(248, 246, 241, 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-tag { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-len { font-variant-numeric: tabular-nums; color: var(--ink); flex: none; }
.card-copy { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.card-num { color: rgba(248, 246, 241, 0.86); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.card-name { font: 700 clamp(1.05rem, 1.35vw, 1.4rem)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.card-hook { color: rgba(248, 246, 241, 0.78); font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(12, 12, 14, 0.55); border: 1px solid rgba(248, 246, 241, 0.2);
  opacity: 0; transform: scale(0.9); transition: opacity 0.2s, transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-play svg { width: 18px; height: 18px; margin-left: 3px; }
.card-hit:hover .card-play, .card-hit:focus-visible .card-play { opacity: 1; transform: scale(1); }
.card.is-playing .card-play { opacity: 0; }

@media (max-width: 68.75rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -10px 16px; padding: 2px 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-hit { border-radius: 12px; }
  .card-top { top: 8px; left: 8px; right: 8px; }
  .card-tag, .card-len { font-size: 0.66rem; padding: 3px 7px; }
  .card-copy { left: 10px; right: 10px; bottom: 10px; }
  .card-name { font-size: 1.05rem; }
  .card-hook { font-size: 0.78rem; }
  .card-play { display: none; }
}

/* How it works */
.how { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vh, 88px) clamp(14px, 2vw, 32px) clamp(56px, 9vh, 104px); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.step { position: relative; padding: 22px 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step-n { display: block; font: 700 2.2rem/1 var(--font-display); color: var(--accent-2); }
.step h3 { margin: 18px 0 8px; font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.needs { margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 48rem; }
.needs strong { color: var(--ink); }
.needs a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(248, 246, 241, 0.35); text-underline-offset: 3px; }
.needs a:hover { text-decoration-color: var(--ink); }
.noscript { text-align: center; color: var(--muted); }

@media (max-width: 62.5rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 35rem) { .steps { grid-template-columns: 1fr; } .step { padding: 18px 18px 20px; } .step h3 { margin-top: 12px; } }
