:root {
  --bg: #1a1625;
  --bg-2: #221c30;
  --card: #221c30;
  --card-2: #2b2440;
  --line: #342b47;
  --ink: #f2eef7;
  --muted: #a99fb8;
  --pink: #d6336c;
  --pink-2: #ec4899;
  --gold: #f4b11e;
  --green: #40d376;
  --blue: #5498f7;
  --purple: #a04bef;
  --red: #e53d3d;
  --grad: linear-gradient(135deg, var(--pink), var(--pink-2));
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(214,51,108,.20), transparent 60%),
              radial-gradient(1000px 500px at 100% 0%, rgba(160,75,239,.14), transparent 55%),
              var(--bg);
  color: var(--ink);
  font-family: "Prompt", system-ui, sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.brand-text, .hero-body h1, .card .info h3,
.section-head h2, .detail-body h2, .plan-card h3, .plan-card strong,
.auth-card h2, .rank-row strong, .panel h3 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(20,17,29,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad);
  font-weight: 900; font-size: 19px;
  box-shadow: 0 8px 22px rgba(214,51,108,.35);
}
.brand-text { font-weight: 900; font-size: 17px; line-height: 1.1; }
.brand-text small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }

.search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 42px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.search-wrap input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); }
.search-wrap .icon { opacity: .7; font-size: 14px; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.pill {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.pill.is-vip { background: var(--grad); border: 0; }

.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(26,22,37,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 0 12px;
  background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 700;
  position: relative;
}
.tab span { font-size: 18px; }
.tab.is-active { color: var(--pink-2); }
.tab.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad);
}

.app { max-width: 1280px; margin: 0 auto; padding: 22px 24px 60px; }

