:root {
  --bg: #000000;
  --card: #17171e;
  --card-hi: #1c1c25;
  --input: #101016;
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: #f2f2f5;
  --text-2: #9a9aa6;
  --text-3: #64646e;
  --magenta: #e0338c;
  --violet: #7c3aed;
  --link: #b08cff;
  --grad: linear-gradient(96deg, #e0338c 0%, #a438d6 55%, #7c3aed 100%);
  color-scheme: dark;
  font-family:
    "Noto Sans JP", "Hiragino Sans", ui-sans-serif, system-ui, -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Safety net: an image must never exceed its container's width. Without this,
   a cover whose constraint CSS fails to apply (e.g. a stale cached stylesheet)
   renders at its natural pixel size and overflows the viewport — iOS Safari
   then allows a horizontal swipe past the layout. */
img {
  max-width: 100%;
}

html {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

input[type="checkbox"] {
  accent-color: var(--violet);
}

.top-line {
  height: 2px;
  background: var(--grad);
}

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.brand-name {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-item {
  border: 0;
  background: transparent;
  padding: 8px 2px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item.active {
  color: var(--text);
  font-weight: 700;
}

.header-search {
  justify-self: end;
  display: flex;
  align-items: center;
  width: min(480px, 100%);
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
}

.header-search input,
.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
}

.header-search input::placeholder,
.hero-search input::placeholder,
.input-shell input::placeholder,
.jump-form input::placeholder {
  color: var(--text-3);
}

.header-search button {
  width: 44px;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions button {
  white-space: nowrap;
}

.language-button,
.secondary-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  border-radius: 9px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}

.language-button:hover,
.secondary-button:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.login-button,
.primary-button,
.hero-search button {
  border: 0;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  transition: filter 0.15s, transform 0.1s;
}

.login-button:hover,
.primary-button:hover,
.hero-search button:hover {
  filter: brightness(1.08);
}

.login-button {
  min-height: 38px;
  border-radius: 9px;
  padding: 0 20px;
  font-size: 13.5px;
}

/* ── language menu ── */
.lang-menu {
  position: relative;
}

.lang-menu .language-button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.globe-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 148px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lang-item {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.lang-item:hover {
  background: var(--card-hi);
  color: var(--text);
}

.lang-item.active {
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}

/* ── user menu ── */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  padding: 4px 12px 4px 4px;
  color: var(--text);
  transition: border-color 0.15s;
}

.user-menu-trigger:hover {
  border-color: var(--border-hi);
}

.user-avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
}

.user-caret {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 208px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.menu-item:hover {
  background: var(--card-hi);
  color: var(--text);
}

.menu-item svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-divider {
  height: 1px;
  margin: 5px 6px;
  background: var(--border);
}

.menu-logout {
  color: #ff5c74;
}

.menu-item.menu-logout:hover {
  background: rgba(255, 92, 116, 0.1);
  color: #ff5c74;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 11px 20px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

/* ── hero ── */
.hero {
  position: relative;
  padding: 72px 32px 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(224, 51, 140, 0.13), transparent 70%),
    radial-gradient(closest-side, rgba(124, 58, 237, 0.11), transparent 70%);
  filter: blur(12px);
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-search input {
  height: 44px;
  font-size: 16px;
}

.hero-search button {
  padding: 12px 30px;
  border-radius: 11px;
  font-size: 14.5px;
}

.hot-search {
  position: relative;
  width: min(960px, 100%);
  margin: 44px auto 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title.compact {
  justify-content: center;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.accent-icon {
  color: var(--magenta);
  font-weight: 900;
}

.chips,
.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips {
  justify-content: center;
}

.chip,
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.country-chip {
  background: var(--input);
  min-height: 32px;
  gap: 6px;
  padding: 0 12px;
  font-size: 12.5px;
}

.chip:hover,
.country-chip:hover {
  border-color: rgba(224, 51, 140, 0.5);
  color: var(--text);
}

.chip span {
  font-size: 12px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.country-chip small {
  color: var(--text-3);
  font-size: 11px;
}

.chip.active,
.country-chip.active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}

.chip.active span {
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  color: rgba(255, 255, 255, 0.75);
}

.country-chip.active small {
  color: rgba(255, 255, 255, 0.75);
}

/* ── page shell ── */
.page-shell {
  width: 100%;
  margin: 0 auto;
  padding: 28px clamp(20px, 3.5vw, 56px) 80px;
}

.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-heading p {
  margin: 0;
  color: var(--text-3);
  font-size: 12.5px;
}

.filter-card {
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.filter-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}

.tab-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input);
  color: var(--text-2);
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.tab-button:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.tab-button.active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}

/* ── video grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.video-card {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s;
  /* A grid item defaults to min-width:auto, so its content's min-content size
     can blow the track wider than the viewport. WebKit computes that size from
     the aspect-ratio'd .thumb and overflows where Blink does not — pin it to 0
     so the card always fits its column. */
  min-width: 0;
}

.video-card:hover {
  transform: translateY(-3px);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1530, #3a1830 60%, #1b1030);
  min-width: 0;
  max-width: 100%;
}

.thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

.thumb.t2 {
  background: linear-gradient(135deg, #161b33, #251a3e 60%, #131025);
}

.thumb.t3 {
  background: linear-gradient(135deg, #301522, #241638 60%, #150f26);
}

.thumb.t4 {
  background: linear-gradient(135deg, #1d1430, #331641 60%, #120e20);
}

.play-icon {
  width: 44px;
  height: 44px;
  fill: rgba(255, 255, 255, 0.22);
  transition: fill 0.18s, transform 0.18s;
}

.video-card:hover .play-icon {
  fill: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.thumb-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.thumb-clock {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.member-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 10px 2px 0;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 12px;
}

/* ── pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 52px 0 0;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-button,
.number-button,
.jump-form button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.page-button:hover,
.number-button:hover,
.jump-form button:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.page-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-button:disabled:hover {
  color: var(--text-2);
  border-color: var(--border);
}

span.number-button {
  border: 0;
  background: transparent;
  color: var(--text-3);
  min-width: auto;
  padding: 0 4px;
}

.number-button.active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.jump-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  color: var(--text-3);
  font-size: 13px;
}

.jump-form input {
  width: 56px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
  color: var(--text);
  text-align: center;
  outline: 0;
  font-size: 14px;
}

.jump-form input:focus {
  border-color: var(--violet);
}

/* ── footer ── */
.site-footer {
  position: relative;
  /* 左右边距与 .page-shell 内容区一致，页脚与上方内容同列对齐 */
  padding: 40px clamp(20px, 3.5vw, 56px) 28px;
  background: #0a0a0e;
  color: var(--text-2);
}

/* 顶部渐变发丝线，呼应站内按钮渐变 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 58, 237, 0.55) 30%,
    rgba(224, 51, 140, 0.55) 70%,
    transparent 100%
  );
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.site-footer .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.site-footer .brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: color 0.25s;
}

.footer-brand:hover .brand-name {
  color: var(--text);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom .copyright {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.compliance {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-18 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--text-3);
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-2);
  flex-shrink: 0;
  user-select: none;
}

.compliance-text {
  margin: 0;
  font-size: 10.5px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 300px;
}

/* ── dashboards ── */
.dashboard-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 54px 32px 86px;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--text-3);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card,
.panel-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.stat-card span,
.stat-card small,
.panel-title span,
.mini-item small {
  color: var(--text-3);
  font-size: 12.5px;
}

.stat-card strong {
  color: var(--text);
  font-size: 26px;
}

.panel-block {
  padding: 22px;
}

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

.panel-title h2 {
  margin: 0;
  font-size: 19px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
  font-weight: 500;
  font-size: 13.5px;
}

/* ── modal ── */
.modal {
  width: min(760px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 14, 18, 0.7);
  color: var(--text);
  font-size: 22px;
}

.modal-cover {
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #2a1530, #251a3e 60%, #131025);
}

.modal-body {
  padding: 28px;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--magenta);
  font-weight: 700;
  font-size: 13px;
}

.modal-body h2 {
  margin: 0 0 12px;
}

.modal-body p {
  color: var(--text-2);
}

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

.modal-actions .primary-button,
.modal-actions .secondary-button {
  min-height: 44px;
  border-radius: 11px;
  padding: 0 22px;
}

/* ── auth ── */
.auth-page {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  place-items: center;
  padding: 56px 20px 72px;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(224, 51, 140, 0.14), transparent 70%),
    radial-gradient(closest-side, rgba(124, 58, 237, 0.12), transparent 70%);
  filter: blur(10px);
}

.auth-form {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 44px 40px 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-form.register-mode {
  gap: 14px;
  padding: 38px 36px 32px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.auth-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 20px;
}

.auth-brand .brand-name {
  font-size: 23px;
}

.auth-form h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.auth-subtitle {
  margin: -12px 0 8px;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
  color: var(--text-3);
  padding: 0 12px 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0 0 12px;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
}

.input-shell:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.field-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.mail-icon,
.lock-icon,
.eye-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text-2);
}

.password-toggle .field-icon {
  width: 18px;
  height: 18px;
}

.password-toggle.is-visible .eye-slash {
  opacity: 0;
}

.strength-row {
  display: grid;
  gap: 7px;
  margin-top: -8px;
}

.strength-bar {
  display: flex;
  gap: 6px;
}

.strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border-hi);
  transition: background 0.2s;
}

.strength-label {
  min-height: 15px;
  font-size: 12px;
  color: var(--text-3);
}

.strength-row[data-level="1"] .strength-seg:nth-child(1) {
  background: #ff5c74;
}

.strength-row[data-level="1"] .strength-label {
  color: #ff5c74;
}

.strength-row[data-level="2"] .strength-seg:nth-child(-n + 2) {
  background: #f2b94b;
}

.strength-row[data-level="2"] .strength-label {
  color: #f2b94b;
}

.strength-row[data-level="3"] .strength-seg {
  background: #6fdba0;
}

.strength-row[data-level="3"] .strength-label {
  color: #6fdba0;
}

.code-row {
  display: flex;
  gap: 10px;
}

.code-row .input-shell {
  flex: 1;
}

.send-code {
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: 11px;
  padding: 0 16px;
}

.send-code:disabled {
  opacity: 0.5;
  cursor: default;
}

.send-code.is-loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  animation: play-spin 0.9s linear infinite;
}

.code-hint {
  min-height: 16px;
  color: var(--text-3);
  font-size: 12px;
}

.form-message.is-success {
  color: #6fdba0;
}

.auth-row,
.remember-row,
.auth-switch {
  display: flex;
  align-items: center;
}

.auth-row {
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: -2px 0 4px;
}

.auth-form .remember-row {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.captcha-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--input);
  color: var(--text-3);
  font-size: 13.5px;
  padding: 0 18px 0 70px;
  overflow: hidden;
  user-select: none;
}

