:root {
  --primary: #006c4b;
  --primary-dark: #004f38;
  --secondary: #f0c72c;
  --accent: #f5e580;
  --green: #006c4b;
  --violet: #8b79d6;
  --ink: #263238;
  --muted: #5d6d7e;
  --line: #dfe5e8;
  --surface: #ffffff;
  --soft: #f7fbf1;
  --warm: #fff8cf;
  --footer: #22282c;
  --shadow: 0 12px 28px rgba(38, 50, 56, 0.12);
  --shadow-soft: 0 6px 18px rgba(38, 50, 56, 0.09);
  --radius: 8px;
  --header-height: 86px;
  --container: 1200px;
  --font: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#banidol-app {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbf1;
}

.bd-song-controls {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.bd-song-controls-grid {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 12px;
  align-items: end;
}

.bd-song-controls label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.bd-song-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.bd-song-search,
.bd-song-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: #fff;
  color: #123;
  font: inherit;
  outline: none;
}

.bd-song-search:focus,
.bd-song-select:focus {
  border-color: #006c4b;
  box-shadow: 0 0 0 3px rgba(106, 162, 255, 0.18);
}

.bd-song-langs {
  display: flex;
  gap: 8px;
}

.bd-song-langs button {
  flex: 1;
  padding: 10px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: #fff;
  color: #123;
  cursor: pointer;
  font-weight: 900;
}

.bd-song-langs button.active {
  border-color: #006c4b;
  background: #fff8cf;
}

.bd-song-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.bd-song-sliders label {
  padding: 12px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbff;
}

.bd-song-sliders label > span {
  display: flex;
  justify-content: space-between;
}

.bd-song-sliders em {
  color: #48627f;
  font-style: normal;
}

.bd-song-sliders input {
  width: 100%;
}

.bd-song-filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.bd-song-filter-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #006c4b;
  border-radius: 999px;
  background: #fff8cf;
  color: #123;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.bd-song-filter-pill span {
  color: #48627f;
  font-size: 12px;
}

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

.bd-song-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.bd-song-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #f2f6ff;
  cursor: pointer;
}

.bd-song-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bd-song-thumb:hover img {
  transform: scale(1.04);
}

.bd-song-thumb span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border: 1px solid #dce6ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #123;
  font-size: 11px;
  font-weight: 900;
}

.bd-song-card h3 {
  margin: 0;
  color: #123;
  font-size: 16px;
  line-height: 1.25;
  word-break: keep-all;
}

.bd-song-card p {
  margin: 0;
  color: #789;
  font-size: 12px;
}

.bd-song-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-song-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #e1eadf;
  border-radius: 999px;
  background: #fff;
  color: #234;
  font-size: 12px;
  font-weight: 900;
}

.bd-song-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: #fff8cf;
  font-size: 11px;
}

.bd-song-metric b {
  min-width: 38px;
  text-align: right;
}

.bd-song-pager {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.bd-song-loadmore {
  padding: 12px 16px;
  border: 1px solid #006c4b;
  border-radius: 8px;
  background: #fff8cf;
  color: #123;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.bd-song-loadmore:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.bd-song-error {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #ffb4a4;
  border-radius: 8px;
  background: #fff7f5;
  color: #7a2e1d;
  font-weight: 800;
}

.bd-song-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 20, 40, 0.55);
}

.bd-song-modal-backdrop.open {
  display: flex;
}

.bd-song-modal {
  width: min(1100px, 100%);
  overflow: hidden;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.bd-song-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #e1eadf;
  background: #f7fbff;
}

.bd-song-modal-title {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-song-modal-close {
  padding: 10px 12px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.bd-song-modal-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  padding: 14px;
}

.bd-player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.bd-player-wrap iframe,
.bd-yt-poster,
.bd-yt-poster img {
  display: block;
  width: 100%;
  height: 100%;
}

.bd-yt-poster {
  position: relative;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.bd-yt-poster img {
  object-fit: cover;
}

.bd-yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 60px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.bd-player-empty {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.bd-song-modal-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bd-song-themes {
  color: #789;
  font-size: 12px;
}

.bd-song-lyrics {
  max-height: 330px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbff;
  color: #345;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.bd-song-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bd-song-btn {
  padding: 10px 14px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.bd-song-btn-primary {
  border-color: #006c4b;
  background: #fff8cf;
}

.bd-song-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.home-song-card {
  text-decoration: none;
}

.home-song-stat {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 18px 18px;
  padding: 6px 9px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbff;
  color: #48627f;
  font-size: 12px;
  font-weight: 900;
}

.home-empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #fff;
  color: #48627f;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1100px) {
  .bd-song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #banidol-app {
    padding: 14px;
  }

  .bd-song-controls-grid,
  .bd-song-sliders,
  .bd-song-grid,
  .bd-song-modal-body {
    grid-template-columns: 1fr;
  }

  .bd-song-filter-bar {
    justify-content: flex-start;
  }

  .bd-song-lyrics {
    max-height: 220px;
  }

  .home-video-bg::after {
    background: rgba(247, 251, 241, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-bg iframe {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #f7fbf1;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 236, 255, 0.9);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
}

.nav-left,
.nav-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-left {
  gap: clamp(28px, 5vw, 54px);
}

.desktop-nav {
  gap: clamp(18px, 3vw, 34px);
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-height);
}

.word-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d6e6dc;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link.strong {
  font-weight: 900;
}

.nav-link.teacher-pill {
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius);
  color: #4a7fc7;
  background: #eef5ff;
  font-size: 14px;
}

.nav-link.teacher-pill:hover,
.nav-link.teacher-pill.active {
  color: #2f65aa;
  background: #e1eadf;
}

.nav-panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 8px;
  min-width: 470px;
  padding: 12px;
  border: 1px solid #d6e6dc;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px -18px rgba(38, 50, 56, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-panel a,
.mobile-panel a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-panel a:hover,
.nav-panel a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  background: #fff5f5;
}

.nav-panel strong,
.mobile-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.nav-panel span,
.mobile-panel span {
  color: #8a94a3;
  font-size: 13px;
  font-weight: 600;
}

.nav-group:nth-child(5) .nav-panel {
  left: auto;
  right: 0;
  transform: translateY(-8px);
}

.nav-group:nth-child(5):hover .nav-panel,
.nav-group:nth-child(5):focus-within .nav-panel {
  transform: translateY(0);
}

.nav-actions {
  gap: 12px;
}

.ghost-action,
.signup-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ghost-action {
  color: var(--muted);
  background: transparent;
}

.signup-action {
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 108, 75, 0.24);
}

.signup-action:hover {
  background: var(--primary-dark);
}

.mobile-nav {
  display: none;
}

.panel {
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: clamp(64px, 8vw, 104px) 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 110px);
  color: white;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 118px) 0;
  background: linear-gradient(135deg, #ffffff 0%, #fff7f5 48%, #f1fffd 100%);
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -46% 42%;
  height: 360px;
  background: linear-gradient(135deg, rgba(245, 229, 128, 0.58), rgba(0, 108, 75, 0.18));
  transform: rotate(-8deg);
}

