@font-face {
  font-family: "Manrope";
  font-style: normal;
  /* variable file: one download covers every weight the theme uses */
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0f;
  --bg-sunk: #06060a;
  --surface: #15151e;
  --surface-2: #1d1d28;
  --surface-3: #262633;
  --line: #262633;
  --line-soft: #1c1c26;

  --text: #f4f4f7;
  --text-dim: #a0a0b0;
  --text-faint: #6f6f80;

  --accent: #e6752a;
  --accent-hi: #ff9a52;
  --accent-ink: #ffffff;
  --accent-soft: rgba(230, 117, 42, 0.15);
  --accent-line: rgba(230, 117, 42, 0.42);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);

  /* chrome that has to flip with the theme */
  --header-bg: rgba(10, 10, 15, 0.86);
  --control-bg: rgba(10, 10, 15, 0.82);
  /* pills and badges sit on top of artwork, so their text stays light in
     both themes rather than following --text */
  --on-media: #f4f4f7;
  --on-media-dim: #b9b9c6;

  --container: 1680px;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(12px, 1.2vw, 20px);
  --header-h: 60px;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  /* Column flex + .page{flex:1 0 auto} keeps the footer down on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  fill: currentColor;
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  /* anywhere, not break-word: these are flex items, and only anywhere
     shrinks min-content so the box can actually wrap */
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(24px, 3.4vw, 38px);
}

h2 {
  font-size: clamp(19px, 2vw, 25px);
}

h3 {
  font-size: clamp(16px, 1.4vw, 19px);
}

.lead {
  color: var(--text-dim);
  max-width: 78ch;
}

.prose--narrow {
  max-width: 78ch;
}

.prose p + p {
  margin-top: 0.85em;
}

.prose a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  flex: 1 0 auto;
  padding-block: clamp(20px, 3vw, 36px) clamp(48px, 6vw, 80px);
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.page-head__text {
  flex: 1 1 min(100%, 520px);
}

.page-head h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.page-head__count {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0;
}

.page-head .lead {
  margin-top: 8px;
}

.breadcrumbs {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--surface-3);
}

.breadcrumbs a:hover {
  color: var(--accent-hi);
}

.breadcrumbs [aria-current] {
  color: var(--text-dim);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo__img {
  /* the file is 171x60; the header sets the height and width follows */
  height: 34px;
  width: auto;
}

@media (min-width: 900px) {
  .logo__img {
    height: 40px;
  }
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: var(--r-pill);
  color: var(--text);
}

.burger:hover {
  background: var(--surface);
}

.search {
  position: relative;
  flex: 0 1 clamp(200px, 20vw, 300px);
  display: none;
}

.search__form {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 6px 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}

.search__form:focus-within {
  border-color: var(--accent-line);
}

.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 14px;
}

.search__input::placeholder {
  color: var(--text-faint);
}

.search__submit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.2s var(--ease);
}

.search__submit:hover {
  background: var(--accent-hi);
}

.search__results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  padding: 6px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}

.search__results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
}

.search__results a:hover,
.search__results a.is-active {
  background: var(--surface-2);
}

.search__results .kind {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.search__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-faint);
}

