:root {
  --accent: #8c3fe0;
  --accent-soft: #f0e5ff;
  --ink: #201a25;
  --muted: #6b6370;
  --paper: #fcfaf7;
  --surface: #ffffff;
  --line: #ded8e0;
  --shadow: 0 18px 50px rgb(41 27 47 / 10%);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.form-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-form-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 28px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.public-form-card h2,
.public-form-card h3 { margin: auto 0 0; font-size: 1.45rem; }
.public-form-card p { margin: 0; color: var(--muted); }
.owner-border-majia { border-top-color: #a33be4; }
.owner-border-bana { border-top-color: #146b78; }
.owner-border-mana { border-top-color: var(--accent); }
.public-forms-page { min-height: 70vh; }
.public-form-shell { width: min(760px, calc(100% - 2rem)); margin: 4rem auto; }
.public-form-shell > h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); margin: .25em 0; }
.form-description { color: var(--muted); font-size: 1.1rem; line-height: 1.8; }
.anonymous-form { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.anonymous-field { margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.anonymous-field legend { padding: 0 .35rem; font-weight: 800; font-size: 1.1rem; }
.anonymous-field legend small { margin-left: .5rem; color: var(--accent); font-size: .72rem; }
.anonymous-field input[type="text"],
.anonymous-field input:not([type]),
.anonymous-field textarea,
.anonymous-field select { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.choice-list { display: grid; gap: .7rem; }
.choice-list label, .consent-field { display: flex; gap: .6rem; align-items: flex-start; }
.rating-list { display: flex; gap: .6rem; flex-wrap: wrap; }
.rating-list input { position: absolute; opacity: 0; }
.rating-list span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.rating-list input:checked + span { color: #fff; background: var(--ink); }
.form-error { color: #a41e45; font-weight: 700; }
.form-honeypot { position: absolute; left: -10000px; }
.privacy-note { color: var(--muted); font-size: .9rem; }
.form-complete { margin-top: 2rem; padding: 2rem; border-radius: 24px; background: var(--accent-soft); }

@media (max-width: 900px) {
  .form-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .form-card-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, var(--accent-soft), transparent 24rem),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: none;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50% 50% 44% 56%;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.homepage-content-sections {
  display: flex;
  flex-direction: column;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.scope-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scope-shell > .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.scope-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 570px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 75%);
  box-shadow: 0 10px 35px rgb(50 35 58 / 7%);
  backdrop-filter: blur(16px);
}

.scope-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
}

.scope-button[aria-selected="true"] {
  background: var(--ink);
  color: white;
  box-shadow: 0 7px 18px rgb(30 24 34 / 20%);
}

.avatar {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  color: #2a2130;
  font-size: 0.68rem;
  font-weight: 900;
}

.avatar-all { background: linear-gradient(135deg, #e8b9ff, #b7f5ef); }
.avatar-majia { background: #b7f5ef; }
.avatar-bana { background: #e8b9ff; }
.avatar-mana { background: linear-gradient(135deg, #e8b9ff 50%, #b7f5ef 50%); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgb(89 67 98 / 12%);
  border-radius: 40px;
  background: linear-gradient(120deg, #fff 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(2.2rem, 7vw, 5.5rem);
}

.hero.hero-has-image {
  display: flex;
  align-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.hero.hero-has-image .hero-copy {
  width: min(52%, 650px);
  box-sizing: border-box;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 28px;
  background: rgb(255 255 255 / 60%);
  box-shadow: 0 16px 45px rgb(58 38 48 / 10%);
}

.hero.hero-has-image .hero-art {
  position: absolute;
  inset: 0;
  min-height: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-description {
  max-width: 560px;
  margin: 1.8rem 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-quiet {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 65%);
}

.hero-art {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero-picture,
.hero-placeholder {
  position: absolute;
  inset: 0;
}

.hero-picture[hidden],
.hero-placeholder[hidden] {
  display: none;
}

.hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 280px;
  height: 280px;
  top: 12%;
  right: 8%;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.orb-two {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: 8%;
  background: rgb(94 210 196 / 35%);
}

.portrait {
  position: absolute;
  display: flex;
  width: 210px;
  height: 390px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 120px 120px 38px 38px;
  box-shadow: 0 30px 50px rgb(50 23 58 / 18%);
  transform: rotate(-4deg);
}

.portrait span {
  color: rgb(255 255 255 / 78%);
  font-family: Georgia, serif;
  font-size: 8rem;
}

.portrait small {
  position: absolute;
  bottom: 1.4rem;
  color: white;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.portrait-majia {
  z-index: 2;
  right: 37%;
  bottom: -28px;
  background: linear-gradient(160deg, #bb70e9, #70319b);
}

.portrait-bana {
  right: 3%;
  bottom: -54px;
  background: linear-gradient(160deg, #74d4cc, #286979);
  transform: rotate(5deg);
}

.placeholder-note {
  position: absolute;
  z-index: 3;
  right: 1rem;
  top: 1rem;
  margin: 0;
  color: rgb(32 26 37 / 50%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.notice-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: white;
}

.notice-strip p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.3rem 0 0;
  color: #cfc7d2;
  font-size: 0.78rem;
}

.notice-strip a {
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.notice-label {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  scroll-margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-heading > p,
.section-intro {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.featured-player {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.featured-player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111;
  aspect-ratio: 16 / 9;
}

.featured-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-player-tabs {
  display: grid;
  max-height: 520px;
  gap: 0.5rem;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  overflow: auto;
}

.featured-player-tabs button {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  align-self: start;
  min-height: 92px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.featured-player-tabs .owner-badge {
  width: fit-content;
  justify-self: start;
}

.featured-player-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: inset 4px 0 var(--accent);
}

.featured-player-tabs button > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(44 30 50 / 5%);
}

.video-card a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-thumb {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.video-thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tone-majia { background: linear-gradient(145deg, #51205f, #c27ae9); }
.tone-bana { background: linear-gradient(145deg, #174c5b, #80d9cc); }
.tone-mana { background: linear-gradient(135deg, #6f2b79, #c66081 52%, #58aeb1); }

.thumb-symbol {
  color: rgb(255 255 255 / 78%);
  font-family: Georgia, serif;
  font-size: 6rem;
  font-style: italic;
}

.video-state {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
}

.state-live {
  background: #d9264d;
  color: white;
}

.card-body {
  padding: 1.2rem;
}

.card-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.card-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.owner-badge {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.22rem 0.48rem 0.22rem 0.28rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.owner-symbol {
  display: grid;
  width: 1.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 75%);
  font-size: 0.58rem;
}

.owner-majia {
  border-color: #b882d4;
  background: #f1e2ff;
  color: #662984;
}

.owner-bana {
  border-color: #73bdb8;
  background: #dff6f5;
  color: #145d67;
}

.owner-mana {
  border-color: #cd7d91;
  background: #ffe2e7;
  color: #813047;
}

h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-list {
  display: grid;
  gap: 0.8rem;
}

.schedule-day {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 25px rgb(40 24 45 / 5%);
}

.date-block {
  display: grid;
  min-height: 74px;
  place-items: center;
  align-content: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.date-block strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.date-block span,
.talent-tag {
  font-size: 0.68rem;
  font-weight: 850;
}

.stories-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.story-card {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(44 30 50 / 5%);
}

.story-card-primary {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.story-art {
  display: flex;
  min-height: 155px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}

.story-card-primary .story-art {
  min-height: 250px;
}

.story-majia {
  background: linear-gradient(145deg, #e9c8fb, #b56cda);
}

.story-bana {
  background: linear-gradient(145deg, #cff4f0, #69c3bc);
}

.story-mana {
  background: linear-gradient(135deg, #e8c1f5, #efb3c3 50%, #a8e3dd);
}

.story-type {
  color: rgb(32 26 37 / 70%);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem;
}

.story-copy p {
  margin: 0.7rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.story-copy strong {
  color: var(--accent);
  font-size: 0.76rem;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.split-section > .section-more {
  grid-column: 2;
}

.public-schedule-page {
  width: min(100%, 1380px);
}

.public-week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.public-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .65rem;
}

.public-week-day {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.public-week-day > header {
  display: grid;
  gap: .25rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}

.public-week-day > header small {
  color: var(--muted);
  font-weight: 800;
}

.public-week-day > header strong {
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.public-schedule-event {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.public-week-day > header + .public-schedule-event {
  padding-top: 0;
  border-top: 0;
}

.public-schedule-event h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
}

.public-schedule-event > small,
.public-no-event {
  color: var(--muted);
}

.public-schedule-event > a {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
}

.public-no-event {
  margin-top: 1rem;
}

.talent-tag {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list > a {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.news-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.news-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.12rem;
}

.pin-badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-size: 0.63rem;
  vertical-align: 0.15rem;
}

.social-section {
  padding-top: 3rem;
}

.social-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding: 0.4rem;
  scrollbar-width: thin;
}

.social-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.social-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.social-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-account-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.social-account-link > span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-card {
  display: grid;
  min-height: 140px;
  align-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  text-align: left;
}

button.social-card {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.social-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.social-card-head .card-identity {
  margin: 0;
}

.social-action {
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.social-card h3 {
  align-self: end;
}

.copy-card strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.social-card:hover .social-action,
.social-card:focus-visible .social-action {
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.library-public-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.library-owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.library-owner-card {
  min-height: 260px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
}

.library-owner-card h2 {
  margin-top: 2rem;
}

.library-owner-card p {
  color: var(--muted);
  line-height: 1.7;
}

.owner-majia-card {
  background: linear-gradient(145deg, #fff, #f3e2fa);
}

.owner-bana-card {
  background: linear-gradient(145deg, #fff, #ddf5f1);
}

.library-public-card h3,
.library-public-card p {
  margin: 0;
}

.library-public-card p {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.7;
}

.library-article-page {
  max-width: 820px;
}

.library-article-page h1 {
  margin-bottom: 1rem;
}

.library-body {
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.9;
}

.library-body > * {
  margin-block: 1.6rem;
}

.library-body h2 {
  margin-top: 3rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.library-body h3 {
  margin-top: 2.4rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.library-body .content-image {
  margin-inline: 0;
}

.content-image img,
.content-gallery img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

.content-image figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.content-image-text {
  display: flow-root;
}

.content-image-text figure {
  margin: 0;
}

.content-image-text img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

.content-image-text figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.content-image-text-copy p {
  margin: 0;
}

.content-image-text.image-top,
.content-image-text.image-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.content-image-text.image-bottom figure {
  order: 2;
}

.content-image-text.image-left,
.content-image-text.image-right {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.content-image-text.image-right figure {
  order: 2;
}

.content-image-text.image-float_left figure,
.content-image-text.image-float_right figure {
  width: min(42%, 420px);
  margin-bottom: .8rem;
}

.content-image-text.image-float_left figure {
  float: left;
  margin-right: 1.4rem;
}

.content-image-text.image-float_right figure {
  float: right;
  margin-left: 1.4rem;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.content-gallery figure {
  margin: 0;
}

.content-gallery img {
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.library-body blockquote {
  padding: 1.3rem 1.5rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
}

.library-body blockquote p {
  margin: 0;
}

.library-body blockquote cite {
  display: block;
  margin-top: .75rem;
  color: var(--muted);
  font-style: normal;
}

.content-link-button {
  display: inline-flex;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.content-table-wrap {
  overflow-x: auto;
}

.content-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.content-table-wrap caption {
  margin-bottom: .6rem;
  font-weight: 800;
  text-align: left;
}

.content-table-wrap th,
.content-table-wrap td {
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  text-align: left;
}

.content-table-wrap th {
  background: var(--surface);
}

.content-youtube {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #111;
}

.content-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.library-body hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid var(--line);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

footer p {
  color: var(--muted);
  font-size: 0.75rem;
}

.noscript-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.8rem;
  border-radius: 12px;
  background: #fff3cd;
  color: #4d3d05;
  text-align: center;
}

/* 2026 visual polish: preserve the editorial layout while strengthening depth and rhythm. */
:root {
  --line-soft: rgb(73 50 80 / 10%);
  --shadow-sm: 0 10px 30px rgb(41 27 47 / 7%);
  --shadow: 0 22px 60px rgb(41 27 47 / 11%);
  --shadow-hover: 0 26px 70px rgb(41 27 47 / 15%);
}

body {
  background:
    radial-gradient(circle at 8% 6%, rgb(240 229 255 / 82%), transparent 27rem),
    radial-gradient(circle at 92% 28%, rgb(220 248 244 / 52%), transparent 24rem),
    linear-gradient(180deg, #fffdfb 0%, var(--paper) 38%, #fbf8f6 100%);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", Georgia, serif;
}

.brand {
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand:hover {
  opacity: .82;
  transform: translateY(-1px);
}

.site-header nav a {
  position: relative;
  padding-block: .55rem;
}

.site-header nav a::after {
  position: absolute;
  right: 50%;
  bottom: .22rem;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
  left: 0;
}

.scope-switcher {
  border-color: rgb(86 65 93 / 14%);
  box-shadow: 0 14px 38px rgb(50 35 58 / 9%);
}

.scope-button[aria-selected="true"],
.button-primary {
  background: linear-gradient(135deg, #2b222d, #171218);
}

.hero {
  border-color: rgb(89 67 98 / 15%);
  box-shadow: 0 28px 80px rgb(66 42 72 / 13%);
}

.hero.hero-has-image .hero-copy {
  border-color: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 55px rgb(58 38 48 / 12%);
  backdrop-filter: blur(10px) saturate(108%);
}

.button {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  box-shadow: 0 10px 24px rgb(32 26 37 / 18%);
}

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

.button-primary:hover {
  box-shadow: 0 15px 32px rgb(32 26 37 / 24%);
}

.button-quiet:hover {
  border-color: rgb(140 63 224 / 38%);
  background: #fff;
}

.notice-strip {
  border: 1px solid rgb(255 255 255 / 8%);
  background:
    radial-gradient(circle at 12% 0%, rgb(140 63 224 / 30%), transparent 15rem),
    linear-gradient(135deg, #241c27, #171218);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.featured-player-frame {
  box-shadow: var(--shadow-sm);
}

.featured-player-tabs {
  padding: .25rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 45%);
}

.featured-player-tabs button {
  box-shadow: 0 5px 16px rgb(44 30 50 / 4%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.featured-player-tabs button:hover {
  border-color: rgb(140 63 224 / 35%);
  box-shadow: var(--shadow-sm);
  transform: translateX(-2px);
}

.video-card,
.story-card,
.social-card,
.library-owner-card {
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.video-card {
  overflow: hidden;
}

.video-card:hover,
.story-card:hover,
.social-card:hover,
.social-card:focus-visible,
.library-owner-card:hover {
  border-color: rgb(140 63 224 / 25%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.schedule-day {
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.schedule-day:hover {
  border-color: rgb(140 63 224 / 24%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.social-account-link {
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 6px 18px rgb(44 30 50 / 4%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.social-account-link:hover {
  border-color: rgb(140 63 224 / 30%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.library-public-card {
  box-shadow: var(--shadow-sm);
}

.library-article-page {
  margin-inline: auto;
  margin-block: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.4rem, 5vw, 4.5rem);
  border: 1px solid var(--line-soft);
  border-radius: clamp(22px, 4vw, 38px);
  background: rgb(255 255 255 / 76%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.library-body {
  color: #352d38;
}

.content-image img,
.content-gallery img,
.content-image-text img {
  box-shadow: var(--shadow-sm);
}

.public-week-day {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.public-week-day:hover {
  border-color: rgb(140 63 224 / 24%);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.library-public-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.library-public-card:hover {
  border-color: rgb(140 63 224 / 24%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

footer {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section > .section-more {
    grid-column: 1;
  }

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

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    display: none;
  }

  .scope-shell {
    display: block;
  }

  .scope-shell > .eyebrow {
    margin-bottom: 0.7rem;
  }

  .scope-switcher {
    width: 100%;
  }

  .scope-button {
    display: grid;
    gap: 0.18rem;
    min-height: 64px;
    padding: 0.35rem 0.15rem;
    font-size: 0.72rem;
  }

  .avatar {
    width: 28px;
    margin-inline: auto;
  }

  .hero {
    min-height: auto;
    border-radius: 26px;
  }

  .hero-copy {
    padding: 2.2rem 1.3rem 1rem;
  }

  .hero.hero-has-image {
    min-height: 620px;
    align-items: flex-end;
    padding: 1rem;
  }

  .hero.hero-has-image .hero-copy {
    width: 100%;
    padding: 1.35rem;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .hero-art {
    min-height: 330px;
  }

  .portrait {
    width: 160px;
    height: 300px;
  }

  .portrait span {
    font-size: 6rem;
  }

  .portrait-majia {
    right: 41%;
  }

  .portrait-bana {
    right: -2%;
  }

  .notice-strip {
    grid-template-columns: auto 1fr;
  }

  .notice-strip a {
    grid-column: 2;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
  }

  .video-grid,
  .social-grid,
  .story-grid,
  .library-owner-grid {
    grid-template-columns: 1fr;
  }

  .content-gallery {
    grid-template-columns: 1fr;
  }

  .content-image-text.image-left,
  .content-image-text.image-right,
  .content-image-text.image-top,
  .content-image-text.image-bottom {
    display: flex;
    flex-direction: column;
  }

  .content-image-text.image-right figure,
  .content-image-text.image-bottom figure {
    order: 2;
  }

  .content-image-text.image-float_left figure,
  .content-image-text.image-float_right figure {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .public-week-grid {
    grid-template-columns: 1fr;
  }

  .featured-player {
    grid-template-columns: 1fr;
  }

  .featured-player-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .story-card,
  .story-card-primary {
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .story-card .story-art,
  .story-card-primary .story-art {
    min-height: 180px;
  }

  .news-list > a {
    grid-template-columns: 1fr auto;
  }

  .news-date {
    grid-column: 1 / -1;
  }

  footer {
    display: block;
  }
}

@media (max-width: 380px) {
  .portrait {
    width: 145px;
  }

  .schedule-day {
    grid-template-columns: 64px 1fr;
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }

  .video-card,
  .scope-button,
  .social-tabs button {
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