.captcha-handle {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  display: grid;
  width: 56px;
  place-items: center;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: grab;
}

.auth-form .terms-row {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.terms-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  cursor: pointer;
}

.terms-row a {
  color: var(--link);
  font-weight: 700;
}

.terms-row a:hover {
  text-decoration: underline;
}

/* 后台评估阶段整体隐藏；仅在 Cloudflare 要求人机交互时展开。 */
.turnstile-container {
  display: flex;
  height: 0;
  overflow: hidden;
  justify-content: center;
}

.turnstile-container.is-interactive {
  height: auto;
  overflow: visible;
  min-height: 65px;
  margin: 4px 0;
}

.form-message {
  min-height: 18px;
  margin: -6px 0 0;
  color: #ff6b81;
  font-size: 13px;
  font-weight: 500;
}

.auth-form .primary-button {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

.auth-form .primary-button:active {
  transform: translateY(1px);
}

.auth-form .primary-button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.5);
  outline-offset: 2px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.auth-switch {
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.auth-switch .link-button {
  font-size: 13.5px;
  font-weight: 700;
}

.age-note {
  margin: 0;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

.empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  border: 1px dashed var(--border-hi);
  border-radius: 16px;
  background: var(--card);
  color: var(--text-2);
  text-align: center;
}

/* ── responsive ── */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    padding-bottom: 10px;
  }

  .header-search {
    justify-self: stretch;
  }

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

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

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    padding: 40px 16px 24px;
  }

  .hero-search {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .hero-search input {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .hero-search button {
    width: 100%;
  }

  .page-shell {
    padding: 0 16px 54px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .toolbar,
  .country-list,
  .chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chip,
  .country-chip,
  .tab-button {
    flex: 0 0 auto;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .dashboard-shell {
    padding: 34px 16px 60px;
  }

  .auth-page {
    min-height: calc(100vh - 150px);
    padding: 36px 16px 58px;
  }

  .auth-form {
    padding: 36px 24px 30px;
  }

  .auth-form.register-mode {
    padding: 30px 20px 26px;
  }

  .dashboard-head,
  .panel-title,
  .mini-item {
    display: grid;
  }

  /* 左右边距与顶部导航(16px)保持同列对齐 */
  .site-footer {
    padding: 32px 16px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    gap: 14px 22px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .video-grid {
    /* minmax(0, 1fr), not 1fr (= minmax(auto, 1fr)): the auto minimum lets an
       aspect-ratio'd card blow the single column past the viewport on WebKit. */
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ================= playback page ================= */

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.video-card:hover .thumb-img,
.related-card:hover .thumb-img {
  transform: scale(1.04);
}

.play-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.play-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.play-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #221f30;
  background: radial-gradient(ellipse at 55% 40%, #241a3a 0%, #14101f 55%, #0c0a13 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.play-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.play-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-big {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(224, 68, 124, 0.92), rgba(123, 63, 242, 0.92));
  box-shadow: 0 10px 40px rgba(160, 60, 200, 0.45);
  transition: transform 0.15s;
  z-index: 3;
}

.play-big:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.play-big::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.play-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 10, 0.85));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 4;
}

.play-seekbar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.play-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.play-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0447c, #a04ae8);
}

.play-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(224, 68, 124, 0.8);
  pointer-events: none;
}

.play-ctrl-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-ctrl-btn {
  background: none;
  border: none;
  color: #e8e6ef;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
}

.play-time {
  color: #b7b1ca;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.play-ctrl-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-quality-wrap {
  position: relative;
}

.play-quality {
  font-size: 12px;
  font-weight: 600;
  color: #cdb8ff;
  border: 1px solid rgba(123, 63, 242, 0.5);
  background: rgba(123, 63, 242, 0.12);
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.play-quality-menu {
  position: absolute;
  right: 0;
  bottom: 34px;
  background: #14121f;
  border: 1px solid #2a2738;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
}

.play-quality-menu button {
  background: none;
  border: none;
  color: #d9d5e6;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

.play-quality-menu button:hover {
  background: #1e1a2e;
}

.play-quality-menu button.active {
  color: #ff8fb5;
  background: rgba(224, 68, 124, 0.12);
}

.play-actions {
  margin-top: 16px;
  background: #12101c;
  border: 1px solid #201d2e;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.play-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #b7b1ca;
  padding: 8px 14px;
}

.play-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #d9d5e6;
  background: #1b1729;
  border: 1px solid #2e2944;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.play-pill:hover {
  border-color: rgba(160, 90, 255, 0.4);
}

.play-pill.active {
  color: #ff8fb5;
  border-color: rgba(224, 68, 124, 0.5);
  background: rgba(224, 68, 124, 0.1);
}

.play-related {
  margin-top: 34px;
}

.play-related-head h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.related-card {
  cursor: pointer;
}

.related-card .thumb {
  border-radius: 8px;
  border: 0;
}

.related-card h3 {
  margin: 9px 2px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #6f6a82;
}

@media (max-width: 900px) {
  .play-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .play-shell {
    padding: 14px 12px 48px;
  }

  .play-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .play-big {
    width: 64px;
    height: 64px;
  }

  .play-big::after {
    border-left-width: 20px;
    border-top-width: 12px;
    border-bottom-width: 12px;
  }

  .play-controls {
    padding: 26px 12px 10px;
  }

  .play-ctrl-row {
    gap: 10px;
  }

  .play-actions {
    padding: 10px 12px;
    gap: 8px;
  }

  .play-stat {
    padding: 6px 8px;
  }

  .play-pill {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  .play-related-grid {
    gap: 12px;
  }
}

.play-trial {
  margin-top: 14px;
  font-size: 13px;
  color: #ffd28f;
  background: rgba(255, 178, 66, 0.07);
  border: 1px solid rgba(255, 178, 66, 0.3);
  border-radius: 10px;
  padding: 11px 16px;
  line-height: 1.6;
}

/* VIP 罩：盖在播放器上的会员引导层 */
.vip-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background: rgba(6, 4, 12, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: inherit;
}

.vip-overlay-badge {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.45);
  margin-bottom: 6px;
}

.vip-overlay-badge > svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vip-overlay-lock {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--magenta);
  border: 2px solid rgba(6, 4, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-overlay-lock svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vip-overlay-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.vip-overlay-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.vip-overlay-cta {
  margin-top: 14px;
  border: 0;
  cursor: pointer;
  min-width: 250px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  box-shadow: 0 10px 28px rgba(224, 51, 140, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.vip-overlay-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .vip-overlay-title { font-size: 17px; }
  .vip-overlay-cta { min-width: 0; width: 100%; max-width: 320px; padding: 12px 20px; }
}

/* 个人中心套餐按钮的"创建订单中"转圈 */
.uc-plan-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  animation: play-spin 0.9s linear infinite;
}

.uc-plan-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

/* ── 收银台 ── */
.pay-shell {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.pay-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
}

.pay-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--text-3);
  font-size: 13px;
}

.pay-brand .brand-mark {
  width: 20px;
  height: 20px;
}

.pay-amount {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  color: #fff;
}

.pay-plan {
  margin: 6px 0 2px;
  color: var(--text-3);
  font-size: 14px;
}

.pay-hint {
  margin: 0 0 22px;
  color: var(--text-3);
  font-size: 12px;
}

.pay-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease;
}

