* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f3f3;
  color: #171717;
  font-family: Inter, "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    Meiryo, Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.icon {
  width: 20px;
  height: 20px;
}

.page-bg {
  min-height: 100vh;
  background: #f3f3f3;
}

.phone-shell,
.wide-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow-x: hidden;
}

.phone-shell {
  max-width: 520px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.phone-shell-lowbar {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.wide-shell {
  max-width: 720px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 12px;
  border-bottom: 1px solid #ededed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.top-header.stacked {
  display: block;
  padding: 0;
}

.admin-preview-footer-note {
  max-width: 980px;
  margin: 10px auto calc(74px + env(safe-area-inset-bottom));
  padding: 0 18px;
  color: #8a96a8;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 12px;
}

.header-copy {
  padding: 0 16px 12px;
}

.header-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.header-copy span {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--site-brand-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark,
.header-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--site-brand);
  color: #fff;
}

.brand-mark .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  margin-left: auto;
}

.icon-button,
.back-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #181818;
  cursor: pointer;
}

.icon-button.accent {
  color: #5b5cf6;
}

.notice-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notice-badge.is-hidden {
  display: none;
}

.back-button {
  border: 1px solid #dedede;
  border-radius: 6px;
}

.header-title {
  min-width: 0;
}

.header-title p,
.header-title h1 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title p {
  color: var(--site-brand-text);
  font-size: 13px;
  font-weight: 800;
}

.header-title h1 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.header-icon {
  margin-left: auto;
  background: var(--site-accent-soft);
  color: var(--site-accent);
}

.banner-section {
  padding: 12px 16px 0;
}

.banner-section[data-ad-placement="footer"] {
  padding-bottom: 16px;
}

.banner-viewport {
  overflow: hidden;
  border-radius: 6px;
}

.banner-track {
  display: flex;
  transition: transform 700ms ease;
}

.ad-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  aspect-ratio: 960 / 540;
  overflow: hidden;
  color: #fff;
}

.banner-section[data-ad-placement="footer"] .ad-slide {
  aspect-ratio: 960 / 190;
}

.banner-section[data-ad-placement="footer"] .ad-copy {
  padding: 12px 20px;
}

.banner-section[data-ad-placement="footer"] .ad-copy strong,
.banner-section[data-ad-placement="footer"] .ad-copy small {
  -webkit-line-clamp: 1;
}

@media (max-width: 600px) {
  .banner-section[data-ad-placement="footer"] .ad-copy {
    padding: 4px 12px;
  }

  .banner-section[data-ad-placement="footer"] .ad-badge {
    padding: 0 5px;
    font-size: 9px;
    line-height: 1.1;
  }

  .banner-section[data-ad-placement="footer"] .ad-copy strong {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.15;
  }

  .banner-section[data-ad-placement="footer"] .ad-copy small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
  }
}

.banner-section.banner-peek {
  padding-right: 0;
  padding-left: 0;
}

.banner-peek .banner-viewport {
  --banner-inset: clamp(28px, 9%, 80px);
  border-radius: 0;
  touch-action: pan-y;
}

.banner-peek .banner-track {
  position: relative;
  gap: 12px;
}

.banner-peek .ad-slide {
  flex-basis: calc(100% - var(--banner-inset) - var(--banner-inset));
  border-radius: 6px;
}

@media (max-width: 420px) {
  .banner-peek .ad-copy {
    padding: 12px 16px;
  }

  .banner-peek .ad-copy strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .banner-peek .ad-copy small {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .banner-peek .ad-badge {
    padding: 3px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-peek .banner-track {
    transition: none;
  }
}

.ad-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.03));
}

.ad-copy {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.ad-badge {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ad-copy strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-copy small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 14px;
  margin-top: 8px;
}

.banner-dots button {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #d6d6d6;
  padding: 0;
}

.banner-dots button.active {
  width: 20px;
  background: var(--site-accent);
}

.home-registration {
  padding: 18px 16px;
  border-bottom: 1px solid #e4edf4;
  text-align: center;
}

.home-registration h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.home-registration-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-registration-actions .more-button,
.home-registration-actions .primary-button {
  min-width: 0;
  margin: 0;
}

.library-panel {
  padding: 16px 16px 0;
}

.library-panel h2,
.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.library-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.library-links a {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #e7e7e7;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.library-links a:last-child {
  border-right: 0;
}

.library-links .icon,
.section-title .icon {
  color: var(--site-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.stats-grid div {
  min-width: 0;
  border-radius: 6px;
  background: #f6f6f6;
  padding: 9px 10px;
}

.stats-grid span {
  display: block;
  color: #777;
  font-size: 11px;
}

.stats-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.monthly-banner-wrap {
  padding: 8px 16px 0;
}

.monthly-banner {
  position: relative;
  display: flex;
  aspect-ratio: 960 / 190;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 3px;
  padding: 0 16px;
  color: #fff;
}

.monthly-banner > span:not(.ad-shade) {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.monthly-banner small,
.monthly-card p {
  display: block;
  color: var(--site-highlight);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.monthly-banner strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-banner em {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-banner .icon {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--site-highlight);
}

.discovery-block,
.section-block,
.content-block,
.model-index {
  min-width: 0;
  padding: 20px 16px;
}

.section-block {
  border-top: 4px solid #f2f2f2;
}

.catalog-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 16px;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.catalog-controls .catalog-sort {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.catalog-label-filter select {
  width: 220px;
  min-width: 0;
  max-width: 100%;
}

.catalog-sort label {
  font-size: 13px;
  color: #666;
}

.catalog-sort select,
.catalog-sort button {
  min-height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  color: #222;
  padding: 8px 12px;
  font-size: 16px;
}

.catalog-sort select {
  width: 150px;
  max-width: 100%;
}

.catalog-sort select:focus-visible,
.catalog-sort button:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

.catalog-label-filter.has-label-menu {
  justify-content: flex-start;
}
.catalog-label-filter > [hidden] { display: none; }

.catalog-label-menu {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.catalog-label-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.catalog-label-menu summary::-webkit-details-marker { display: none; }
.catalog-label-menu summary::marker { content: ''; }
.catalog-label-name { min-width: 0; overflow-wrap: anywhere; }
.catalog-label-menu summary > .icon { width: 16px; height: 16px; flex: 0 0 16px; transform: rotate(90deg); }
.catalog-label-menu[open] summary > .icon { transform: rotate(-90deg); }
.catalog-label-menu summary:hover { color: var(--site-accent); }
.catalog-label-menu summary:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; border-radius: 3px; }

.catalog-label-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: 220px;
  max-width: min(380px, calc(100vw - 32px));
  max-height: 320px;
  max-height: min(320px, 60vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}

.catalog-label-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 3px;
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
}

.catalog-label-options button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.catalog-label-options button:hover,
.catalog-label-options button:focus-visible { background: #f3f5f7; }
.catalog-label-options button:focus-visible { outline-offset: -2px; }
.catalog-label-options button[aria-pressed="true"] { color: var(--site-accent); font-weight: 700; }
.catalog-label-check { flex: 0 0 16px; visibility: hidden; }
.catalog-label-options button[aria-pressed="true"] .catalog-label-check { visibility: visible; }

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

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.taxonomy-card {
  display: flex;
  min-height: 56px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}

.taxonomy-card strong {
  display: block;
  overflow: hidden;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-card small {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 11px;
}

.more-button,
.primary-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--site-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 800;
}

.more-button {
  margin-top: 20px;
}

.primary-button {
  background: var(--site-accent);
  color: #fff;
}

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

.label-shelf {
  scroll-margin-top: 110px;
}

.label-shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.label-shelf-heading .section-title {
  min-width: 0;
  align-items: flex-start;
}

.label-shelf-heading .section-title > .icon {
  flex: 0 0 20px;
  margin-top: 5px;
}

.label-shelf-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.5;
}

.label-shelf-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.label-shelf-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.label-shelf-all .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.label-shelf-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.label-shelf-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.label-shelf-controls[hidden] {
  display: none;
}

.label-shelf-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.label-shelf-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.label-shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68%, 200px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  margin-top: 14px;
  padding: 2px 0 12px;
}

.label-shelf-track .video-card {
  min-width: 0;
  scroll-snap-align: start;
}

.label-shelf-track .video-title {
  overflow-wrap: anywhere;
}

.label-shelf-track:focus-visible,
.label-shelf-all:focus-visible,
.label-shelf-controls button:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

.poster-link {
  position: relative;
  display: block;
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: transparent;
}

.poster.label-portrait {
  aspect-ratio: 9 / 16;
  background: var(--site-accent-pale);
}

.poster.label-portrait.has-thumbnail {
  aspect-ratio: auto;
}

.label-portrait-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.label-thumbnail-options {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.label-thumbnail-options legend {
  margin-bottom: 6px;
  font-weight: 700;
}

.label-thumbnail-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--site-accent-soft);
  border-radius: 4px;
  cursor: pointer;
}

.label-thumbnail-options input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--site-accent);
}

.label-thumbnail-options label:has(input:checked) {
  background: var(--site-accent-pale);
}

.poster-label,
.poster-duration,
.rank-badge {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
}

.poster-label {
  left: 8px;
  top: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.46);
  padding: 3px 6px;
  color: #fff;
}

