/* Ivory magazine theme · 15ded72bce14 */
:root {
  --page: #f7f1e7;
  --surface: #fffaf2;
  --surface-strong: #fffdf8;
  --surface-rose: #f6e7e8;
  --surface-gold: #f1e5cf;
  --berry: #a52f55;
  --berry-deep: #76233f;
  --berry-soft: #d98ca3;
  --gold: #a87934;
  --gold-light: #d7bc86;
  --ink: #392c31;
  --muted: #74636a;
  --line: #d9cbbb;
  --line-strong: #bfa98c;
  --player: #57434b;
  --success: #267965;
  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --shadow: 0 8px 22px rgba(103, 69, 74, 0.09);
  --shadow-hover: 0 12px 28px rgba(103, 69, 74, 0.16);
  --container: 1380px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
iframe:focus-visible {
  outline: 3px solid rgba(165, 47, 85, 0.38);
  outline-offset: 3px;
}

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--berry);
  color: #fffdf8;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-top: 4px solid var(--berry);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.header-main {
  display: grid;
  gap: 14px;
  padding-block: 14px 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: var(--surface-gold);
  color: var(--berry-deep);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--berry-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.search-block {
  align-self: center;
}

.site-search > label {
  display: block;
  margin-bottom: 5px;
  color: var(--berry-deep);
  font-size: 12px;
  font-weight: 700;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffdf8;
  overflow: hidden;
}

.search-control:focus-within {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(165, 47, 85, 0.1);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
}

.search-control input::placeholder {
  color: #95868b;
}

.search-control button {
  border: 0;
  border-left: 1px solid var(--berry-deep);
  background: var(--berry);
  color: #fffdf8;
  cursor: pointer;
  padding: 0 20px;
  font-weight: 700;
}

.search-control button:hover {
  background: var(--berry-deep);
}

.hot-searches {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 11px;
}

.hot-searches__label {
  flex: 0 0 auto;
  margin-top: 2px;
  border-left: 3px solid var(--gold);
  color: var(--berry-deep);
  font-size: 12px;
  font-weight: 800;
  padding-left: 7px;
}