.pay-channel:hover {
  border-color: var(--violet);
}

.pay-channel-icon {
  font-size: 20px;
}

.pay-channel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-channel-sub {
  color: var(--text-3);
  font-size: 11px;
}

.pay-channel-arrow {
  color: var(--text-3);
  font-size: 18px;
}

/* USDT 网络选择（手风琴：点 USDT 就地展开两条网络） */
.pay-channel-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-channel.expanded {
  border-color: var(--violet);
}

.pay-usdt-nets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 6px;
}

.pay-usdt-nets.hidden {
  display: none;
}

.pay-sub-label {
  margin: 2px 0;
  font-size: 12px;
  color: var(--text-3);
}

.pay-network-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.pay-network-row:hover {
  border-color: var(--violet);
}

.pay-radio {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-hi, #555);
}

.pay-network-row:hover .pay-radio {
  border-color: var(--violet);
}

.pay-net-rowinfo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pay-net-rowname {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pay-net-rowchain {
  font-size: 12px;
  color: var(--text-3);
}

/* ── 站内 USDT 收银台 ── */
.pay-crypto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 4px 0 2px;
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pay-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--card-hi);
  border: 1px solid var(--border);
}

.pay-step.done .pay-step-dot {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  border-color: transparent;
}

.pay-step-label {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.pay-step.active .pay-step-label {
  color: #fff;
}

.pay-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 46px;
  margin-bottom: 16px;
}