.poster-duration {
  right: 8px;
  bottom: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 6px;
  color: #2a2422;
}

.rank-badge {
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 8px 0 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.rank-badge .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.rank-badge-gold {
  background: linear-gradient(135deg, #fff0a7 0%, #f3bd2f 55%, #c78200 100%);
  color: #604000;
}

.rank-badge-silver {
  background: linear-gradient(135deg, #ffffff 0%, #d7dde6 55%, #96a0af 100%);
  color: #394150;
}

.rank-badge-bronze {
  background: linear-gradient(135deg, #ffd9b0 0%, #c87b35 55%, #8f4a1d 100%);
  color: #fff6ed;
}

.rank-badge-standard {
  background: rgba(23, 32, 50, 0.82);
  color: #fff;
}

.poster-caption {
  position: absolute;
  right: 8px;
  bottom: 10px;
  left: 8px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.78);
}

.poster-caption small,
.poster-caption strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-caption small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.poster-caption strong {
  margin-top: 2px;
  font-size: 14px;
}

.video-title {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #777;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card .video-card-expiry {
  color: #2f6faa;
  font-weight: 900;
}

.video-card .video-card-test-purchase {
  overflow: visible;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-dashboard-title {
  align-items: flex-start;
}

.ranking-dashboard-title > div {
  min-width: 0;
}

.ranking-mini-grid {
  margin-top: 10px;
}

.ranking-dashboard-title h2 {
  font-size: 20px;
  line-height: 1.5;
}

.ranking-period {
  display: inline-block;
}

.ranking-note {
  margin: 8px 0 12px;
  color: #59677a;
  font-size: 13px;
  line-height: 1.6;
}

.ranking-test-note {
  color: #97581e;
  font-weight: 700;
}

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

.ranking-preview-controls a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px;
  border-bottom: 2px solid #dce3ec;
  color: #43566e;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.ranking-preview-controls a[aria-current="true"] {
  border-color: #2f6faa;
  background: #edf4fa;
  color: #235583;
}

.ranking-preview-controls a:focus-visible {
  outline: 2px solid #2f6faa;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ranking-preview-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.related-video-section {
  padding-top: 16px;
}

.related-video-title {
  align-items: flex-start;
}

.related-video-note {
  margin: 8px 0 0;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.related-video-grid {
  margin-top: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.card-actions button,
.card-actions .video-action-login {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  background: #fff;
  color: #555;
}

.card-actions span {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 700;
}

.card-actions .icon {
  width: 14px;
  height: 14px;
}

.plain-card,
.purchase-card {
  margin-top: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.plain-card h2,
.watch-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.watch-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.watch-title-row .watch-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-edit-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--site-accent);
  border-radius: 6px;
  color: var(--site-accent);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.watch-edit-link .icon {
  width: 15px;
  height: 15px;
}

.watch-edit-link:hover {
  background: var(--site-accent-pale);
}

.watch-edit-link:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 3px;
}

.plain-card p,
.watch-description {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.legal-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.legal-notice {
  margin: 0;
  min-width: 0;
  border: 1px solid #dce7f4;
  border-radius: 6px;
  background: #f7fbff;
  padding: 12px;
  color: #43556f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.legal-card {
  min-width: 0;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #172032;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.legal-card h3 {
  margin: 20px 0 8px;
  color: #172032;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.legal-card h2 + h3 {
  margin-top: 12px;
}

.legal-card p {
  margin: 8px 0 0;
  color: #4f5b6d;
  font-size: 14px;
  line-height: 1.85;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-table {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  border-top: 1px solid #eceff3;
}

.legal-table div {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid #eceff3;
  padding: 11px 0;
}

.legal-table dt,
.legal-table dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.legal-table dt {
  color: #6b7280;
  font-weight: 900;
}

.legal-table dd {
  color: #273244;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-info-image,
.legal-name-image {
  display: block;
  width: auto;
  height: 38px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.legal-name-image {
  max-width: 180px;
}

.legal-address-image {
  height: 26px;
  max-width: min(100%, 390px);
}

.legal-phone-image {
  height: 26px;
  max-width: min(100%, 180px);
}

.legal-image-note {
  display: block;
  margin-top: 6px;
  max-width: 34em;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  color: #4f5b6d;
  font-size: 14px;
  line-height: 1.8;
}

.notice-popup[hidden] {
  display: none;
}

body.notice-open {
  overflow: hidden;
}

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  padding: 16px;
}

.notice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
}

.notice-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(78vh, 640px);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #dce6f2;
  border-radius: 12px 12px 8px 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.notice-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding: 14px 14px 12px;
}

.notice-dialog-head p,
.notice-dialog-head h2 {
  margin: 0;
}

.notice-dialog-head p {
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 900;
}

.notice-dialog-head h2 {
  color: #172032;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.notice-list {
  display: grid;
  gap: 0;
  max-height: calc(min(78vh, 640px) - 68px);
  overflow-y: auto;
}

.notice-item {
  min-width: 0;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #edf2f7;
  padding: 14px;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item > small {
  display: block;
  color: var(--site-accent);
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
}

.notice-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  margin-top: 4px;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-video-link svg { width: 16px; height: 16px; flex: 0 0 16px; }

.notice-item time {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.notice-item h3 {
  margin: 5px 0 0;
  color: #172032;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.notice-item p,
.notice-empty {
  margin: 7px 0 0;
  color: #4f5b6d;
  font-size: 13px;
  line-height: 1.8;
}

.notice-empty {
  margin: 0;
  padding: 18px 14px;
  font-weight: 800;
}

.contact-page {
  display: grid;
  gap: 12px;
}

.contact-guide-link {
  color: #265d9b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  color: #172032;
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-submit {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--site-accent);
  border-radius: 999px;
  background: var(--site-accent);
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.contact-submit .icon {
  width: 18px;
  height: 18px;
}

.contact-mail-note {
  display: grid;
  gap: 4px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 13px 14px;
}

.contact-mail-note strong {
  color: #172032;
  font-size: 13px;
  font-weight: 900;
}

.contact-mail-note span {
  color: #3d5878;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 4px;
  background: #f4f4f4;
  padding: 5px 8px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.light span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.plain-card .primary-button,
.purchase-card .primary-button {
  margin-top: 16px;
}

.purchase-option-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.purchase-option-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.purchase-option-card strong,
.purchase-option-card span {
  display: block;
}

.purchase-option-card strong {
  color: #172032;
  font-size: 14px;
  font-weight: 900;
}

.purchase-option-card span {
  margin-top: 3px;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.purchase-option-card b {
  color: var(--site-accent);
  font-size: 18px;
  font-weight: 950;
}

.purchase-option-card form {
  margin: 0;
}

.purchase-option-card .primary-button.purchase-option-action {
  display: flex;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--site-accent);
  padding: 0 18px;
  font-weight: 800;
}

.member-option-status {
  width: fit-content;
  border: 1px solid var(--site-accent-border);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  color: var(--site-accent);
}

.card-actions form {
  margin: 0;
}

.card-actions .video-action-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.card-actions button.active {
  background: var(--site-accent);
  color: #fff;
}

.card-actions button.active .icon {
  fill: currentColor;
}

.card-actions button:disabled,
.watch-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}

.member-video-action-error {
  margin: 6px 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.monthly-request-card .plain-card {
  margin-top: 12px;
}

.model-showcase-title {
  align-items: center;
}

.model-showcase-title > div {
  min-width: 0;
}

.model-showcase-title small {
  display: block;
  margin-top: 2px;
  color: #687386;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.model-showcase-title > span {
  margin-left: auto;
  border: 1px solid var(--site-accent-border);
  border-radius: 999px;
  background: var(--site-accent-soft);
  padding: 5px 9px;
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

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

.model-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(13, 24, 38, 0.08);
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgba(13, 24, 38, 0.1);
  color: #fff;
}

.model-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.02) 18%, rgba(6, 13, 24, 0.18) 54%, rgba(6, 13, 24, 0.72) 100%);
  content: "";
}

.model-card-glow {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  height: 42%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 16, 30, 0.64));
}

.model-showcase-home .model-card::after {
  content: none;
}

.model-showcase-home .model-card-glow {
  display: none;
}

.model-card-info {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  gap: 3px;
}

.model-card-info strong,
.model-card-info small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

.model-card-info strong {
  font-size: 12px;
  font-weight: 900;
}

.model-card-info small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.model-name-only-list {
  margin-top: 20px;
  border-top: 1px solid #e7edf4;
  padding-top: 16px;
}

.model-name-only-list h3 {
  margin: 0 0 10px;
  color: #172032;
  font-size: 15px;
  font-weight: 900;
}

.model-name-only-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.model-name-only {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dce6f1;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  padding: 9px 10px;
}

.model-name-initial {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-accent) 0%, #6fb6d1 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.model-name-initial .icon {
  width: 18px;
  height: 18px;
}

.model-name-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.model-name-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #172032;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-name-copy small {
  color: #687386;
  font-size: 11px;
  font-weight: 800;
}

.model-name-arrow {
  display: grid;
  color: var(--site-accent);
  place-items: center;
}

.monthly-card {
  min-width: 0;
  border: 1px solid #d6e7fb;
  border-radius: 6px;
  background: #eef6ff;
  padding: 28px;
  color: #1e3b50;
  overflow-wrap: anywhere;
}

.monthly-card > p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 14px;
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #416c9e;
  font-size: 13px;
  line-height: 1.5;
}

.monthly-card > p .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.monthly-card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
}

.monthly-card-title-tail { display: inline-block; }

.monthly-card > span {
  display: block;
  margin-top: 20px;
  color: #526c80;
  font-size: 15px;
  line-height: 1.9;
}

.monthly-card-action {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  border-top: 1px solid #d0e1f3;
  padding-top: 24px;
}

.monthly-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
  color: #2c5886;
}