.search.is-open {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.search.is-open .search__form {
  flex: 1;
  min-width: 0;
  height: 46px;
}

.search__close {
  display: none;
}

.search.is-open .search__close {
  display: grid;
}

.search.is-open .search__results {
  inset-inline: var(--gutter);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.72);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(320px, 86vw);
  height: 100%;
  padding: 14px 18px 32px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.drawer__list a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.drawer__list a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.drawer__list svg {
  color: var(--text-faint);
}

.drawer__title {
  margin: 24px 0 8px;
  padding-inline: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (min-width: 1000px) {
  .search {
    display: block;
  }

  /* two lists live here: the site's own nav and the affiliate slots */
  .nav {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .burger,
  .header__search-toggle {
    display: none;
  }
}

.site-footer {
  margin-top: auto;
  padding-block: clamp(36px, 5vw, 56px) 28px;
  background: var(--bg-sunk);
  border-top: 1px solid var(--line-soft);
}

.site-footer__top {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}

/* QA-13: link columns go two per row on phones only; from 768px the layout below takes over */
@media (max-width: 767px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

.site-footer__about .logo {
  margin-bottom: 14px;
}

.site-footer__about p {
  max-width: 46ch;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-nav__title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-nav li + li {
  margin-top: 7px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
}

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

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer__bottom p {
  max-width: 70ch;
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .site-footer__top {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}
input[type="submit"].btn,
input[type="button"].btn,
input[type="reset"].btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
}


.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hi);
}

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

.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.btn--ghost.is-active {
  color: var(--accent-hi);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn--block {
  width: 100%;
}

.topbar {
  display: none;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}

@media (min-width: 700px) {
  .topbar {
    display: block;
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.topbar__label {
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.topbar__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 500;
}

.topbar__list a:hover {
  color: var(--accent-hi);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  flex: none;
}

.header__shortcut,
.header__upload {
  display: none;
}

@media (min-width: 900px) {
  .header__shortcut,
  .header__upload {
    display: grid;
  }
}

.drawer__list--partners a {
  color: var(--text-faint);
  font-weight: 500;
}

.site-footer__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer__partners a:hover {
  color: var(--accent-hi);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag--count {
  gap: 8px;
}

.tag--count span {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--text-faint);
  font-weight: 500;
}

.tag:hover .tag--count span,
.tag--count:hover span {
  border-color: var(--accent-line);
}

.btn--pill {
  min-height: 38px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn--soft {
  background: var(--surface-2);
  color: var(--text);
}

.btn--soft:hover {
  background: var(--surface-3);
}

.auth {
  display: none;
  gap: 8px;
}

@media (min-width: 1100px) {
  .auth {
    display: flex;
  }
}

.drawer__auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.btn[aria-busy="true"] {
  pointer-events: none;
  color: var(--text-faint);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* QA-9: on mobile the tags above the video collapse to two rows (36px chip + 8px gap) */
.chips--collapsible.is-clamped {
  max-height: 80px;
  overflow: hidden;
}

.chips__more {
  display: none;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-hi);
  cursor: pointer;
}

.chip {
  min-width: 0;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip {
  cursor: pointer;
}

.chip:hover {
  color: var(--text);
  border-color: var(--surface-3);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge--hd {
  background: rgba(10, 10, 15, 0.78);
  color: var(--on-media);
  backdrop-filter: blur(4px);
}

.badge--new {
  background: var(--accent);
  color: var(--accent-ink);
}

.section {
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

/* Section after the tabs (model page): panels end with a grid that has no bottom margin */
[role="tabpanel"] ~ .section {
  margin-top: clamp(34px, 4.5vw, 56px);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}

.section__title svg {
  color: var(--accent-hi);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.section__link:hover {
  color: var(--accent-hi);
}

.section__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.section__link:hover svg {
  transform: translateX(3px);
}

.rail {
  position: relative;
}

.rail__track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* Without this, scroll-snap parks the first item under the padding. */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Negative margin + matching padding lets the track bleed past the
     container while its first item still starts on the grid. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.rail__track::-webkit-scrollbar {
  display: none;
}

.rail__track > * {
  scroll-snap-align: start;
}

/* Fixed width: with 1fr a couple of models stretch across the whole row */
.rail--celebs .rail__track {
  grid-auto-columns: 132px;
}

.rail--categories .rail__track {
  grid-auto-columns: minmax(220px, 1fr);
}.rail__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--control-bg);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.rail__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.rail__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.rail__nav--prev {
  left: -6px;
}

.rail__nav--next {
  right: -6px;
}

@media (hover: hover) and (min-width: 900px) {
  .rail__nav {
    display: grid;
  }
}

@media (min-width: 900px) {
  .rail--celebs .rail__track {
    grid-auto-columns: 150px;
  }

  .rail--categories .rail__track {
    grid-auto-columns: minmax(260px, 1fr);
  }}

.grid {
  display: grid;
  gap: var(--gap);
}

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

.grid--celebs,
.grid--categories,
.grid--albums {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .grid--posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--celebs,
.grid--categories,
.grid--albums {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .grid--posts {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .grid--categories,
.grid--albums {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid--posts {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--celebs {
    grid-template-columns: repeat(7, 1fr);
  }

  .grid--categories {
    grid-template-columns: repeat(6, 1fr);
  }

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

@media (min-width: 1500px) {
  .grid--posts {
    grid-template-columns: repeat(5, 1fr);
  }

  .grid--celebs {
    grid-template-columns: repeat(8, 1fr);
  }

  .grid--albums {
    grid-template-columns: repeat(6, 1fr);
  }
}

.card {
  position: relative;
  min-width: 0;
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-sm);
}

.card--celeb .card__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
}

.card--album .card__media {
  aspect-ratio: 3 / 4;
}

.card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s var(--ease);
  pointer-events: none;
}

.card:hover .card__thumb,
.card__media:focus-visible .card__thumb {
  transform: scale(1.07);
}

.card:hover .card__media::after,
.card:focus-within .card__media::after {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.card:focus-within .card__thumb {
  transform: scale(1.07);
}

.card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

/* Corner pill: duration on video cards, photo count on photo cards, views on
   covers. Flex rather than inline, or the icon sits on the text baseline and
   rides up out of the pill. */
.card__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.82);
  color: var(--on-media);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.card__duration svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.card__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card__play span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(0.85);
  transition: transform 0.25s var(--ease);
}

.card:hover .card__play {
  opacity: 1;
}

.card:hover .card__play span {
  transform: none;
}

.card__scrub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.card.is-previewing .card__scrub {
  opacity: 1;
}

.card__scrub i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.card.is-previewing .card__scrub i {
  animation: scrub 6s linear infinite;
}

@keyframes scrub {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.card__body {
  padding-top: 10px;
}

.card__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  /* QA-16: one line with an ellipsis on mobile, the previous two from 700px */
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

@media (min-width: 700px) {
  .card__title {
    -webkit-line-clamp: 2;
  }
}

.card:hover .card__title {
  color: var(--accent-hi);
}

.card--post .card__title,
.card--album .card__title {
  gap: 4px 14px;
  font-size: 13px;
}.card__byline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__byline a:hover {
  color: var(--accent-hi);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.card__meta li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card__meta li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.card--celeb {
  text-align: center;
}

.card--celeb .card__body {
  padding-top: 9px;
}

.card--celeb .card__title {
  -webkit-line-clamp: 1;
  font-size: 13.5px;
}

.card--celeb .card__meta {
  justify-content: center;
  margin-top: 2px;
  font-size: 12px;
}

.card--overlay .card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6, 6, 10, 0.9) 0%,
    rgba(6, 6, 10, 0.35) 45%,
    rgba(6, 6, 10, 0) 75%
  );
  transition: opacity 0.3s var(--ease);
}

.card--overlay .card__caption {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 2;
}

.card--overlay .card__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card--overlay .card__caption span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(16px, 2vw, 22px);
}

.toolbar__spacer {
  margin-left: auto;
}

.toolbar__count {
  font-size: 13px;
  color: var(--text-faint);
}

.dropdown {
  position: relative;
}

.dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.dropdown__btn:hover,
.dropdown__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--accent-line);
}

.dropdown__btn b {
  color: var(--text);
  font-weight: 700;
}

.dropdown__btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.dropdown__btn[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

/* QA-7: search suggestions dropdown (devbridge autocomplete plugin from main.js) */
.search {
  position: relative;
}

.autocomplete-suggestions {
  z-index: 60;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.autocomplete-suggestion {
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-suggestion strong {
  color: var(--text);
}

.autocomplete-selected,
.autocomplete-suggestion:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  /* Right-aligned: these menus sit at the right edge of the toolbar. */
  right: 0;
  z-index: 40;
  min-width: 190px;
  /* QA-10/14: never wider than the screen, keepInViewport() adjusts the position */
  max-width: calc(100vw - 24px);
  padding: 6px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dropdown__menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: left;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.dropdown__menu button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.dropdown__menu button[aria-checked="true"],
.dropdown__menu a[aria-checked="true"] {
  color: var(--accent-hi);
}

.dropdown__menu button svg,
.dropdown__menu a svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  opacity: 0;
}

.dropdown__menu button[aria-checked="true"] svg,
.dropdown__menu a[aria-checked="true"] svg {
  opacity: 1;
}

.alphabet {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(16px, 2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.alphabet::-webkit-scrollbar {
  display: none;
}

.alphabet__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  padding-right: 4px;
}

.alphabet a {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  scroll-snap-align: start;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.alphabet a:hover {
  color: var(--text);
  border-color: var(--surface-3);
}

.alphabet a[aria-current="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2.6vw, 30px);
}

/* QA-15: pagination on one line with horizontal scrolling on mobile */
.pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: clamp(24px, 3vw, 36px);
  overflow-x: auto;
  scrollbar-width: none;
}

.pagination::-webkit-scrollbar {
  display: none;
}

@media (min-width: 700px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.pagination [aria-current="page"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.pagination__gap {
  background: none;
  border-color: transparent;
  color: var(--text-faint);
  min-width: 28px;
  padding-inline: 0;
}

.pagination__step {
  gap: 6px;
  display: inline-flex !important;
  align-items: center;
}

.pagination__step svg {
  width: 15px;
  height: 15px;
}

.pagination [aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__num {
  display: none;
}

@media (min-width: 560px) {
  .pagination__num {
    display: grid;
  }
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: clamp(16px, 2vw, 22px);
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.tab[aria-selected="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}

.tab span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.hero {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
  margin-bottom: clamp(26px, 3.4vw, 42px);
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-sunk) 100%);
  border: 1px solid var(--line-soft);
}

.hero__media {
  flex: none;
  width: clamp(120px, 34vw, 190px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.hero--celeb .hero__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-pill);
}@media (min-width: 900px) {}

/* a playlist cover is a frame from the first clip, not box art */
.hero--playlist .hero__media {
  width: min(100%, 300px);
  aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
  .hero--playlist .hero__media {
    width: min(100%, 360px);
  }
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__body {
  min-width: 0;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__body h1 {
  overflow-wrap: anywhere;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.stat {
  min-width: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__bio {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 72ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.facts {
  display: grid;
  gap: 10px 24px;
  margin-top: 18px;
  font-size: 14px;
}

.facts div {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.facts dt {
  /* Fixed label column, so long values wrap instead of squeezing the term. */
  flex: none;
  min-width: 84px;
  color: var(--text-faint);
}

.facts dd {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Two columns only from 900px: at 768 the facts column squeezed hard
   enough to push long values out of the card. */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .hero .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel .facts {
  margin-top: 0;
}

.panel .facts dt {
  min-width: 74px;
}

.panel .facts a:hover {
  color: var(--accent-hi);
}

.entry-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 1200px) {
  .entry-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.entry-header {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.entry-header h1 {
  overflow-wrap: anywhere;
  /* QA-4: at most 32px on desktop, plus spacing so the tags do not stick to the title */
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 14px;
}

.entry-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.entry-byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex: none;
}

.entry-byline__who {
  min-width: 0;
}

.entry-byline__who strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.entry-byline__who a:hover {
  color: var(--accent-hi);
}

.entry-byline__who span {
  font-size: 12.5px;
  color: var(--text-faint);
}

.entry-byline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.action-btn:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.action-btn[aria-pressed="true"] {
  color: var(--accent-hi);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* Shares the centre play button with the media flow via [data-player]. */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunk);
  box-shadow: var(--shadow);
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.entry-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.entry-stats li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.entry-stats svg {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}

.rich-desc {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.rich-desc__body > * + * {
  margin-top: 0.7em;
}

.rich-desc:not(.is-open) .rich-desc__body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rich-desc b {
  color: var(--text);
}

.rich-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-hi);
}

.rich-desc__toggle[hidden] {
  display: none;
}

.rich-desc__toggle:hover {
  color: var(--text);
}

.rich-desc__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.rich-desc.is-open .rich-desc__toggle svg {
  transform: rotate(180deg);
}

.media-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-item {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  /* Isolates the blurred backdrop from the rest of the page paint. */
  contain: paint;
  border-radius: var(--r);
  background: var(--bg-sunk);
}

/* The wash behind narrow media. Blurred at 100px and scaled up by the
   compositor — blurring the full-width element instead costs far more paint. */
.media-item__back {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  filter: blur(6px) saturate(1.3);
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(22);
  pointer-events: none;
}

.media-item__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 76vh;
  display: flex;
  justify-content: center;
}

.media-item__frame img,
.media-item__frame video {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}

.media-item--photo .media-item__frame {
  cursor: zoom-in;
}

/* Chrome paints no centre play affordance for <video controls>, so the poster
   sits there looking inert. This one covers only the middle of the frame, well
   clear of the native control bar. */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(58px, 5.5vw, 86px);
  height: clamp(58px, 5.5vw, 86px);
  border-radius: var(--r-pill);
  /* sits on artwork, so it keeps the brand gradient in both themes rather
     than following --accent-hi, which flips with the palette */
  background: linear-gradient(158deg, #f78f2c 0%, #e6752a 52%, #c2560f 100%);
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 0 var(--accent-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease),
    visibility 0.25s, box-shadow 0.3s var(--ease);
}

.video-play svg {
  width: 36%;
  height: 36%;
  /* nudge the triangle so it reads as centred inside the disc */
  margin-left: 6%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 14px var(--accent-soft);
}

.video-play:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.is-playing .video-play {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.8);
}

/* The hub flow behaves like the album flow but sits above a full grid, so it
   is capped shorter to keep the page scannable. */
.media-flow--showcase .media-item__frame,
.media-flow--showcase .media-item__frame img,
.media-flow--showcase .media-item__frame {
  width: 100%;
}

.media-flow--showcase .media-item__frame video {
  max-height: 56vh;
}

.media-item__index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(6, 6, 10, 0.75);
  color: var(--on-media);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}

.media-item__kind {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.entry-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

/* QA-12: the sidebar related list is only needed where the sidebar is a column (from 1200px).
   Below that it duplicates the related block under the page. */
.entry-aside .panel--list {
  display: none;
}

@media (min-width: 1200px) {
  .entry-aside .panel--list {
    display: block;
  }
}

.panel {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panel__list li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.panel__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.panel__list a:hover {
  color: var(--accent-hi);
}

.panel__list img {
  width: 56px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}

.panel__list span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}

.faq {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.faq h2 {
  margin-bottom: 12px;
  font-size: 15px;
}

.faq__item + .faq__item {
  border-top: 1px solid var(--line-soft);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: color 0.2s var(--ease);
}

.faq__q:hover {
  color: var(--accent-hi);
}

.faq__q svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.2s var(--ease);
}

.faq__q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq__a {
  padding-bottom: 14px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 78ch;
}

.faq__a p + p {
  margin-top: 0.7em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.tag {
  min-width: 0;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tag:hover {
  color: var(--accent-hi);
  border-color: var(--accent-line);
}

.comments {
  margin-top: clamp(30px, 4vw, 44px);
}

.comments > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  /* QA-11: headings inherit overflow-wrap:anywhere, which breaks "Comments" mid-word */
  overflow-wrap: normal;
  word-break: keep-all;
}

.comments > h2 svg {
  width: 22px;
  height: 22px;
  color: var(--accent-hi);
}

.comments > h2 span {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

/* One bordered box: the textarea is borderless inside it, and the submit row
   sits underneath, so dragging the textarea taller cannot stretch the button. */
.comments__form {
  margin-block: 16px 22px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}

.comments__form:focus-within {
  border-color: var(--accent-line);
}

.comments__form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 240px;
  padding: 0;
  border: 0;
  background: none;
  resize: vertical;
  font-size: 14.5px;
  line-height: 1.55;
}

.comments__form textarea::placeholder {
  color: var(--text-faint);
}

.comments__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.comments__hint {
  font-size: 12.5px;
  color: var(--text-faint);
}

.comments__actions .btn {
  margin-left: auto;
  min-height: 38px;
  padding: 8px 22px;
}

.comment {
  display: flex;
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--line-soft);
}

.comment__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-weight: 700;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 3px;
}

.comment__head strong {
  font-size: 14px;
  font-weight: 700;
}

.comment__head time {
  font-size: 12px;
  color: var(--text-faint);
}

.comment p {
  font-size: 14.5px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.field-row {
  display: grid;
  gap: 6px;
}

.field-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}

.check input {
  /* nudged down so the box lines up with the first line of text */
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.check a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.field:focus {
  border-color: var(--accent-line);
}

.field::placeholder {
  color: var(--text-faint);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(4, 4, 8, 0.96);
  /* the viewer stays dark in both themes, so its chrome sets a light
     colour for the whole subtree instead of inheriting --text */
  color: var(--on-media);
  visibility: hidden;
  opacity: 0;
  /* visibility is deliberately not transitioned: an animated visibility
     keeps the computed value at hidden, so the dialog cannot take focus.
     Same pattern as .modal. */
  transition: opacity 0.24s var(--ease);
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter);
  font-size: 13px;
  color: var(--on-media-dim);
}

.lightbox__bar .icon-btn {
  margin-left: auto;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 4vw, 72px) var(--gutter);
  min-height: 0;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: rgba(21, 21, 30, 0.9);
  border: 1px solid var(--line);
  transform: translateY(-50%);
  transition: background 0.2s var(--ease);
}

.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav--prev {
  left: clamp(6px, 1.5vw, 20px);
}

.lightbox__nav--next {
  right: clamp(6px, 1.5vw, 20px);
}

.empty {
  padding: clamp(32px, 5vw, 56px) 20px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--surface-3);
  text-align: center;
  color: var(--text-faint);
}

.empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: var(--surface-3);
}

.empty h2 {
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--text);
}

.seo-block {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 14px;
}

.seo-block h2 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-dim);
}

.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    background 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

body.is-locked {
  overflow: hidden;
}

@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;
  }

  .card:hover .card__thumb {
    transform: none;
  }
}


/* Light theme -------------------------------------------------------------
   Only the tokens change; every component rule stays as it is. The palette
   follows the client's live site: warm cream ground, white cards, deep orange
   for anything that has to read as a link on a light background. */

:root[data-theme="light"] {
  --bg: #fff6ef;
  --bg-sunk: #ffecdf;
  --surface: #ffffff;
  --surface-2: #fff3e9;
  --surface-3: #ffe6d4;
  --line: #f0dccd;
  --line-soft: #f7e8dd;

  --text: #1a1208;
  --text-dim: #6b5a4d;
  --text-faint: #7a6a5a;

  /* the brand orange keeps the buttons, but link text needs a darker tone to
     stay legible on cream */
  --accent-hi: #a84410;
  --accent-soft: rgba(230, 117, 42, 0.14);
  --accent-line: rgba(230, 117, 42, 0.45);

  --shadow: 0 10px 30px rgba(120, 80, 40, 0.10);
  --shadow-sm: 0 4px 14px rgba(120, 80, 40, 0.08);

  --header-bg: rgba(255, 255, 255, 0.88);
  --control-bg: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .logo__img {
  /* the mark carries a white outline that disappears on a pale ground */
  filter: drop-shadow(0 0 1px rgba(120, 80, 40, 0.45));
}

.theme-toggle__moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle__moon {
  display: block;
}

/* The model page reuses the entry layout for its featured flow, so the inline
   players match the video page instead of spanning the whole container. *//* Ad slots ----------------------------------------------------------------
   Empty labelled boxes at the exact sizes the engine has to fill. Everything
   below the desktop breakpoint is hidden rather than resized, so a 300x250
   never squeezes the layout on a phone. */

.ad {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-faint);
}

.ad__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad--300x250 {
  width: 300px;
  height: 250px;
}

.ad--leaderboard {
  width: 100%;
  height: 100px;
}

.ad__label--wide {
  display: none;
}

@media (min-width: 760px) {
  .ad--leaderboard {
    height: 90px;
  }

  .ad__label--wide {
    display: block;
  }

  .ad__label--narrow {
    display: none;
  }
}

.ad-strip {
  padding-block: 14px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line-soft);
}

.ad-block {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 1024px) {
  .ad-block {
    display: flex;
  }
}

/* Model page: info on the left, media in the middle, ads on the right ------ */

.showcase-layout {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.showcase-side,
.showcase-ads {
  min-width: 0;
}

.showcase-ads {
  display: none;
}

@media (min-width: 1100px) {
  .showcase-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas: "side main";
    align-items: start;
  }

  .showcase-main {
    grid-area: main;
  }

  .showcase-side {
    grid-area: side;
  }
}

@media (min-width: 1440px) {
  .showcase-layout {
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    grid-template-areas: "side main ads";
  }

  .showcase-ads {
    grid-area: ads;
    display: grid;
    gap: 20px;
    align-content: start;
  }
}

.dropdown__menu a,
.dropdown__menu span[role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: left;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.dropdown__menu a:hover,
.dropdown__menu span[role="menuitem"]:hover {
  color: var(--text);
  background: var(--surface-2);
}

.user-menu__btn {
  gap: 8px;
  padding-inline: 8px 10px;
}

.user-menu__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  flex: none;
}

.user-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-menu__btn b {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__adv {
  margin-left: auto;
}

.topbar__adv:empty {
  display: none;
}

.ad-strip > .container {
  display: flex;
  justify-content: center;
}

.ad-strip img,
.ad-strip iframe {
  max-width: 100%;
  border: 0;
}

.ad-block {
  display: flex;
}

@media (min-width: 1024px) {
  .ad-block {
    display: flex;
  }
}

.ad-block > * {
  width: 100%;
}

.ad-block .footer-avd-wrap {
  height: 260px;
  padding: 0;
  border-radius: var(--r);
  overflow: hidden;
}

.ad-block iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.drawer__adv {
  padding: 4px 0 16px;
}

.drawer__adv:empty {
  display: none;
}

.fancybox-overlay {
  background: rgba(4, 4, 8, 0.86);
}

.fancybox-skin {
  padding: 0 !important;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.fancybox-close {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background-image: none;
  background-color: var(--surface-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.fancybox-close:hover {
  border-color: var(--accent-line);
  background-color: var(--surface-3);
}

.fancybox-close::before,
.fancybox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dim);
}

.fancybox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fancybox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fancybox-inner .modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 420px;
  max-width: 100%;
  padding: clamp(20px, 4vw, 30px);
}

.fancybox-inner .auth-modal--wide {
  width: 520px;
}

.fancybox-inner .modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fancybox-inner .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fancybox-inner .modal .field,
.fancybox-inner .modal .textfield,
.fancybox-inner .modal input[type="text"],
.fancybox-inner .modal input[type="email"],
.fancybox-inner .modal input[type="password"],
.fancybox-inner .modal textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.fancybox-inner .modal textarea {
  min-height: 110px;
  resize: vertical;
}

.fancybox-inner .modal .field:focus,
.fancybox-inner .modal .textfield:focus,
.fancybox-inner .modal textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface-3);
}

.fancybox-inner .modal .field.error,
.fancybox-inner .modal .textfield.error {
  border-color: #e5484d;
}

.fancybox-inner .modal .field-error,
.fancybox-inner .modal .generic-error {
  color: #ff8a8f;
  font-size: 13px;
  font-weight: 600;
}

.fancybox-inner .modal .field-error:empty,
.fancybox-inner .modal .generic-error:empty,
.fancybox-inner .modal .generic-error.hidden {
  display: none;
}

.fancybox-inner .modal .generic-error {
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
}

.fancybox-inner .modal .content,
.fancybox-inner .modal .popup-holder,
.fancybox-inner .modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fancybox-inner .modal .title,
.fancybox-inner .modal .popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fancybox-inner .modal .row_input,
.fancybox-inner .modal .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fancybox-inner .modal .field-label,
.fancybox-inner .modal .row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.fancybox-inner .modal .submit,
.fancybox-inner .modal input[type="submit"] {
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s var(--ease);
}

.fancybox-inner .modal .submit:hover,
.fancybox-inner .modal input[type="submit"]:hover {
  background: var(--accent-hi);
}

.fancybox-inner .modal .text_info,
.fancybox-inner .modal .text_agree {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.fancybox-inner .modal .close_btn,
.fancybox-inner .modal .close-btn {
  display: none;
}

.hero--profile {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .hero--profile {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.hero--profile .hero__media {
  width: clamp(110px, 26vw, 168px);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-pill);
}

.hero__noavatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-faint);
}

.hero__noavatar .icon {
  width: 46px;
  height: 46px;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.profile-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

a.profile-nav__link:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.profile-nav__link.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.profile-nav ~ div {
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.profile-nav ~ div:last-child {
  margin-bottom: 0;
}

.profile-nav__link em {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--text-faint);
}

.form-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.avatar-row__preview {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-faint);
}

.avatar-row__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-row__control {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.file-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-control [type="text"] {
  flex: 1;
  min-width: 0;
}

.file-control .button {
  flex: none;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.file-control [type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-control:hover .button {
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.file-control .field-error {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.choice-list__item:hover {
  border-color: var(--accent-line);
}

.choice-list__item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-list__item input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.choice-list__item label {
  display: grid;
  gap: 2px;
  font-size: 14px;
  cursor: pointer;
}

.choice-list__meta {
  font-size: 12.5px;
  color: var(--text-faint);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.choice-row .check {
  align-items: center;
}

.fancybox-inner .modal .selectbox {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.list-selector {
  position: relative;
}

.list-selector input[readonly] {
  cursor: pointer;
}

.list-selector-popup {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-height: 260px;
  margin-top: 6px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-3);
  box-shadow: var(--shadow);
}

.list-selector-popup .button-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.list-selector-popup .item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 14px;
}

.list-selector-popup .item:hover {
  background: var(--surface-2);
}

.list-selector-popup .item input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.list-selector-popup .item label {
  cursor: pointer;
}

.list-selector-popup .checkbox_fake {
  display: none;
}

.list-selector-popup .filter input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.auth-form__link {
  color: var(--accent-hi);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-form__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form__foot,
.auth-form__note {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

.auth-form__foot a,
.auth-form__note a {
  color: var(--accent-hi);
  font-weight: 600;
  cursor: pointer;
}

.auth-form__foot a:hover,
.auth-form__note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fancybox-inner .modal .success {
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

.fancybox-inner .modal .captcha-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
}

.fancybox-inner .modal .captcha-control .image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fancybox-inner .modal .captcha-control__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.fancybox-inner .modal .captcha-control .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.fancybox-inner .modal .captcha-control img {
  width: 165px;
  height: 68px;
  flex: none;
  border-radius: var(--r-sm);
}

.fancybox-inner .modal .captcha-control input[type="text"] {
  width: 220px;
  max-width: 100%;
}

.prose h2 {
  margin-bottom: 0.6em;
}

.prose h3 {
  margin: 1.4em 0 0.5em;
}

.prose ol,
.prose ul {
  margin: 0.85em 0;
  padding-left: 1.5em;
}

.prose ol {
  list-style: decimal;
}

.prose ul {
  list-style: disc;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--text-faint);
}

.prose .section:last-child {
  margin-bottom: 0;
}

.theme-light-only {
  display: none;
}

:root[data-theme="light"] .theme-light-only {
  display: block;
}

:root[data-theme="light"] .theme-dark-only {
  display: none;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

@media (min-width: 768px) {
  .network-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .network-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.network-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.network-card__logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
}

.network-card__logo img {
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.network-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}

.network-card:hover .network-card__title {
  color: var(--text);
}

.card__nothumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 28px 0;
  color: var(--text-dim);
}

.grid > .empty-state,
.rail__track > .empty-state,
.tag-cloud > .empty-state {
  grid-column: 1 / -1;
  width: 100%;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 2vw, 26px);
}

.dropdown__menu a,
.dropdown__menu span[role="menuitem"] {
  cursor: pointer;
}

.tag--strong {
  color: var(--text);
  border-color: var(--accent-line);
}

.search-form {
  display: flex;
  gap: 10px;
  flex: 0 1 min(100%, 420px);
}

.search-form .field {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.search-form .field:focus {
  outline: none;
  border-color: var(--accent-line);
}

.list-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.card__controls {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
}

.card__control {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  /* Over the card thumb: keep the dark pill in both themes (see .media-item__kind) */
  background: rgba(6, 6, 10, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.card__control .icon {
  width: 15px;
  height: 15px;
}

.card__control:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.card__control.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.card__select {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
}

.card__status {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  /* Over the card thumb: keep the dark pill in both themes (see .media-item__kind) */
  background: rgba(6, 6, 10, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.card__meta .is-negative {
  color: #ff8a8f;
}

.generic-error {
  grid-column: 1 / -1;
  color: #ff8a8f;
  font-weight: 600;
}

.generic-error:empty,
.generic-error.hidden {
  display: none;
}

.entry-sponsor {
  margin-bottom: 16px;
}

.entry-sponsor img {
  border-radius: var(--r);
}

.panel--list .panel__list img {
  border-radius: var(--r-sm);
  object-fit: cover;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.shots-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.comments__list-wrap.hidden {
  display: none;
}

.comment__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  flex: none;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment__body {
  min-width: 0;
}

.comments__form .field {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.comments__form .field:focus {
  outline: none;
  border-color: var(--accent-line);
}

.action-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.entry-aside .panel + .panel {
  margin-top: 16px;
}

.showcase-main > .rich-desc,
.entry-layout article > .rich-desc {
  margin-bottom: 22px;
}

.showcase-main > .panel,
.entry-layout article > .panel {
  margin-bottom: 22px;
}

.comments h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.comments h2 .icon {
  color: var(--text-faint);
}

.comments .success,
.comments .generic-error {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14px;
}

.comments__login {
  margin: 0 0 12px;
}

.comments .success.hidden,
.comments .generic-error.hidden {
  display: none;
}

.comments .generic-error {
  color: #ff8a8f;
}

.comments__form .row + .row {
  margin-top: 10px;
}

.comments__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.captcha-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-control img {
  width: 165px;
  height: 68px;
  flex: none;
  border-radius: var(--r-sm);
}

.captcha-control .textfield,
.captcha-control input[type="text"] {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.comments .captcha-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
}

.comments .captcha-control__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.comments .captcha-control .image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.comments .captcha-control .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.comments .captcha-control input[type="text"] {
  width: 220px;
  max-width: 100%;
}

.field-error:empty {
  display: none;
}

.field-error {
  color: #ff8a8f;
  font-size: 13px;
  font-weight: 600;
}

.entry-byline__actions .dropdown__btn {
  gap: 4px;
}

.entry-byline__actions .dropdown__menu {
  min-width: 220px;
}

.dropdown__menu .drop-flex {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.dropdown__menu .drop-flex > a:first-child {
  flex: 1 1 auto;
}

.dropdown__menu .drop-flex > a.delete {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-faint);
}

.dropdown__menu .drop-flex > a.delete:hover {
  color: var(--accent-hi);
  background: none;
}

.entry-byline__actions .dropdown__menu li.hidden {
  display: none;
}

.hidden {
  display: none;
}

.shots-grid .screen-item a,
.shots-grid .screen-item span {
  display: block;
}

.panel--list .panel__list li + li {
  margin-top: 2px;
}

.player .player-holder {
  position: absolute;
  inset: 0;
}

.player .player-wrap,
.player .embed-wrap,
.player .no-player {
  position: relative;
  width: 100%;
  height: 100% !important;
  padding-bottom: 0 !important;
}

.player #kt_player,
.player .embed-wrap iframe,
.player .no-player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player .no-player img {
  object-fit: cover;
}

.player .no-player .message {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px;
  background: linear-gradient(transparent, rgba(4, 4, 8, 0.9));
  color: var(--on-media);
  font-size: 14px;
  text-align: center;
}

.player .no-player .message a {
  color: var(--accent-hi);
}

.player .btn-play {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.entry-byline__avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text-faint);
}

.entry-byline__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-byline__avatar .icon {
  width: 20px;
  height: 20px;
}

.entry-byline__actions {
  position: relative;
}

.entry-byline__actions .voters {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hi);
  pointer-events: none;
}

.entry-byline__actions .voters:empty {
  display: none;
}

.hero__actions {
  position: relative;
}

.hero__actions .voters {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hi);
  pointer-events: none;
}

.hero__actions .voters:empty {
  display: none;
}

.entry-byline__actions .voters,
.hero__actions .voters {
  display: none;
}

.rate-like .is-vote-message {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.block-share form {
  display: grid;
  gap: 12px;
}

.block-share .item {
  min-width: 0;
}

.block-share .field-label,
.block-share .label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.block-share .textfield,
.block-share input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.block-share .textfield:focus,
.block-share input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-line);
}

.block-flagging form {
  display: grid;
  gap: 16px;
}

.block-flagging .box-inner-wrap {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .block-flagging .box-inner-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.block-flagging .title-text,
.block-flagging .field-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.block-flagging .checkbox-container {
  margin-bottom: 4px;
}

.block-flagging .label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.block-flagging .radio-input {
  width: 16px;
  height: 16px;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--accent);
  flex: none;
}

.block-flagging .checkmark {
  display: none;
}

.block-flagging .textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.block-flagging .textarea:focus {
  outline: none;
  border-color: var(--accent-line);
}

.block-flagging .bth-holder {
  margin-top: 12px;
}

.block-flagging .submit {
  min-height: 42px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.block-flagging .submit:hover {
  background: var(--accent-hi);
}

.block-flagging .success {
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--accent-hi);
  font-size: 14px;
}

.block-flagging .generic-error {
  color: #ff8a8f;
  font-size: 14px;
}

.hero--playlist {
  grid-template-columns: minmax(0, 1fr);
}

.hero--playlist .chips {
  margin-bottom: 16px;
}

.playlist-player {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.playlist-player .loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

.card__media.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.rail--posts .rail__track {
  grid-auto-columns: minmax(210px, 240px);
}

@media (min-width: 900px) {
  .rail--posts .rail__track {
    grid-auto-columns: minmax(240px, 280px);
  }
}

.fancybox-nav span {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background-image: none;
  background-color: var(--surface-2);
}

.fancybox-nav span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
}

.fancybox-prev span::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.fancybox-next span::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.fancybox-nav:hover span {
  border-color: var(--accent-line);
  background-color: var(--surface-3);
}

.media-item__index {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(6, 6, 10, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.media-item.is-locked .media-item__frame img {
  filter: blur(14px);
}

.album-message {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14.5px;
  color: var(--text-dim);
}

.album-message a {
  color: var(--accent-hi);
  font-weight: 600;
}

.entry-sponsor {
  margin-top: 16px;
}

.entry-sponsor img {
  border-radius: var(--r);
}

.block-album .gallery_wrapper > .media-item {
  flex: none;
}

.block-album .gallery_wrapper {
  max-height: 80vh;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.block-album .gallery_wrapper::-webkit-scrollbar {
  width: 10px;
}

.block-album .gallery_wrapper::-webkit-scrollbar-track {
  border-radius: var(--r-pill);
  background: var(--surface-2);
}

.block-album .gallery_wrapper::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface-2);
  border-radius: var(--r-pill);
  background: var(--line);
}

.block-album .gallery_wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 32px);
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.upload-form.hidden,
.upload-form.uploading-finished {
  display: none;
}

.upload-form__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.upload-form .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.upload-form .field-label.required::after {
  content: "*";
  margin-left: 4px;
  color: var(--accent-hi);
}

.upload-form .field,
.upload-form .textfield,
.upload-form .selectbox,
.upload-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-form textarea {
  min-height: 96px;
  resize: vertical;
}

.upload-form .field:focus,
.upload-form .textfield:focus,
.upload-form textarea:focus,
.upload-form .selectbox:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface-3);
}

.upload-form .field.error,
.upload-form .textfield.error {
  border-color: #e5484d;
}

.upload-form .field[disabled],
.upload-form .textfield[disabled],
.upload-form textarea[disabled] {
  opacity: 0.5;
}

.upload-form .field-error {
  color: #ff8a8f;
  font-size: 13px;
  font-weight: 600;
}

.upload-form .generic-error {
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: #ff8a8f;
  font-size: 14px;
  font-weight: 600;
}

.upload-form .success {
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--accent-hi);
  font-size: 14px;
}

.upload-options {
  display: grid;
  gap: 16px;
}

.upload-option {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
}

.upload-option .check {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.upload-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.upload-form__actions .btn {
  margin-left: auto;
}

.upload-form__actions .captcha-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface-2);
}

.upload-form__actions .captcha-control .image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.upload-form__actions .captcha-control img {
  width: 165px;
  height: 68px;
  border-radius: var(--r-sm);
}

.upload-form__actions .captcha-control input[type="text"] {
  width: 220px;
  max-width: 100%;
}

.upload-layout {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

@media (min-width: 1000px) {
  .upload-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.upload-layout__main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.upload-layout__side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.upload-preview {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-sunk);
}

.upload-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.upload-preview.is-disabled {
  opacity: 0.5;
}

.upload-preview__info {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.upload-preview__info:empty {
  display: none;
}

.upload-form__expand {
  justify-self: start;
}

.upload-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.upload-image {
  display: grid;
  gap: 8px;
}

.upload-image .img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
}

.upload-image .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-image__control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
}

.upload-image__control .disabled {
  opacity: 0.45;
}

.upload-rules {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

@media (min-width: 900px) {
  .upload-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.upload-rules p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-dim);
}

.upload-rules p:last-child {
  margin-bottom: 0;
}

.upload-form .progressbar {
  position: relative;
  height: 26px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}

.upload-form .progressbar .progress {
  width: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 0.2s var(--ease);
}

.upload-form .progressbar .text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.upload-form .progressbar.half-done .text {
  color: var(--accent-ink);
}

.showcase-layout--feed {
  margin-top: clamp(20px, 3vw, 30px);
}

.media-flow--showcase .media-item__frame {
  cursor: default;
}

.media-flow--showcase .media-item__frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  background: #000;
}

.media-flow--showcase .media-item__frame > a {
  display: block;
}

.media-flow--showcase .media-item__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.media-flow .list-albums-images a.is-hidden {
  display: none;
}

.media-flow--showcase .media-item {
  flex-direction: column;
}

.media-item__caption {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px 14px;
  background: rgba(6, 6, 10, 0.55);
}

.media-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-media);
  pointer-events: auto;
}

.media-item__title:hover {
  color: var(--accent-hi);
}

.media-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--on-media-dim);
}

.media-item__kind {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  /* Sits on top of an image, so it keeps the dark pill in both themes:
     --control-bg turns near-white in light mode and swallowed the label. */
  background: rgba(6, 6, 10, 0.72);
  color: #fff;
}

.media-item.is-private .media-item__frame img,
.media-item.is-premium .media-item__frame img {
  filter: blur(12px);
}

.media-flow--showcase .media-item__frame > a .video-play {
  pointer-events: none;
}