.pay-net-badge {
  font-size: 12px;
  color: #35d07f;
  font-weight: 600;
}

.pay-qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}

.pay-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-amount-usdt {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.pay-addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.pay-addr {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-2, #cfcfd6);
  word-break: break-all;
  text-align: left;
  background: var(--input);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

.pay-copy {
  flex: 0 0 auto;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.pay-copy:hover {
  border-color: var(--violet);
}

.pay-crypto-note {
  margin: 0;
  font-size: 12px;
  color: #ffb84a;
  line-height: 1.6;
}

.pay-crypto-poll {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}

img.brand-mark {
  background: none;
  border-radius: 0;
  display: block;
}

/* ================= loading states ================= */

.sk-card {
  pointer-events: none;
}

.sk-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(100deg, #14141b 40%, #20202a 50%, #14141b 60%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}

.sk-line {
  height: 14px;
  width: 72%;
  margin-top: 12px;
  border-radius: 6px;
  background: linear-gradient(100deg, #14141b 40%, #20202a 50%, #14141b 60%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}

.sk-card:nth-child(2n) .sk-line {
  width: 48%;
}

.sk-card:nth-child(3n) .sk-line {
  width: 86%;
}

@keyframes sk-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.play-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-loading::after {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--magenta);
  border-right-color: var(--violet);
  animation: play-spin 0.9s linear infinite;
}

@keyframes play-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk-thumb,
  .sk-line,
  .play-loading::after {
    animation: none;
  }
}

/* ================= user center ================= */

.uc-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 3vw, 40px) 72px;
}

.uc-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(600px 180px at 12% 0%, rgba(224, 51, 140, 0.10), transparent 70%),
    radial-gradient(600px 180px at 40% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
    var(--card);
}

.uc-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 26px;
}

.uc-profile-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.uc-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-name {
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.uc-sub {
  color: var(--text-3);
  font-size: 13px;
}

.uc-stats {
  display: flex;
  margin-left: auto;
}

.uc-stat {
  position: relative;
  display: grid;
  gap: 3px;
  text-align: center;
  padding: 8px 28px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  transition: background 0.15s;
}

.uc-stat:hover {
  background: rgba(255, 255, 255, 0.05);
}

.uc-stat + .uc-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}

.uc-stat strong {
  font-size: 22px;
  font-weight: 700;
}

.uc-stat span {
  color: var(--text-3);
  font-size: 12px;
}

.uc-stat span::after {
  content: " ›";
}

.uc-renew {
  border: 0;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 28px;
  white-space: nowrap;
  transition: filter 0.15s;
}

.uc-renew:hover {
  filter: brightness(1.08);
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: stretch;
}

.uc-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 24px;
}