.monthly-card-price small {
  font-size: 14px;
  font-weight: 800;
}

.monthly-card-price strong {
  min-width: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
}

.monthly-card-action > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #416fa9;
  padding: 12px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.monthly-card-action > a .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.monthly-card-action > a:hover {
  background: #365e90;
}

.monthly-card-action > a:focus-visible {
  outline: 2px solid #2c5886;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .monthly-card { padding: 22px; }
  .monthly-card h2 { font-size: 24px; }
  .monthly-card-price strong { font-size: 40px; }
}

@media (max-width: 360px) {
  .monthly-card { padding: 18px; }
  .monthly-card-price strong { font-size: 36px; }
}

.monthly-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 16px 0;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.monthly-status-panel.active {
  border-color: var(--site-accent-border);
  background: var(--site-accent-softer);
}

.monthly-status-panel small,
.monthly-status-panel strong,
.monthly-status-panel p {
  display: block;
}

.monthly-status-panel small {
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 900;
}

.monthly-status-panel strong {
  margin-top: 3px;
  color: #172032;
  font-size: 18px;
  font-weight: 900;
}

.monthly-status-panel p {
  margin: 5px 0 0;
  color: #687386;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.monthly-status-panel a,
.member-subscription-card a,
.member-monthly-entry a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--site-accent);
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.site-footer {
  border-top: 4px solid #f2f2f2;
  padding: 28px 16px;
  color: #777;
  font-size: 12px;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer strong {
  color: #222;
}

.site-footer .footer-groups {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.footer-group {
  min-width: 0;
}

.site-footer .footer-group h2 {
  margin: 0 0 10px;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  line-height: 1.7;
}

.footer-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.site-footer .footer-payment {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-contact-link {
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 600px) {
  .site-footer .footer-groups {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 24px;
  }

  .site-footer .footer-payment {
    grid-column: 1 / -1;
  }
}

.admin-pill {
  border: 1px solid var(--site-accent);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--site-accent);
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  border-top: 1px solid #e6e6e6;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav div {
  display: grid;
  height: 64px;
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #111;
  font-size: 10px;
  font-weight: 800;
}

.bottom-nav a.active {
  color: var(--site-accent);
}

.bottom-nav .icon {
  width: 20px;
  height: 20px;
}

.random-gate {
  display: grid;
  gap: 14px;
  border: 1px solid var(--site-accent-border);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.random-gate-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--site-accent-soft);
  color: var(--site-accent);
}

.random-gate-icon .icon {
  width: 24px;
  height: 24px;
}

.random-gate small {
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 900;
}

.random-gate h2 {
  margin: 0;
  color: #172032;
  font-size: 22px;
  line-height: 1.35;
}

.random-gate p {
  margin: 0;
  color: #566070;
  font-size: 14px;
  line-height: 1.8;
}

.random-gate-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.random-gate-stats span {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  background: #f5f8fc;
  padding: 12px;
}

.random-gate-stats small {
  color: #687386;
  font-size: 11px;
}

.random-gate-stats strong {
  color: #172032;
  font-size: 16px;
  font-weight: 950;
}

.empty-state {
  margin-top: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  padding: 24px;
  text-align: center;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  color: var(--site-accent);
}

.empty-state p {
  margin: 12px 0 0;
  color: #777;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.guest-hidden-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  padding: 18px;
}

.content-block .guest-hidden-card {
  margin: 0;
}

.guest-hidden-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: var(--site-accent-soft);
  color: var(--site-accent);
}

.guest-hidden-icon .icon {
  width: 24px;
  height: 24px;
}

.guest-hidden-card p,
.guest-hidden-card h2,
.guest-hidden-card div > span {
  margin: 0;
}

.guest-hidden-card p {
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 950;
}

.guest-hidden-card h2 {
  margin-top: 3px;
  color: #172032;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.guest-hidden-card div > span {
  display: block;
  margin-top: 6px;
  color: #687386;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.guest-hidden-card a {
  grid-column: 2;
  justify-self: start;
  min-height: 38px;
  border: 1px solid var(--site-accent);
  border-radius: 999px;
  background: var(--site-accent);
  padding: 9px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 16px;
}

.search-form button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--site-accent);
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
}

.result-note {
  margin: 0;
  color: #777;
  font-size: 13px;
  font-weight: 800;
}

