/* =========================================================
   JavPlayer — public catalog UI
   Light editorial layout with fixed sidebar and top search.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --sidebar-w: 210px;
  --topbar-h: 60px;
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #f2f4f9;
  --line: #e8ebf1;
  --text: #000000;
  --muted: #6c757d;
  --faint: #8c8c8c;
  --primary: #727cf5;
  --primary-dark: #4e5bf2;
  --blue: #2296f3;
  --blue-dark: #1e7fd6;
  --green: #10b759;
  --green-badge: #4caf50;
  --dark: #282f3a;
  --navy: #031a61;
  --pink: #dd0344;
  --orange: #e65800;
  --banner: linear-gradient(90deg, #8b0000 0%, #d81b60 30%, #ab47bc 55%, #5e35b1 75%, #1a237e 100%);
  --shadow: 0 8px 10px rgba(183, 192, 206, .2);
  --font: "Overpass", "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: rgba(114, 124, 245, .24); }

/* ---------- App frame ---------- */

.app { min-height: 100vh; }

.page-wrapper {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  display: flex;
  flex-direction: column;
  transition: margin-left .16s ease;
}

.page-content {
  flex: 1;
  width: 100%;
  padding: 25px;
}

.site-footer {
  padding: 16px 25px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  line-height: 1.9;
}
.site-footer a { color: var(--muted); margin: 0 4px; }
.site-footer a:hover { color: var(--primary); }
.footer-links { margin-bottom: 4px; }
.footer-disclaimer { max-width: 860px; margin: 0 auto; font-size: 11px; color: #a0a6b0; }

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: width .16s ease, transform .22s ease;
}

.sidebar-head {
  flex: none;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--navy);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 26px;
  margin-right: 6px;
  flex: none;
}
.brand em { font-style: normal; font-weight: 300; color: var(--primary); letter-spacing: -1px; }