.uc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.uc-panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.uc-panel-head span {
  color: var(--text-3);
  font-size: 12.5px;
}

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

.uc-plan {
  position: relative;
  display: grid;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input);
  padding: 26px 18px 20px;
}

.uc-plan.best {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--card-hi), var(--card-hi)) padding-box,
    var(--grad) border-box;
}

.uc-plan-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.uc-plan-name {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.uc-plan-was {
  color: var(--text-3);
  font-size: 12px;
  text-decoration: line-through;
}

.uc-plan-price {
  font-size: 30px;
  font-weight: 800;
}

.uc-plan-price small {
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}

.uc-plan-per {
  color: var(--text-3);
  font-size: 12px;
}

.uc-plan-save {
  color: #ff8fb5;
  font-size: 12px;
  font-weight: 600;
}

.uc-plan-btn {
  margin-top: 8px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 700;
  transition: border-color 0.15s;
}

.uc-plan-btn:hover {
  border-color: rgba(224, 51, 140, 0.5);
}

.uc-plan.best .uc-plan-btn {
  border: 0;
  background: var(--grad);
  color: #fff;
}

.uc-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
}

.uc-perks > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.uc-tick {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.22);
  color: #c9a7ff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
}

.uc-referral {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  border: 1px solid rgba(224, 51, 140, 0.25);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(224, 51, 140, 0.16), rgba(124, 58, 237, 0.16)), var(--card);
}

