:root {
  color-scheme: dark;
  --bg: #090b13;
  --header: #080910;
  --panel: #131620;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f6fb;
  --muted: #a0a7b4;
  --accent: #ff4d72;
  --blue: #0ea5e9;
  --gold: #f6c453;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-shell,
#app,
.admin-shell {
  width: min(1138px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.header-shell {
  display: grid;
  gap: 0;
}

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  min-height: 64px;
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-family: "STSong", "SimSun", Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 2.52vw, 41px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.brand strong {
  color: var(--accent);
  font-weight: 700;
}

.site-url {
  grid-column: 2;
  justify-self: center;
  color: #d7dce6;
  font-size: clamp(22px, 1.65vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-url:hover {
  color: var(--accent);
}

.category-nav {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 40px;
  padding: 5px 0 10px;
  color: #e3e6ec;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
}

.category-label {
  flex: 0 0 auto;
  color: #8f98a8;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 28px;
  white-space: nowrap;
}

.category-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px clamp(16px, 2vw, 28px);
  color: #e3e6ec;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
}

.category-links a {
  white-space: nowrap;
}

.category-links a:hover,
.video-card:hover h3 {
  color: var(--accent);
}

.live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-link span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff474f;
}

.member-pill {
  display: none;
}

.search-icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #e6e9ef;
  border-radius: 999px;
  left: 4px;
  top: 3px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: #e6e9ef;
  border-radius: 999px;
  transform: rotate(45deg);
  left: 17px;
  top: 18px;
}

.member-login {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 114, 0.55);
  background: rgba(255, 77, 114, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 10px;
}

.member-login:hover {
  color: #fff;
  background: var(--accent);
}

#app,
.admin-shell {
  margin-top: 0;
  margin-bottom: 60px;
}

.search-hero {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 218px;
  padding: 38px 0 14px;
}

.search-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 2.56vw, 50px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
}

.search-hero h1 span {
  color: var(--accent);
  font-weight: 800;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 106px;
  width: min(655px, 100%);
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #111827;
  background: #fff;
  font-size: 19px;
}

.hero-search button {
  border: 0;
  border-left: 1px solid #d6dbe3;
  background: #f7f8fb;
  color: #1f2937;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.mini-search {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border: 2px solid #9aa4b2;
  border-radius: 999px;
  position: relative;
  top: 2px;
}

.mini-search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #9aa4b2;
  border-radius: 999px;
  transform: rotate(45deg);
  left: 8px;
  top: 8px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 8px;
}

.catalog-head h2,
.video-title,
.join-head h1,
.panel h1,
.panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.catalog-head p,
.video-meta,
.info-panel p,
.muted,
.plan-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-gap {
  margin-top: 35px;
}

.catalog-title {
  margin: 0 0 22px;
}

.catalog-title h2 {
  margin: 0;
  font-size: clamp(26px, 1.72vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.home-sections {
  display: grid;
  gap: 46px;
}

.category-block {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 1.45vw, 30px);
  line-height: 1.2;
  font-weight: 900;
}

.section-heading a,
.section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.section-heading a:hover {
  color: var(--accent);
}

.section-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.load-more,
.load-done {
  justify-self: center;
  min-width: min(260px, 100%);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  background: transparent;
  color: #aab2c0;
  font-size: 14px;
  font-weight: 800;
}

.load-more {
  cursor: pointer;
}

.load-more:hover {
  color: #fff;
  border-color: rgba(255, 77, 114, 0.7);
  background: rgba(255, 77, 114, 0.08);
}

.load-more span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.load-done {
  min-height: 40px;
  border-color: transparent;
  font-size: 13px;
  color: var(--muted);
}

.member-status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.member-status span {
  color: #090a11;
  background: #7dd3fc;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 900;
}

.member-status.active span {
  background: var(--gold);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 17px;
}

.chip {
  border: 1px solid var(--line);
  background: #151823;
  color: #d8dde4;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}

.video-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.video-card {
  display: block;
  min-width: 0;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 114, 0.55);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card.portrait .thumb {
  background:
    radial-gradient(circle at center, rgba(255, 77, 114, 0.12), transparent 58%),
    #05070a;
}

.video-card.portrait .thumb img {
  object-fit: contain;
}

.ratio-badge {
  position: absolute;
  right: 4px;
  top: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 1;
}

.duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 10px;
}

.video-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  color: #fff;
  background: rgba(42, 109, 205, 0.9);
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1;
}

