:root {
  --bg: #0d1117;
  --card: #161b22;
  --line: #262d36;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #f2c14e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -200px, #1d2a3a 0%, transparent 70%),
    var(--bg);
}

.top { max-width: 1240px; margin: 0 auto; padding: 56px 24px 28px; }
.brand { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.brand:hover { color: var(--text); }
.top h1 { margin: 8px 0 6px; font-size: clamp(40px, 7vw, 72px); letter-spacing: .04em; line-height: 1; }
.top h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 14px; border-radius: 2px; }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.grid {
  max-width: 1240px; margin: 0 auto; padding: 8px 24px 48px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  outline: none;
}

.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.play {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--accent); color: #111; font-weight: 800; font-size: 13px; letter-spacing: .08em;
  padding: 7px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
}
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: none; }

.body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.body h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.en { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.desc { margin: 12px 0 14px; font-size: 14px; line-height: 1.6; color: #c9d1d9; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.host { margin: 12px 0 0; font-size: 12px; color: #586170; font-family: ui-monospace, Consolas, monospace; }

.foot { text-align: center; color: #586170; font-size: 12px; padding: 0 24px 40px; }

@media (max-width: 420px) {
  .top { padding-top: 36px; }
  .grid { grid-template-columns: 1fr; padding: 4px 14px 36px; gap: 16px; }
  .play { opacity: 1; transform: none; }   /* 터치 기기엔 hover 가 없다 */
}
@media (hover: none) { .play { opacity: 1; transform: none; } }