.uc-referral h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
}

.uc-referral p {
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.uc-ref-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.uc-qr {
  width: 116px;
  height: 116px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.uc-qr svg,
.uc-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.uc-ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.uc-ref-stat {
  display: grid;
  gap: 2px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 4px;
}

.uc-ref-stat strong {
  font-size: 20px;
}

.uc-ref-stat span {
  color: var(--text-3);
  font-size: 11.5px;
}

.uc-ref-actions {
  display: flex;
  gap: 10px;
}

.uc-ref-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  transition: filter 0.15s;
}

.uc-ref-btn:hover {
  filter: brightness(1.08);
}

.uc-ref-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-weight: 500;
}

.uc-ref-note {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ── watch history ── */
.hist-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(600px 180px at 12% 0%, rgba(224, 51, 140, 0.10), transparent 70%),
    radial-gradient(600px 180px at 40% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
    var(--card);
}

.hist-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
}

.hist-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hist-head-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hist-head-info h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hist-head-info p {
  margin: 0;
  color: var(--text-3);
  font-size: 12.5px;
}

.hist-clear {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border: 1px solid rgba(255, 92, 116, 0.35);
  border-radius: 10px;
  background: transparent;
  color: #ff5c74;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.hist-clear:hover {
  background: rgba(255, 92, 116, 0.1);
  border-color: rgba(255, 92, 116, 0.55);
}

.hist-clear svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= favorites page ================= */

.fav-icon svg {
  fill: currentColor;
  stroke: none;
}

.fav-head .hist-head-info h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--text);
}