.subpage-hero.tone-brand {
  background: linear-gradient(135deg, #fff7f5 0%, #fffdf2 45%, #effffc 100%);
}

.subpage-hero.tone-story {
  background: linear-gradient(135deg, #ffffff 0%, #f1fffd 44%, #fff8dc 100%);
}

.subpage-hero.tone-character {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f5 42%, #f4fff2 100%);
}

.subpage-hero.tone-content {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 48%, #fff7f5 100%);
}

.subpage-hero.tone-resource {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 42%, #fff9df 100%);
}

.subpage-hero.tone-trust {
  background: linear-gradient(135deg, #ffffff 0%, #f6fff9 45%, #fff7f5 100%);
}

.subpage-hero.tone-play {
  background: linear-gradient(135deg, #ffffff 0%, #fff9df 48%, #f1fffd 100%);
}

.subpage-hero.tone-contact {
  background: linear-gradient(135deg, #fff7f5 0%, #ffffff 44%, #eefefd 100%);
}

.subpage-hero .container {
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.page-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.page-visual:hover img {
  transform: scale(1.035);
}

.visual-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  background: rgba(38, 50, 56, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.page-spotlight {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(240, 199, 44, 0.48);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.page-spotlight::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  opacity: 0.72;
}

.page-spotlight span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-spotlight h3 {
  margin: 12px 0;
  font-size: clamp(24px, 4vw, 34px);
}

.page-spotlight p {
  max-width: 460px;
  color: var(--muted);
}

.page-content {
  min-height: 420px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-chips span {
  padding: 7px 11px;
  border: 1px solid rgba(0, 108, 75, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-stats div {
  min-width: 118px;
  padding: 13px 15px;
  border: 1px solid rgba(38, 50, 56, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.soft {
  background: var(--soft);
}

.worldview-panel,
.content-overview {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f5 45%, #f1fffd 100%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.section-title {
  position: relative;
  margin-bottom: 44px;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.lead {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px rgba(0, 108, 75, 0.24);
}

.btn.secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d6e6dc;
  box-shadow: var(--shadow-soft);
}

.btn.dark {
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 26px rgba(38, 50, 56, 0.2);
}

.home-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #e1eadf;
}

.home-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e1eadf;
}

.home-video-bg iframe,
.home-video-poster,
.home-video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
}

.home-video-bg iframe {
  z-index: 1;
  border: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.home-video-bg iframe.is-ready {
  opacity: 1;
}

.home-video-poster {
  z-index: 0;
  background: url("https://i.ytimg.com/vi/T8q12osdO3Q/maxresdefault.jpg") center / cover no-repeat;
}

.home-video-loading {
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 40px;
  color: var(--primary-dark);
  background:
    linear-gradient(90deg, rgba(247, 251, 241, 0.84) 0%, rgba(247, 251, 241, 0.68) 48%, rgba(247, 251, 241, 0.44) 100%),
    url("https://i.ytimg.com/vi/T8q12osdO3Q/maxresdefault.jpg") center / cover no-repeat;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-video-loading img {
  width: min(220px, 48vw);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.72));
}

.home-video-loading span {
  padding: 8px 12px;
  border: 1px solid rgba(0, 108, 75, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
}

.home-video-bg.is-video-ready .home-video-loading {
  visibility: hidden;
  opacity: 0;
}

.home-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 241, 0.7) 0%, rgba(247, 251, 241, 0.62) 45%, rgba(247, 251, 241, 0.46) 100%),
    linear-gradient(0deg, rgba(240, 199, 44, 0.24), rgba(240, 199, 44, 0.1));
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.38;
}

.home-hero::before {
  top: 80px;
  left: 40px;
  width: 128px;
  height: 128px;
  background: var(--accent);
}

.home-hero::after {
  right: 80px;
  bottom: 40px;
  width: 256px;
  height: 256px;
  background: var(--secondary);
  opacity: 0.22;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: start;
  align-items: center;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 9px 16px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.update-badge strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.update-badge span {
  color: #8b95a1;
  font-size: 14px;
}

.home-copy h1 {
  margin: 0 0 24px;
  color: #2a2a2a;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.14;
}

.home-copy h1 span {
  color: var(--primary-dark);
}

.home-copy p {
  max-width: 470px;
  margin: 0 0 32px;
  color: #667085;
  font-size: 18px;
}

.home-section {
  padding: 48px 0 72px;
}

#banidol-intro,
#worldview,
#characters,
#philosophy,
#teacher-guides,
#teacher-coloring,
#teacher-emotion,
#teacher-curriculum,
#popular-songs,
#song-age-guide,
#song-shorts,
#classic-stories,
#original-stories,
#booking,
#group {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.intro-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 22px;
  margin-bottom: 56px;
}

.intro-panel,
.teacher-panel {
  position: relative;
  overflow: hidden;
  --panel-pad: clamp(24px, 4vw, 34px);
  padding: var(--panel-pad);
  border: 1px solid #e1eadf;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.intro-panel::before,
.teacher-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.intro-panel > span,
.teacher-panel > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-panel h3,
.teacher-panel h2 {
  margin-bottom: 12px;
}

.intro-panel p,
.teacher-panel p {
  color: #667085;
}

.mini-character-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.mini-character-row img {
  width: 48px;
  height: 62px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7fbf1;
}

.character-showcase-card {
  display: grid;
  gap: 0;
  padding: 0;
}

.character-showcase-card::before {
  z-index: 1;
}

.character-card-head {
  padding: calc(var(--panel-pad) + 6px) var(--panel-pad) 18px;
}

.character-card-head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.character-card-head h3 {
  margin: 0;
}

.home-character-slider {
  --character-slide-arrow-offset: 12px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}

.character-slide-stage {
  display: grid;
  place-items: center;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  min-height: 0;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  background: #fff7cd;
}

.character-slide-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.character-slide-copy {
  width: 100%;
  padding: 0 var(--panel-pad);
  margin-top: 0;
  text-align: center;
}

.character-slide-copy strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.character-slide-copy p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
}

.character-slide-arrow {
  position: absolute;
  top: clamp(86px, 9vw, 118px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.character-slide-arrow.prev {
  left: var(--character-slide-arrow-offset);
}

.character-slide-arrow.next {
  right: var(--character-slide-arrow-offset);
}

.character-slide-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
  padding: 0 var(--panel-pad);
}

.character-slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #d9e2ea;
  cursor: pointer;
}

.character-slide-dots button.active {
  width: 18px;
  background: var(--primary);
}

.character-card-link {
  display: inline-flex;
  width: fit-content;
  margin: 14px var(--panel-pad) calc(var(--panel-pad) + 2px);
}

.panel-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.home-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a,
.category-pills button {
  padding: 11px 28px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  color: #667085;
  background: white;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-pills a:hover,
.category-pills a.active,
.category-pills button:hover,
.category-pills button.active {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.home-search {
  position: relative;
  width: min(320px, 100%);
}

.home-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.home-search input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2a2a2a;
  font-size: clamp(28px, 4vw, 36px);
}

.section-head h2 i {
  color: var(--primary-dark);
}

.section-head:nth-of-type(2) h2 i {
  color: var(--primary);
}

.section-head p {
  margin: 6px 0 0;
  color: #7b8491;
}

.section-head a {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.center-head {
  justify-content: center;
  text-align: center;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.2);
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe3e8;
}

.content-card span,
.story-tile-grid span {
  display: block;
  margin: 18px 20px 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.content-card h3 {
  margin: 0 20px 8px;
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card p {
  margin: 0 20px 20px;
  color: #8a94a3;
  font-size: 14px;
}

.experience-band {
  padding: 56px 0;
}

.experience-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 6vw, 56px);
  border-radius: 8px;
  background: var(--accent);
}

.band-badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.experience-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.15;
}

.experience-grid p {
  max-width: 470px;
  margin-bottom: 28px;
  color: #667085;
  font-size: 18px;
}

.booking-card {
  padding: 28px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.booking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.booking-head span,
.time-slot span {
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--secondary);
  font-size: 12px;
  font-weight: 900;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.calendar-row b {
  padding: 11px 6px;
  border-radius: 8px;
  background: #f7fbf1;
}

.calendar-row .today {
  color: white;
  background: var(--primary);
}

.time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f7fbf1;
  color: #667085;
}

.time-slot.available {
  background: #eef5ff;
  color: var(--ink);
}

.story-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.story-tile-grid article,
.story-tile-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 330px;
  border-radius: 8px;
  background: #dfe3e8;
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
}

.story-tile-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-tile-card:hover,
.story-tile-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.story-tile-grid img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  filter: brightness(0.75);
}

.story-tile-grid span,
.story-tile-grid h3 {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 1;
}

.story-tile-grid span {
  bottom: 62px;
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.story-tile-grid h3 {
  bottom: 24px;
  color: white;
  font-size: 20px;
}

.story-library {
  display: grid;
  gap: 20px;
}

.story-cinema-head {
  max-width: 720px;
}

.story-cinema-head > span,
.story-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.story-cinema-head h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
}

.story-cinema-head p {
  margin: 0;
  color: var(--muted);
}

.story-stream {
  display: grid;
  gap: 18px;
}

.story-feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbf1;
}

.story-player {
  overflow: hidden;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.story-player iframe,
.story-player-poster,
.story-player-poster img {
  display: block;
  width: 100%;
  height: 100%;
}

.story-player iframe {
  border: 0;
}

.story-player-poster {
  position: relative;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.story-player-poster img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.story-player-poster:hover img {
  transform: scale(1.03);
}

.story-player-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 48px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.story-feature-copy {
  min-width: 0;
}

.story-feature-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
  word-break: keep-all;
}

.story-feature-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.story-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.story-choice-list button {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.story-choice-list button.active {
  border-color: #006c4b;
  background: #fff8cf;
}

.story-choice-list strong {
  font-size: 14px;
}

.story-choice-list span {
  color: #789;
  font-size: 12px;
}

.story-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 108, 75, 0.24);
}

.story-play-btn:hover {
  background: var(--primary-dark);
}

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

.story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover,
.story-card.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.story-card.active {
  border-color: #006c4b;
}

.story-card img {
  display: block;
  width: 100%;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #f2f6ff;
}

.story-card span {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff8cf;
  color: #48627f;
  font-size: 12px;
  font-weight: 900;
}

.story-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  word-break: keep-all;
}

.story-card small {
  color: #789;
  font-size: 12px;
  font-weight: 800;
}

.story-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(10, 20, 40, 0.55);
}

.story-modal-backdrop.open {
  display: flex;
}

.story-modal {
  width: min(1100px, 100%);
  overflow: hidden;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.story-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #e1eadf;
  background: #f7fbff;
}

.story-modal-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-modal-close {
  padding: 10px 12px;
  border: 1px solid #d6e6dc;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.story-modal-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  padding: 14px;
}

.story-modal-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.story-modal-desc {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1eadf;
  border-radius: 8px;
  background: #f7fbff;
  color: #345;
  font-size: 13px;
  line-height: 1.7;
}

.story-modal-side .story-choice-list {
  width: 100%;
}

.teacher-zone {
  padding: 78px 0;
  background: #e1eadf;
}

.teacher-page-grid,
.experience-page-grid {
  display: grid;
  gap: 28px;
}

.teacher-page-grid .teacher-panel:nth-child(even),
.experience-page-grid .teacher-panel:nth-child(even) {
  background: #fafdff;
}

.teacher-panel .resource-grid {
  margin-top: 20px;
}

.teacher-panel .timeline,
.teacher-panel .emotion-board {
  margin-top: 20px;
}

.resource-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #4a7fc7;
  background: #f7fbf1;
  font-weight: 900;
  text-decoration: none;
}

.resource-link:hover {
  color: white;
  background: #4a7fc7;
}

@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.story-box,
.feature-card,
.overview-card,
.song-card,
.media-card,
.short-card,
.age-card,
.resource-card,
.timeline article,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.overview-card,
.song-card,
.media-card,
.short-card,
.age-card,
.resource-card,
.timeline article,
.story-box,
.contact-form {
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.overview-card::before,
.song-card::before,
.media-card::before,
.short-card::before,
.age-card::before,
.resource-card::before,
.timeline article::before,
.story-box::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.story-box {
  padding: clamp(24px, 5vw, 40px);
}

.story-box h3 {
  margin-bottom: 16px;
  font-size: 26px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
}

.character-grid,
.feature-grid,
.overview-grid,
.resource-grid,
.shorts-grid,
.age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.character-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 380px;
  padding: 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-card:nth-child(1) {
  background: linear-gradient(180deg, #ffffff 0%, #fff8e0 100%);
}

.character-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f3 100%);
}

.character-card:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #eefefd 100%);
}

