:root {
  --bg: #0b0b0d;
  --bg-main: #121214;
  --bg-side: #09090b;
  --bg-elev: #17171a;
  --bg-card: #1a1a1f;
  --bg-card-hover: #222228;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-soft: #a8a8b3;
  --text-mute: #6f6f7a;
  --brand: #ff2d78;
  --brand-2: #ff8a1f;
  --brand-3: #ffb347;
  --brand-deep: #c71585;
  --grad: linear-gradient(135deg, #ffb347 0%, #ff8a1f 35%, #ff2d78 72%, #c71585 100%);
  --header-h: 64px;
  --side-w: 255px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ========== TOP HEADER ========== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem 0 1.1rem;
  background: #050506;
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-brand img {
  height: 34px;
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.topbar-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.topbar-search input {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #121214;
  color: var(--text);
  padding: 0 1rem 0 2.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar-search input::placeholder {
  color: var(--text-mute);
}

.topbar-search input:focus {
  border-color: rgba(255, 45, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.12);
}

.topbar-search .search-ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-mute);
  pointer-events: none;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #16161b;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  max-height: 320px;
  overflow: auto;
  display: none;
  z-index: 30;
}

.search-results.open {
  display: block;
}

.search-results a,
.search-results .empty {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.search-results a:hover {
  background: rgba(255, 45, 120, 0.08);
  color: #fff;
}

.search-results .empty {
  color: var(--text-mute);
  border: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 45, 120, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--line-strong);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 45, 120, 0.45);
}

.btn-sm {
  min-height: 34px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ========== SHELL ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  padding: 1rem 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  z-index: 1100;
}

.side-group-title {
  margin: 0.35rem 0.55rem 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 11px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.side-link.active {
  background: rgba(255, 45, 120, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 45, 120, 0.28);
}

.side-promo {
  margin-top: auto;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 45, 120, 0.18), rgba(255, 138, 31, 0.08) 55%, #121216);
  border: 1px solid rgba(255, 45, 120, 0.28);
}

.side-promo img {
  height: 28px;
  width: auto;
  margin-bottom: 0.65rem;
}

.side-promo p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.side-promo .btn {
  width: 100%;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
}

.main-area {
  flex: 1;
  margin-left: var(--side-w);
  width: calc(100% - var(--side-w));
  background:
    radial-gradient(ellipse 70% 40% at 80% -10%, rgba(255, 45, 120, 0.08), transparent 55%),
    var(--bg-main);
  min-width: 0;
}

.main-inner {
  width: min(100% - 2.4rem, 1180px);
  margin: 0 auto;
  padding: 1.35rem 0 2.5rem;
}

/* ========== SECTION HEADS ========== */
.mod {
  margin-bottom: 1.75rem;
}

.mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.mod-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  min-width: 0;
  flex: 1;
}

.mod-title .mod-en {
  font-weight: 700;
}

.mod-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 45, 120, 0.45);
  flex-shrink: 0;
}

.mod-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mod-link {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.mod-link:hover {
  color: #ff8fb8;
}

.rail-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rail-btn:hover {
  border-color: rgba(255, 45, 120, 0.5);
  background: rgba(255, 45, 120, 0.12);
}

.rail-btn svg {
  width: 16px;
  height: 16px;
}

/* ========== HERO BANNER ========== */
.hero-banner {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d10;
  margin-bottom: 1.5rem;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.78) 34%, rgba(8, 8, 10, 0.28) 58%, rgba(8, 8, 10, 0.06) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(52%, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.1rem;
  z-index: 1;
}

.hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 45, 120, 0.16);
  color: #ff9fbf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 1.15rem;
  color: #d4d4dc;
  font-size: 0.95rem;
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ========== CATEGORIES ========== */
.cat-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 118px;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.cat-card:hover {
  border-color: rgba(255, 45, 120, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.cat-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 45, 120, 0.14);
  color: #ff8fb8;
}

.cat-ico svg {
  width: 18px;
  height: 18px;
}

.cat-card strong {
  font-size: 0.95rem;
}

.cat-card span {
  color: var(--text-mute);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ========== HORIZONTAL RAILS ========== */
.h-rail-wrap {
  position: relative;
}

.h-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.h-rail::-webkit-scrollbar {
  display: none;
}

.v-card {
  flex: 0 0 clamp(220px, 22vw, 260px);
  scroll-snap-align: start;
  background: transparent;
  min-width: 0;
}

.v-card .cover {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #101014;
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
}

.v-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.v-card:hover .cover img {
  transform: scale(1.04);
}

.v-card .tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 138, 31, 0.14);
  color: #ffb56b;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.v-card .tag.pink {
  background: rgba(255, 45, 120, 0.14);
  color: #ff8fb8;
}

.v-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* creators */
.c-card {
  flex: 0 0 148px;
  text-align: center;
  scroll-snap-align: start;
}

.c-card .avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101014;
  margin-bottom: 0.55rem;
}

.c-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-card:hover .avatar img {
  transform: scale(1.05);
}

.c-card strong {
  display: block;
  font-size: 0.88rem;
}

.c-card span {
  color: var(--text-mute);
  font-size: 0.72rem;
}

/* dramas */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.d-card {
  display: block;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.d-card:hover {
  border-color: rgba(255, 45, 120, 0.4);
  transform: translateY(-2px);
}

.d-card .poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #101014;
}

.d-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-card .body {
  padding: 0.85rem 0.9rem 1rem;
}

.d-card h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.98rem;
}

.d-card p {
  margin: 0 0 0.65rem;
  color: var(--text-mute);
  font-size: 0.8rem;
}