.card-body {
  padding-top: 7px;
}

.card-body h3 {
  margin: 0;
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1.35;
  font-weight: 700;
  color: #c7ceda;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.watch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  max-width: 1180px;
  margin: 22px auto 0;
}

.watch-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.player {
  display: block;
  width: 100%;
  max-height: 68vh;
  background: #000;
  border-radius: 3px;
  margin-top: 14px;
}

.preview-wrap {
  position: relative;
}

.preview-ended {
  position: absolute;
  inset: 14px 0 0;
  display: grid;
  place-content: center;
  gap: 12px;
  background: rgba(5, 7, 12, 0.82);
  border-radius: 3px;
  text-align: center;
}

.video-title {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.28;
}

.watch-heading {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.video-summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.6;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.watch-sidebar {
  min-width: 0;
}

.watch-sidebar h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.25;
}

.side-video-list {
  display: grid;
  gap: 18px;
}

.side-video {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.side-video h3 {
  margin: 0;
  color: #c7ceda;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.side-video:hover h3 {
  color: var(--accent);
}

.side-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 114, 0.55);
  background:
    radial-gradient(circle at center, rgba(255, 77, 114, 0.12), transparent 58%),
    #05070a;
}

.side-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-video.portrait .side-thumb img {
  object-fit: contain;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 15px 0;
  font-size: 15px;
}

.member-links button,
.member-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #63c7ff;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.member-links a {
  color: var(--gold);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(246, 196, 83, 0.45);
  color: var(--gold);
  font-weight: 900;
  padding: 0 16px;
}

.full-player {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.full-player h2,
.info-panel h2,
.related-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.info-panel {
  margin-top: 16px;
  padding: 14px;
  background: #131620;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.video-info {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
}

.video-info div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.video-info dt {
  color: var(--muted);
}

.video-info dd {
  margin: 0;
}

.related-section {
  margin-top: 22px;
}

.join-page,
.panel,
.auth-page,
.account-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}

.join-page {
  max-width: 1040px;
  margin: 22px auto 0;
}

.hidden {
  display: none !important;
}

.auth-page,
.account-page {
  max-width: 1040px;
  margin: 22px auto 0;
}

.auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101318;
}

.auth-tabs button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 4px;
  min-height: 36px;
  padding: 0 14px;
  color: #d8dde4;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active,
.primary-btn {
  color: #fff;
  background: var(--accent);
}

.ghost-btn {
  border: 1px solid var(--line);
}

.auth-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.auth-form h1,
.account-head h1,
.account-panel h2 {
  margin: 0;
}

.auth-form input,
.invite-box input,
.password-form input {
  min-width: 0;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 4px;
  background: #101318;
  color: var(--text);
  padding: 11px 12px;
}

.auth-form button,
.invite-box button,
.password-form button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.auth-form p,
.account-note,
.account-empty,
.account-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-page {
  display: grid;
  gap: 20px;
}

.account-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.dashboard-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.dashboard-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

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

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

.account-panel {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.account-span {
  grid-column: 1 / -1;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title-row span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  background: #101318;
  padding: 14px;
}

.status-card span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 77, 114, 0.14);
  color: #ffb6c6;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.status-card strong {
  font-size: 21px;
  line-height: 1.25;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.status-card.active span {
  background: rgba(246, 196, 83, 0.18);
  color: var(--gold);
}

.account-kv {
  display: grid;
  gap: 8px;
  margin: 0;
}

.account-kv div,
.account-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.account-kv div {
  grid-template-columns: 92px 1fr;
}

.account-kv dt {
  color: var(--muted);
}

.account-kv dd {
  margin: 0;
}

.primary-link {
  width: fit-content;
  color: #63c7ff;
  font-weight: 900;
  text-decoration: underline;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
}

.primary-action:hover {
  background: #ff6688;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #d8dde4;
  font-weight: 900;
  padding: 0 16px;
}

.secondary-link:hover {
  border-color: rgba(255, 77, 114, 0.65);
  color: #fff;
}

.password-form {
  display: grid;
  gap: 10px;
}

.settlement-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.settlement-cards div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101318;
  padding: 14px;
}

.settlement-cards span {
  color: var(--muted);
  font-size: 13px;
}

.settlement-cards strong {
  color: var(--gold);
  font-size: 24px;
}

