:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-muted: #f0ece2;
  --ink: #1d232b;
  --muted: #68727f;
  --line: #ded8ca;
  --accent: #c83f31;
  --accent-strong: #9f2f25;
  --cyan: #0d7780;
  --success: #197047;
  --warning: #9d5d05;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(36, 31, 24, 0.1);
  --max: 1180px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfaf6 0%, var(--bg) 46%, #efebe2 100%);
  line-height: 1.6;
  letter-spacing: 0;
  padding-bottom: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(13, 119, 128, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(31, 36, 43, 0.1);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand em {
  color: var(--muted);
  font-size: 12px;
}

.site-nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  justify-content: center;
}

.account-actions {
  justify-content: flex-end;
}

.site-nav a,
.ghost-action,
.solid-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  padding: 8px 10px;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(31, 36, 43, 0.06);
}

.ghost-action,
.solid-action {
  padding: 9px 14px;
  border: 1px solid rgba(31, 36, 43, 0.16);
}

.ghost-action {
  background: rgba(255, 255, 255, 0.72);
}

.solid-action {
  border-color: transparent;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(200, 63, 49, 0.2);
}

.large {
  min-height: 48px;
  padding: 12px 18px;
}

main {
  overflow: hidden;
}

.home-hero,
.content-section,
.page-main {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.home-hero {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 20px;
}

.home-hero-copy p:not(.eyebrow),
.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 17px;
}

.home-hero-copy {
  max-width: 760px;
}

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

.hero-feature {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(31, 36, 43, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-feature div {
  padding: 16px;
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  background: #fff;
}

.hero-feature span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-feature strong {
  display: block;
  margin-top: 4px;
}

.content-section {
  padding: 74px 0 0;
}

.compact-section {
  padding-bottom: 60px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.anime-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

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

.anime-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px;
  border: 1px solid rgba(31, 36, 43, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(36, 31, 24, 0.08);
}

.cover-shell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(23, 26, 31, 0.1), transparent 32%),
    linear-gradient(35deg, rgba(200, 63, 49, 0.28), transparent 54%),
    linear-gradient(140deg, rgba(13, 119, 128, 0.26), transparent),
    #eee7d8;
}

.cover-star {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.55), transparent 12%),
    linear-gradient(155deg, #22283a 0%, #514e77 44%, #d46a4d 100%);
}

.cover-cloud {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.75), transparent 18%),
    linear-gradient(155deg, #e9f7f4 0%, #78b9bf 48%, #f2b66d 100%);
}

.cover-lingnan {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.45), transparent 14%),
    linear-gradient(155deg, #163a3c 0%, #397867 48%, #d7a34c 100%);
}

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

.cover-shell img.broken {
  display: none;
}

.cover-fallback {
  position: absolute;
  inset: auto 12px 12px;
  display: block;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  color: white;
  background: rgba(17, 22, 28, 0.48);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.anime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(13, 119, 128, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(13, 119, 128, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.anime-card p {
  color: var(--muted);
  font-size: 14px;
}

.preview-button,
.register-form button,
#pay-button {
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.register-form button,
#pay-button {
  background: var(--accent);
}

.player-preview {
  position: sticky;
  top: 88px;
}

.player-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 43, 0.18);
  border-radius: var(--radius);
  background: #101319;
  box-shadow: var(--shadow);
}

.player-window video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.player-window.has-video video {
  display: block;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(16, 19, 25, 0.72), rgba(16, 19, 25, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
}

.player-window.has-video .player-placeholder {
  display: none;
}

.player-note {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 36, 43, 0.12);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.player-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

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

.link-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(31, 36, 43, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.link-card span {
  color: var(--accent-strong);
  font-weight: 900;
}

.link-card strong {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.link-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-main {
  padding: clamp(44px, 7vw, 82px) 0 70px;
}

.page-hero {
  max-width: 900px;
  margin-bottom: 34px;
}

.page-hero.narrow {
  max-width: 760px;
}

.page-hero h1,
.legal-page h1 {
  font-size: clamp(36px, 6vw, 68px);
}

.two-column,
.checkout-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-panel,
.order-panel,
.legal-page section {
  border: 1px solid rgba(31, 36, 43, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(36, 31, 24, 0.06);
}

.form-panel {
  padding: clamp(22px, 4vw, 34px);
}

.register-form {
  display: grid;
  gap: 14px;
}

.register-form label {
  display: grid;
  gap: 7px;
  color: #39414a;
  font-size: 14px;
  font-weight: 800;
}

.register-form input,
.register-form select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(31, 36, 43, 0.16);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-result,
#pay-result {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--success);
  font-weight: 800;
}

.checkout-layout {
  align-items: start;
}

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

.plan-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(31, 36, 43, 0.14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.plan-card strong {
  color: var(--accent-strong);
  font-size: 28px;
}

.plan-card small {
  color: var(--warning);
  font-weight: 800;
}

.plan-card.is-selected {
  border-color: rgba(200, 63, 49, 0.5);
  background: #fff0ec;
  box-shadow: inset 0 0 0 2px rgba(200, 63, 49, 0.14);
}

.order-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.order-panel div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 36, 43, 0.08);
}

.order-panel span {
  color: var(--muted);
}

.member-feature {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgba(31, 36, 43, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 119, 128, 0.08), transparent 42%),
    #fff;
  box-shadow: var(--shadow);
}

.member-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #11161c;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(21, 27, 34, 0.18);
}