.cf-settings h2 { display: flex; align-items: center; gap: 8px; }
.cf-settings-form fieldset { border: 0; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cf-settings-form label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.cf-settings-form input, .cf-settings-form select { min-width: 0; width: 100%; border: 1px solid #cbd5df; border-radius: 6px; padding: 10px; background: white; color: #172032; font: inherit; }
.cf-settings-form button { justify-self: start; gap: 6px; }
.cf-settings .admin-note { overflow-wrap: anywhere; }
.cf-error { color: #b42318; }
.cf-preview-player { position: relative; max-width: 960px; margin-top: 16px; background: #111; }
.cf-preview-player video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.cf-player-status { position: absolute; z-index: 5; inset: 12px 12px auto; padding: 10px 12px; border-radius: 6px; background: #fff; color: #172032; font-size: 13px; overflow-wrap: anywhere; }
.cf-player-status p { margin: 0; }
.cf-player-status button { margin-top: 8px; padding: 6px 12px; border: 1px solid #cbd5df; border-radius: 4px; background: #fff; color: #172032; cursor: pointer; }
.cf-player-status[hidden], .cf-player-status button[hidden] { display: none; }
@media (max-width: 600px) { .cf-settings-form fieldset { grid-template-columns: minmax(0, 1fr); } }

.watch-player {
  position: relative;
  background: #111;
}

.watch-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.poster-only {
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
}

.poster-only div {
  max-width: 320px;
  padding: 20px;
}

.poster-only .icon {
  width: 36px;
  height: 36px;
}

.poster-only strong,
.poster-only small {
  display: block;
  margin-top: 8px;
}

.poster-only small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.watch-watermark {
  position: absolute;
  z-index: 3;
  max-width: min(72%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: clamp(9px, 2.1vw, 12px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
  transform: translate3d(0, 0, 0);
  transition: opacity 220ms ease;
  user-select: none;
}

.watch-watermark.is-visible {
  opacity: 0.72;
}

.purchase-state {
  display: flex;
  gap: 12px;
  border-radius: 6px;
  background: var(--site-accent-softer);
  padding: 12px;
}

.purchase-state > .icon {
  flex: 0 0 auto;
  color: var(--site-accent);
}

.purchase-state small,
.price-row small {
  display: block;
  color: var(--site-accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.purchase-state strong,
.price-row strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 900;
}

.purchase-state p {
  margin: 6px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.price-row b {
  color: var(--site-accent);
  font-size: 26px;
}

.sale-price-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.sale-price-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.sale-price-heading small {
  color: var(--site-accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.sale-price-heading span {
  color: #687386;
  font-size: 11px;
  font-weight: 800;
}

.sale-price-options {
  display: grid;
  gap: 8px;
}

.sale-price-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5edf7;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.sale-price-option strong,
.sale-price-option small {
  display: block;
}

.sale-price-option strong {
  color: #172032;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.sale-price-option small {
  margin-top: 3px;
  color: #687386;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.sale-price-option b {
  justify-self: end;
  color: var(--site-accent);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.watch-access {
  padding: 16px 0 0;
  background: #fff;
}

.watch-access-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.watch-access-copy > .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--site-accent-strong);
}

.watch-access-copy > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-access-copy strong {
  font-size: 15px;
  line-height: 1.5;
}

.watch-access-copy p {
  margin: 5px 0 0;
  color: #5f6570;
  font-size: 13px;
  line-height: 1.7;
}

.watch-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.watch-access-actions > a {
  flex: 1 1 180px;
  min-width: 0;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.watch-access-expiry {
  margin: 0;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #5f6570;
  font-size: 12px;
  line-height: 1.7;
}

.watch-pricing .sale-price-panel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.watch-player .poster-only {
  position: relative;
  isolation: isolate;
  min-height: 200px;
}

.watch-player .poster-only::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.62);
}

.watch-player .poster-only > div {
  max-width: 360px;
  padding: 32px 20px 20px;
  overflow-wrap: anywhere;
}

.watch-player .poster-only strong {
  font-size: 15px;
  line-height: 1.5;
}

.sample-page {
  min-height: 100vh;
  background: #050505;
  color: #fff;
}

.sample-shell {
  min-height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  background: #050505;
}

.sample-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent);
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.round-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.sample-header p,
.sample-header h1 {
  margin: 0;
}

.sample-header p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.sample-header h1 {
  font-size: 21px;
  font-weight: 900;
}

.sample-header > span {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.sample-feed {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.sample-panel {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  background-color: #050505;
}

.sample-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.86));
  pointer-events: none;
}

.sample-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sample-info {
  position: absolute;
  right: 0;
  bottom: 78px;
  left: 0;
  z-index: 2;
  padding: 16px;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.sample-info p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.sample-info p span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 8px;
  color: #fff;
}

.sample-info h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sample-info > small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sample-info > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--site-accent);
  font-size: 14px;
  font-weight: 900;
  pointer-events: auto;
}

.sample-page.is-sample-controls-active .sample-header {
  opacity: 0;
  pointer-events: none;
}

.sample-empty {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.sample-empty .icon {
  width: 44px;
  height: 44px;
  color: var(--site-highlight);
}

.sample-empty h2 {
  margin: 16px 0 0;
}

.sample-empty p {
  color: rgba(255, 255, 255, 0.64);
}

.sample-empty a {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  color: #111;
  font-weight: 900;
}

.dark-page .bottom-nav {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  backdrop-filter: blur(12px);
}

.dark-page .bottom-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.dark-page .bottom-nav a.active {
  color: var(--site-highlight);
}

body.age-pending {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

body.age-ok .age-gate,
.age-gate[hidden] {
  display: none;
}

.age-gate > div {
  width: min(100%, 420px);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  color: #171717;
  text-align: center;
}

.age-gate strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.age-gate p {
  margin: 12px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.age-gate button,
.age-gate a {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.age-gate button {
  background: var(--site-accent);
  color: #fff;
}

.age-gate a {
  background: #f2f2f2;
  color: #555;
}

.member-flash {
  margin: 12px 16px 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.member-flash.success {
  border: 1px solid #b9e6ca;
  background: #effdf4;
  color: #176b36;
}

.member-flash.error {
  border: 1px solid #ffc9c9;
  background: #fff1f1;
  color: #b42318;
}

.member-card,
.member-hero,
.member-subscription-card,
.member-shortcuts {
  margin: 14px 16px 0;
}

.member-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.member-card h2 {
  margin: 0;
  color: #172032;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.member-hero {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--site-accent) 0%, var(--site-accent-strong) 100%);
  padding: 18px;
  color: #fff;
}

.member-hero span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.member-hero h2 {
  margin: 12px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.member-hero p,
.member-note {
  margin: 6px 0 0;
  color: #687386;
  font-size: 13px;
  line-height: 1.7;
}

.member-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.member-hero .member-number {
  display: inline-flex;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.member-subscription-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.member-subscription-card small,
.member-subscription-card strong,
.member-subscription-card p {
  display: block;
}

.member-subscription-card small {
  color: #687386;
  font-size: 11px;
  font-weight: 900;
}

.member-subscription-card strong {
  margin-top: 3px;
  color: #172032;
  font-size: 16px;
  font-weight: 900;
}

.member-subscription-card p {
  margin: 4px 0 0;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.member-subscription-card .icon {
  flex: 0 0 auto;
  color: var(--site-accent);
}

.member-subscription-card a {
  margin-left: auto;
}

.member-subscription-card.active {
  border-color: var(--site-accent-border);
  background: var(--site-accent-softer);
}

.member-monthly-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.member-monthly-entry.active {
  border-color: var(--site-accent-border);
  background: var(--site-accent-softer);
}

.member-monthly-entry small,
.member-monthly-entry strong,
.member-monthly-entry p {
  display: block;
}

.member-monthly-entry small {
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 900;
}

.member-monthly-entry strong {
  margin-top: 3px;
  color: #172032;
  font-size: 16px;
  font-weight: 900;
}

.member-monthly-entry p {
  margin: 4px 0 0;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  background: #f2f6fb;
  padding: 5px;
}

.member-tabs a {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #536174;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.member-tabs a.active {
  background: #fff;
  color: var(--site-accent);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}

.member-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.member-form label {
  display: grid;
  gap: 6px;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
}

.member-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #172032;
  font-size: 16px;
}

.member-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px !important;
  color: #536174;
  font-size: 13px !important;
  line-height: 1.6;
}

.member-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.member-check a {
  color: var(--site-accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-form button,
.member-secondary-button,
.primary-button.as-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--site-accent);
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.member-secondary-button {
  width: 100%;
  border: 1px solid #d7e0ec;
  background: #fff;
  color: #253244;
}

.member-text-link {
  justify-self: center;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 900;
}

.member-withdrawal-entry { margin: 22px 0; text-align: center; font-size: 13px; }
.member-withdrawal-entry a { color: #596576; text-decoration: underline; text-underline-offset: 3px; }
.member-withdrawal { line-height: 1.8; }
.member-withdrawal h2 { font-size: 18px; }
.member-withdrawal p, .member-withdrawal li { font-size: 14px; overflow-wrap: anywhere; }
.member-withdrawal ul { padding-left: 22px; }
.member-withdrawal li + li { margin-top: 8px; }
.member-withdrawal .member-check input { flex: 0 0 18px; }
.member-form .member-withdrawal-submit { background: #b4232b; border-radius: 6px; white-space: normal; padding: 12px 18px; }
.member-withdrawal-submit:hover { background: #951b22; }
.member-withdrawal-cancel { display: block; margin-top: 22px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }

.member-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.member-shortcuts a {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #e2e8f0;
  color: #172032;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.member-shortcuts a:last-child {
  border-right: 0;
}

.member-shortcuts .icon {
  color: var(--site-accent);
}

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

.member-section-title a {
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 900;
}

.member-request-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}

.member-request-list a,
.member-status-box {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.member-request-list strong,
.member-request-list span {
  display: block;
}

.member-request-list strong {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: #172032;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-request-list span,
.member-status-box {
  margin-top: 4px;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.plain-card.compact {
  margin-top: 12px;
  padding: 12px;
}

.plain-card.compact h2 {
  font-size: 16px;
}

.plain-card.compact p {
  font-size: 13px;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.watch-actions form {
  flex: 1 1 130px;
}

.watch-actions button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: #fff;
  color: #253244;
  font-weight: 900;
  cursor: pointer;
}

.watch-actions button.active {
  border-color: var(--site-accent);
  background: var(--site-accent-soft);
  color: var(--site-accent);
}

@media (min-width: 640px) {
  .brand {
    font-size: 20px;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-button,
  .back-button {
    width: 38px;
    height: 38px;
  }

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

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

  .model-grid-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-name-only-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-page {
  min-height: 100vh;
  background: #eef2f7;
  padding: 12px;
}

.admin-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.admin-top h1 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.2;
}

.admin-top p,
.admin-note {
  margin: 6px 0 0;
  color: #687386;
  font-size: 13px;
  line-height: 1.7;
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 900;
}

.admin-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px;
  backdrop-filter: blur(12px);
}

.admin-tabs a,
.admin-light-button,
.admin-danger-button,
.admin-primary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tabs a,
.admin-light-button {
  border: 1px solid #d7e0ec;
  background: #fff;
  color: #253244;
}

.admin-tabs .icon,
.admin-light-button .icon,
.admin-primary-button .icon,
.admin-danger-button .icon {
  width: 16px;
  height: 16px;
}

.admin-tabs .admin-top-tab {
  flex-shrink: 0;
  gap: 6px;
}

.admin-primary-button {
  border: 1px solid var(--site-accent);
  background: var(--site-accent);
  color: #fff;
}

.admin-danger-button {
  border: 1px solid #f3b4b4;
  background: #fff7f7;
  color: #b42318;
}

.admin-flashes {
  margin-top: 12px;
}

.admin-inline-form {
  margin-top: 10px;
}

.admin-divider {
  height: 1px;
  margin: 18px 0;
  background: #e7edf5;
}

.admin-security-state {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-security-state strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.admin-security-state.ok strong {
  background: #e8f8ef;
  color: #177245;
}

.admin-security-state.warn strong {
  background: #fff5df;
  color: #a15c00;
}

.admin-security-state span {
  color: #556274;
  font-size: 13px;
  font-weight: 800;
}

.admin-totp-setup {
  margin: 12px 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.admin-totp-key-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 10px 0;
}

.admin-totp-key-list div {
  min-width: 0;
}

.admin-totp-key-list dt {
  color: #697487;
  font-size: 12px;
  font-weight: 900;
}

.admin-totp-key-list dd {
  margin: 3px 0 0;
  color: #172234;
  font-size: 13px;
  font-weight: 900;
}

.admin-totp-setup code,
.admin-recovery-box code {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #dde7f3;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #172234;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
}

.admin-recovery-box {
  margin: 12px 0;
  border: 1px solid #f1d59a;
  border-radius: 8px;
  background: #fff9eb;
  padding: 14px;
}

.admin-recovery-box strong {
  display: block;
  color: #7a4b00;
  font-size: 14px;
  font-weight: 950;
}

.admin-recovery-box p {
  margin: 5px 0 10px;
  color: #6b5a38;
  font-size: 13px;
  line-height: 1.7;
}

.admin-version-pill {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #f3f8ff;
  padding: 8px 12px;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 950;
}

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

.admin-version-row {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-version-row.current {
  border-color: #bdd5f3;
  background: #f5f9ff;
}

.admin-version-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.admin-version-row strong {
  color: #172234;
  font-size: 14px;
  font-weight: 950;
}

.admin-version-row span,
.admin-version-row p {
  color: #637083;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-version-row p {
  margin: 8px 0 0;
}

.admin-patch-list {
  gap: 12px;
}

.admin-patch-row {
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-patch-row > div {
  min-width: 0;
}

.admin-patch-row > div:first-child > strong,
.admin-patch-row > div:first-child > span,
.admin-patch-row > div:first-child > small {
  display: block;
}

.admin-patch-row.recovery_required,
.admin-patch-row.failed {
  border-color: #efc1c1;
  background: #fff6f6;
}

.admin-patch-row.applied {
  border-color: #bfe7cb;
  background: #f5fff8;
}

.admin-patch-row.rolled_back {
  border-color: #f1d59a;
  background: #fffaf0;
}

.admin-patch-warning,
.admin-patch-sql {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-patch-warning span,
.admin-patch-sql {
  border: 1px solid #f1d59a;
  border-radius: 8px;
  background: #fff9eb;
  padding: 8px 10px;
  color: #704400;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.admin-patch-sql strong {
  color: #704400;
  font-size: 12px;
}

.admin-patch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-patch-actions form {
  margin: 0;
}

.admin-flashes p {
  margin: 0 0 8px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 900;
}

.admin-flashes .success {
  border: 1px solid #b9e6ca;
  background: #effdf4;
  color: #176b36;
}

.admin-flashes .error {
  border: 1px solid #ffc9c9;
  background: #fff1f1;
  color: #b42318;
}

.admin-payment-reception {
  margin-top: 14px;
  padding: 16px 0;
  border-top: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.admin-payment-reception h2 {
  margin: 0;
  color: #172032;
  font-size: 18px;
}

.admin-payment-reception .admin-section-head {
  flex-wrap: wrap;
}

.admin-payment-reception .admin-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.admin-payment-reception-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.admin-payment-reception-list dt {
  font-weight: 800;
  font-size: 14px;
}

.admin-payment-reception-list dd {
  margin: 8px 0 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-payment-reception-status {
  display: inline-flex;
  border-radius: 4px;
  padding: 3px 10px;
  background: #eef0f3;
  color: #515969;
}

.admin-payment-reception-status[data-state="open"] {
  background: #e6f5ed;
  color: #176445;
}

.admin-payment-reception-status[data-state="attention"] {
  background: #fce9e9;
  color: #a22632;
}

@media (max-width: 600px) {
  .admin-payment-reception {
    padding: 16px;
  }

  .admin-payment-reception-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-stat-grid div,
.admin-card {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
}

.admin-stat-grid div {
  padding: 14px;
}

.admin-stat-grid span {
  display: block;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #172032;
  font-size: 22px;
  font-weight: 900;
}

.admin-card {
  margin-top: 14px;
  padding: 16px;
}

.admin-card h2,
.admin-card h3 {
  margin: 0;
  color: #172032;
  line-height: 1.25;
}

.admin-card h2 {
  font-size: 20px;
}

.admin-card h3 {
  margin-top: 14px;
  font-size: 16px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-catalog-visibility {
  border-color: #d6e4f4;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.admin-catalog-visibility.is-hidden {
  border-color: #f0b6b6;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.admin-catalog-visibility-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #f3f8ff;
  padding: 0 12px;
  color: #315f99;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-catalog-visibility-status .icon {
  width: 15px;
  height: 15px;
}

.admin-catalog-visibility.is-hidden .admin-catalog-visibility-status {
  border-color: #f0b6b6;
  background: #fff0f0;
  color: #b42318;
}

.admin-catalog-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-catalog-counts div {
  display: grid;
  gap: 4px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-catalog-counts span {
  color: #536174;
  font-size: 11px;
  font-weight: 900;
}

.admin-catalog-counts strong {
  color: #172032;
  font-size: 18px;
  font-weight: 950;
}

.admin-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.admin-catalog-actions form {
  margin: 0;
}

.admin-catalog-note {
  margin: 12px 0 0;
  color: #506176;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-guest-visibility {
  border-color: #d8e5f4;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.admin-guest-visibility.is-locked {
  border-color: #f0b6b6;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.admin-visibility-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #f3f8ff;
  padding: 0 12px;
  color: #315f99;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-visibility-status .icon {
  width: 15px;
  height: 15px;
}

.admin-guest-visibility.is-locked .admin-visibility-status {
  border-color: #f0b6b6;
  background: #fff0f0;
  color: #b42318;
}

.admin-guest-visibility-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-guest-visibility-body p {
  margin: 0;
  color: #506176;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-guest-visibility-body form {
  margin: 0;
}

.admin-login-card {
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.admin-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: #172032;
  font-size: 14px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form select[multiple] {
  min-height: 132px;
}

.admin-form-section {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.admin-form-section strong {
  color: #172032;
  font-size: 13px;
  font-weight: 950;
}

.admin-form-section span {
  color: #5f6f84;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.admin-sale-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.admin-aws-hls-builder {
  display: grid;
  gap: 8px;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
  background: #f6fbff;
  padding: 12px;
}

.admin-aws-hls-builder small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.admin-aws-hls-builder code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #dbe7f7;
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
  color: #172032;
  font-size: 12px;
  line-height: 1.6;
}

.admin-aws-hls-builder b {
  color: var(--site-accent);
}

.admin-form .admin-check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #f8fbff;
  padding: 10px 11px;
  color: #172032;
}

.admin-form .admin-check-field input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
}

.admin-full {
  grid-column: 1 / -1;
}

.admin-form .admin-primary-button {
  width: fit-content;
}

.admin-desktop-upload {
  padding: 24px;
  background: #fff;
}

.admin-desktop-upload h2 { font-size: 22px; }
.admin-desktop-upload code { overflow-wrap: anywhere; }
.admin-desktop-upload .admin-form { max-width: 680px; margin: 20px 0; }
.admin-desktop-upload fieldset { min-width: 0; padding: 0; border: 0; }
.admin-desktop-upload legend { margin-bottom: 12px; font-weight: 700; }
.admin-desktop-upload .admin-check-field { margin-bottom: 8px; }

.admin-video-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.admin-video-search-form.has-label-filter {
  grid-template-columns: minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(100px, .8fr) minmax(100px, .8fr) auto auto;
  /* WebKit can include long native option text in the page's scroll width. */
  overflow: hidden;
}

.admin-video-search-form.has-label-filter select {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .admin-video-search-form.has-label-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .admin-video-search-form.has-label-filter { grid-template-columns: minmax(0, 1fr); }
  .catalog-controls .catalog-sort { width: 100%; justify-content: flex-start; }
  .catalog-label-filter select { flex: 1; width: 0; }
}

.admin-video-search-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #4a5568;
  font-size: 12px;
  font-weight: 900;
}

.admin-video-search-form input,
.admin-video-search-form select {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 1px solid #d6deea;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #172032;
  font: inherit;
}

.admin-list-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #536174;
  font-size: 12px;
  font-weight: 900;
}

.admin-list-count small {
  color: #687386;
  font-weight: 800;
}

.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-health-grid div,
.admin-health-grid > a,
.admin-health-list,
.admin-health-tips {
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-health-grid > a {
  color: inherit;
  text-decoration: none;
}

.admin-health-grid > a:hover {
  border-color: var(--site-accent);
  background: #fff;
}

.admin-health-grid span,
.admin-health-grid small,
.admin-health-list small,
.admin-health-tips p {
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.admin-health-grid span {
  display: block;
}

.admin-health-grid strong {
  display: block;
  margin-top: 4px;
  color: #172032;
  font-size: 20px;
  font-weight: 900;
}

.admin-health-grid small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-health-list,
.admin-health-tips {
  margin-top: 12px;
}

.admin-health-list h3 {
  margin-bottom: 10px;
}

.admin-health-list p {
  margin: 10px 0 0;
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-health-list div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e4ecf5;
  padding: 9px 0;
}

.admin-health-list div:first-of-type {
  border-top: 0;
}

.admin-health-list span,
.admin-health-tips strong {
  color: #172032;
  font-size: 13px;
  font-weight: 900;
}

.admin-health-tips p {
  margin: 6px 0 0;
}

.admin-go-live-score {
  flex: 0 0 auto;
  min-width: 112px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
  text-align: center;
}

.admin-go-live-score span {
  display: block;
  color: #536174;
  font-size: 11px;
  font-weight: 900;
}

.admin-go-live-score strong {
  display: block;
  margin-top: 3px;
  color: #172032;
  font-size: 22px;
  font-weight: 950;
}

.admin-go-live-summary,
.admin-go-live-groups {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-go-live-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-go-live-summary span,
.admin-go-live-item span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

.admin-go-live-summary .ok,
.admin-go-live-item.ok span {
  background: #eaf8ef;
  color: #168a45;
}

.admin-go-live-summary .warn,
.admin-go-live-item.warn span {
  background: #fff7df;
  color: #946200;
}

.admin-go-live-summary .danger,
.admin-go-live-item.danger span {
  background: #fff1f1;
  color: #b42318;
}

.admin-go-live-summary .neutral,
.admin-go-live-item.neutral span {
  background: #edf3fb;
  color: #687386;
}

.admin-go-live-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-go-live-group {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.admin-go-live-group h3 {
  margin: 0 0 10px;
}

.admin-go-live-list {
  display: grid;
  gap: 8px;
}

.admin-go-live-item {
  display: grid;
  grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: inherit;
}

a.admin-go-live-item:hover {
  border-color: var(--site-accent);
}

.admin-go-live-item strong {
  min-width: 0;
  color: #172032;
  font-size: 13px;
  font-weight: 950;
}

.admin-go-live-item small {
  min-width: 0;
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-stream-log {
  max-height: 360px;
  overflow: auto;
}

.admin-stream-log div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.admin-stream-log small {
  overflow-wrap: anywhere;
}

.admin-hls-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-delivery-source {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 14px;
}

.admin-delivery-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-source-current {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-source-kicker,
.admin-source-mode span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 950;
}

.admin-source-current h3 {
  margin: 0;
  color: #172032;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.admin-source-mode small {
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.admin-source-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-source-mode {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 132px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.admin-source-mode input {
  position: absolute;
  inset: 10px 10px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--site-accent);
}

.admin-source-mode strong {
  padding-right: 26px;
  color: #172032;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.admin-source-mode.active {
  border-color: var(--site-accent);
  background: var(--site-accent-softer);
  box-shadow: 0 0 0 2px rgba(95, 143, 216, 0.12);
}

.admin-source-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-source-counts a {
  display: grid;
  gap: 4px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
  color: inherit;
}

.admin-source-counts a:hover {
  border-color: var(--site-accent);
  background: #fff;
}

.admin-source-counts span {
  color: #536174;
  font-size: 11px;
  font-weight: 900;
}

.admin-source-counts strong {
  color: #172032;
  font-size: 18px;
  font-weight: 950;
}

.admin-hls-filter-form {
  align-items: end;
}

.admin-hls-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-hls-row {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-hls-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.admin-hls-main > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-hls-title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-hls-title-line strong {
  overflow: hidden;
  color: #172032;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-hls-title-line span,
.admin-hls-check {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

.admin-hls-title-line .ok,
.admin-hls-check.ok {
  background: #eaf8ef;
  color: #168a45;
}

.admin-hls-title-line .warn,
.admin-hls-check.warn {
  background: #fff7df;
  color: #946200;
}

.admin-hls-title-line .danger,
.admin-hls-check.danger {
  background: #fff1f1;
  color: #b42318;
}

.admin-hls-title-line .neutral,
.admin-hls-check.neutral {
  background: #edf3fb;
  color: #687386;
}

.admin-hls-main small,
.admin-hls-paths {
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.admin-hls-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-hls-check {
  display: inline-grid;
  gap: 2px;
  min-width: 88px;
  border-radius: 8px;
  padding: 7px 9px;
}

.admin-hls-check small,
.admin-hls-check strong {
  display: block;
}

.admin-hls-check small {
  font-size: 10px;
  opacity: 0.74;
}

.admin-hls-check strong {
  font-size: 12px;
}

.admin-hls-paths {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  background: #f8fbff;
  padding: 9px 10px;
  overflow-wrap: anywhere;
}

.admin-hls-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-hls-actions form {
  margin: 0;
}

.admin-video-form {
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 16px 12px;
  gap: 24px;
}

.admin-video-section {
  min-width: 0;
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #dce2e8;
}

.admin-video-form [hidden] {
  display: none !important;
}

.admin-video-section legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 0 12px 0 0;
  color: #222c35;
  font-size: 16px;
  font-weight: 900;
}

.admin-video-section .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.admin-video-fields,
.admin-full-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.admin-video-form .admin-sale-options {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-video-media {
  --media-accent: #425b77;
  --media-tint: #f3f5f8;
  border-top: 0;
  padding: 0;
}

.admin-video-media.is-sample {
  --media-accent: #14675d;
  --media-tint: #edf8f4;
}

.admin-video-media.is-full {
  --media-accent: #9b3449;
  --media-tint: #fcf0f2;
}

.admin-video-media legend {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border-left: 4px solid var(--media-accent);
  background: var(--media-tint);
  color: var(--media-accent);
}

.admin-media-audience {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}

.admin-media-section-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: start;
  gap: 20px;
}

.admin-media-section-body > .admin-full {
  grid-column: auto;
}

.admin-full-destination {
  min-width: 0;
}

.admin-full-destination h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  color: #222c35;
}

.admin-full-destination + .admin-full-destination {
  border-left: 1px solid #e4dce0;
  padding-left: 16px;
}

.admin-video-form .admin-aws-hls-builder {
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.admin-video-form .admin-media-preview.is-single {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 480px;
}

.admin-video-form .admin-media-preview-card {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.admin-full-destination > .admin-media-preview {
  margin-top: 20px;
}

.admin-ad-preview {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0;
}

.admin-ad-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.admin-ad-preview figcaption span {
  color: #607080;
  overflow-wrap: anywhere;
}

.admin-ad-preview-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  background: #f4f7fa;
}

.admin-ad-preview-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.admin-ad-preview[data-ad-placement="footer"] .admin-ad-preview-frame {
  aspect-ratio: 960 / 190;
}

.admin-ad-preview[data-ad-placement="footer"] .admin-ad-preview-frame > span {
  padding: 4px 8px;
}

.admin-ad-preview-frame > span {
  padding: 16px;
  color: #607080;
  font-size: 13px;
  text-align: center;
}

.admin-ad-preview [hidden] {
  display: none !important;
}

.admin-media-diagnostics {
  margin-top: 20px;
  border-top: 1px solid #e1e5ea;
  padding-top: 12px;
}

.admin-item .admin-media-diagnostics > summary,
.admin-media-diagnostics > summary {
  display: list-item;
  min-height: 0;
  padding: 0;
  color: #536174;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-video-save {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #dce2e8;
  padding-top: 20px;
}

.admin-video-save button {
  min-width: 180px;
}

.admin-upload-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-upload-control strong,
.admin-upload-control span,
.admin-upload-control small {
  display: block;
}

.admin-upload-control strong {
  color: #172032;
  font-size: 12px;
  font-weight: 900;
}

.admin-upload-control span {
  margin-top: 3px;
  color: #536174;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-upload-control input[type="file"] {
  min-width: 0;
  color: #314055;
  font-size: 12px;
}

.admin-upload-control progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  accent-color: var(--site-accent);
}

.admin-upload-control small {
  grid-column: 1 / -1;
  color: #687386;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-upload-control.is-uploading {
  border-color: #b9d8f3;
  background: #f2f8ff;
}

.admin-upload-cancel {
  border-color: #f2c4c4;
  color: #b83232;
}

.admin-upload-selection {
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #28333e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-video-media .admin-upload-control {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  gap: 12px;
}

.admin-video-media .admin-upload-control strong {
  font-size: 14px;
}

.admin-video-media .admin-upload-control span,
.admin-video-media .admin-upload-control small {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-video-media .admin-upload-control [data-admin-upload-button] {
  gap: 6px;
  min-height: 44px;
  border-color: var(--media-accent);
  border-radius: 6px;
  background: var(--media-accent);
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-video-media .admin-upload-control [data-admin-upload-button]:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 760px) {
  .admin-video-fields,
  .admin-video-taxonomies,
  .admin-full-destinations,
  .admin-media-section-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-full-destination + .admin-full-destination {
    border-left: 0;
    border-top: 1px solid #e4dce0;
    padding: 16px 0 0;
  }

  .admin-media-section-body > .admin-media-preview {
    max-width: 100%;
  }

  .admin-video-save button {
    width: 100%;
    min-width: 0;
  }
}

.admin-media-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-media-preview-card {
  min-width: 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.admin-media-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-media-preview-head strong {
  color: #172032;
  font-size: 12px;
  font-weight: 900;
}

.admin-media-preview-head a {
  flex: 0 0 auto;
  color: var(--site-accent);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.admin-media-frame {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 6px;
  background: #edf3fb;
}

.admin-media-frame img,
.admin-media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.admin-media-frame video {
  background: #0f172a;
}

.admin-media-frame span {
  padding: 14px;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.admin-media-error {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 6px;
  background: rgba(180, 35, 24, 0.92);
  padding: 8px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
}

.admin-media-source-note {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.admin-media-preview-card.is-empty img,
.admin-media-preview-card.is-empty video {
  display: none;
}

.admin-video-diagnostics {
  display: grid;
  gap: 10px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-video-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-video-diagnostics-head strong {
  color: #172032;
  font-size: 14px;
  font-weight: 950;
}

.admin-video-diagnostics-head span {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-video-diagnostics-head .ok {
  background: #eaf8ef;
  color: #168a45;
}

.admin-video-diagnostics-head .warn {
  background: #fff7df;
  color: #946200;
}

.admin-video-diagnostics-head .danger {
  background: #fff1f1;
  color: #b42318;
}

.admin-video-diagnostics dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-video-diagnostics dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid #e5edf7;
  padding-top: 6px;
}

.admin-video-diagnostics dt,
.admin-video-diagnostics dd,
.admin-video-diagnostics p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.admin-video-diagnostics dt {
  color: #687386;
  font-weight: 900;
}

.admin-video-diagnostics dd {
  overflow-wrap: anywhere;
  color: #172032;
  font-weight: 800;
}

.admin-video-diagnostics p {
  color: #687386;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-mini-row {
  display: grid;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.admin-mini-row strong {
  color: #172032;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.admin-mini-row span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

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

.admin-log-grid h3 {
  margin-top: 0;
}

.admin-log-row small {
  color: #8a95a6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-log-row.danger {
  border-color: #f3c0c0;
  background: #fff7f7;
}

.admin-log-row.ok {
  border-color: #bfe7cb;
  background: #f5fff8;
}

.admin-contact-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid #edf2f7;
  padding: 14px;
}

.admin-contact-body dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #edf2f7;
}

.admin-contact-body dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  border-bottom: 1px solid #edf2f7;
  padding: 9px 0;
}

.admin-contact-body dt,
.admin-contact-body dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.admin-contact-body dt {
  color: #667085;
  font-weight: 900;
}

.admin-contact-body dd {
  color: #172032;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-contact-body p {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.admin-contact-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  border-top: 1px solid #edf2f7;
  padding: 0 14px 14px;
}

.admin-order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-order-form strong,
.admin-order-form span,
.admin-order-form small {
  display: block;
}

.admin-order-form strong {
  color: #172032;
  font-size: 13px;
  font-weight: 950;
}

.admin-order-form span,
.admin-order-form small {
  color: #536174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.admin-order-form.is-dirty {
  border-color: var(--site-accent);
  background: var(--site-accent-softer);
}

.admin-order-form button:disabled,
.admin-order-form button:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.admin-order-form.compact button {
  width: 100%;
}

.admin-sortable-list {
  margin-top: 12px;
}

.admin-item {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.admin-item.is-dragging {
  border-color: var(--site-accent);
  box-shadow: 0 14px 28px rgba(31, 51, 82, 0.18);
  opacity: 0.72;
}

.admin-item.is-picked {
  border-color: var(--site-accent);
  background: var(--site-accent-softer);
}

.admin-item.is-drag-over {
  border-top-color: var(--site-accent);
}

.admin-item summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #172032;
  font-weight: 900;
  cursor: pointer;
}

[data-admin-review-create] > summary > .icon {
  flex: 0 0 auto;
}

[data-admin-review-create][open] > summary > .icon {
  transform: rotate(90deg);
}

.admin-drag-handle {
  display: inline-flex;
  flex: 0 0 auto;
  width: 48px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #f5f9ff;
  color: #315f96;
  padding: 0 8px;
  cursor: grab;
}

.admin-drag-handle:active {
  cursor: grabbing;
}

.admin-drag-handle .icon {
  width: 16px;
  height: 16px;
}

.admin-drag-handle span {
  color: #536174;
  font-size: 11px;
  font-weight: 950;
}

.admin-item summary > span:not(.admin-video-summary) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-notices-page .admin-list,
.admin-notices-page .admin-item {
  min-width: 0;
}

.admin-notices-page .admin-item > summary > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 10px 0;
}

.admin-taxonomy-summary,
.admin-model-summary {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.admin-taxonomy-summary strong,
.admin-model-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item summary small {
  flex: 0 0 auto;
  color: #687386;
  font-size: 12px;
}

.admin-video-summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}

.admin-video-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-video-summary strong {
  overflow: hidden;
  color: #172032;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-video-summary small {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-video-status {
  font-weight: 900;
}

.admin-identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  min-width: 0;
}

.admin-identity-link {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  color: #315f96;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-identity-link .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.admin-identity-link:focus-visible {
  outline: 2px solid #315f96;
  outline-offset: 2px;
}

.admin-video-status.is-warning {
  color: #d83b3b;
}

.admin-video-status.is-public {
  color: inherit;
}

.admin-video-id-copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-video-id-copy code {
  max-width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #f5f9ff;
  color: #435670;
  padding: 3px 7px;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-copy-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d8ee;
  border-radius: 999px;
  background: #eef6ff;
  color: #315f96;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.admin-hls-actions .admin-copy-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.admin-hls-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-hls-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
}

.admin-hls-badge.ok {
  background: #eaf8ef;
  color: #168a45;
}

.admin-hls-badge.warn {
  background: #fff7df;
  color: #946200;
}

.admin-hls-badge.danger {
  background: #fff1f1;
  color: #b42318;
}

.admin-hls-badge.neutral {
  background: #edf3fb;
  color: #687386;
}

.admin-video-thumb {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 72px;
  flex: 0 0 72px;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 6px;
  background: #edf3fb;
  color: #7a8798;
  font-size: 10px;
  font-weight: 900;
}

.admin-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.admin-pagination strong {
  color: #172032;
  font-size: 13px;
  font-weight: 900;
}

.admin-disabled-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  background: #f4f7fb;
  padding: 0 14px;
  color: #9aa5b5;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-item .admin-form,
.admin-item form:not(.admin-form) {
  margin: 0 12px 12px;
}

.admin-review-account {
  padding: 12px;
  overflow-wrap: anywhere;
}

.admin-review-account h3 {
  margin: 0;
  font-size: 16px;
}

.admin-review-account p {
  margin: 8px 0;
}

.admin-item.admin-review-account form {
  margin: 0;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 12px 12px;
}

.admin-monthly-approve-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.admin-monthly-approve-form label {
  display: grid;
  gap: 5px;
  color: #536174;
  font-size: 11px;
  font-weight: 900;
}

.admin-monthly-approve-form input {
  min-height: 40px;
  min-width: 150px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #172032;
  font: inherit;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-mini-form {
  grid-template-columns: minmax(0, 1.4fr) 92px 112px auto;
  align-items: end;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.admin-item.compact {
  margin-top: 8px;
}

.admin-purchase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.admin-purchase-item strong,
.admin-purchase-item span {
  display: block;
}

.admin-purchase-item strong {
  color: #172032;
  font-size: 14px;
  font-weight: 900;
}

.admin-purchase-item span {
  margin-top: 4px;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
}

.admin-purchase-item form {
  margin: 0;
}

#members { scroll-margin-top: 76px; }
.admin-member-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin: 20px 0 8px;
}
.admin-member-stats dt { color: #596574; font-size: 13px; }
.admin-member-stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 800; }
.admin-member-stats small { margin-left: 8px; font-size: 14px; font-weight: 400; }
.admin-member-rows { border-top: 1px solid #dfe6ef; }
.admin-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  color: #172032;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.admin-member-row::-webkit-details-marker { display: none; }
.admin-member-rows > a, .admin-member-detail { border-bottom: 1px solid #dfe6ef; }
.admin-member-row:hover { background: #f5f8fc; }
.admin-member-identity, .admin-member-state { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.admin-member-identity strong { font-size: 15px; }
.admin-member-row small { color: #687386; font-size: 12px; }
.admin-member-state b { font-size: 13px; font-weight: 600; }
.admin-member-state .is-active { color: #16805c; }
.admin-member-row .admin-member-suspended { color: #ae3434; }
.admin-member-row > .icon { width: 18px; height: 18px; }
.admin-member-detail[open] > summary > .icon { transform: rotate(90deg); }
.admin-member-editor { padding: 0 4px 20px; }
.admin-member-editor > form + form { margin-top: 12px; }
.admin-member-filter { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto auto; align-items: end; gap: 12px; }
.admin-member-filter > * { min-width: 0; }
.admin-member-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 18px 0; font-size: 13px; }
.admin-member-pagination [aria-disabled] { color: #97a0ad; padding: 10px 12px; }
@media (max-width: 640px) {
  .admin-member-row { grid-template-columns: minmax(0, 1fr) 104px 16px; gap: 8px; }
  .admin-member-filter { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .admin-member-filter > label:first-child { grid-column: 1 / -1; }
  .admin-member-pagination { gap: 6px; font-size: 12px; }
  .admin-member-pagination .admin-light-button, .admin-member-pagination [aria-disabled] { padding: 10px 5px; font-size: 12px; }
}

.admin-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 12px 12px;
}

.admin-member-meta span {
  border-radius: 999px;
  background: #f2f6fb;
  padding: 7px 10px;
  color: #536174;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .legal-table div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-contact-body dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legal-info-image,
  .legal-name-image {
    height: 34px;
    max-width: 100%;
  }

  .legal-name-image {
    max-width: 150px;
  }

  .legal-address-image {
    height: 24px;
  }

  .legal-phone-image {
    height: 24px;
  }

  .guest-hidden-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .guest-hidden-card a {
    grid-column: 1;
  }

  .admin-page {
    padding: 0;
  }

  .admin-top,
  .admin-card,
  .admin-stat-grid div {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .admin-top {
    display: grid;
  }

  .admin-section-head,
  .admin-video-search-form {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    display: grid;
  }

  .admin-delivery-source-head {
    display: grid;
  }

  .admin-delivery-source-head button {
    width: 100%;
  }

  .admin-form-grid,
  .admin-two-col,
  .admin-mini-form,
  .admin-health-grid,
  .admin-source-mode-grid,
  .admin-source-counts,
  .admin-catalog-counts,
  .admin-log-grid,
  .admin-go-live-summary,
  .admin-go-live-groups,
  .admin-go-live-item,
  .admin-order-form,
  .admin-upload-control,
  .admin-media-preview,
  .admin-sale-options {
    grid-template-columns: 1fr;
  }

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

  .admin-upload-control input[type="file"],
  .admin-upload-control button,
  .admin-catalog-actions,
  .admin-catalog-actions form,
  .admin-catalog-actions button,
  .admin-order-form button {
    width: 100%;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px;
  }

  .admin-item summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
  }

  .admin-video-summary {
    width: 100%;
  }

  .admin-video-thumb {
    width: 80px;
    flex-basis: 80px;
  }

  .admin-purchase-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-monthly-approve-form,
  .admin-monthly-approve-form label,
  .admin-monthly-approve-form input {
    width: 100%;
  }

  .monthly-status-panel,
  .member-subscription-card,
  .member-monthly-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-status-panel a,
  .member-subscription-card a,
  .member-monthly-entry a {
    width: 100%;
  }

  .sample-header {
    top: env(safe-area-inset-top, 0);
    justify-content: center;
    padding: 10px 72px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent);
    text-align: center;
  }

  .sample-header .round-icon,
  .sample-header > span {
    display: none;
  }

  .sample-header h1 {
    font-size: 16px;
  }

  .sample-header p {
    font-size: 10px;
  }

  .price-row,
  .sale-price-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-row b {
    font-size: 22px;
  }

  .sale-price-option {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .sale-price-option b {
    justify-self: start;
    font-size: 17px;
  }
}

.admin-transactions-page { min-width: 0; padding: 20px 0; }
.admin-transactions-page h2 { margin: 0 0 20px; font-size: 22px; }
.admin-transaction-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.admin-transaction-filter .admin-transaction-search { grid-column: 1 / -1; }
.admin-transaction-filter label, .admin-transaction-filter input, .admin-transaction-filter select { min-width: 0; max-width: 100%; }
.admin-transaction-filter-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-transaction-heading, .admin-transaction-row { display: grid; grid-template-columns: 140px minmax(125px, 1fr) minmax(160px, 2fr) 110px 115px 18px; gap: 16px; align-items: start; padding: 16px 12px; }
.admin-transaction-heading { color: #59636f; font-size: 12px; border-bottom: 1px solid #cbd4dd; }
.admin-transaction-detail { border-bottom: 1px solid #dce2e7; }
.admin-transaction-row { cursor: pointer; list-style: none; font-size: 13px; }
.admin-transaction-row::-webkit-details-marker { display: none; }
.admin-transaction-row:hover { background: #f2f7fc; }
.admin-transaction-row:focus-visible { outline: 2px solid #3879c4; outline-offset: -2px; }
.admin-transaction-row > span { min-width: 0; overflow-wrap: anywhere; }
.admin-transaction-row strong, .admin-transaction-row small { display: block; }
.admin-transaction-row strong { font-size: 13px; line-height: 1.6; }
.admin-transaction-row small { margin-top: 4px; color: #606a75; font-size: 12px; }
.admin-transaction-row > svg { width: 18px; height: 18px; transition: transform .15s; }
.admin-transaction-detail[open] .admin-transaction-row > svg { transform: rotate(90deg); }
.admin-transaction-amount { font-weight: 700; text-align: right; }
.admin-transaction-status { color: #606a75; font-size: 12px; }
.admin-transaction-status.is-paid { color: #14724e; }
.admin-transaction-body { padding: 4px 16px 20px; background: #f7f9fb; }
.admin-transaction-body dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0 0 16px; padding-top: 16px; }
.admin-transaction-body dt { color: #606a75; font-size: 12px; }
.admin-transaction-body dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.admin-transaction-body .admin-light-button { display: inline-flex; }
.admin-transaction-error { color: #ac3030; }
.home-sections-panel { max-width: 800px; padding: 20px; background: #fff; border: 1px solid #d9e1e5; border-radius: 8px; }
.home-sections-panel h2 { margin: 0; font-size: 18px; }
.home-sections-list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid #d9e1e5; }
.home-sections-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 0; border-bottom: 1px solid #d9e1e5; background: #fff; }
.home-sections-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.home-sections-name small { display: block; margin-top: 4px; color: #606a75; font-size: 12px; font-weight: 400; }
.home-sections-handle, .home-sections-controls button { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d9e1e5; border-radius: 6px; background: #fff; color: #355f80; }
.home-sections-handle { cursor: grab; touch-action: none; }
.home-sections-controls { display: flex; flex: 0 0 auto; gap: 4px; }
.home-sections-controls [data-home-section-up] .icon { transform: rotate(-90deg); }
.home-sections-controls [data-home-section-down] .icon { transform: rotate(90deg); }
.home-sections-controls button:disabled { opacity: .3; cursor: default; }
.home-sections-handle:focus-visible, .home-sections-controls button:focus-visible { outline: 2px solid #467798; outline-offset: 2px; }
.home-sections-row.is-dragging { background: #eaf4fc; box-shadow: inset 3px 0 #467798; }
.home-sections-status { min-height: 24px; color: #506271; font-size: 13px; }
.home-sections-panel [hidden] { display: none; }
.home-sections-panel .admin-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 400px) {
  .home-sections-panel { padding: 12px; }
  .home-sections-row { gap: 6px; }
  .home-sections-name { font-size: 14px; }
}
.home-discovery-index {
  margin: 20px 16px 0;
  padding: 17px 4px 22px;
  background: #fff;
  color: #193a53;
}
.home-discovery-index + .home-discovery-index {
  margin-top: 6px;
  margin-bottom: 4px;
}
.home-discovery-index-eyebrow {
  margin: 0 0 8px;
  color: #516d80;
  font-size: 10px;
  letter-spacing: 0;
}
.home-discovery-index-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b9d9ef;
}
.home-discovery-index-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-discovery-index-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: #467798;
  font-size: 11px;
  white-space: nowrap;
}
.home-discovery-index-more .icon {
  width: 13px;
  height: 13px;
}
.home-discovery-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-discovery-index-list > li {
  display: flex;
  min-width: 0;
}
.home-discovery-index-row {
  display: grid;
  flex: 1;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e0ebf2;
}
.home-discovery-index-number {
  min-width: 18px;
  color: #516d80;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.home-discovery-index-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-discovery-index-count {
  color: #516d80;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.home-discovery-index-count > span {
  margin-left: 3px;
  font-size: 10px;
}
.home-discovery-index-summary {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 17px;
  color: #516d80;
  font-size: 10px;
}
.home-discovery-index-row:hover {
  background: #f5faff;
}
.home-discovery-index-more:hover {
  text-decoration: underline;
}
.home-discovery-index a:focus-visible {
  outline: 2px solid #467798;
  outline-offset: 3px;
}
@media (max-width: 360px) {
  .home-discovery-index-heading h2 {
    font-size: 16px;
  }
  .home-discovery-index-list {
    column-gap: 12px;
  }
}
.admin-transactions-page .admin-list-count { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .admin-transaction-heading { display: none; }
  .admin-transaction-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 4px; }
  .admin-transaction-row [data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 400; color: #606a75; }
  .admin-transaction-row [data-label="取引内容"] { grid-column: 1 / -1; }
  .admin-transaction-row > svg { grid-column: 2; justify-self: end; }
  .admin-transaction-amount { text-align: left; }
}
@media (max-width: 600px) {
  .admin-transaction-filter { grid-template-columns: minmax(0, 1fr); }
  .admin-transaction-body dl { grid-template-columns: minmax(0, 1fr); }
}