.settlement-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.settlement-form input {
  min-width: 0;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 4px;
  background: #101318;
  color: var(--text);
  padding: 11px 12px;
}

.settlement-form button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  padding: 0 16px;
}

.invite-box {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-radius: 4px;
}

.invite-box input {
  border-radius: 4px 0 0 4px;
}

.invite-box button {
  border-radius: 0 4px 4px 0;
  padding: 0 16px;
}

.account-table {
  display: grid;
  gap: 0;
  font-size: 13px;
}

.account-row-head {
  color: var(--muted);
  font-weight: 900;
}

.join-head {
  margin-bottom: 18px;
}

.join-head p {
  color: var(--muted);
  margin: 8px 0 0;
}

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

.plan-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 15px;
  border-radius: 4px;
  background: #101318;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.plan-card:hover {
  border-color: rgba(255, 77, 114, 0.78);
  background: #141923;
  transform: translateY(-1px);
}

.plan-card strong {
  font-size: 30px;
  color: var(--gold);
}

.plan-buy-button {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.redeem-box {
  display: grid;
  grid-template-columns: 1fr auto;
  background: #101318;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0 10px;
}

.redeem-box input,
.admin-form input,
.admin-form select,
.video-admin-form input,
.video-admin-form select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
}

.redeem-box button,
.admin-form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-form {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
}

.video-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-form input,
.admin-form select,
.video-admin-form input,
.video-admin-form select {
  background: #101318;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-form button,
.video-admin-form button {
  border-radius: 4px;
  min-height: 46px;
}

.video-admin-form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.new-code {
  margin-top: 14px;
  color: var(--gold);
}

.code-table {
  overflow-x: auto;
}

.code-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: 220px 120px 1fr 180px 160px;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.code-head {
  color: var(--muted);
  font-weight: 800;
}

.admin-account-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: 160px 120px 160px minmax(180px, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.admin-video-row {
  min-width: 860px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 80px 180px 170px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.admin-video-row a {
  color: #63c7ff;
  font-weight: 800;
}

.admin-account-head {
  color: var(--muted);
  font-weight: 800;
}

.role-select select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101318;
  color: var(--text);
  padding: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  transition: 0.2s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1200px) {
  .header-shell,
  #app,
  .admin-shell {
    width: min(100% - 44px, 1138px);
  }

  .site-url {
    font-size: clamp(18px, 1.8vw, 22px);
  }

  .category-nav,
  .category-label,
  .category-links {
    font-size: clamp(14px, 1.35vw, 16px);
  }

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

  .search-hero {
    min-height: 210px;
  }
}

@media (max-width: 980px) {
  .header-top,
  .admin-form,
  .video-admin-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-url {
    font-size: clamp(16px, 2vw, 20px);
  }

  .brand {
    font-size: 34px;
  }

  .member-login {
    height: 32px;
    min-width: 78px;
  }

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

  .watch-page {
    grid-template-columns: 1fr;
  }

  .watch-sidebar {
    margin-top: 18px;
  }

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

  .side-video {
    grid-template-columns: 1fr;
  }

  .account-grid,
  .account-head {
    grid-template-columns: 1fr;
  }

  .dashboard-section-head {
    display: grid;
    align-items: start;
  }

  .account-row {
    grid-template-columns: 1fr;
  }

  .settlement-cards,
  .settlement-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-shell,
  #app,
  .admin-shell {
    width: min(100% - 20px, 1880px);
  }

  .header-top {
    grid-template-columns: 1fr auto;
  }

  .member-login {
    grid-column: 2;
  }

  .site-url {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    font-size: 17px;
  }

  .category-nav {
    display: grid;
    gap: 6px;
  }

  .brand {
    font-size: 31px;
  }

  .search-hero {
    min-height: 178px;
    padding-top: 24px;
  }

  .search-hero h1 {
    margin-bottom: 18px;
  }

  .hero-search,
  .redeem-box {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-search button,
  .redeem-box button {
    min-height: 42px;
  }

  .catalog-head {
    display: grid;
    align-items: start;
  }

  .video-grid,
  .section-video-grid,
  .video-grid.compact,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .card-body h3 {
    font-size: 13px;
  }

  .side-video-list {
    grid-template-columns: 1fr;
  }

  .side-video {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .invite-box,
  .auth-form,
  .video-admin-form {
    grid-template-columns: 1fr;
  }

  .invite-box input,
  .invite-box button {
    border-radius: 4px;
  }
}
