:root {
  --persimmon: rgb(255, 92, 52);
  --cool-blue: rgb(215, 239, 255);
  --jade: rgb(174, 184, 160);
  --plum-noir: rgb(53, 30, 40);
  --wasabi: rgb(233, 240, 86);
  --ink: #20171d;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-border: rgba(32, 23, 29, 0.1);
  --shadow: 0 24px 80px rgba(53, 30, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 92, 52, 0.22), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(215, 239, 255, 0.88), transparent 18%),
    radial-gradient(circle at 55% 42%, rgba(233, 240, 86, 0.16), transparent 22%),
    linear-gradient(180deg, #fcf8f2 0%, #f5f0e8 100%);
  font-family: "Noto Sans KR", sans-serif;
}

.page-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header,
.video-section {
  position: relative;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -15% -10% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 52, 0.3) 0%, rgba(255, 92, 52, 0) 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(53, 30, 40, 0.65);
}

.brand-lockup h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.subtitle {
  max-width: 52rem;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(32, 23, 29, 0.82);
}

.view-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.view-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(53, 30, 40, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--plum-noir);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.view-switcher a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(53, 30, 40, 0.28);
}

.view-switcher a.active {
  border-color: rgba(255, 92, 52, 0.4);
  background: var(--persimmon);
  color: white;
}

.hero-panel {
  align-self: stretch;
  padding: 24px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(145deg, rgba(53, 30, 40, 0.96), rgba(100, 59, 67, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-kicker {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(233, 240, 86, 0.16);
  color: var(--wasabi);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy {
  margin: 18px 0 28px;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-stats article {
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats span {
  display: block;
  margin-bottom: 8px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1;
}

.hero-stats strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.video-summary {
  margin-bottom: 18px;
  color: rgba(32, 23, 29, 0.82);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#video-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.category-block {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(53, 30, 40, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.category-heading h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.category-count {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(215, 239, 255, 0.76);
  color: var(--plum-noir);
  font-size: 0.82rem;
  font-weight: 700;
}

.video-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(53, 30, 40, 0.08);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(53, 30, 40, 0.9);
  margin-bottom: 14px;
}

.video-card .empty-video {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 92, 52, 0.92), rgba(53, 30, 40, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: white;
  font-size: 0.95rem;
  text-align: center;
  padding: 18px;
}

.video-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.video-card h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(215, 239, 255, 0.72);
  color: var(--plum-noir);
  font-size: 0.78rem;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status.pending {
  background: rgba(174, 184, 160, 0.22);
  color: #54604c;
}

.status.ready {
  background: rgba(233, 240, 86, 0.45);
  color: #48500e;
}

.video-prompt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(32, 23, 29, 0.84);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.card-actions button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--persimmon);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.card-actions a.secondary,
.card-actions button.secondary {
  background: rgba(53, 30, 40, 0.1);
  color: var(--plum-noir);
}

.site-footer {
  padding: 20px 6px 8px;
  text-align: center;
  color: rgba(32, 23, 29, 0.72);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .site-header,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .site-header,
  .video-section {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .category-heading {
    flex-direction: column;
    align-items: start;
  }
}
