@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #191b21;
  --panel2: #20232b;
  --line: #2b2e38;
  --text: #f4f5f7;
  --muted: #969ba8;
  --accent: #8b7cff;
  --accent2: #b3aaff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
}
a { color: inherit; text-decoration: none; }
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid var(--line);
  background: rgba(16,17,20,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px);
}
.brand { font-size: 25px; font-weight: 800; letter-spacing: -1.5px; }
.brand span { color: var(--accent2); }
.top-note { color: var(--muted); font-size: 13px; }
.youtube-link { font-size: 13px; color: var(--accent2); font-weight: 700; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 62px 0 36px; text-align: center; }
.eyebrow { color: var(--accent2); font-size: 10px; letter-spacing: 2px; font-weight: 800; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -2px; margin: 0; }
.hero-copy { color: var(--muted); margin: 14px 0 26px; font-size: 14px; }
.search-wrap {
  display: flex; align-items: center; gap: 12px; width: min(600px, 100%); margin: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 0 17px; height: 50px;
}
.search-wrap span { color: var(--muted); font-size: 26px; }
.search-wrap input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13px; min-width: 0; }
.categories { display: flex; gap: 9px; overflow-x: auto; padding: 10px 0 30px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category { border: 1px solid var(--line); background: var(--panel); color: #c3c6d0; border-radius: 999px; padding: 10px 18px; white-space: nowrap; cursor: pointer; font: inherit; font-size: 12px; }
.category:hover, .category.active { background: var(--accent); border-color: var(--accent); color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 10px 0 20px; }
.section-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.8px; }
.status { color: var(--muted); font-size: 11px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; min-height: 220px; }
.video-card { min-width: 0; cursor: pointer; }
.thumb-wrap { position: relative; overflow: hidden; border-radius: 12px; background: var(--panel2); aspect-ratio: 16/9; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.video-card:hover .thumb-wrap img { transform: scale(1.04); }
.play-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(0,0,0,.25); transition: opacity .2s; }
.video-card:hover .play-mark { opacity: 1; }
.play-mark span { background: rgba(0,0,0,.75); border-radius: 50px; padding: 12px 17px; font-size: 19px; }
.video-meta { display: flex; gap: 10px; padding: 12px 2px 0; }
.video-index { color: var(--accent2); font-size: 13px; font-weight: 800; padding-top: 2px; }
.video-copy { min-width: 0; }
.video-title { font-size: 14px; line-height: 1.5; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel { color: var(--muted); font-size: 11px; margin-top: 7px; }
.stats { color: #777e8c; font-size: 10px; margin-top: 5px; }
.loading-card, .empty-card { grid-column: 1/-1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.notice { margin: 58px 0 30px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.notice strong { color: #d8dae1; font-size: 12px; }
.notice p { margin: 7px 0 0; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px max(24px, calc((100vw - 1180px)/2)); color: #747987; font-size: 10px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.modal-panel { position: relative; width: min(900px, 100%); background: #17191f; border: 1px solid var(--line); border-radius: 14px; padding: 18px; z-index: 1; }
.close-button { position: absolute; right: 10px; top: 8px; border: 0; color: white; background: transparent; font-size: 30px; cursor: pointer; z-index: 2; }
.player-frame { aspect-ratio: 16/9; background: black; margin-top: 28px; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-info { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-top: 12px; }
.modal-info h3 { font-size: 14px; margin: 0; }
.modal-info a { color: var(--accent2); font-size: 11px; white-space: nowrap; }
@media (max-width: 850px) { .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .topbar { height: 60px; padding: 0 18px; } .top-note { display: none; }
  .container { width: calc(100% - 32px); } .hero { padding: 45px 0 28px; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .video-title { font-size: 13px; } .section-heading { align-items: start; flex-direction: column; }
  .footer { padding: 20px 16px; } .modal-info { align-items: start; flex-direction: column; }
}