.fav-title-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(224, 51, 140, 0.16);
  color: #f45da8;
  font-size: 12.5px;
  font-weight: 700;
}

.fav-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2, #ccc);
  cursor: pointer;
  transition: border-color 0.15s;
}

.fav-sort:hover {
  border-color: var(--border-hi, rgba(255, 255, 255, 0.3));
}

.fav-sort > svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fav-sort::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: -16px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  pointer-events: none;
}

.fav-sort select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 22px 10px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.fav-sort select option {
  color: #111;
}

.fav-head .hist-clear {
  margin-left: 0;
}

.fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ef4453;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.fav-heart:hover {
  transform: scale(1.08);
  background: #ff5c74;
}

.fav-heart svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .fav-head {
    flex-wrap: wrap;
  }

  .fav-sort {
    margin-left: 0;
  }
}

/* ================= settings page ================= */

.set-shell {
  display: grid;
  gap: 22px;
}

.set-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 18px;
  background: linear-gradient(115deg, #a438d6 0%, #e0338c 55%, #7c3aed 100%);
}

.set-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

.set-banner-info {
  min-width: 0;
}

.set-banner-info h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-banner-info p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.set-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}

.set-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  background: linear-gradient(96deg, #2563eb 0%, #0891b2 100%);
}

.set-head-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.set-head-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.set-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.set-item + .set-item {
  border-top: 1px solid var(--border);
}

.set-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 22px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.set-row:hover {
  background: var(--card-hi);
}

.set-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  color: #fff;
}

.set-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.set-row-info {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.set-row-info strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.set-row-info small {
  color: var(--text-3);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}

.set-row.open .set-chevron {
  transform: rotate(90deg);
}

.set-form {
  display: grid;
  gap: 12px;
  padding: 2px 22px 20px 82px;
}

.set-form input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  padding: 11px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}

.set-form input:focus {
  border-color: rgba(224, 51, 140, 0.55);
}

.set-save {
  justify-self: start;
  border: 0;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.set-save:hover {
  opacity: 0.88;
}

.set-email-row {
  display: flex;
  gap: 10px;
}

.set-email-row input {
  flex: 1;
  min-width: 0;
}

.set-code-btn {
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.set-code-btn:hover:not(:disabled) {
  border-color: var(--border-hi);
  color: var(--text);
}

.set-code-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.set-hint {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
}

.set-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 92, 116, 0.35);
  border-radius: 18px;
  background: var(--card);
  color: #ff5c74;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.set-logout:hover {
  background: rgba(255, 92, 116, 0.08);
  border-color: rgba(255, 92, 116, 0.55);
}

.set-logout-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 92, 116, 0.12);
}

.set-logout-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .set-form {
    padding-left: 22px;
  }

  .set-email-row {
    flex-wrap: wrap;
  }

  .set-code-btn {
    padding: 10px 14px;
  }
}

.hist-list {
  display: grid;
  gap: 14px;
}

.hist-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s;
}

.hist-item:hover {
  border-color: var(--border-hi);
}

.hist-thumb {
  position: relative;
  width: 200px;
  flex: none;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1530, #251a3e 60%, #131025);
}

.hist-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hist-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.hist-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
}

.hist-info {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.hist-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.hist-watched {
  color: #c9a7ff;
  font-size: 12.5px;
  font-weight: 600;
}

.hist-delete {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  transition: color 0.15s, border-color 0.15s;
}

.hist-delete:hover {
  color: #ff5c74;
  border-color: rgba(255, 92, 116, 0.45);
}

.hist-delete svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hist-pagination {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .hist-head {
    padding: 16px;
    gap: 12px;
  }

  .hist-item {
    gap: 12px;
    padding: 10px;
  }

  .hist-thumb {
    width: 128px;
  }

  .hist-title {
    font-size: 13.5px;
  }

  .hist-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
}

@media (max-width: 1080px) {
  .uc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .uc-shell {
    padding: 20px 14px 56px;
  }

  .uc-profile {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
  }

  .uc-stats {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .uc-stat {
    padding: 8px 12px;
    flex: 1;
  }

  .uc-renew {
    margin-left: auto;
  }

  .uc-plans {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hd-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 7px;
  background: linear-gradient(135deg, #7c3aed 0%, #a438d6 50%, #e0338c 100%);
  color: #fff;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