.character-card:nth-child(4) {
  background: linear-gradient(180deg, #ffffff 0%, #f3fff2 100%);
}

.character-card:nth-child(5) {
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
}

.character-card:hover,
.overview-card:hover,
.song-card:hover,
.media-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.character-card img {
  width: 150px;
  height: 230px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.detailed-character-grid .character-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 8px;
}

.character-card h3,
.feature-card h3,
.overview-card strong,
.media-card h3,
.resource-card h3,
.age-card h3 {
  color: var(--ink);
  font-size: 22px;
}

.detailed-character-grid .character-card h3 {
  font-size: 28px;
}

.character-card p,
.feature-card p,
.media-card p,
.resource-card p,
.age-card p,
.short-card p {
  color: var(--muted);
}

.character-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: #e9a100;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.character-video-link:hover {
  color: #fff;
  background: #d89400;
  transform: translateY(-2px);
}

.character-role {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--accent);
  font-weight: 800;
}

.overview-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 26px;
  color: inherit;
  text-decoration: none;
}

.overview-card::after {
  content: "諛붾줈媛湲?;
  align-self: end;
  width: max-content;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--primary-dark);
  background: var(--warm);
  font-size: 13px;
  font-weight: 800;
}

.overview-card span {
  color: var(--muted);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.catalog-toolbar input,
.catalog-toolbar select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: white;
}