.hero {
  position: relative;
  height: min(58vw, 420px);
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 32px;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,12,22,.95) 5%, rgba(15,12,22,.25) 55%, rgba(15,12,22,.1)),
              linear-gradient(90deg, rgba(15,12,22,.75), transparent 65%);
}
.hero-slide .hero-body { position: relative; z-index: 1; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad); font-size: 12px; font-weight: 900; margin-bottom: 12px;
}
.hero-body h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 44px); line-height: 1.1; }
.hero-body p { margin: 0 0 18px; color: #f0e6ea; font-size: 14px; max-width: 480px; }
.hero-dots { position: absolute; z-index: 2; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); padding: 0; }
.hero-dots button.is-active { background: var(--pink-2); width: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card-2); font-weight: 800; font-size: 14px;
}
.btn.primary { background: var(--grad); border: 0; box-shadow: 0 10px 26px rgba(214,51,108,.3); }
.btn.ghost { background: rgba(255,255,255,.06); }
.btn.block { width: 100%; justify-content: center; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.ad-banner {
  position: relative;
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 96px;
}
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-banner .ad-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); font-size: 10px; font-weight: 800; letter-spacing: .04em;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin: 30px 0 14px;
}
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.section-band {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  margin: 28px 0 14px;
}
.band-left { display: flex; align-items: center; gap: 12px; }
.band-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px; flex: none;
}
.section-band h2 { margin: 0; font-size: 16px; font-weight: 800; }
.band-more {
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: transparent; border: 1px solid; white-space: nowrap;
}
.band-recommend { background: rgba(214,51,108,.10); border-color: rgba(214,51,108,.32); }
.band-recommend .band-icon { background: rgba(214,51,108,.22); color: #ff9db9; }
.band-recommend h2 { color: #ff9db9; }
.band-popular { background: rgba(244,177,30,.10); border-color: rgba(244,177,30,.32); }
.band-popular .band-icon { background: rgba(244,177,30,.22); color: #ffcf6b; }
.band-popular h2 { color: #ffcf6b; }
.band-popular .band-more { border-color: rgba(244,177,30,.4); color: #ffcf6b; }
.band-new { background: rgba(64,211,118,.10); border-color: rgba(64,211,118,.32); }
.band-new .band-icon { background: rgba(64,211,118,.22); color: #8fe0ab; }
.band-new h2 { color: #8fe0ab; }
.band-new .band-more { border-color: rgba(64,211,118,.4); color: #8fe0ab; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; color: var(--muted);
}
.chip:nth-of-type(6n+2) { background: rgba(236,72,153,.16); border-color: rgba(236,72,153,.3); color: #f6a8cb; }
.chip:nth-of-type(6n+3) { background: rgba(84,152,247,.16); border-color: rgba(84,152,247,.3); color: #9dc2fa; }
.chip:nth-of-type(6n+4) { background: rgba(64,211,118,.16); border-color: rgba(64,211,118,.3); color: #8fe0ab; }
.chip:nth-of-type(6n+5) { background: rgba(244,177,30,.16); border-color: rgba(244,177,30,.3); color: #f8cc7c; }
.chip:nth-of-type(6n+6) { background: rgba(160,75,239,.16); border-color: rgba(160,75,239,.3); color: #c79bf5; }
.chip.is-active { background: var(--grad) !important; color: white !important; border: 0 !important; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.4); }
.card .poster {
  position: relative;
  aspect-ratio: 9/16;
  background-size: cover; background-position: center;
  background-color: var(--card-2);
}
.card .rank-no {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad); font-size: 12px; font-weight: 900;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .02em;
}
.badge.vip { background: linear-gradient(135deg, var(--gold), #ff8a00); color: #241300; }
.badge.free { background: var(--green); color: #0b3d20; }
.badge.hot { background: var(--pink); color: #fff; }
.card .badges { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 4px; }
.card .info { padding: 10px 12px 13px; }
.card .info h3 { margin: 0 0 4px; font-size: 13.5px; }
.card .info .meta { color: var(--muted); font-size: 11.5px; }

.poster-royal { background-image: linear-gradient(155deg,#3b1257,#9c2160 55%,#e8a33d); }
.poster-mafia { background-image: linear-gradient(155deg,#15181f,#6b1530 55%,#3a3f4d); }
.poster-fantasy { background-image: linear-gradient(155deg,#0b3b32,#0f766e 50%,#22d3ee); }
.poster-office { background-image: linear-gradient(155deg,#0f1b3d,#141824 55%,#d6336c); }
.poster-cafe { background-image: linear-gradient(155deg,#4a2c12,#a8621b 50%,#f4b8c9); }
.poster-action { background-image: linear-gradient(155deg,#0c0f1a,#1f3a8f 48%,#e8a33d); }

.ranking-list { display: grid; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.rank-row .rank-no2 {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad); font-weight: 900; font-size: 12px;
}
.rank-row strong { display: block; font-size: 13.5px; }
.rank-row small { color: var(--muted); font-size: 11.5px; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* series detail dialog */
.dialog { border: 0; padding: 0; background: transparent; max-width: 920px; width: calc(100vw - 28px); }
.dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(2px); }
.detail-layout { display: grid; grid-template-columns: 220px 1fr; background: var(--bg-2); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.detail-poster { aspect-ratio: 9/16; background-size: cover; background-position: center; }
.detail-body { padding: 24px; max-height: 80vh; overflow: auto; }
.detail-body h2 { margin: 6px 0 8px; font-size: 24px; }
.detail-body .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-body p.synopsis { color: #e2d6db; font-size: 13.5px; margin: 0 0 16px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px,1fr)); gap: 8px; }
.ep-btn {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-weight: 800; font-size: 12.5px; position: relative;
}
.ep-btn.is-locked { color: var(--gold); background: rgba(244,177,30,.1); border-color: rgba(244,177,30,.3); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 999px; background: rgba(0,0,0,.5); border: 0; color: white; font-size: 16px; }

/* player */
.player-wrap { display: grid; grid-template-columns: minmax(280px,380px) 1fr; gap: 22px; }
.player-shell {
  position: relative; aspect-ratio: 9/16; max-height: 78vh;
  border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line);
}
.player-shell video { width: 100%; height: 100%; object-fit: cover; }
.player-locked {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 26px;
  background: rgba(15,12,22,.92);
}
.player-locked .lock-box { max-width: 260px; }
.player-locked .lock-icon { font-size: 40px; margin-bottom: 10px; }
.player-side { display: grid; gap: 16px; align-content: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; }

/* vip / membership */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.plan-card { position: relative; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.plan-card.is-featured { border-color: var(--pink); box-shadow: 0 14px 30px rgba(214,51,108,.18); }
.plan-card .badge { margin-bottom: 10px; }
.plan-card h3 { margin: 0 0 8px; }
.plan-card strong { display: block; font-size: 30px; margin-bottom: 4px; }
.plan-card small { color: var(--muted); }

.transfer-box { display: grid; gap: 10px; margin-top: 14px; }
.transfer-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.transfer-row:last-child { border-bottom: 0; }
.upload-box {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 20px; text-align: center; margin-top: 14px; cursor: pointer;
}
.upload-box img { max-height: 160px; margin: 0 auto 10px; border-radius: 10px; }

.orders-list { display: grid; gap: 10px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.order-status { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.order-status.pending_payment { background: rgba(244,177,30,.15); color: var(--gold); }
.order-status.pending_review { background: rgba(59,130,246,.18); color: #7dd3fc; }
.order-status.paid { background: rgba(34,197,94,.18); color: #6ee7a2; }
.order-status.rejected { background: rgba(239,68,68,.18); color: #fca5a5; }

/* auth dialog */
.dialog-narrow { max-width: 400px; }
.auth-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.auth-card h2 { margin: 0 0 4px; }
.auth-card p.sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input { height: 44px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
/* ---------- หน้ารายละเอียดซีรีส์ ---------- */
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-back {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 20px; line-height: 1;
}
.detail-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--pink-2); }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pink-2); }
.breadcrumb span { color: var(--ink); }

.detail-hero { display: flex; justify-content: center; margin-bottom: 18px; }
.detail-cover {
  width: min(280px, 72vw); aspect-ratio: 9/16;
  border-radius: 16px; background-size: cover; background-position: center;
  background-color: var(--card-2); box-shadow: var(--shadow);
}
.detail-title small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.detail-title h1 { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--pink-2); line-height: 1.3; }
.badge.lang { background: var(--blue); color: #06203f; vertical-align: middle; }

.detail-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.detail-actions .btn { justify-content: center; }

.info-rows { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.info-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.info-rows span { color: var(--muted); }

.stars { color: #4a4159; letter-spacing: 2px; }
.stars .star.is-on { color: var(--gold); }
.stars.sm { font-size: 12px; }
.stars-input { display: flex; gap: 6px; }
.stars-input .star { background: none; border: 0; padding: 0; font-size: 28px; color: #4a4159; line-height: 1; }
.stars-input .star.is-on { color: var(--gold); }
.rating-summary { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.rating-summary .stars { font-size: 18px; }

.review-form { padding: 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.review-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; resize: vertical;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px;
}
.review-foot { display: flex; justify-content: space-between; margin: 6px 0 12px; color: var(--muted); font-size: 11.5px; }
.review-list { margin-top: 16px; display: grid; gap: 10px; }
.review-row { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-top strong { font-size: 13.5px; }
.review-row p { margin: 8px 0 6px; font-size: 13.5px; }
.review-row small { color: var(--muted); font-size: 11.5px; }

.panel + .panel { margin-top: 16px; }
.panel .synopsis { margin: 0; color: #ded4e8; font-size: 13.5px; }

/* ---------- หน้าโปรไฟล์สมาชิก ---------- */
.profile-card {
  border-radius: 18px; padding: 18px;
  background: linear-gradient(140deg, rgba(214,51,108,.16), rgba(160,75,239,.12)), var(--card);
  border: 1px solid rgba(214,51,108,.3);
}
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-top .avatar {
  width: 58px; height: 58px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-size: 24px; font-weight: 900;
  background: var(--grad); box-shadow: 0 8px 22px rgba(214,51,108,.35);
}
.profile-top h3 { margin: 0; font-size: 18px; font-weight: 800; }
.profile-top small { color: var(--muted); font-size: 12px; }
.profile-vip {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line);
}
.profile-vip span { font-size: 13px; font-weight: 800; color: var(--muted); }
.profile-vip.is-vip span { color: var(--gold); }
.profile-vip p { margin: 4px 0 0; font-size: 13.5px; }

.coin-box {
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(244,177,30,.18), rgba(244,177,30,.06));
  border: 1px solid rgba(244,177,30,.35);
}
.coin-box span { font-size: 12.5px; font-weight: 800; color: var(--gold); }
.coin-box strong { display: block; margin: 2px 0; font-size: 28px; font-weight: 900; }
.coin-box small { color: var(--muted); font-size: 11.5px; }

.redeem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.redeem-tile {
  padding: 14px 8px; border-radius: 14px; text-align: center;
  background: var(--card); border: 1px solid rgba(244,177,30,.3);
}
.redeem-tile small { display: block; color: var(--muted); font-size: 11.5px; }
.redeem-tile strong { display: block; margin: 6px 0 4px; font-size: 19px; font-weight: 800; color: var(--gold); }
.redeem-tile span { font-size: 11.5px; font-weight: 700; color: var(--pink-2); }
.redeem-tile.is-short { opacity: .55; border-color: var(--line); }
.redeem-tile.is-short span { color: var(--muted); }

.coin-history { margin-top: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; }
.coin-history summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.coin-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.coin-row:last-child { border-bottom: 0; }
.coin-row small { display: block; color: var(--muted); font-size: 11px; }
.coin-row .plus { color: var(--green); }
.coin-row .minus { color: var(--pink-2); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat-tile { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.stat-tile strong { display: block; margin-top: 12px; font-size: 17px; font-weight: 800; }
.stat-tile small { color: var(--muted); font-size: 12px; }

.resume-bar {
  width: 100%; margin-top: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  border-radius: 14px; background: var(--card-2); border: 1px solid rgba(236,72,153,.3);
}
.resume-icon {
  width: 36px; height: 36px; border-radius: 999px; flex: none;
  display: grid; place-items: center; background: var(--grad); font-size: 14px;
}
.resume-text { flex: 1; min-width: 0; }
.resume-text strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-text small { color: var(--muted); font-size: 12px; }
.resume-go { color: var(--muted); font-size: 20px; }

.band-sub { margin: -8px 0 14px; color: var(--muted); font-size: 13px; }
.plan-tile {
  padding: 16px 12px; border-radius: 14px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
}
.plan-tile strong { display: block; margin: 10px 0 2px; font-size: 20px; font-weight: 800; }
.plan-tile small { color: var(--muted); font-size: 12px; }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.menu-tile {
  padding: 16px; border-radius: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line);
}
.menu-tile strong { display: block; margin-top: 12px; font-size: 14px; font-weight: 800; }
.menu-tile small { color: var(--muted); font-size: 12px; }
.tile-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; flex: none; }

.list-head { margin: 24px 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.menu-list { border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.menu-row {
  width: 100%; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row strong { display: block; font-size: 14px; font-weight: 700; }
.menu-row small { color: var(--muted); font-size: 12px; }
.menu-row > span:nth-child(2) { flex: 1; min-width: 0; }
.menu-row .go { color: var(--muted); font-size: 18px; }
.menu-row.is-static { cursor: default; }

.account-divider { margin: 6px 0 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.field input::placeholder { color: #6f6683; }
.field-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.field-pass { position: relative; display: flex; }
.field-pass input { flex: 1; padding-right: 44px; }
.field-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-size: 15px; opacity: .65;
}
.field-eye.is-on { opacity: 1; color: var(--pink-2); }
.pw-strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -4px 0 8px; }
.pw-strength i { height: 3px; border-radius: 999px; background: var(--line); transition: background .2s ease; }
.pw-strength i.is-weak { background: #ef4444; }
.pw-strength i.is-ok { background: var(--gold); }
.pw-strength i.is-strong { background: var(--green); }

.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--pink-2); font-weight: 800; }
.form-error {
  color: #ffd4d4; font-size: 13px; margin: 0 0 14px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.4);
}
.field input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.18); }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(120%); opacity: 0; transition: all .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; object-fit: cover;
  box-shadow: 0 8px 22px rgba(214,51,108,.35);
}
.desk-nav {
  display: flex; gap: 6px; max-width: 1280px; margin: 0 auto;
  padding: 10px 24px 0;
}
.desk-nav .tab {
  flex-direction: row; gap: 6px; padding: 8px 14px; font-size: 13px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.desk-nav .tab.is-active { color: #fff; background: var(--grad); border: 0; }
.desk-nav .tab.is-active::before { display: none; }
.unlock-row { margin-top: 12px; }
.player-shell { max-width: 420px; margin: 0 auto; width: 100%; }

@media (max-width: 900px) {
  .topnav { padding: 12px 16px; }
  .brand-text { display: none; }
  .tabbar { display: grid; }
  .desk-nav { display: none; }
  .app { padding: 16px 16px 90px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { aspect-ratio: 16/9; }
  .player-wrap { grid-template-columns: 1fr; }
  .player-shell { max-height: 78vh; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