.member-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.member-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.member-copy h2 {
  max-width: 780px;
  font-size: clamp(30px, 5vw, 56px);
}

.member-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.member-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(13, 119, 128, 0.08);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.member-library {
  margin-bottom: 24px;
}

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

.member-grid .drama-card h3 {
  color: var(--ink);
}

.member-grid .drama-card p {
  color: var(--muted);
}

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

.legal-page {
  max-width: 920px;
}

.legal-page section {
  padding: 24px;
  margin-top: 16px;
}

.legal-page h2 {
  font-size: 24px;
}

.legal-page p,
.legal-list {
  color: #3e4752;
}

.legal-list {
  padding-left: 22px;
}

.site-footer {
  position: static;
  display: block;
  padding: 34px clamp(18px, 5vw, 64px) 32px;
  border-top: 1px solid #e7e1d7;
  background: #f6f5f1;
  color: #8b9097;
  box-shadow: none;
}

.footer-inner {
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 10px clamp(28px, 5vw, 64px);
  align-items: start;
  margin: 0 auto;
}

.footer-brand {
  grid-row: span 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  color: #5f656d;
}

.footer-brand .brand-mark {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff8a2a, #e9342c 58%, #31b0a8);
}

.footer-brand strong,
.footer-brand em {
  display: block;
  font-style: normal;
}

.footer-brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.footer-brand em {
  color: #9ca1a8;
  font-size: 12px;
}

.footer-links,
.footer-records,
.footer-report {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
}

.footer-links {
  color: #505761;
  font-size: 16px;
  font-weight: 800;
}

.footer-links a {
  position: relative;
}

.footer-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 1px;
  height: 14px;
  background: #c8cbd0;
  transform: translateY(-50%);
}