.d-card .more {
  color: #ff8fb8;
  font-size: 0.82rem;
  font-weight: 600;
}

/* APP promo */
.app-promo {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 138, 31, 0.22), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(255, 45, 120, 0.22), transparent 40%),
    linear-gradient(145deg, #1a1218, #121218 60%);
  border: 1px solid rgba(255, 45, 120, 0.35);
}

.app-promo-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.app-promo-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.app-promo .label {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 45, 120, 0.16);
  color: #ffb0cc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-promo h2 {
  margin: 0.7rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.app-promo-copy > p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  max-width: 40rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0;
}

.feature-chips span {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.ads-panel {
  min-width: 0;
}

.ads-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ads-panel-head strong {
  font-size: 0.9rem;
}

.ads-panel-head span {
  color: var(--text-mute);
  font-size: 0.78rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.7rem;
}

.ad-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.ad-card.featured {
  border-color: rgba(255, 45, 120, 0.5);
  background: rgba(255, 45, 120, 0.1);
}

.ad-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ad-card img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.ad-card-top div {
  min-width: 0;
}

.ad-card h3 {
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-card p {
  margin: 0.15rem 0 0;
  color: var(--text-mute);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-card .btn {
  width: 100%;
}

.ads-fallback {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.ads-fallback[hidden] {
  display: none;
}

/* SEO */
.seo-block {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.seo-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.seo-block h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1rem;
}

.seo-block p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.seo-block a {
  color: #ff8fb8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* NEWS / CONTENT PAGES */
.page-hero {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  margin: 0.4rem 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 42rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text-mute);
  font-size: 0.82rem;
}

.breadcrumb a:hover {
  color: #fff;
}

.content-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.content-panel h2 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.content-panel h2:first-child,
.content-panel .mt-0 {
  margin-top: 0;
}

.content-panel p,
.content-panel li {
  color: var(--text-soft);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.1rem;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 0.85rem;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.news-item .thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #101014;
}

.news-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item h2 {
  margin: 0.35rem 0;
  font-size: 1.05rem;
}

.news-item p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.86rem;
}

.side-box {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.side-box h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.side-box a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.side-box a:hover {
  color: #ff8fb8;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.category-tabs button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.category-tabs button.active,
.category-tabs button:hover {
  border-color: rgba(255, 45, 120, 0.5);
  color: #fff;
  background: rgba(255, 45, 120, 0.12);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.shot-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d12;
  aspect-ratio: 9 / 16;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.guide-steps {
  display: grid;
  gap: 0.75rem;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.guide-step .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-weight: 800;
}

.guide-step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.guide-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0.95rem 1.05rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
}

.article-body {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}

.article-body h2 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.article-body p,
.article-body li {
  color: var(--text-soft);
}

.article-meta {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.error-wrap {
  min-height: calc(100vh - var(--header-h) - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.error-wrap .code {
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-wrap h1 {
  margin: 0.4rem 0;
}

.error-wrap p {
  color: var(--text-soft);
  max-width: 28rem;
  margin: 0 auto 1.2rem;
}

.error-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 1.5rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 0.55rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  max-width: 28rem;
}

.footer-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: var(--text-mute);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 138, 31, 0.14);
  color: #ffb56b;
  font-size: 0.7rem;
  font-weight: 700;
}

.tag.pink {
  background: rgba(255, 45, 120, 0.14);
  color: #ff8fb8;
}

.meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-mute);
  font-size: 0.78rem;
}

.text-soft {
  color: var(--text-soft);
}

.mt-0 {
  margin-top: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .cat-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drama-grid,
  .feature-grid,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 960px) {
  .topbar-nav {
    display: none;
  }

  .topbar-search {
    max-width: none;
    margin: 0 0.5rem;
  }

  .icon-btn.menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .main-area {
    margin-left: 0;
    width: 100%;
  }

  .main-inner {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero-banner {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-banner img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
  }

  .hero-mask {
    display: none;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 1.15rem 1.2rem 1.25rem;
    background: #121216;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
  }

  .news-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }

  .news-item {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 0.65rem;
    gap: 0.4rem;
  }

  .topbar-brand {
    min-width: 0;
  }

  .topbar-brand img {
    height: 26px;
    max-width: 118px;
    object-fit: contain;
  }

  .topbar-search {
    display: none;
  }

  .topbar-search.mobile-open {
    display: block;
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: calc(var(--header-h) + 8px);
    max-width: none;
    margin: 0;
    z-index: 1300;
  }

  .icon-btn.search-toggle {
    display: inline-flex;
  }

  .hero-banner {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-banner img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
  }

  .hero-mask {
    display: none;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 1rem 1.05rem 1.15rem;
    background: #121216;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }

  .hero-copy p {
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
  }

  .mod-head {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .mod-title {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .mod-title .mod-en {
    display: none;
  }

  .mod-link {
    flex-shrink: 0;
    font-size: 0.8rem;
  }

  .cat-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.7rem;
  }

  .cat-rail::-webkit-scrollbar {
    display: none;
  }

  .cat-card {
    flex: 0 0 170px;
    min-height: 110px;
  }

  .drama-grid,
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v-card {
    flex-basis: 78vw;
  }

  .c-card {
    flex-basis: 120px;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .d-card .body {
    padding: 0.55rem 0.55rem 0.7rem;
  }

  .d-card h3 {
    font-size: 0.88rem;
    margin: 0.25rem 0;
  }

  .d-card p {
    display: none;
  }

  .d-card .more {
    font-size: 0.75rem;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .topbar-actions .btn-primary {
    min-width: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }
}