.segmented {
  display: flex;
  gap: 6px;
}

.segmented button {
  min-width: 56px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.catalog-count {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.song-card {
  overflow: hidden;
}

.song-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eee;
  cursor: pointer;
}

.song-card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.song-card:hover .thumb img,
.media-card:hover img {
  transform: scale(1.04);
}

.song-card .thumb span {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  background: rgba(38, 50, 56, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.song-card h3,
.song-card p,
.song-card .metrics {
  margin-left: 18px;
  margin-right: 18px;
}

.song-card h3 {
  margin-top: 16px;
  font-size: 20px;
}

.song-card p {
  color: var(--muted);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.metric {
  display: inline-flex;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.metric b {
  color: var(--ink);
}

.pager {
  margin-top: 28px;
  text-align: center;
}

.media-grid {
  display: grid;
  gap: 22px;
}

.media-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.35s ease;
}

.tag,
.short-card span,
.timeline span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.short-card,
.age-card,
.resource-card,
.timeline article {
  padding: 24px;
}

.age-card a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.resource-card button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: var(--secondary);
  cursor: pointer;
  font-weight: 800;
}

.image-resources .resource-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 10px;
  background: var(--soft);
  border-radius: var(--radius);
}

.emotion-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.emotion-board button {
  min-height: 76px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.emotion-board button:hover {
  background: #eefefd;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.subpage-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: clamp(70px, 9vw, 120px) 0;
  background: #e1eadf;
}

.subpage-hero::before {
  inset: 60px auto auto 5vw;
  width: 128px;
  height: 128px;
  border-radius: 8px;
  background: rgba(255, 230, 109, 0.62);
  transform: rotate(11deg);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  bottom: 58px;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: rgba(0, 108, 75, 0.18);
  transform: rotate(-8deg);
}

.subpage-hero.tone-brand,
.subpage-hero.tone-story,
.subpage-hero.tone-character,
.subpage-hero.tone-content,
.subpage-hero.tone-resource,
.subpage-hero.tone-trust,
.subpage-hero.tone-play,
.subpage-hero.tone-contact {
  background: #e1eadf;
}

.subpage-copy {
  max-width: 640px;
}

.subpage-badge {
  margin-bottom: 24px;
}

.subpage-copy h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: #2a2a2a;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.subpage-copy .lead {
  max-width: 560px;
  margin: 0;
  color: #5d6674;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
}

.hero-chips span {
  border: 1px solid #edf1fb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-stats div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid #edf1fb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.add-style-visual,
.add-style-spotlight {
  width: min(100%, 430px);
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 45px -22px rgba(38, 50, 56, 0.38);
}

.add-style-visual {
  padding: 18px;
}

.add-style-visual img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.add-style-spotlight {
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: clamp(28px, 5vw, 44px);
}

.add-style-spotlight::after {
  display: none;
}

.spotlight-icon {
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #ffb000;
  background: #fff8da;
  font-size: 30px;
}

.unified-page-content {
  padding: clamp(56px, 8vw, 92px) 0;
}

.unified-page-content > .container {
  display: grid;
  gap: 28px;
}

.story-box,
.feature-card,
.overview-card,
.song-card,
.media-card,
.short-card,
.age-card,
.resource-card,
.timeline article,
.contact-form,
.teacher-panel,
.intro-panel,
.booking-card {
  border: 1px solid #edf1fb;
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 40px -24px rgba(38, 50, 56, 0.32);
}

.story-box::before,
.feature-card::before,
.overview-card::before,
.song-card::before,
.media-card::before,
.short-card::before,
.age-card::before,
.resource-card::before,
.timeline article::before,
.contact-form::before {
  height: 0;
}

.teacher-panel {
  padding: clamp(26px, 5vw, 42px);
}

.teacher-panel > span,
.resource-card > span,
.content-card > span,
.story-tile-grid article > span {
  color: var(--primary);
  font-weight: 900;
}

.teacher-panel h2,
.story-box h3,
.feature-card h3,
.overview-card strong,
.media-card h3,
.short-card h3,
.age-card h3,
.resource-card h3 {
  margin-top: 0;
  color: #2a2a2a;
}

.overview-grid,
.feature-grid,
.resource-grid,
.shorts-grid,
.age-grid,
.character-grid {
  gap: 24px;
}

.overview-card::after,
.age-card a,
.resource-link {
  border-radius: 8px;
}

.media-card {
  background: white;
}

.catalog-toolbar {
  background: #f7fbf1;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 108, 75, 0.18);
}

.segmented button.active,
.resource-card button,
.contact-form .btn.primary,
.pager .btn.primary {
  color: white;
  background: var(--primary);
}

.song-card .thumb {
  background: #e8edf7;
}

.song-card .thumb span {
  top: auto;
  right: 10px;
  bottom: 10px;
  background: rgba(42, 42, 42, 0.72);
}

.external-booking-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.calendar-embed,
.calendar-fragment {
  overflow: hidden;
  width: 100%;
  min-height: 640px;
  border: 1px solid #e5ebf7;
  border-radius: 8px;
  background: #f6f8fc;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: white;
}

.calendar-fragment {
  min-height: 0;
  padding: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  background: white;
}

.calendar-loading,
.calendar-fallback {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: #617085;
  text-align: center;
}

.calendar-fallback {
  gap: 14px;
}

.calendar-sync-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8ed;
  color: #8a6424;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.calendar-sync-note a {
  color: #4279f4;
  font-weight: 900;
  text-decoration: none;
}

.calendar-fragment .elementor-container,
.calendar-fragment .elementor-row,
.calendar-fragment .elementor-column,
.calendar-fragment .elementor-column-wrap,
.calendar-fragment .elementor-widget-wrap,
.calendar-fragment .elementor-widget-container,
.calendar-fragment .elementor-shortcode,
.calendar-fragment #mb_top,
.calendar-fragment #calendar_board {
  width: 100%;
}

.calendar-fragment form {
  margin: 0;
}

.calendar-fragment .calendar-nav-box {
  margin-bottom: 18px;
  text-align: center;
}

.calendar-fragment .calendar-lnb {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f6f8fc;
}

.calendar-fragment .calendar-date-text {
  color: #202733;
  font-size: 28px;
  font-weight: 900;
}

.calendar-fragment .list-head {
  margin-bottom: 16px;
  text-align: right;
}

.calendar-fragment .mb-skin-category-wrap {
  display: inline-flex;
  gap: 8px;
}

.calendar-fragment .mb-skin-category-wrap button,
.calendar-fragment .mb-skin-category-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #e5ebf7;
  border-radius: 8px;
  background: white;
  color: #617085;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.calendar-fragment .mb-skin-category-wrap .tab-menu-on {
  border-color: #4279f4;
  background: #edf3ff;
  color: #4279f4;
}

