:root {
  --ink: #fff6ee;
  --muted: #d8c3b4;
  --accent: #f0c48a;
  --accent-deep: #d8964d;
  --background: #100d0b;
  --surface: #1c1511;
  --surface-2: #271c16;
  --rule: #4a372c;
  --gold: #f3cc94;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", serif;
  --sans: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 500 1rem/1.6 var(--sans);
  background: #f7f2e9;
  color: #19253a;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.mobile-site { display: block; }

.mobile-notice {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #19253a;
  background:
    radial-gradient(circle at 50% 42%, #fff7e8 0%, transparent 46%),
    linear-gradient(150deg, #f7f2e9, #f1efea);
}
.mobile-notice__card {
  width: min(100%, 650px);
  min-height: 356px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 19px;
  padding: 34px 18px;
  text-align: center;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(57, 40, 24, .08);
}
.mobile-notice__tile {
  width: 96px;
  height: 96px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border-radius: 29px;
  color: #b8791e;
  background: #fff2dc;
}
.mobile-notice__phone {
  position: relative;
  width: 32px;
  height: 50px;
  border: 3px solid currentColor;
  border-radius: 8px;
}
.mobile-notice__phone::before,
.mobile-notice__phone::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: currentColor;
}
.mobile-notice__phone::before { width: 12px; top: 4px; }
.mobile-notice__phone::after { width: 10px; bottom: 4px; }
.mobile-notice h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.3;
}
.mobile-notice p { color: #626e80; font-size: clamp(.875rem, 3vw, 1.125rem); }

@media (hover: none) and (pointer: coarse) {
  .mobile-notice { display: none; }
  body {
    color-scheme: dark;
    color: var(--ink);
    background:
      radial-gradient(circle at 85% -8%, rgba(240, 196, 138, .16), transparent 32%),
      linear-gradient(180deg, #18120e 0%, var(--background) 24%, #0b0908 100%);
  }
  .mobile-site {
    display: block;
    width: min(100%, 45rem);
    margin-inline: auto;
    overflow: clip;
  }
  .site-header,
  .site-main,
  .site-footer { padding-inline: clamp(.95rem, 4vw, 1.6rem); }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--background) 84%, transparent);
    border-bottom: 1px solid rgba(74, 55, 44, .55);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .brand img {
    width: 36px;
    height: 36px;
    border-radius: .65rem;
    box-shadow: 0 0 0 1px rgba(240, 196, 138, .35);
  }
  .top-nav {
    display: flex;
    align-items: center;
    gap: .1rem;
    font-size: .76rem;
    font-weight: 700;
  }
  .top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .42rem;
    color: var(--muted);
    text-decoration: none;
  }
  .top-nav__cta {
    margin-left: .15rem;
    padding-inline: .78rem !important;
    border-radius: 999px;
    color: #2b1a12 !important;
    background: linear-gradient(135deg, var(--gold), var(--accent-deep));
  }

  .hero { padding-top: 1rem; }
  .hero__intro { margin-bottom: .95rem; }
  .hero__eyebrow,
  .eyebrow,
  .section-note {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .hero h1,
  .section-heading h2,
  .watch h2,
  .faq h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.03em;
  }
  .hero h1 {
    margin-top: .45rem;
    font-size: clamp(2.15rem, 9vw, 3.4rem);
    line-height: 1.08;
    max-width: 11ch;
  }
  .hero__lead {
    margin: .65rem 0 1rem;
    max-width: 30ch;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
  }
  .hero__actions,
  .watch__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.05rem;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
  }
  .btn--gold {
    color: #2b1a12;
    background: linear-gradient(135deg, #f6d3a0, #d8964d);
    box-shadow: 0 10px 24px rgba(216, 150, 77, .24);
  }
  .btn--ghost {
    color: var(--ink);
    border: 1px solid var(--rule);
    background: rgba(28, 21, 17, .8);
  }

  .hero-feature {
    display: grid;
    grid-template-columns: minmax(0, 9.6rem) minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
  }
  .hero-feature__poster {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    max-width: 9.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(240, 196, 138, .28);
    background: #2a1d17;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
  }
  .hero-feature__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 12.8rem;
    object-fit: cover;
    object-position: center top;
  }
  .hero-feature__body {
    display: grid;
    gap: .4rem;
    align-content: center;
    min-height: 0;
    padding: .95rem .9rem;
    border: 1px solid var(--rule);
    border-radius: 1rem;
    background:
      linear-gradient(160deg, rgba(240, 196, 138, .12), transparent 45%),
      var(--surface);
  }
  .pill {
    display: inline-flex;
    width: fit-content;
    padding: .24rem .5rem;
    border-radius: 999px;
    color: #2b1a12;
    background: var(--gold);
    font-size: .66rem;
    font-weight: 800;
  }
  .hero-feature__body strong {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    font-weight: 400;
    line-height: 1.25;
  }
  .hero-feature__body p,
  .drama p,
  .mood-card p,
  .watch p,
  .faq dd,
  .catalog .section-heading p {
    color: var(--muted);
    font-size: .82rem;
  }
  .hero-feature__body a,
  .section-heading a {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
  }

  .section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .4rem .7rem;
    margin: 1.45rem 0 .85rem;
  }
  .section-heading h2,
  .watch h2,
  .faq h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.15;
  }

  .poster-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 9.8rem;
    gap: .7rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .poster-rail::-webkit-scrollbar { display: none; }
  .poster-card,
  .drama > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: .9rem;
    background: #2a1d17;
    text-decoration: none;
    scroll-snap-align: start;
  }
  .poster-card {
    width: 9.8rem;
  }
  .poster-card img {
    display: block;
    width: 9.8rem;
    height: 11.2rem;
    object-fit: cover;
    object-position: center top;
  }
  .drama > a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 18%;
  }
  .poster-card::after,
  .drama > a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(8, 5, 3, .95), transparent);
  }
  .badge,
  .heat {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0 .45rem;
    border-radius: .45rem;
    font-size: .66rem;
    font-weight: 800;
  }
  .badge {
    top: .55rem;
    left: .55rem;
    color: #2b1a12;
    background: linear-gradient(135deg, var(--gold), #e0a45b);
  }
  .heat {
    top: .55rem;
    right: .55rem;
    color: #ffe8cf;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(240, 196, 138, .28);
  }
  .poster-card__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: .1rem;
    padding: .75rem .7rem .8rem;
  }
  .poster-card__meta strong {
    font-size: .92rem;
    line-height: 1.25;
  }
  .poster-card__meta em {
    color: #e8d2c2;
    font-style: normal;
    font-size: .72rem;
  }

  .mood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }
  .mood-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--rule);
    border-radius: 1rem;
    text-decoration: none;
    background: var(--surface);
  }
  .mood-card--tall {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .mood-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
  .mood-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 8, 5, .92) 10%, rgba(12, 8, 5, .18) 58%);
  }
  .mood-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .2rem;
    align-content: end;
    height: 100%;
    padding: .8rem .85rem .9rem;
  }
  .mood-card span { color: var(--gold); font-size: .7rem; font-weight: 800; }
  .mood-card strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
  }

  .filters {
    display: flex;
    gap: .42rem;
    overflow-x: auto;
    margin-bottom: .9rem;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 .85rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(28, 21, 17, .85);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
  }
  .filters .is-active {
    color: #2b1a12;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--accent-deep));
  }

  .poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem .6rem;
  }
  .drama {
    scroll-margin-top: 4.8rem;
    overflow: hidden;
    border-radius: .95rem;
    background: var(--surface);
    border: 1px solid rgba(74, 55, 44, .75);
  }
  .drama > a {
    border-radius: .95rem .95rem 0 0;
  }
  .drama:target {
    border-color: rgba(240, 196, 138, .7);
    box-shadow: 0 0 0 1px rgba(240, 196, 138, .22);
  }
  .drama__body {
    display: grid;
    gap: .28rem;
    padding: .75rem .7rem .85rem;
  }
  .drama h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.25;
  }
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
  }
  .tags span {
    display: inline-flex;
    min-height: 1.35rem;
    align-items: center;
    padding: 0 .42rem;
    border-radius: .4rem;
    color: #efd7c4;
    background: #32241d;
    font-size: .66rem;
    font-weight: 700;
  }

  .watch,
  .faq {
    margin-top: 1.7rem;
    scroll-margin-top: 4.8rem;
  }
  .watch {
    padding: 1.2rem 1.05rem 1.15rem;
    border: 1px solid rgba(240, 196, 138, .22);
    border-radius: 1.2rem;
    background:
      linear-gradient(145deg, rgba(240, 196, 138, .1), transparent 45%),
      #2a1d16;
  }
  .watch p { margin: .55rem 0 1rem; font-size: .9rem; }
  .faq dl { margin: .5rem 0 0; }
  .faq dl div {
    padding-block: .85rem;
    border-bottom: 1px solid var(--rule);
  }
  .faq dt { margin-bottom: .25rem; font-weight: 800; }
  .faq dd { margin: 0; font-size: .875rem; }

  .site-footer {
    display: grid;
    gap: .85rem;
    margin-top: 1.8rem;
    padding: 1.55rem clamp(.95rem, 4vw, 1.6rem) 2rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    background: rgba(28, 21, 17, .96);
  }
  .footer-brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .45rem .65rem;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: .01em;
    text-decoration: none;
  }
  .footer-brand span {
    color: var(--gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
  }
  .footer-tagline {
    margin: 0;
    max-width: 28ch;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
  }
  .footer-tagline a {
    margin-left: .35rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .75rem;
  }
  .footer-nav a,
  .footer-top {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
  }
  .footer-top {
    width: fit-content;
    padding-inline: .15rem;
  }
  .footer-meta {
    margin: .15rem 0 0;
  }
  .footer-meta small {
    color: #b79f8f;
    font-size: .75rem;
    line-height: 1.55;
  }
}

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

/* UA-POPUP-GATE */
.mobile-notice { display: none !important; }
.mobile-site { display: block !important; }