.footer-read {
  margin: 10px 0 0;
  color: #9ba0a7;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer span,
.site-footer a {
  color: #9a9fa6;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}

.site-footer strong {
  color: #5b626b;
}

.site-footer a {
  color: #737982;
  font-weight: 800;
}

.footer-records,
.footer-report {
  margin-top: 4px;
}

.auth-page {
  min-height: 100vh;
  padding-bottom: 0;
  background: #141414;
}

.auth-header {
  position: fixed;
  inset: 0 0 auto;
  border-bottom: 0;
  background: transparent;
  color: #fff;
  backdrop-filter: none;
}

.auth-header .brand-mark {
  background: linear-gradient(135deg, #ff8a2a, #e9342c 58%, #31b0a8);
}

.auth-header .brand em,
.auth-header .site-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.auth-header .site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-header .ghost-action {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(32px, 8vw, 120px);
  align-items: center;
  padding: 112px clamp(22px, 8vw, 120px) 96px;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.86) 0%, rgba(20, 20, 20, 0.72) 48%, rgba(20, 20, 20, 0.36) 100%),
    url("./assets/works/destroyer-isekai/cover.webp") center / cover no-repeat;
}

.auth-visual {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.auth-visual-copy {
  color: #fff;
}

.auth-visual-copy p {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
}

.auth-visual-copy h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 900;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

.auth-visual-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 800;
}

.auth-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.auth-tabs {
  display: flex;
  gap: 26px;
}

.auth-tabs a {
  position: relative;
  padding-bottom: 8px;
  color: #9a9a9a;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.auth-tabs a.is-active {
  color: var(--ink);
}

.auth-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.auth-form h2 {
  margin-bottom: 2px;
  font-size: 24px;
}

.auth-form input,
.auth-form select {
  border-color: transparent;
  background: #f4f4f4;
}

.code-field > span {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f4f4f4;
}

.code-field input {
  border-radius: 0;
}

.code-field button {
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid rgba(31, 36, 43, 0.08);
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  white-space: nowrap;
}

.policy-row {
  color: #8a8f96;
  font-size: 12px;
  font-weight: 500;
}

.policy-row a {
  color: var(--accent-strong);
  text-decoration: none;
}

.auth-form > button[type="submit"] {
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f54, #e94a34);
  box-shadow: 0 12px 28px rgba(233, 74, 52, 0.22);
}

@media (max-width: 1040px) {
  body {
    padding-bottom: 150px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav,
  .account-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-hero,
  .anime-layout,
  .two-column,
  .checkout-layout,
  .member-feature {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    max-width: 640px;
  }

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

  .player-preview {
    position: static;
  }

  .site-footer {
    padding-inline: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-row: auto;
  }

  .auth-page {
    padding-bottom: 0;
  }

  .auth-header {
    position: sticky;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(14px);
  }

  .auth-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .auth-visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .home-hero,
  .content-section,
  .page-main {
    width: min(100% - 28px, var(--max));
  }

  .home-hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 44px;
  }

  .anime-grid,
  .link-grid,
  .page-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .member-feature {
    padding: 16px;
  }

  .member-cover {
    width: min(260px, 100%);
  }

  .site-footer {
    max-height: none;
    overflow: visible;
    padding: 24px 16px 26px;
  }

  .footer-brand {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    gap: 8px 14px;
    font-size: 14px;
  }

  .footer-links a:not(:last-child)::after {
    height: 12px;
  }

  .footer-read {
    font-size: 12px;
  }

  .auth-page {
    padding-bottom: 0;
  }

  .auth-header {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 10px 12px 8px;
  }

  .auth-header .brand-mark {
    width: 34px;
    height: 34px;
  }

  .auth-header .brand strong {
    font-size: 14px;
  }

  .auth-header .brand em {
    display: none;
  }

  .auth-header .account-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .auth-header .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .auth-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .auth-main {
    padding: 36px 14px 32px;
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.96) 42%),
      url("./assets/works/destroyer-isekai/cover.webp") center top / cover no-repeat;
  }

  .auth-page .site-footer {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

  .auth-card {
    padding: 22px 18px;
  }

  .auth-tabs a {
    font-size: 16px;
  }

  .code-field > span {
    grid-template-columns: 1fr;
  }

  .code-field button {
    border-top: 1px solid rgba(31, 36, 43, 0.08);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Home page inspired by a streaming content homepage. */
.home-page {
  min-height: 100vh;
  padding-bottom: 108px;
  background: #101010;
  color: #fff;
}

.home-header {
  position: fixed;
  inset: 0 0 auto;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0));
  backdrop-filter: none;
}

.home-header .brand strong,
.home-header .site-nav a,
.home-header .ghost-action {
  color: #fff;
}

.home-header .brand em {
  color: rgba(255, 255, 255, 0.58);
}

.home-header .brand-mark {
  background: linear-gradient(135deg, #ff8a2a, #e9342c 58%, #31b0a8);
}

.home-header .site-nav a {
  color: rgba(255, 255, 255, 0.62);
}

.home-header .site-nav a:hover,
.home-header .site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-header .ghost-action {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.cinema-hero {
  position: relative;
  min-height: 760px;
  padding: 120px clamp(22px, 8vw, 160px) 128px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -12% -4% -8% auto;
  width: min(62vw, 940px);
  height: 118%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.02);
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 117, 44, 0.12), transparent 25%),
    linear-gradient(90deg, #101010 0%, rgba(16, 16, 16, 0.98) 27%, rgba(16, 16, 16, 0.62) 58%, rgba(16, 16, 16, 0.92) 100%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.1), #101010 96%);
}

.cinema-content {
  width: min(1180px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  margin: 0 auto;
}

.series-copy {
  max-width: 690px;
  padding-bottom: 36px;
}

.series-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.series-copy h1 {
  max-width: 820px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(42px, 6.6vw, 88px);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
}

.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.series-tags span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.series-desc {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
}

.series-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.watch-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff9b32, #ff5b2e);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(255, 100, 46, 0.28);
}

.detail-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  text-decoration: none;
}

.detail-link:hover {
  color: #fff;
}