.calendar-fragment .calendar-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #4279f4;
  background: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.calendar-fragment .table-calendar-month {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.calendar-fragment .table-calendar-month th {
  padding: 14px 10px;
  border-bottom: 1px solid #e5ebf7;
  color: #617085;
  background: #f6f8fc;
  font-weight: 900;
}

.calendar-fragment .table-calendar-month td {
  height: 116px;
  vertical-align: top;
  padding: 10px;
  border-right: 1px solid #edf1f8;
  border-bottom: 1px solid #edf1f8;
  background: white;
}

.calendar-fragment .table-calendar-month td:first-child,
.calendar-fragment .table-calendar-month th:first-child {
  border-left: 1px solid #edf1f8;
}

.calendar-fragment .i-today {
  background: #f9fbff !important;
}

.calendar-fragment .i-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #202733;
  font-weight: 900;
}

.calendar-fragment .sunday,
.calendar-fragment .i-date.sunday {
  color: var(--primary-dark);
}

.calendar-fragment .saturday,
.calendar-fragment .i-date.saturday {
  color: #4279f4;
}

.calendar-fragment .mb-schedule-item {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-fragment .mb-schedule-item a {
  display: block;
  color: #5d4b16;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.calendar-fragment .mb-schedule-item div {
  padding: 6px 8px;
  border-radius: 8px;
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
}

.inquiry-link {
  width: max-content;
  margin-top: 20px;
}

/* Quiet education-library direction based on the second reference image. */
.subpage-hero {
  min-height: auto;
  padding: clamp(74px, 10vw, 110px) 0 24px;
  background: #e9f0ff;
}

.subpage-hero::before,
.subpage-hero::after {
  display: none;
}

.subpage-hero.tone-brand,
.subpage-hero.tone-story,
.subpage-hero.tone-character,
.subpage-hero.tone-content,
.subpage-hero.tone-resource,
.subpage-hero.tone-trust,
.subpage-hero.tone-play,
.subpage-hero.tone-contact {
  background: #e9f0ff;
}

.subpage-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.subpage-copy h1 {
  margin: 0 0 10px;
  color: #202733;
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.subpage-copy .lead {
  max-width: 720px;
  margin: 0 auto;
  color: #617085;
  font-size: 17px;
  font-weight: 500;
}

.subpage-copy .hero-chips,
.subpage-copy .hero-stats {
  display: none;
}

.unified-page-content {
  padding: clamp(42px, 6vw, 70px) 0 clamp(72px, 8vw, 104px);
  background: #e9f0ff;
}

.unified-page-content > .container {
  display: grid;
  gap: 32px;
}

.teacher-zone {
  padding: clamp(78px, 9vw, 118px) 0;
  background: #e9f0ff;
}

.section-head.center-head {
  justify-content: center;
  margin-bottom: 46px;
  text-align: center;
}

.section-head.center-head h2 {
  color: #202733;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
}

.section-head.center-head p {
  max-width: 680px;
  margin: 8px auto 0;
  color: #617085;
  font-size: 17px;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.teacher-zone .resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  padding: 32px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 22px 48px -34px rgba(42, 52, 70, 0.42);
}

.resource-card::before {
  content: none;
}

.resource-card:not(:has(.resource-icon)):not(:has(img))::before {
  content: "";
  position: static;
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #f4f7fc;
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #f4f7fc;
  color: #4279f4;
  font-size: 32px;
}

.resource-card h3 {
  margin: 0 0 10px;
  color: #202733;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.resource-card p {
  min-height: 48px;
  margin: 0 0 26px;
  color: #8a94a6;
  font-size: 15px;
  line-height: 1.55;
}

.resource-link,
.resource-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #f5f8fc;
  color: #4279f4;
  font-weight: 900;
  text-decoration: none;
}

.resource-card.accent-orange .resource-icon {
  background: #fff8ed;
  color: #ff6b2a;
}

.resource-card.accent-orange .resource-link,
.resource-card.accent-orange button {
  background: #fff8ed;
  color: #ff6b2a;
}

.resource-card.accent-green .resource-icon {
  background: #effcf4;
  color: #19a85b;
}

.resource-card.accent-green .resource-link,
.resource-card.accent-green button {
  background: #effcf4;
  color: #19a85b;
}

.resource-card.accent-purple .resource-icon {
  background: #fbf3ff;
  color: #9b55ff;
}

.resource-card.accent-purple .resource-link,
.resource-card.accent-purple button {
  background: #fbf3ff;
  color: #9b55ff;
}

.teacher-panel {
  padding: clamp(32px, 5vw, 52px);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px -34px rgba(42, 52, 70, 0.42);
}

.teacher-panel::before {
  display: none;
}

.teacher-panel > span {
  color: #4279f4;
}

.teacher-panel h2 {
  color: #202733;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.teacher-panel p {
  color: #617085;
}

.story-box,
.feature-card,
.overview-card,
.song-card,
.media-card,
.short-card,
.age-card,
.timeline article,
.contact-form,
.intro-panel,
.booking-card,
.character-card {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px -34px rgba(42, 52, 70, 0.42);
}

.catalog-toolbar,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f6f8fc;
}