.hot-searches__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.hot-searches__links a {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-searches__links a:hover {
  color: var(--berry);
  text-decoration: underline;
}

.sponsor-banner,
.sponsor-banner.container {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100% !important;
  max-width: none !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  gap: 2px 6px;
}

.sponsor-banner__item,
.sponsor-banner__item a,
.sponsor-banner__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.sponsor-banner__item img {
  border-radius: 2px;
  object-fit: fill;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin-top: 2px;
  margin-bottom: 2px;
}

.category-nav a {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  place-items: center;
  background: var(--surface-gold);
  color: var(--ink);
  padding: 8px 5px;
  text-align: center;
  overflow-wrap: anywhere;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  background: var(--surface-rose);
  color: var(--berry-deep);
}

.category-nav__home {
  color: var(--berry-deep) !important;
  font-weight: 800;
}

.page-main {
  padding-block: 18px 24px;
}

.home-intro {
  display: grid;
  gap: 8px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0 0 13px 10px;
  border-bottom: 1px solid var(--line-strong);
  border-left: 3px solid var(--berry);
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Songti SC", serif;
}

h1 {
  margin-bottom: 0;
  color: var(--berry-deep);
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  margin-bottom: 22px;
}

.magazine-heading,
.split-heading,
.tab-heading,
.line-heading,
.related-heading {
  margin-bottom: 12px;
}

.magazine-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.magazine-number {
  color: var(--berry);
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1;
}

.magazine-heading p,
.split-heading__copy p,
.tab-heading p {
  margin: 0 0 1px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.magazine-heading h2,
.split-heading h2,
.tab-heading h2,
.line-heading h2,
.related-heading h2,
.catalog-toolbar h2 {
  margin: 0;
  color: var(--berry-deep);
  font-size: 21px;
  line-height: 1.2;
}

.heading-note {
  display: none;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-section {
  padding: 14px 12px 16px;
  border: 1px solid #e2cfd1;
  background: var(--surface-rose);
}

.split-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.split-heading__number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.split-heading__aside {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  border-top: 1px solid #d9bfc4;
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}

.latest-section {
  border-top: 3px double var(--line-strong);
  padding-top: 12px;
}

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

.tab-heading__index {
  border: 1px solid var(--gold-light);
  background: var(--surface-gold);
  color: var(--berry-deep);
  padding: 6px 9px;
  font-family: Georgia, serif;
}

.tab-heading__rule {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.video-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-card > a {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  background: var(--surface-gold);
  overflow: hidden;
}

.video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 9px 9px 10px;
}

.video-card h3 {
  display: -webkit-box;
  height: 2.9em;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-kicker,
.card-meta {
  display: block;
  overflow: hidden;
  color: var(--berry);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-kicker {
  margin-bottom: 3px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card-meta {
  margin-top: auto;
  padding-top: 5px;
  color: var(--muted);
}

.video-card:hover {
  border-color: var(--berry-soft);
  box-shadow: var(--shadow-hover);
}

.video-card:hover .video-cover img {
  filter: saturate(1.06);
  transform: scale(1.025);
}

.video-card--ranked {
  border-bottom: 3px solid var(--gold-light);
}

.video-card--accent {
  box-shadow: none;
}

.video-card--clean {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.catalog-header {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
}

.catalog-header__title p,
.watch-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.catalog-stats > div {
  border: 1px solid var(--line);
  background: var(--surface-gold);
  padding: 10px;
}

.catalog-stats dt {
  color: var(--muted);
  font-size: 11px;
}

.catalog-stats dd {
  margin: 2px 0 0;
  color: var(--berry-deep);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.catalog-body {
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}

.catalog-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.sort-options a,
.sort-options button,
.sort-options span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 5px 11px;
  cursor: pointer;
}

.sort-options .active,
.sort-options .current,
.sort-options a:hover {
  border-color: var(--berry);
  background: var(--berry);
  color: #fffdf8;
}

.empty-guidance {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  padding-top: 10px;
}

.empty-guidance strong {
  color: var(--berry-deep);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.page-link {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 5px 10px;
}

.page-link:hover,
.page-link.current,
.page-link.active {
  border-color: var(--berry);
  background: var(--berry);
  color: #fffdf8;
}

.search-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--surface-gold);
}

.search-summary__label {
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.search-summary__label span {
  color: var(--berry);
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.search-summary__label p,
.search-summary__content p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.search-summary__content {
  min-width: 0;
  padding: 0 12px 14px;
}

.search-summary__content h1 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--berry);
  padding-bottom: 7px;
}

.line-heading span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.search-empty-help {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--surface-strong);
  padding: 11px 13px;
}

.search-empty-help h2 {
  margin: 0;
  color: var(--berry-deep);
  font-family: inherit;
  font-size: 13px;
}

.search-empty-help p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.watch-layout {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}

.watch-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: min(100%, 960px);
  margin: 0 auto 12px;
}

.watch-heading__marker {
  border-right: 1px solid var(--gold-light);
  color: var(--berry);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  padding: 4px 11px 4px 0;
}

.watch-heading h1 {
  font-size: clamp(22px, 5vw, 34px);
}

.player-frame {
  position: relative;
  width: min(100%, 960px);
  max-width: 960px;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--player);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  overscroll-behavior: auto;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  overscroll-behavior: auto;
}

.video-actions-wrap {
  width: min(100%, 960px);
  min-height: 44px;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 8px 10px;
}

.video-actions-wrap button,
.video-actions-wrap a {
  min-height: 34px;
}

.related-section {
  margin-top: 22px;
  border-top: 3px double var(--line-strong);
  padding-top: 13px;
}

.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.related-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.related-heading p {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 4px solid var(--gold-light);
  background: #efe3d3;
  color: var(--ink);
}

.footer-inner {
  padding-block: 20px;
}

.friend-section {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 15px;
}

.footer-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
}

.section-index {
  color: var(--berry);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-heading h2 {
  margin: 0;
  color: var(--berry-deep);
  font-size: 18px;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.friend-links a {
  max-width: 180px;
  overflow: hidden;
  border: 1px solid #cfbda5;
  border-radius: var(--radius-sm);
  background: #f8efe2;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-links a:hover {
  border-color: var(--berry-soft);
  color: var(--berry-deep);
}

.footer-meta {
  display: grid;
  gap: 5px;
  padding-top: 14px;
}

.footer-brand {
  color: var(--berry-deep);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  font-weight: 700;
}

.footer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--page);
  padding: 20px;
}

.error-shell {
  display: grid;
  width: min(100%, 760px);
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.error-code {
  display: grid;
  min-height: 150px;
  place-items: center;
  background: var(--surface-gold);
  color: var(--berry);
  font-family: Georgia, serif;
  font-size: clamp(64px, 20vw, 120px);
  line-height: 1;
}

.error-copy {
  padding: 22px;
}

.error-copy h1 {
  margin-bottom: 8px;
}

.error-copy p {
  color: var(--muted);
}

.error-copy small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius-sm);
  background: var(--berry);
  color: #fffdf8;
  padding: 8px 16px;
  font-weight: 700;
}

.primary-link:hover {
  background: var(--berry-deep);
}

@media (min-width: 520px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

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

  .video-grid {
    gap: 14px;
  }

  .video-card__body {
    padding: 10px 11px 11px;
  }

  .video-card h3 {
    font-size: 14px;
  }

  .search-summary {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
  }

  .search-summary__label {
    display: grid;
    align-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .search-summary__content {
    align-self: center;
    padding: 15px;
  }
}

@media (min-width: 641px) {
  .sponsor-banner,
  .sponsor-banner.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main {
    grid-template-columns: minmax(230px, 0.8fr) minmax(320px, 1.2fr);
    gap: 28px;
    align-items: end;
  }

  .site-search > label {
    text-align: right;
  }

  .category-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-main {
    padding-block: 22px 28px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  }

  .home-intro > p {
    text-align: right;
  }

  .heading-note {
    display: block;
    justify-self: end;
  }

  .magazine-heading {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .split-heading {
    grid-template-columns: 52px minmax(180px, 0.7fr) minmax(240px, 1.3fr);
  }

  .split-heading__aside {
    grid-column: auto;
    margin: 0;
    border-top: 0;
    border-left: 1px solid #d9bfc4;
    padding: 3px 0 3px 16px;
  }

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

  .catalog-header {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    align-items: end;
  }

  .catalog-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .sort-options {
    justify-content: flex-end;
  }

  .related-heading p {
    display: block;
  }

  .error-shell {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (min-width: 900px) {
  .category-nav {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

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

  .recommendation-section {
    padding: 16px 18px 19px;
  }

  .catalog-body {
    padding-left: 16px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.4fr);
    gap: 28px;
    align-items: end;
  }

  .friend-section {
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
    padding-right: 24px;
    padding-bottom: 0;
  }

  .footer-meta {
    padding-top: 0;
  }
}

@media (min-width: 1240px) {
  .category-nav {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

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

  .video-grid--featured .video-card:first-child {
    border-color: var(--gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