.hero-poster {
  display: block;
  align-self: center;
  width: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

.hero-poster img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-strip {
  width: min(1180px, 100%);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: -62px auto 0;
  padding-bottom: 28px;
}

.strip-card {
  width: 112px;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.strip-card img {
  width: 112px;
  height: 156px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.strip-card.is-active img {
  outline: 2px solid rgba(255, 120, 46, 0.92);
  outline-offset: 3px;
}

.strip-card.is-active span {
  color: #fff;
}

.strip-card:focus-visible {
  outline: none;
}

.strip-card:focus-visible img {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.home-video,
.home-rail {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 50px 0 0;
}

.home-video-inner {
  max-width: 920px;
}

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

.section-title-row h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.section-title-row span,
.section-title-row a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  text-decoration: none;
}

.home-video .player-window {
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, 0.12);
  background: #050505;
}

body.player-modal-open {
  overflow: hidden;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.player-modal[hidden] {
  display: none;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.player-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #121212;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.64);
  animation: player-dialog-in 180ms ease-out;
}

.player-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 14px;
}

.player-dialog-header span {
  display: block;
  margin-bottom: 3px;
  color: #ff7a32;
  font-size: 12px;
  font-weight: 800;
}

.player-dialog-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.player-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.player-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.player-dialog .player-window {
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #000;
  box-shadow: none;
}

.player-dialog .player-window video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@keyframes player-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-dialog {
    animation: none;
  }
}

.home-rail {
  padding-bottom: 80px;
}

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

.drama-card {
  min-width: 0;
}

.drama-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #1b1b1b;
  text-decoration: none;
}

.drama-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 220ms ease;
}

.drama-cover:hover img {
  transform: scale(1.035);
}

.drama-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.drama-card h3 {
  margin: 10px 0 4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.drama-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.home-footer {
  background: #f6f5f1;
}

@media (max-width: 1040px) {
  .cinema-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 132px;
  }

  .hero-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.42;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 16, 0.98), rgba(16, 16, 16, 0.68)),
      linear-gradient(180deg, rgba(16, 16, 16, 0), #101010 96%);
  }

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

  .hero-poster {
    display: none;
  }

  .hero-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

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

@media (max-width: 720px) {
  .cinema-hero {
    padding: 112px 18px 132px;
  }

  .series-copy h1 {
    font-size: 42px;
  }

  .series-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .watch-button,
  .detail-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .strip-card,
  .strip-card img {
    width: 92px;
  }

  .strip-card img {
    height: 128px;
  }

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

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

@media (max-width: 720px) {
  .home-page {
    padding-bottom: 0;
    background: #101010;
  }

  .home-header {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.78));
    backdrop-filter: blur(14px);
  }

  .home-header .brand {
    min-width: 0;
  }

  .home-header .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .home-header .brand strong {
    font-size: 14px;
  }

  .home-header .brand em {
    display: none;
  }

  .home-header .account-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 6px;
  }

  .home-header .ghost-action,
  .home-header .solid-action {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .home-header .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .home-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .home-header .site-nav a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .cinema-hero {
    min-height: auto;
    padding: 118px 16px 26px;
  }

  .hero-bg {
    inset: 0;
    width: 100%;
    height: 58vh;
    object-position: 55% 0%;
    opacity: 0.5;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16, 16, 16, 0.18) 0%, rgba(16, 16, 16, 0.82) 42%, #101010 78%),
      linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.54));
  }

  .cinema-content {
    min-height: auto;
    display: block;
  }

  .series-copy {
    max-width: none;
    padding: 0;
  }

  .series-kicker {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .series-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.08;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .series-tags {
    gap: 7px;
    margin-bottom: 12px;
  }

  .series-tags span {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .series-desc {
    display: -webkit-box;
    max-height: none;
    overflow: hidden;
    padding-right: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .series-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .watch-button {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 17px;
  }

  .detail-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero-poster {
    display: block;
    width: min(42vw, 150px);
    margin: 22px 0 0;
    border-radius: 10px;
  }

  .hero-strip {
    justify-content: flex-start;
    gap: 10px;
    margin: 22px 0 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .hero-strip::-webkit-scrollbar {
    display: none;
  }

  .home-video,
  .home-rail {
    width: min(100% - 28px, 1180px);
    padding-top: 34px;
  }

  .home-video .player-window {
    border-radius: 8px;
  }

  .player-modal {
    align-items: center;
    padding: 12px;
  }

  .player-dialog {
    max-height: calc(100dvh - 24px);
    padding: 12px;
  }

  .player-dialog-header {
    gap: 12px;
    padding-bottom: 10px;
  }

  .player-dialog-header h2 {
    font-size: 16px;
  }

  .player-close {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .home-footer {
    max-height: none;
    margin-top: 34px;
    overflow: visible;
    padding: 24px 16px 26px;
  }
}

@media (max-width: 380px) {
  .series-copy h1 {
    font-size: 32px;
  }

  .series-desc {
    -webkit-line-clamp: 4;
  }

  .watch-button,
  .detail-link {
    width: 100%;
    justify-content: center;
  }

  .hero-poster {
    width: 138px;
  }
}