.image-resources .resource-card img {
  width: 78px;
  height: 78px;
  margin: 0 0 20px;
  background: #f6f8fc;
}

@media (max-width: 1100px) {
  .story-feature {
    grid-template-columns: 1fr;
  }

  .story-modal-body {
    grid-template-columns: 1fr;
  }

  .story-player {
    min-height: auto;
  }

  .story-play-btn {
    margin-top: 0;
  }

  .story-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-zone .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .subpage-hero {
    padding-top: 54px;
  }

  .story-cinema-head h2,
  .story-feature-copy h3 {
    font-size: 24px;
  }

  .story-row {
    grid-template-columns: 1fr;
  }

  .story-modal-backdrop {
    padding: 12px;
  }

  .story-modal-body {
    padding: 12px;
  }

  .story-choice-list button {
    min-width: 100%;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .teacher-zone .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: auto;
    padding: 28px 24px;
  }
}

.center-text {
  text-align: center;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-panel {
  background: linear-gradient(135deg, #fff7f5, #f1fffd);
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.site-footer {
  color: #667085;
  background: white;
  border-top: 1px solid #e1eadf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding: 72px 0 46px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--ink);
  margin-bottom: 18px;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #667085;
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-brand p {
  max-width: 390px;
  margin: 20px 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #f1f3f6;
  padding: 24px max(20px, calc((100% - var(--container)) / 2));
  color: #98a2b3;
  font-size: 13px;
}

.song-modal {
  width: min(780px, calc(100% - 30px));
  border: 0;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.song-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal-close {
  float: right;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  cursor: pointer;
}

.video-frame {
  margin-top: 18px;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: white;
  background: rgba(38, 50, 56, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 108, 75, 0.18);
  border-radius: 8px;
  color: white;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(0, 108, 75, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top i {
  font-size: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="songs"] .teacher-panel,
body[data-page="songs"] .teacher-panel.reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 980px) {
  body {
    padding-top: 72px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 72px;
    padding-top: env(safe-area-inset-top, 0);
  }

  .nav-inner {
    width: min(100% - 32px, 1280px);
    min-height: 72px;
  }

  .desktop-nav,
  .nav-actions > .ghost-action,
  .nav-actions > .signup-action {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0));
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 20px 20px;
    background: white;
    border-bottom: 1px solid #d6e6dc;
    box-shadow: var(--shadow-soft);
    max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-group {
    display: grid;
    gap: 6px;
  }

  .mobile-nav .nav-link {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fbff;
  }

  .mobile-nav .nav-link.active {
    background: var(--warm);
  }

  .mobile-panel {
    display: grid;
    gap: 4px;
    margin: -2px 0 8px;
    padding: 8px;
    border: 1px solid #e1eadf;
    border-radius: 8px;
    background: white;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .split,
  .media-card,
  .catalog-toolbar,
  .home-hero-grid,
  .experience-grid,
  .intro-panel-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .footer-grid,
  .home-card-grid,
  .story-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 76px 0 64px;
  }

  .home-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-search {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .word-brand {
    font-size: 22px;
  }

  .brand-icon {
    width: 128px;
    height: 34px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .segmented,
  .page-actions {
    flex-direction: column;
  }

  .timeline,
  .footer-grid,
  .home-card-grid,
  .story-tile-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 56px 0;
  }

  .home-copy h1 {
    font-size: 40px;
  }

  .category-pills a,
  .category-pills button {
    width: calc(50% - 6px);
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-grid {
    padding: 28px 20px;
  }

  .booking-card {
    padding: 20px;
  }

  .calendar-row {
    gap: 5px;
  }

  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Responsive safety pass */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

body[data-page="songs"] .subpage-hero {
  display: block;
  min-height: 0 !important;
  padding: 42px 0 18px !important;
}

body[data-page="songs"] .unified-page-content {
  padding-top: 22px !important;
}

.home-video-bg iframe,
.home-video-poster,
.home-video-loading {
  max-width: none;
}

.container,
.nav-inner,
.footer-grid,
.page-content,
.unified-page-content,
.teacher-panel,
.intro-panel,
.story-library,
.contact-form,
.booking-card {
  min-width: 0;
}

.bd-song-card,
.story-card,
.overview-card,
.resource-card,
.character-card,
.age-card,
.short-card,
.media-card,
.song-card,
.timeline article {
  min-width: 0;
}

.bd-song-card h3,
.story-card strong,
.overview-card strong,
.resource-card h3,
.character-card h3,
.media-card h3,
.song-card h3,
.home-copy h1,
.subpage-copy h1,
.section-head h2 {
  overflow-wrap: anywhere;
}

.bd-song-modal,
.story-modal {
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.bd-song-modal-body,
.story-modal-body {
  min-height: 0;
}

.story-player,
.bd-player-wrap {
  min-height: 0;
}

@media (max-width: 1100px) {
  .home-card-grid,
  .story-tile-grid,
  .teacher-zone .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-card,
  .story-feature,
  .experience-page-grid,
  .teacher-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .subpage-hero .container,
  .subpage-copy {
    max-width: 100%;
  }

  .subpage-hero h1,
  .home-copy h1 {
    line-height: 1.18;
  }

  .home-hero {
    min-height: calc(100dvh - 72px);
    padding: 72px 0 54px;
  }

  .home-video-bg iframe,
  .home-video-poster,
  .home-video-loading {
    width: max(100vw, 177.78dvh);
    height: max(100dvh, 56.25vw);
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
  }

  .home-video-bg::after {
    background:
      linear-gradient(90deg, rgba(247, 251, 241, 0.7) 0%, rgba(247, 251, 241, 0.6) 48%, rgba(247, 251, 241, 0.42) 100%),
      linear-gradient(0deg, rgba(240, 199, 44, 0.22), rgba(240, 199, 44, 0.08));
  }

  .bd-song-controls-grid,
  .bd-song-sliders,
  .catalog-toolbar,
  .experience-grid,
  .intro-panel-grid,
  .story-modal-body,
  .bd-song-modal-body,
  .contact-panel,
  .media-card {
    grid-template-columns: 1fr;
  }

  .bd-song-langs,
  .segmented,
  .bd-song-modal-actions,
  .story-choice-list,
  .page-actions,
  .hero-actions {
    flex-wrap: wrap;
  }

  .bd-song-langs button,
  .segmented button,
  .bd-song-btn,
  .story-choice-list button {
    min-width: 0;
  }

  .story-modal-title,
  .bd-song-modal-title {
    white-space: normal;
  }

  .mobile-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    width: min(100% - 24px, var(--container));
  }

  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  body[data-page="songs"] .subpage-hero {
    display: block;
    min-height: 0 !important;
    padding: 28px 0 14px !important;
  }

  body[data-page="songs"] .unified-page-content {
    padding: 18px 0 56px;
  }

  body[data-page="songs"] .subpage-copy h1 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  body[data-page="songs"] .teacher-panel {
    padding: 16px;
  }

  body[data-page="songs"] .teacher-panel > span,
  body[data-page="songs"] .teacher-panel > p {
    display: none;
  }

  body[data-page="songs"] .teacher-panel h2 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  body[data-page="songs"] #banidol-app {
    margin-top: 0;
    padding: 12px;
  }

  body[data-page="songs"] .bd-song-controls {
    margin-bottom: 12px;
    padding: 10px;
  }

  body[data-page="songs"] .bd-song-sliders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  body[data-page="songs"] .bd-song-sliders label {
    padding: 9px 10px;
  }

  body[data-page="songs"] .bd-song-sliders label > span {
    align-items: center;
    gap: 8px;
  }

  body[data-page="songs"] .bd-song-sliders b,
  body[data-page="songs"] .bd-song-sliders em {
    font-size: 12px;
  }

  body[data-page="songs"] .bd-song-filter-bar {
    display: none;
  }

  .subpage-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .subpage-hero h1,
  .home-copy h1 {
    font-size: 34px;
  }

  .home-hero {
    min-height: calc(100dvh - 72px);
    padding: 64px 0 44px;
  }

  .home-video-bg iframe,
  .home-video-poster,
  .home-video-loading {
    width: max(100vw, 177.78dvh);
    height: max(100dvh, 56.25vw);
  }

  .home-video-bg::after {
    background:
      linear-gradient(90deg, rgba(247, 251, 241, 0.7) 0%, rgba(247, 251, 241, 0.58) 52%, rgba(247, 251, 241, 0.4) 100%),
      linear-gradient(0deg, rgba(240, 199, 44, 0.2), rgba(240, 199, 44, 0.06));
  }

  .home-copy p,
  .subpage-copy .lead,
  .story-cinema-head p,
  .teacher-panel p {
    font-size: 15px;
  }

  .teacher-panel,
  .intro-panel,
  #banidol-app {
    --panel-pad: 18px;
    padding: 18px;
  }

  .home-character-slider {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
  }

  .character-showcase-card {
    padding: 0;
  }

  .character-card-head {
    padding: calc(var(--panel-pad) + 6px) var(--panel-pad) 16px;
  }

  .character-slide-arrow {
    top: clamp(92px, 28vw, 122px);
  }

  .bd-song-grid,
  .story-row,
  .home-card-grid,
  .story-tile-grid,
  .resource-grid,
  .teacher-zone .resource-grid,
  .overview-grid,
  .character-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bd-song-filter-pill,
  .category-pills,
  .bd-song-metrics,
  .metrics {
    width: 100%;
  }

  .category-pills a,
  .category-pills button {
    width: 100%;
  }

  .story-modal-backdrop,
  .bd-song-modal-backdrop {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }

  .story-modal,
  .bd-song-modal {
    width: 100%;
    max-height: none;
    margin: auto 0;
  }

  .story-modal-body,
  .bd-song-modal-body,
  .story-modal-head,
  .bd-song-modal-head {
    padding: 10px;
  }

  .story-play-btn,
  .bd-song-btn,
  .resource-link,
  .resource-card button {
    width: 100%;
  }

  .calendar-fragment,
  .table-scroll,
  .catalog-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .subpage-hero h1,
  .home-copy h1 {
    font-size: 30px;
  }

  .story-cinema-head h2,
  .teacher-panel h2,
  .section-head h2 {
    font-size: 24px;
  }

  .bd-song-card,
  .story-card,
  .resource-card,
  .overview-card,
  .contact-form,
  .booking-card {
    padding: 14px;
  }
}

@media (max-width: 980px) {
  body[data-page="experience"] .unified-page-content {
    padding-top: 18px;
  }

  body[data-page="experience"] .teacher-panel,
  body[data-page="experience"] .booking-card {
    padding: 14px;
  }

  body[data-page="experience"] .external-booking-card {
    margin-left: -14px;
    margin-right: -14px;
  }

  body[data-page="experience"] .calendar-fragment {
    width: 100%;
    padding: 8px;
    overflow: visible;
    overflow-x: visible;
  }

  body[data-page="experience"] .calendar-fragment .calendar-nav-box {
    margin-bottom: 12px;
  }

  body[data-page="experience"] .calendar-fragment .calendar-lnb {
    gap: 12px;
    padding: 9px 12px;
  }

  body[data-page="experience"] .calendar-fragment .calendar-date-text {
    font-size: 24px;
  }

  body[data-page="experience"] .calendar-fragment .list-head {
    margin-bottom: 12px;
    text-align: center;
  }

  body[data-page="experience"] .calendar-fragment .mb-skin-category-wrap {
    width: 100%;
    justify-content: center;
  }

  body[data-page="experience"] .calendar-fragment .mb-skin-category-wrap button,
  body[data-page="experience"] .calendar-fragment .mb-skin-category-wrap a {
    flex: 1;
    min-width: 0;
    padding: 9px 6px;
    font-size: 14px;
  }

  body[data-page="experience"] .calendar-fragment .table-calendar-month {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  body[data-page="experience"] .calendar-fragment .table-calendar-month th {
    padding: 10px 2px;
    font-size: 13px;
  }

  body[data-page="experience"] .calendar-fragment .table-calendar-month td {
    height: 88px;
    padding: 6px 4px;
  }

  body[data-page="experience"] .calendar-fragment .i-date {
    min-width: 24px;
    height: 24px;
    font-size: 13px;
  }

  body[data-page="experience"] .calendar-fragment .mb-schedule-item {
    margin-top: 5px;
  }

  body[data-page="experience"] .calendar-fragment .mb-schedule-item a {
    font-size: 11px;
    line-height: 1.25;
  }

  body[data-page="experience"] .calendar-fragment .mb-schedule-item div {
    padding: 5px 4px;
  }

  body[data-page="songs"] .subpage-hero {
    display: block !important;
    min-height: 0 !important;
    padding: 54px 0 12px !important;
    background: #e9f0ff;
  }

  body[data-page="songs"] .unified-page-content {
    min-height: 0 !important;
    padding: 12px 0 56px !important;
  }

  body[data-page="songs"] .subpage-copy {
    max-width: 720px !important;
    text-align: center;
  }

  body[data-page="songs"] .subpage-copy h1 {
    margin: 0 0 10px !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
  }

  body[data-page="songs"] .subpage-copy .lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px !important;
    line-height: 1.65;
  }

  body[data-page="songs"] .teacher-panel {
    padding: 14px !important;
  }

  body[data-page="songs"] .teacher-panel > span,
  body[data-page="songs"] .teacher-panel h2,
  body[data-page="songs"] .teacher-panel > p {
    display: none !important;
  }

  body[data-page="songs"] #banidol-app {
    margin-top: 0 !important;
    padding: 10px !important;
  }

  body[data-page="songs"] .bd-song-controls {
    margin-bottom: 12px !important;
    padding: 10px !important;
  }

  body[data-page="songs"] .bd-song-sliders {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  body[data-page="songs"] .bd-song-sliders label {
    padding: 9px 10px !important;
  }

  body[data-page="songs"] .bd-song-sliders label > span {
    align-items: center;
    gap: 8px;
  }

  body[data-page="songs"] .bd-song-sliders b,
  body[data-page="songs"] .bd-song-sliders em {
    font-size: 12px;
  }

  body[data-page="songs"] .bd-song-filter-bar {
    display: none !important;
  }
}