.sidebar-toggle {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  gap: 0;
}
.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #535353;
  transition: transform .2s, opacity .2s;
}
.sidebar-toggle span + span { margin-top: 4px; }
.sidebar-toggle:hover span { background: var(--primary); }

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px 18px 42px;
  scrollbar-width: thin;
  scrollbar-color: #d7dbe3 transparent;
}
.sidebar-body::-webkit-scrollbar { width: 6px; }
.sidebar-body::-webkit-scrollbar-thumb { background: #d7dbe3; border-radius: 3px; }

.nav-group + .nav-group { margin-top: 20px; }
.nav-category {
  height: 18px;
  margin-bottom: 5px;
  color: #686868;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.side-nav-item { position: relative; }
.side-link {
  position: relative;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  color: #000;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  transition: color .18s;
}
.side-link > .side-icon {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
}
.side-link .side-label { margin-left: 30px; }
.side-link .chev { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.side-link:hover,
.side-link.is-open,
.side-link.is-active { color: var(--primary); }
.side-link.is-open .chev { transform: rotate(180deg); }
.side-nav-item.is-active > .side-link { color: var(--primary); }

.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 4px;
  border-radius: 2px;
  background: #f96868;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #eef1f6;
  color: #6c757d;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.side-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .24s ease;
}
.side-sub.is-open { max-height: 360px; }
.side-sub a {
  display: flex;
  align-items: center;
  height: 28px;
  padding-left: 30px;
  color: #000;
  font-size: 14px;
  white-space: nowrap;
  transition: color .18s;
}
.side-sub a:hover,
.side-sub a.is-active { color: var(--primary); }

/* folded desktop sidebar */
.app.is-collapsed .sidebar { width: 72px; }
.app.is-collapsed .sidebar-head { padding: 0; justify-content: center; }
.app.is-collapsed .sidebar .brand { display: none; }
.app.is-collapsed .sidebar-body { padding: 18px 0; }
.app.is-collapsed .nav-group + .nav-group { margin-top: 0; }
.app.is-collapsed .nav-category,
.app.is-collapsed .side-label,
.app.is-collapsed .chev,
.app.is-collapsed .badge-new,
.app.is-collapsed .nav-count,
.app.is-collapsed .side-sub { display: none; }
.app.is-collapsed .side-link { justify-content: center; height: 42px; }
.app.is-collapsed .side-link > .side-icon { position: static; }
.app.is-collapsed .page-wrapper { margin-left: 72px; }
.app.is-collapsed .topbar { left: 72px; }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 25px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 3px 0 10px rgba(183, 192, 206, .2);
  transition: left .16s ease;
}

.topbar-menu { display: none; width: 28px; height: 28px; place-items: center; color: #535353; }
.topbar-menu:hover { color: var(--primary); }

.topbar-brand { display: none; align-items: center; font-size: 21px; font-weight: 900; letter-spacing: -1px; color: var(--navy); white-space: nowrap; }
.topbar-brand .brand-mark { width: 24px; height: 22px; margin-right: 4px; }
.topbar-brand em { font-style: normal; font-weight: 300; color: var(--primary); }

.search-form {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  margin-right: 18px;
  padding: 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 7px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.search-form:focus-within { border-color: #b9c2f8; box-shadow: 0 0 0 3px rgba(114, 124, 245, .08); }
.search-form > .icon { color: #535353; width: 16px; height: 16px; margin-right: 8px; }
.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font-size: 14px;
}
.search-form input::placeholder { color: #9aa0a9; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }

.topbar-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.topbar-links { display: flex; align-items: center; gap: 22px; flex: none; margin-right: 8px; }
.topbar-links a { color: #444; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .18s; }
.topbar-links a:hover { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  min-width: 172px;
  display: none;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 24px rgba(40, 47, 58, .13);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: none;
  color: #333;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: #f4f5f8; color: var(--primary); }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: #000;
  font-size: 13px;
  white-space: nowrap;
}
.lang-btn .chev { width: 12px; height: 12px; color: #7d8591; }
.lang-btn:hover { color: var(--primary); }

.flag {
  position: relative;
  width: 20px;
  height: 14px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 1px;
  background: #e9ecef;
}
.flag-tw { background: linear-gradient(90deg, #fe0000 0 54%, #000095 54%); }
.flag-tw::after {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
}
.flag-cn { background: #de2910; }
.flag-cn::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 4px; height: 4px;
  background: #ffde00;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 82% 100%, 50% 75%, 18% 100%, 30% 60%, 0 38%, 38% 35%);
}
.flag-us { background: linear-gradient(#b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #b22234 84%); }
.flag-jp { background: #fff; }
.flag-jp::after { content: ""; position: absolute; inset: 3px 5px; border-radius: 50%; background: #bc002d; }
.flag-kr { background: #fff; border: 1px solid #e1e4e8; }
.flag-kr::after {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cd2e3a 50%, #0047a0 50%);
}
.flag-kr::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 7px 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, #cd2e3a 50%, #0047a0 50%);
  transform: rotate(-33deg);
  opacity: .9;
}
.flag-de, .flag-es, .flag-fr, .flag-ru { background: #dbe0e8; }
.flag-other::after {
  content: "•";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5b6471;
  font-size: 9px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 14px; height: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1c232c; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1686e0; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--muted); }
.btn-outline:hover { border-color: #cdd3df; color: var(--primary); }
.btn-home { height: 30px; font-size: 12px; }

.user-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #edf0f4;
  overflow: hidden;
}
.user-btn img { width: 100%; height: 100%; object-fit: cover; }
.user-btn:hover { border-color: #c9d2e4; }

.mobile-search {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 998;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 7px 14px rgba(183, 192, 206, .16);
}
.mobile-search form {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 7px;
}
.mobile-search .icon { margin-right: 8px; color: #6c757d; }
.mobile-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(9, 13, 21, .45);
  backdrop-filter: blur(1px);
}

/* ---------- Home ---------- */

.page-header-row { margin-bottom: 14px; }
.page-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.carousel-wrap { position: relative; margin-bottom: 20px; }
.carousel-track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 calc((100% - 28px) / 8);
  min-width: 0;
  scroll-snap-align: start;
}
.carousel-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: #141421;
}
.carousel-card .cover-art { position: absolute; inset: 0; }
.carousel-card .cover-glyph { font-size: 74px; bottom: -18px; right: -4px; }
.carousel-card .cover-play { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
.carousel-card:hover .cover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.carousel-card:hover .cover-art { transform: scale(1.03); }

.carousel-btn {
  position: absolute;
  top: calc(50% - 12px);
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  opacity: 0;
  transition: opacity .18s, background .18s;
}
.carousel-btn .icon { width: 15px; height: 15px; }
.carousel-btn:hover { background: #fff; color: var(--primary); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-wrap:hover .carousel-btn,
.carousel-btn:focus-visible { opacity: 1; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 11px; }
.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: #d7dbe3;
  transition: background .18s, transform .18s;
}
.carousel-dot:hover { background: #b9bfca; }
.carousel-dot.is-active { background: #6f7682; transform: scale(1.15); }

.ad-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 142px;
  margin: 20px 0;
}
.ad-strip.slim { min-height: 104px; margin: 14px 0 20px; }
.ad-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px dashed #ccd5e4;
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(114, 124, 245, .035) 0 10px, transparent 10px 20px),
    linear-gradient(120deg, #f4f6fa, #e9edf5);
  color: #8c96a6;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}
.ad-slot::before {
  content: "AD";
  position: absolute;
  top: 8px;
  left: 10px;
  color: #aab2c0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.ad-slot strong { color: #677184; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.ad-slot small { color: #9aa3b1; font-size: 10.5px; }
.ad-strip-single { grid-template-columns: 1fr; }
.ad-slot-ad {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  background: #eef2f8;
  height: 142px;
  min-height: 142px;
}
.ad-slot-ad::before { display: none; }
.ad-slot-ad img {
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  transition: transform .2s ease;
}
.ad-slot-ad:hover img { transform: scale(1.015); }
@media (max-width: 767px) {
  .ad-slot-ad { height: 74px; min-height: 74px; }
  .ad-slot-ad img { min-height: 74px; }
}

.quick-links { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.quick-link {
  flex: 0 0 calc(10% - 4px);
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 4px;
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-link:hover { filter: brightness(1.08); color: #fff; }
.q-purple { background: #727cf5; }
.q-violet { background: #c57bd1; }
.q-pink { background: #ff3f81; }
.q-red { background: #f44336; }
.q-blue { background: #2296f3; }
.q-green { background: #4caf50; }
.q-orange { background: #ff9800; }
.q-dark { background: #424242; }
.q-gray { background: #6c757d; }
.q-gradient { background: linear-gradient(90deg, #3f5efb, #fc466b); }

.filter-panel {
  margin-bottom: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.anchor-target { display: block; height: 0; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.filter-row { display: flex; align-items: flex-start; gap: 6px; min-height: 28px; padding: 2px 0; }
.filter-label {
  flex: none;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}
.filter-tags {
  flex: 1;
  min-width: 0;
  max-height: 25px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  column-gap: 2px;
  font-size: 14px;
  line-height: 25px;
  transition: max-height .2s ease;
}
.filter-row.is-open .filter-tags { max-height: 1000px; }
.filter-tags a,
.filter-tags button { padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.filter-tags a:hover,
.filter-tags button:hover { background: #f2f3ff; color: var(--primary); }
.filter-tag.is-active { background: #151515; color: #fff; }
.filter-tag.is-active:hover { background: #2a2a2a; color: #fff; }
.filter-tag.is-all.is-active { background: #e9edf3; color: #343e59; }
.filter-tag[data-genre-id] { position: relative; padding-right: 4px; }
.filter-tag[data-genre-id].is-active { padding-right: 15px; }
.filter-tag[data-genre-id].is-active::after {
  content: "×";
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  color: #ff3b30;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.filter-more {
  flex: none;
  height: 28px;
  margin-left: 8px;
  padding: 0 9px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  line-height: 28px;
}
.filter-more:hover { background: var(--primary-dark); }

.filter-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.filter-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.filter-empty { color: var(--faint); font-size: 12px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 8px;
  border-radius: 999px;
  background: rgba(114, 124, 245, .1);
  color: var(--primary-dark);
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
}
.filter-chip button {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}
.filter-chip button:hover { background: rgba(114, 124, 245, .2); }
.filter-action-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; }
.filter-count { color: var(--muted); font-size: 12px; }
.filter-actions .btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
#homeSections { transition: opacity .15s ease; }
#homeSections.is-loading { opacity: .45; pointer-events: none; }

.video-section { margin-top: 26px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-head .head-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* ---------- Video cards ---------- */

.video-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.video-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.video-card:hover {
  transform: translateY(-1px);
  border-color: #e5e9f2;
  box-shadow: 0 4px 16px rgba(40, 47, 58, .07);
}
.video-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #15151f;
}
.video-cover .cover-art { transition: transform .35s ease; }
.video-card:hover .video-cover .cover-art { transform: scale(1.035); }

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(72% 68% at 78% 18%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(90% 100% at 12% 0%, var(--a, #2a2450), transparent 68%),
    linear-gradient(145deg, var(--a, #2a2450), var(--b, #111119));
}
.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  mix-blend-mode: overlay;
}
.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, transparent 32%, rgba(0, 0, 0, .58) 100%);
}
.cover-glyph {
  position: absolute;
  right: -5px;
  bottom: -24px;
  z-index: 1;
  color: rgba(255, 255, 255, .17);
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  transform: rotate(-6deg);
  text-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  user-select: none;
}
.cover-accent {
  position: absolute;
  top: 18%;
  right: 22%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, #8bd3ff);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, #8bd3ff) 18%, transparent);
  opacity: .8;
}
.cover-watermark {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  color: rgba(255, 255, 255, .66);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.cover-duration {
  position: absolute;
  right: 7px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(8, 10, 14, .56);
  color: rgba(255, 255, 255, .92);
  font-size: 9.5px;
  line-height: 1.2;
  backdrop-filter: blur(3px);
}
.cover-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}
.cover-badge.is-preview { background: #6c757d; }
.cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(12, 15, 21, .44);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.84);
  backdrop-filter: blur(4px);
  transition: opacity .2s, transform .2s;
}
.cover-play .icon { width: 17px; height: 17px; margin-left: 2px; fill: currentColor; stroke: none; }
.video-card:hover .cover-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-cover .cover-preview,
.carousel-card .cover-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.video-cover .cover-preview.is-playing,
.carousel-card .cover-preview.is-playing { opacity: 1; }
.video-card.has-hover-preview:hover .cover-play,
.carousel-card.has-hover-preview:hover .cover-play { opacity: 0; transform: translate(-50%, -50%) scale(.84); }

.video-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 15px;
  min-width: 0;
}
.video-code {
  display: block;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-code:hover { color: var(--primary); }
.video-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 54px;
  margin-top: 2px;
  color: #1e7fd6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}
.video-title:hover { color: #0d5fa8; }
.video-actress { color: #7b8492; font-weight: 400; }
.video-date { margin-top: 7px; color: var(--faint); font-size: 12px; }
.video-tags { display: flex; gap: 3px; overflow: hidden; margin-top: 6px; }
.video-tags:empty { display: none; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 2px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.tag-success { background: var(--green); }
.tag-blue { background: var(--blue); }
.tag-dark { background: var(--dark); }
.tag-muted { background: #8c96a3; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e9f1;
  border-radius: 50%;
  background: #fff;
  color: #adb5c0;
  font-size: 26px;
}
.empty-title { color: #333; font-size: 16px; font-weight: 600; }
.empty-sub { margin: 6px 0 18px; font-size: 13px; color: #8c8c8c; }

/* ---------- Cloud / friend links ---------- */

.search-cloud { margin-top: 34px; padding-top: 20px; border-top: 1px solid #eef0f4; }
.cloud-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.cloud-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud-tags a {
  padding: 5px 10px;
  border: 1px solid #eef0f4;
  border-radius: 3px;
  background: #fff;
  color: #495057;
  font-size: 12px;
}
.cloud-tags a:hover { border-color: #ccd4e4; color: var(--primary); }
.friend-links { margin-top: 26px; }
.friend-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); }
.friend-row a:hover { color: var(--primary); }

/* ---------- Listing / archive ---------- */

.archive-banner {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 3px;
  background: var(--banner);
  color: #fff;
  text-align: center;
}
.archive-banner h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.archive-banner .accent { color: #edff91; font-weight: 700; }
.archive-banner .sub { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.archive-banner .archive-sub { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.archive-banner .banner-note {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  vertical-align: 3px;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.active-filters-label { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.active-filters-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.active-filters-clear,
.active-filters-edit { flex: none; color: var(--muted); font-size: 12px; }
.active-filters-clear:hover { color: var(--pink); }
.active-filters-edit { color: var(--primary); }
.active-filters-note { flex: none; color: var(--orange); font-size: 11.5px; }

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.type-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 3px;
  background: #e9edf3;
}
.type-tab {
  padding: 8px 17px;
  color: #495057;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.type-tab:hover { background: #dfe4ec; }
.type-tab.is-active { background: #343e59; color: #fff; }

.sort-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.sort-tab {
  padding: 7px 10px;
  border-radius: 2px;
  color: #5f6773;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.sort-tab:hover { background: #eef1f6; }
.sort-tab.is-active { background: var(--blue); color: #fff; }

.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-section { min-height: 300px; }

.pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 26px 0 6px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; }
.page-btn {
  min-width: 34px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #dee2e6;
  border-radius: 2px;
  background: #fff;
  color: #007bff;
  font-size: 13px;
  line-height: 1;
}
.page-btn:hover { background: #eef5ff; }
.page-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn:disabled { color: #cfd5dd; background: #fff; cursor: default; }
.page-btn .icon { width: 12px; height: 12px; }
.page-ellipsis { padding: 0 4px; color: #6c757d; font-size: 12px; }
.page-jump { display: flex; align-items: center; gap: 6px; color: #6c757d; font-size: 12px; }
.page-jump input {
  width: 60px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  background: #fff;
  color: #333;
  text-align: center;
  font-size: 13px;
  outline: 0;
}
.page-jump input:focus { border-color: var(--blue); }

/* ---------- Actresses ---------- */

.segmented-wrap { display: flex; justify-content: center; margin: 0 0 16px; }
.segmented { display: inline-flex; overflow: hidden; border-radius: 3px; background: #69717f; }
.segmented button {
  padding: 9px 24px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.segmented button:hover { background: rgba(255, 255, 255, .08); }
.segmented button.is-active { background: #3a4459; }

.actress-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.actress-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  text-align: center;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.actress-card:hover {
  transform: translateY(-1px);
  border-color: #e4e8f1;
  box-shadow: 0 4px 14px rgba(40, 47, 58, .07);
}
.actress-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8eaee;
}
.actress-photo img { width: 100%; height: 100%; object-fit: cover; }
.actress-name {
  display: block;
  overflow: hidden;
  padding: 6px 4px 0;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actress-card:hover .actress-name { color: var(--primary); }
.actress-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(3, 26, 97, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Series ---------- */

.series-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.series-item {
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--dark);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .18s;
}
.series-item:hover { background: #3a4352; color: #fff; }

/* ---------- Video detail ---------- */

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.video-main { min-width: 0; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #08090d;
  box-shadow: 0 2px 10px rgba(20, 25, 36, .14);
  cursor: pointer;
}
.player .cover-art { position: absolute; inset: 0; }
.player .cover-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .74)); }
.player .cover-glyph { right: 4%; bottom: -14%; font-size: clamp(120px, 22vw, 260px); opacity: .8; }
.player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  transition: transform .18s, background .18s;
}
.player-play .icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke: none; }
.player:hover .player-play { transform: translate(-50%, -50%) scale(1.06); background: #1a86dd; }
.player-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.player-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(8, 10, 14, .5);
  color: #fff;
  font-size: 10.5px;
  backdrop-filter: blur(3px);
}
.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
  font-size: 10.5px;
}
.player-controls .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.player-progress { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.player-progress span { display: block; width: 36%; height: 100%; border-radius: 2px; background: var(--blue); }
.player-time { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.line-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.line-tab {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: #fff;
  color: var(--blue);
  font-size: 12.5px;
  line-height: 26px;
}
.line-tab:hover { background: #eef7ff; }
.line-tab.is-active { background: var(--blue); color: #fff; }
.share-wrap { position: relative; margin-left: auto; }
.share-btn { height: 28px; padding: 0 16px; border-radius: 3px; background: var(--primary); color: #fff; font-size: 12.5px; }
.share-btn:hover { background: var(--primary-dark); }
.share-menu {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 80;
  min-width: 156px;
  padding: 4px 0;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(40, 47, 58, .14);
}
.share-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  color: #333;
  font-size: 12.5px;
  text-align: left;
}
.share-menu button:hover { background: #f5f6f8; color: var(--primary); }

.video-title-block { margin: 14px 0 10px; }
.video-title-block h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.01em;
}
.video-title-block h1 .code { color: var(--navy); }
.video-title-block h1 .free { color: var(--blue); }
.video-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.video-actions .btn { border-color: var(--line); background: #fff; color: #495057; height: 30px; }
.video-actions .btn:hover { border-color: #ced5e2; color: var(--primary); }
.video-actions .btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.video-actions .btn .icon { width: 14px; height: 14px; }

.meta-card {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.meta-card h2 { margin-bottom: 10px; color: #000; font-size: 14px; font-weight: 600; }
.detail-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 11px;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(221, 3, 68, .28);
  color: var(--pink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.detail-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}
.detail-summary-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: pre-line;
  color: #3f4753;
  font-size: 13.5px;
  line-height: 1.85;
}
.detail-summary.is-expanded .detail-summary-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: var(--pink);
  font-size: 12.5px;
  font-weight: 600;
}
.detail-toggle:hover { color: #b60238; }
.detail-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform .16s ease;
}
.detail-summary.is-expanded .detail-toggle .icon { transform: rotate(90deg); }
.detail-meta {
  margin-top: 8px;
}
.meta-row { display: flex; gap: 4px; font-size: 13px; line-height: 1.95; }
.meta-row > .meta-label { flex: none; white-space: nowrap; }
.meta-row a.genre { color: var(--orange); font-weight: 700; }
.meta-row a.genre:hover { color: #ff7c18; }
.meta-row a.actress-link { color: var(--pink); font-weight: 700; }
.meta-row a.actress-link:hover { color: #da4e78; }
.meta-row .sep { margin: 0 2px; color: #adb5bd; }
.meta-row .genre-tags { display: flex; flex-wrap: wrap; gap: 3px 6px; line-height: 1.7; }
.meta-row .genre-chip {
  padding: 1px 6px;
  border-radius: 3px;
  background: #fff7f0;
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 600;
}
.meta-row .genre-chip:hover { background: #ffeedf; color: #d95000; }
.meta-tags { margin-top: 10px; }

.preview-section, .related-section { margin-top: 24px; }
.preview-section h2, .related-section h2 { margin-bottom: 12px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.preview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.preview-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #15151f;
  text-align: left;
}
.preview-tile .cover-art { position: absolute; inset: 0; }
.preview-tile .cover-glyph { font-size: 54px; bottom: -14px; right: -3px; }
.preview-tile .zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 18, .24);
  color: #fff;
  opacity: 0;
  transition: opacity .18s;
}
.preview-tile .zoom .icon { width: 22px; height: 22px; }
.preview-tile:hover .zoom { opacity: 1; }

.video-side { min-width: 0; }
.side-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  padding: 14px;
}
.side-card + .side-card { margin-top: 14px; }
.side-card h2 { margin-bottom: 8px; font-size: 22px; font-weight: 700; }
.side-list { display: flex; flex-direction: column; }
.side-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f6f8;
}
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-thumb {
  position: relative;
  flex: none;
  width: 92px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #15151f;
}
.side-thumb .cover-art { position: absolute; inset: 0; }
.side-thumb .cover-glyph { font-size: 34px; bottom: -8px; right: -2px; }
.side-thumb .cover-watermark { display: none; }
.side-thumb .cover-duration { font-size: 8px; right: 3px; bottom: 3px; }
.side-info { min-width: 0; }
.side-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #222;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}
.side-title:hover { color: var(--primary); }
.side-sub { margin-top: 2px; color: #8c8c8c; font-size: 10.5px; }
.side-more { display: block; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f5f6f8; color: var(--muted); font-size: 11.5px; text-align: right; }
.side-more:hover { color: var(--primary); }

/* ---------- Lightbox / toast ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(8, 10, 15, .83);
  backdrop-filter: blur(3px);
}
.lightbox-dialog { position: relative; width: min(880px, 100%); padding: 10px; border-radius: 4px; background: #fff; }
.lightbox-body { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: #111; }
.lightbox-body .cover-art { position: absolute; inset: 0; }
.lightbox-body .cover-glyph { font-size: 180px; bottom: -40px; right: 10px; }
.lightbox-body .cover-watermark { font-size: 12px; left: 16px; bottom: 14px; }
.lightbox-close {
  position: absolute;
  top: -38px;
  right: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2200;
  max-width: min(460px, calc(100% - 40px));
  padding: 10px 17px;
  border-radius: 3px;
  background: var(--dark);
  color: #fff;
  font-size: 12.5px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Go-home popup ---------- */

body.modal-open { overflow: hidden; }

.go-home-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(2px);
}
.go-home-card {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 36px 36px 28px;
  border-radius: 10px;
  background: #1e1e24;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 25px 10px rgba(0, 0, 0, .3);
}
.go-home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
}
.go-home-brand .brand-mark { width: 32px; height: 30px; margin: 0; }
.go-home-brand .brand-mark path:nth-child(1) { fill: #aab4ff; }
.go-home-brand .brand-mark path:nth-child(2) { fill: #8f9cff; }
.go-home-brand .brand-mark path:nth-child(3) { fill: #727cf5; }
.go-home-brand h3 { font-size: 21px; font-weight: 800; letter-spacing: .05em; }
.go-home-heading {
  margin-bottom: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.go-home-steps { text-align: left; }
.go-home-steps p {
  margin: 0;
  color: #fff;
  font-size: 14.5px;
  line-height: 2.3;
}
.go-home-gold {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2b271, #f6d99d);
  color: #5c3301;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.go-home-gold:hover { filter: brightness(1.06); }
.go-home-domain { color: #f6d99d; font-weight: 600; }
.go-home-known {
  margin: 20px 0 4px;
  padding: 7px 28px;
  border: 1px solid #e2b271;
  border-radius: 8px;
  background: transparent;
  color: #e2b271;
  font-size: 16px;
}
.go-home-known:hover { background: rgba(246, 217, 157, .1); }
.go-home-foot {
  margin-top: 14px;
  color: #fff;
  font-size: 13px;
  line-height: 1.9;
}
.go-home-foot span { color: #f6d99d; font-weight: 600; }
.go-home-foot.is-muted { margin-top: 6px; color: #a6a6ae; font-size: 12px; }

/* ---------- Member center (light, matches public site) ---------- */

.member-content { max-width: 1180px; margin: 0 auto; }
.member-account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.member-account-main { min-width: 0; }
.member-vip-side { position: sticky; top: 80px; }
.member-vip-card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 206, 112, .32), transparent 38%),
    linear-gradient(145deg, #17142b 0%, #2c1d43 50%, #5b2e38 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(30, 20, 48, .2);
}
.member-vip-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  bottom: -65px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}
.member-vip-crown {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9d976, #d49a2f);
  color: #3b2705;
}
.member-vip-crown .icon { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.member-vip-badge { display: block; color: #e6bd68; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.member-vip-card strong { display: block; margin-top: 4px; font-size: 22px; line-height: 1.3; }
.member-vip-card p { margin-top: 8px; color: rgba(255,255,255,.73); font-size: 12.5px; line-height: 1.65; }
.member-vip-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; color: #f4d181; font-size: 12.5px; font-weight: 700; }
.member-vip-card:hover .member-vip-link { color: #ffe4a5; }
.member-vip-note { margin-top: 10px; color: var(--faint); font-size: 11px; line-height: 1.6; }
@media (max-width: 980px) {
  .member-account-layout { grid-template-columns: 1fr; }
  .member-vip-side { position: static; }
}

.vip-page { max-width: 980px; margin: 0 auto; }
.vip-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 212, 120, .3), transparent 32%),
    linear-gradient(135deg, #17142b, #3b2045 58%, #6d3038);
  color: #fff;
  box-shadow: 0 14px 34px rgba(30, 20, 48, .18);
}
.vip-hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: #e9c26d; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.vip-hero-kicker .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.vip-hero h1 { margin-top: 9px; color: #fff; font-size: 30px; line-height: 1.25; }
.vip-hero p { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 13px; }
.vip-status { flex: none; min-width: 190px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(0,0,0,.16); }
.vip-status strong { display: block; font-size: 14px; }
.vip-status span { display: block; margin-top: 4px; color: rgba(255,255,255,.67); font-size: 11.5px; }
.vip-status.is-active { border-color: rgba(241,196,91,.6); }
.vip-alert { margin-top: 16px; padding: 11px 14px; border-radius: 8px; font-size: 13px; }
.vip-alert-error { background: #fff1f1; border: 1px solid #f3cccc; color: #9b2929; }
.vip-order-status { display: flex; gap: 12px; align-items: baseline; background: #eef0ff; border: 1px solid #dfe3ff; color: #3e49b8; }
.vip-section { margin-top: 24px; }
.vip-section h2 { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.vip-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vip-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.vip-plan:hover { border-color: #d7dcea; transform: translateY(-2px); }
.vip-plan.is-default { border-color: #e6c76c; box-shadow: 0 0 0 1px rgba(230,199,108,.3); }
.vip-plan:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(221,3,68,.12); }
.vip-plan input { position: absolute; opacity: 0; pointer-events: none; }
.vip-plan-badge { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 99px; background: #f7e8b9; color: #765214; font-size: 10px; font-weight: 700; }
.vip-plan-name { font-size: 17px; font-weight: 700; }
.vip-plan-desc { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.vip-plan-price { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; }
.vip-plan-current { color: var(--pink); font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.vip-plan-current small { margin-right: 2px; font-size: 14px; font-weight: 700; }
.vip-plan-original { color: #a2a9b3; font-size: 12px; text-decoration: line-through; }
.vip-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vip-method { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; }
.vip-method:has(input:checked) { border-color: var(--pink); background: #fff7f9; }
.vip-method-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 800; }
.vip-method-dot.alipay { background: #1677ff; }
.vip-method-dot.wxpay { background: #07c160; }
.vip-submit-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.vip-submit { min-width: 240px; height: 44px; padding: 0 34px; border-radius: 5px; font-size: 14px; font-weight: 700; }
.vip-note { margin-top: 12px; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.vip-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 767px) {
  .vip-hero { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
  .vip-hero h1 { font-size: 24px; }
  .vip-status { width: 100%; }
  .vip-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .vip-plan { min-height: 0; padding: 15px 14px 14px; }
  .vip-plan:hover { transform: none; }
  .vip-plan-name { font-size: 15px; }
  .vip-plan-desc { margin-top: 4px; font-size: 11px; line-height: 1.45; }
  .vip-plan-price { margin-top: 10px; gap: 5px; }
  .vip-plan-current { font-size: 27px; }
  .vip-plan-current small { font-size: 11px; }
  .vip-plan-original { font-size: 11px; }
  .vip-plan-badge { top: 11px; right: 11px; padding: 2px 7px; font-size: 9px; }
  .vip-submit { width: 100%; min-width: 0; height: 48px; }
}

.member-page-title { font-size: 36px; }
.static-page {
  max-width: 920px;
  padding: 32px 40px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: #343a46;
  font-size: 14px;
  line-height: 1.9;
}
.static-lead { color: #4a5261; font-size: 15px; line-height: 1.9; }
.static-page h2 { margin: 28px 0 10px; color: #1f2530; font-size: 18px; font-weight: 700; }
.static-page p { margin: 10px 0; }
.static-page ul { margin: 10px 0 10px 22px; }
.static-page li { margin: 6px 0; }
.static-page a { color: var(--primary); }
.static-page a:hover { text-decoration: underline; }
.static-updated { margin-top: 32px; color: var(--faint); font-size: 12px; }
@media (max-width: 575px) {
  .static-page { padding: 22px 18px; font-size: 13.5px; line-height: 1.85; }
  .static-page h2 { margin-top: 24px; font-size: 17px; }
}
.member-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.member-avatar {
  width: 84px;
  height: 84px;
  flex: none;
  border: 1px solid #e7eaf0;
  border-radius: 50%;
  background: #e9e3da;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(40, 47, 58, .08);
}
.member-summary-info h2 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.member-summary-info p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.member-pill {
  align-self: flex-start;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(114, 124, 245, .1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.member-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.member-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 12px 0 13px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .18s, border-color .18s;
}
.member-tab .icon { width: 16px; height: 16px; }
.member-tab:hover { color: var(--text); }
.member-tab.is-active { color: var(--text); border-color: var(--primary); }
.member-tab-count { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12.5px;
}
.saved-head strong { color: var(--text); font-size: 14px; }
.saved-head .btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.saved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.saved-item {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.saved-cover {
  position: relative;
  flex: none;
  width: 150px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
}
.saved-cover .cover-art { position: absolute; inset: 0; }
.saved-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.saved-code { color: var(--primary); font-size: 12.5px; font-weight: 700; }
.saved-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.saved-title:hover { color: var(--primary); }
.saved-sub { color: var(--faint); font-size: 11.5px; }
.saved-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 5px; }
.saved-actions .btn { height: 26px; padding: 0 9px; font-size: 11.5px; }
.saved-actions .btn .icon { width: 12px; height: 12px; }
.saved-remove { color: var(--faint); font-size: 11.5px; }
.saved-remove:hover { color: var(--pink); }
.member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  align-items: start;
}
.member-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.member-card h2 { margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.member-field + .member-field { margin-top: 14px; }
.member-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.member-field input,
.member-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e9f0;
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: #222;
  font-size: 13.5px;
  transition: border-color .18s, box-shadow .18s;
}
.member-field textarea { min-height: 88px; resize: vertical; }
.member-field input:focus,
.member-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(114, 124, 245, .1);
}
.member-field.has-error input { border-color: #e57373; box-shadow: 0 0 0 3px rgba(229, 115, 115, .08); }
.member-field-error { margin-top: 5px; color: #d9534f; font-size: 11px; }
.member-hint,
.member-note { margin-top: 6px; color: var(--faint); font-size: 11px; line-height: 1.6; }
.member-form-actions { margin-top: 18px; }
.member-muted { color: var(--muted); font-size: 13px; line-height: 1.8; }
.member-security .btn { margin-top: 14px; }
.member-security .member-note { margin-top: 18px; }
.member-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 58px 20px 54px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  text-align: center;
}
.member-empty .member-dog { width: 140px; margin-bottom: 14px; }
.member-empty-title { color: #333; font-size: 15px; font-weight: 600; }
.member-empty-sub { margin-bottom: 10px; color: var(--faint); font-size: 12.5px; }
.member-dog { position: relative; }
.member-dog svg { width: 100%; height: auto; stroke: none; }
.member-dog::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -14px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .12), transparent 70%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
  .topbar-links { display: none; }
}

@media (max-width: 1199px) {
  .page-title { font-size: 42px; }
  .section-head h2 { font-size: 34px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carousel-slide { flex-basis: calc((100% - 12px) / 4); }
  .quick-link { flex-basis: calc(12.5% - 4px); }
  .actress-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .search-form { margin-right: 30px; }
}

@media (max-width: 991px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    width: 250px;
    transform: translateX(-104%);
    box-shadow: 8px 0 30px rgba(15, 23, 42, .18);
  }
  .app.menu-open .sidebar { transform: translateX(0); }
  .sidebar-head { padding: 0 18px; }
  .app.is-collapsed .sidebar { width: 250px; }
  .app.is-collapsed .sidebar .brand { display: flex; }
  .app.is-collapsed .sidebar-body { padding: 25px 18px 42px; }
  .app.is-collapsed .nav-category { display: block; }
  .app.is-collapsed .side-sub { display: block; }
  .app.is-collapsed .side-link { justify-content: flex-start; height: 32px; }
  .app.is-collapsed .side-link > .side-icon { position: absolute; }
  .app.is-collapsed .side-label { display: inline; }
  .app.is-collapsed .chev { display: block; }
  .app.is-collapsed .badge-new { display: inline-block; }
  .app.is-collapsed .page-wrapper { margin-left: 0; }
  .app.is-collapsed .topbar { left: 0; }

  .page-wrapper { margin-left: 0; }
  .topbar { left: 0; padding: 0 16px; }
  .topbar-menu { display: grid; }
  .topbar-brand { display: flex; }
  .topbar-search { display: none; }
  .search-form { display: none; }
  .topbar-actions { margin-left: auto; gap: 10px; }
  .lang-btn { gap: 5px; font-size: 12px; }
  .lang-btn .lang-text { display: inline; font-size: 12px; }
  .lang-btn .chev, .btn-home { display: none; }
  .topbar-menu + .topbar-brand { margin-right: auto; }
  .page-content { padding: 20px 16px; }
  .page-title { font-size: 36px; }
  .section-head h2 { font-size: 30px; }
  .carousel-slide { flex-basis: calc((100% - 12px) / 4); }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .actress-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-layout { grid-template-columns: 1fr; }
  .video-side { position: static; }
  .side-card + .side-card { margin-top: 16px; }
  .archive-banner h1 { font-size: 32px; }
  .filter-panel { padding: 10px 12px; }
}

@media (max-width: 767px) {
  .page-content { padding: 16px 12px; }
  .detail-heading { font-size: 14px !important; padding-bottom: 9px; margin-bottom: 12px !important; }
  .detail-summary-text { font-size: 13px; line-height: 1.8; }
  .detail-meta { margin-top: 6px; }
  .page-title { font-size: 30px; }
  .section-head h2 { font-size: 26px; }
  .section-head { margin-bottom: 9px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-slide { flex-basis: calc((100% - 8px) / 3); }
  .carousel-card .cover-glyph { font-size: 58px; }
  .quick-link { flex-basis: calc(20% - 4px); }
  .ad-strip { grid-template-columns: 1fr; min-height: 0; }
  .ad-slot { min-height: 74px; }
  .ad-strip.slim { min-height: 0; }
  .archive-banner { min-height: 80px; padding: 12px 14px; }
  .archive-banner h1 { font-size: 26px; }
  .catalog-bar { align-items: flex-start; flex-direction: column; }
  .sort-tabs { justify-content: flex-start; }
  .type-tab { padding: 8px 13px; font-size: 12.5px; }
  .actress-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-title-block h1 { font-size: 19px; }
  .meta-card { padding: 15px 16px; }
  .preview-section h2, .related-section h2 { font-size: 23px; }
  .cloud-title { font-size: 21px; }
  .filter-tags { font-size: 13px; line-height: 25px; }
  .filter-label { font-size: 11px; padding: 0 7px; }
  .carousel-btn { display: none; }
  .topbar-brand { font-size: 19px; }
  .topbar-brand .brand-mark { width: 22px; height: 20px; }
  .footer-links { line-height: 2.1; }
}

@media (max-width: 575px) {
  .page-title { font-size: 26px; }
  .section-head h2 { font-size: 23px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-slide { flex-basis: calc((100% - 4px) / 2); }
  .quick-link { flex-basis: calc(25% - 4px); font-size: 10px; }
  .filter-row { flex-wrap: nowrap; align-items: flex-start; gap: 5px; }
  .filter-label { margin-top: 0; }
  .filter-tags { flex: 1 1 auto; min-width: 0; order: 0; margin-top: 0; max-height: 25px; overflow: hidden; flex-wrap: wrap; column-gap: 2px; row-gap: 2px; }
  .filter-tags .filter-tag { padding-left: 3px; padding-right: 3px; }
  .filter-tags .filter-tag[data-genre-id].is-active { padding-right: 14px; }
  .filter-row.is-open .filter-tags { flex-wrap: wrap; }
  .filter-more { margin-left: 0; }
  .video-title { min-height: 47px; font-size: 11.5px; }
  .video-body { padding: 9px 10px 10px; }
  .video-code { font-size: 13px; }
  .video-date { font-size: 11px; }
  .actress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segmented button { padding: 8px 16px; font-size: 13px; }
  .archive-banner h1 { font-size: 22px; }
  .archive-banner { min-height: 68px; }
  .player-play { width: 52px; height: 52px; }
  .player-play .icon { width: 22px; height: 22px; }
  .player-controls { padding: 9px 10px; }
  .video-side .side-thumb { width: 78px; }
  .side-title { font-size: 11px; }
  .pagination { gap: 2px; }
  .page-btn { min-width: 31px; height: 29px; font-size: 12px; }
  .page-jump { font-size: 11px; }
  .cloud-tags a { font-size: 11.5px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .topbar-brand .brand-mark { display: none; }
  .dropdown-menu { right: -4px; }
}

/* ---------- Member modal ---------- */

.member-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
}
.member-modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #e9edf3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}
.member-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.member-modal-head h2 { font-size: 16px; font-weight: 700; }
.member-modal-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--muted);
}
.member-modal-close:hover { background: #f4f5f8; color: #222; }
.member-modal-close .icon { width: 16px; height: 16px; }
.member-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
}
.member-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 991px) {
  .member-page-title { font-size: 32px; }
  .member-grid { grid-template-columns: 1fr; }
  .member-summary { gap: 16px; padding: 18px 20px; }
}

@media (max-width: 575px) {
  .member-page-title { font-size: 26px; }
  .member-avatar { width: 64px; height: 64px; }
  .member-summary { gap: 14px; padding: 16px; }
  .member-summary-info h2 { font-size: 20px; }
  .member-pill { display: none; }
  .member-tabs { gap: 20px; overflow-x: auto; }
  .member-tab { flex: none; font-size: 13px; }
  .member-card { padding: 18px 16px; }
  .member-empty { padding: 44px 16px; }
  .go-home-modal { padding: 12px; }
  .go-home-card { padding: 22px 20px 20px; }
  .go-home-heading { font-size: 19px; margin-bottom: 14px; }
  .go-home-steps p { font-size: 13.5px; line-height: 2.15; }
  .go-home-gold { padding: 2px 8px; font-size: 12px; }
  .member-modal-backdrop { padding: 14px; }
}

@media (max-width: 991px) {
  .saved-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .filter-actions { position: static; }
  .filter-action-buttons { width: 100%; justify-content: flex-end; }
  .saved-cover { width: 120px; }
}

@media (max-width: 575px) {
  .saved-cover { width: 104px; }
  .saved-item { gap: 9px; padding: 9px; }
  .active-filters-edit { display: none; }
  .filter-count { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Server-rendered media ---------- */
.cover-img,
.preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-video { background: #000; }
.player-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  -webkit-touch-callout: none;
}
.player-video video::-internal-media-controls-download-button { display: none; }
.player-video video::-webkit-media-controls-enclosure { overflow: hidden; }
.player-shell { position: relative; }
.vip-prompt {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  width: min(38%, 360px);
  padding: 44px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 70% at 100% 0, rgba(255,255,255,.13), transparent 55%),
    linear-gradient(165deg, #351322 0%, #5b173f 45%, #2b0b1b 100%);
  box-shadow: -12px 0 30px rgba(0,0,0,.25);
}
.vip-prompt-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}
.vip-prompt-close:hover { background: rgba(0,0,0,.58); }
.vip-prompt-close .icon { width: 14px; height: 14px; stroke: currentColor; }
.vip-prompt-cover {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #1a0d14;
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
}
.vip-prompt-cover .cover-art { position: absolute; inset: 0; }
.vip-prompt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f21863, #d9004b);
  box-shadow: 0 8px 18px rgba(190,0,55,.3);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
}
.vip-prompt-cta:hover { filter: brightness(1.08); }
.vip-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.vip-prompt-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.55;
}
.vip-prompt-check {
  flex: none;
  color: #ff4b8a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}
.vip-prompt-tab {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 30px;
  height: 70px;
  border: 1px solid rgba(255,255,255,.34);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(206,210,216,.58);
  box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.16);
  color: rgba(58,63,70,.68);
  cursor: pointer;
  transform: translateY(-50%);
}
.vip-prompt-tab:hover {
  background: rgba(226,229,234,.8);
  border-color: rgba(255,255,255,.52);
  color: rgba(34,38,44,.9);
}
.vip-prompt-tab .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
.lightbox-body img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
}
.segmented a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.segmented a:hover { background: rgba(255, 255, 255, .08); }
.segmented a.is-active { background: #3a4459; }
.saved-cover .cover-img { border-radius: 2px; }
.filter-chip a {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}
.filter-chip a:hover { background: rgba(114, 124, 245, .2); }

/* ---------- Brand ---------- */
.brand-word { display: inline-flex; align-items: baseline; letter-spacing: -1px; }
.brand-jav { color: #c9738a; }
.brand-player { color: #727cf5; font-weight: 700; }
.brand-mark { object-fit: contain; }
.sidebar .brand-mark { width: 30px; height: 30px; margin-right: 8px; }
.topbar-brand .brand-mark { width: 26px; height: 26px; margin-right: 5px; }
.go-home-brand .brand-mark { width: 32px; height: 32px; margin: 0; }
.admin-brand img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Auth ---------- */
.auth-content { max-width: 620px; margin: 0 auto; }
.auth-wrap { display: flex; justify-content: center; padding: 18px 0 30px; }
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28, 36, 52, .08);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tab {
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.auth-tab:hover { color: var(--primary); }
.auth-tab.is-active { border-color: var(--primary); color: var(--primary); }
.auth-title { font-size: 28px; line-height: 1.25; font-weight: 800; }
.auth-sub { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-form { margin-top: 24px; }
.auth-field + .auth-field { margin-top: 16px; }
.auth-field label { display: block; margin-bottom: 7px; color: var(--text); font-size: 13px; font-weight: 600; }
.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}
.auth-field input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(114, 124, 245, .12); }
.auth-check { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.auth-submit { width: 100%; margin-top: 20px; height: 44px; justify-content: center; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error-list {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #f1c6cb;
  border-radius: 3px;
  background: #fff5f6;
  color: #a83242;
  font-size: 12.5px;
  line-height: 1.7;
}
.field-hint { margin-top: 7px; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.form-error { margin-top: 7px; color: #b92f41; font-size: 12px; line-height: 1.6; }

/* ---------- Member account ---------- */
.member-summary { position: relative; padding-bottom: 48px; }
.member-summary-info h2 { display: flex; align-items: center; gap: 7px; }
.member-name-edit {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.member-name-edit:hover { background: rgba(114, 124, 245, .1); color: var(--primary); }
.member-name-edit .icon { width: 15px; height: 15px; }
.member-password-btn { position: absolute; right: 24px; bottom: 16px; }
.member-flash {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #bfe3d0;
  border-radius: 3px;
  background: #f1fbf5;
  color: #187044;
  font-size: 13px;
}
.dropdown-user {
  padding: 7px 10px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout-form { margin: 0; }
.logout-form button { width: 100%; }

/* ---------- Account modals ---------- */
.account-modal { position: fixed; inset: 0; z-index: 260; display: none; align-items: center; justify-content: center; padding: 20px; }
.account-modal.is-open { display: flex; }
.account-modal[hidden] { display: none; }
.account-modal-backdrop { position: absolute; inset: 0; background: rgba(14, 22, 38, .56); }
.account-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 14, 28, .28);
}
.account-modal-card h2 { margin-bottom: 8px; font-size: 21px; font-weight: 800; }
.account-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.account-modal-close:hover { background: var(--soft); color: var(--text); }
.account-modal .member-form { margin-top: 18px; }
.account-modal .member-form-actions { display: flex; gap: 8px; }

@media (max-width: 575px) {
  .auth-card { padding: 24px 20px; }
  .auth-title { font-size: 24px; }
  .member-password-btn { right: 16px; bottom: 12px; }
  .member-summary { padding-bottom: 56px; }
}
/* VIP prompt inside the member summary (green area in reference) */
.member-summary { align-items: flex-start; padding-bottom: 22px; }
.member-summary-info { flex: 1; min-width: 0; }
.member-summary-side {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 250px;
  min-width: 250px;
}
.member-vip-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 214, 125, .3), transparent 45%),
    linear-gradient(135deg, #17142b, #3b2045 62%, #6d3038);
  color: #fff;
  box-shadow: 0 7px 18px rgba(30, 20, 48, .16);
}
.member-vip-mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #f9d976, #d49a2f);
  color: #3b2705;
}
.member-vip-mini-icon .icon { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.member-vip-mini-copy { flex: 1; min-width: 0; }
.member-vip-mini-copy strong { display: block; font-size: 14px; font-weight: 700; }
.member-vip-mini-copy small { display: block; margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.68); font-size: 10.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.member-vip-mini-arrow { flex: none; color: #f0c76d; font-size: 17px; }
.member-vip-mini:hover .member-vip-mini-arrow { color: #ffe2a0; }
.member-vip-mini.is-active { box-shadow: 0 7px 20px rgba(30, 20, 48, .2), 0 0 0 1px rgba(240,199,109,.35) inset; }
.member-vip-expire { width: 100%; margin: 0; color: #6b7280; font-size: 11.5px; line-height: 1.5; text-align: right; }
.member-password-btn { position: static; }
@media (max-width: 767px) {
  .member-summary { flex-wrap: wrap; gap: 14px; padding-bottom: 18px; }
  .member-summary-side { width: 100%; min-width: 0; margin: 2px 0 0; align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .member-vip-mini { flex: 1 1 100%; }
  .member-vip-expire { text-align: left; }
  .member-password-btn { position: static; }
}
body.has-modal { overflow: hidden; }

/* ---------- Managed ad placements ---------- */
.sidebar-ads { padding: 12px; }
.sidebar-ads::before {
  content: "AD";
  display: block;
  margin-bottom: 7px;
  color: #aab2c0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.side-ad { display: block; overflow: hidden; border-radius: 2px; }
.side-ad img { display: block; width: 100%; height: auto; }
.side-ad + .side-ad { margin-top: 10px; }
.feed-ad-card {
  position: relative;
  display: block;
  grid-column: span 2;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #f5f7fb;
}
.feed-ad-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-ad-label {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(15, 18, 26, .55);
  color: rgba(255, 255, 255, .85);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* ---------- VIP subscription prompt in player ---------- */
@media (max-width: 767px) {
  .vip-prompt {
    width: 44%;
    padding: 34px 10px 10px;
    gap: 9px;
  }
  .vip-prompt-close {
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
  }
  .vip-prompt-close .icon { width: 11px; height: 11px; }
  .vip-prompt-cover { border-radius: 3px; }
  .vip-prompt-cta {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 13px;
  }
  .vip-prompt-list { gap: 5px; }
  .vip-prompt-list li,
  .vip-prompt-check { font-size: 11.5px; line-height: 1.45; }
  .vip-prompt-tab {
    width: 26px;
    height: 58px;
  }
  .vip-prompt-tab .icon { width: 17px; height: 17px; }
}

@media (max-width: 575px) {
  .vip-prompt { width: 50%; }
  .vip-prompt-cta { font-size: 13px; }
  .vip-prompt-list { display: none; }
  .player-label { display: none; }
}
