:root {
  color-scheme: light;
  --canvas: #f6f3ed;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #241f1a;
  --muted: #716a62;
  --line: #e5dfd6;
  --line-strong: #d4cabd;
  --brand: #d85d33;
  --brand-dark: #a83f20;
  --teal: #0f766e;
  --teal-soft: #e7f3f1;
  --gold: #d2a342;
  --hero: #2b241f;
  --danger: #b4362d;
  --shadow: 0 18px 50px rgba(61, 43, 29, 0.10);
  --shadow-small: 0 8px 24px rgba(61, 43, 29, 0.08);
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

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

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

button {
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.30);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px max(24px, calc((100vw - 1480px) / 2));
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid rgba(212, 202, 189, 0.88);
  box-shadow: 0 4px 18px rgba(61, 43, 29, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item,
.topbar-actions button,
.section-kicker button,
.section-heading button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-item {
  position: relative;
  padding: 12px 13px;
  border-radius: 9px;
  color: #5c544c;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item:hover {
  background: #f0ece5;
  color: var(--ink);
}

.nav-item.active {
  color: var(--brand-dark);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.global-search {
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 220px;
  max-width: 560px;
  height: 42px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
}

.global-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

.global-search input {
  min-width: 0;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.global-search button {
  min-width: 66px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-actions button {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar-actions button:hover {
  background: #eee9e1;
  color: var(--ink);
}

.retention-chip {
  padding: 7px 10px;
  border: 1px solid #a9cfca;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.featured-host {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 31%) 210px;
  min-height: 290px;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--hero);
  color: #fff;
  box-shadow: var(--shadow);
}

.featured-host.no-portrait {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.featured-copy {
  z-index: 2;
  align-self: center;
  padding: 42px 48px;
}

.channel-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.featured-copy h1 {
  max-width: 720px;
  margin: 12px 0 8px;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.featured-copy > p {
  max-width: 650px;
  margin: 0;
  color: #d9d0c7;
  font-size: 16px;
  line-height: 1.7;
}

.featured-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 20px;
}

.featured-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #cfc5bb;
  font-size: 13px;
}

.featured-facts strong {
  color: #fff;
  font-size: 22px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.download-button,
.show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-action:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.featured-media {
  position: relative;
  z-index: 1;
  align-self: end;
  height: 100%;
  padding-top: 24px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-availability {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  background: #211c18;
}

.featured-availability span {
  color: #9f958c;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.featured-availability strong {
  font-size: 20px;
}

.featured-availability small {
  color: #b8aea5;
  line-height: 1.6;
}

.host-rail-section,
.material-section,
.live-section {
  margin-top: 38px;
}

.section-kicker,
.section-heading,
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker > div,
.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-kicker h2,
.section-heading h1,
.section-heading h2,
.library-heading h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-kicker h2 {
  font-size: 22px;
}

.section-heading h1,
.section-heading h2,
.library-heading h1 {
  font-size: 30px;
}

.section-kicker span,
.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.section-kicker button,
.section-heading button {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.host-rail {
  display: grid;
  grid-auto-columns: 118px;
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 16px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #cfc5ba transparent;
}

.host-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 142px;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.host-rail-item:hover,
.host-rail-item.active {
  border-color: #d6cbbf;
  background: var(--surface-strong);
  box-shadow: var(--shadow-small);
}

.host-rail-item.active {
  border-color: rgba(216, 93, 51, 0.48);
}

.rail-avatar {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ece5dc;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.host-rail-item.active .rail-avatar {
  box-shadow: 0 0 0 2px var(--brand);
}

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

.rail-avatar.placeholder img {
  padding: 18px;
  object-fit: contain;
}

.all-avatar img {
  padding: 15px;
  object-fit: contain;
}

.host-rail-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.host-rail-item small {
  color: var(--muted);
  font-size: 11px;
}

.material-filter-bar,
.host-library-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.material-filter-bar label,
.host-library-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.material-filter-bar label:first-child,
.material-filter-bar label:nth-child(4),
.material-filter-bar label:nth-child(6) {
  flex: 0 0 136px;
}

.material-filter-bar label:nth-child(2),
.material-filter-bar label:nth-child(3),
.material-filter-bar label:nth-child(5) {
  flex: 1 1 170px;
}

.material-filter-bar label > span,
.host-library-filters label > span {
  color: #80776e;
  font-size: 11px;
  font-weight: 800;
}

.material-filter-bar select,
.host-library-filters select,
.host-library-filters input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.host-library-filters input {
  padding-right: 12px;
}

.material-filter-bar select:focus,
.host-library-filters select:focus,
.host-library-filters input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

#reset-filters {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

#reset-filters:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.highlight-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
  box-shadow: 0 6px 20px rgba(61, 43, 29, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: #cfbfae;
  box-shadow: 0 16px 34px rgba(61, 43, 29, 0.12);
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #e6ded4;
}

.material-cover,
.hover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: #16120f;
  transition: opacity 150ms ease;
}

.media-frame.preview-playing .hover-preview {
  opacity: 1;
}

.preview-hint {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(31, 24, 20, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.media-frame.preview-playing .preview-hint,
.media-frame.preview-failed .preview-hint {
  opacity: 0;
}

.media-frame figcaption {
  position: absolute;
  z-index: 5;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.duration-label {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(24, 20, 17, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid #d8d0c7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #665f58;
  font-size: 10px;
  font-weight: 900;
}

.status-badge.ready,
.status-badge.file_ready {
  border-color: #a9cfca;
  background: rgba(231, 243, 241, 0.95);
  color: var(--teal);
}

.status-badge.live,
.status-badge.recording {
  border-color: #edb2a0;
  background: #fff1ec;
  color: var(--brand-dark);
}

.status-badge.failed,
.status-badge.degraded,
.status-badge.retrying,
.status-badge.expired {
  border-color: #e2beb9;
  background: #fcebea;
  color: var(--danger);
}

.highlight-body {
  padding: 14px;
}

.highlight-body h2 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.highlight-body p,
.session-body p {
  margin: 0;
}

.account-line {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.material-meta,
.session-body > p {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.expiry {
  margin-top: 9px !important;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.expiry.urgent {
  color: var(--danger);
}

.download-button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-size: 12px;
}

.download-button:hover:not(:disabled) {
  background: #0a5d57;
}

.download-button:disabled {
  border-color: #d5cec5;
  background: #eee9e2;
  color: #958c83;
  cursor: not-allowed;
}

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

.session-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: 0 5px 18px rgba(61, 43, 29, 0.05);
}

.session-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #e7ded3;
}

.session-cover figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(24, 20, 17, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

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

.session-title-line h2,
.live-session-card h2 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-download {
  width: auto;
  margin-top: 0;
}

.show-more {
  min-width: 230px;
  margin: 22px auto 0;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

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

.live-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e9b8a8;
  border-radius: 14px;
  background: #fff8f4;
}

.live-session-card div {
  min-width: 0;
}

.live-session-card .status-badge {
  margin-bottom: 8px;
}

.live-session-card p,
.live-session-card > span {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.live-session-card > span {
  flex: 0 0 auto;
  max-width: 180px;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.library-heading {
  align-items: center;
  padding: 16px 0 10px;
}

.library-heading .eyebrow {
  color: var(--brand);
}

.library-heading h1 {
  margin-top: 7px;
  font-size: 40px;
}

.library-heading p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.data-trust {
  padding: 9px 12px;
  border: 1px solid #aed1cd;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.host-library-filters label:first-child {
  flex: 1 1 420px;
}

.host-library-filters label:not(:first-child) {
  flex: 0 1 200px;
}

.host-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

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

.host-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
  box-shadow: 0 5px 20px rgba(61, 43, 29, 0.05);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.host-card:hover,
.host-card.active {
  transform: translateY(-2px);
  border-color: rgba(216, 93, 51, 0.55);
  box-shadow: 0 14px 30px rgba(61, 43, 29, 0.11);
}

.host-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee8e0;
}

.host-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-card-media.placeholder img {
  width: min(92px, 46%);
  height: auto;
  margin: auto;
  object-fit: contain;
}

.host-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
}

.host-card-body > strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-card-body small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-card-tags,
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.host-card-tags i,
.profile-tags span {
  padding: 5px 8px;
  border: 1px solid #ddcec0;
  border-radius: 999px;
  background: #faf5ef;
  color: #7a503d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.host-card-summary {
  display: block;
  margin-top: 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.host-card-body b {
  display: block;
  margin-top: 11px;
  color: var(--teal);
  font-size: 12px;
}

.host-detail {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-small);
  scrollbar-color: #cfc5ba transparent;
}

.host-detail-head {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: #2b241f;
  color: #fff;
}

.host-detail-head > img {
  width: 116px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: #4a4038;
}

.host-detail-head > img.placeholder {
  padding: 28px;
  object-fit: contain;
}

.host-detail-head h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.host-detail-head p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #d3cac1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 20px 0;
  padding: 13px 14px;
  border: 1px solid #abd0cc;
  border-radius: 11px;
  background: var(--teal-soft);
  color: #3f6662;
}

.profile-source strong {
  color: var(--teal);
  font-size: 12px;
}

.profile-source span,
.profile-source small {
  font-size: 11px;
  line-height: 1.55;
}

.host-detail > section {
  margin: 0 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.host-detail > section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.profile-copy,
.host-detail li,
.missing-data {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.host-detail ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.missing-data {
  color: #9a8f84;
}

.profile-material-facts,
.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.profile-material-facts > span,
.commercial-grid > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf8f4;
}

.profile-material-facts strong,
.commercial-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-material-facts span,
.commercial-grid small {
  color: var(--muted);
  font-size: 10px;
}

.commercial-grid strong.missing,
.profile-tags .missing {
  color: #9a8f84;
}

.commercial-grid + .missing-data {
  margin-top: 10px;
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-highlights button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.profile-highlights img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.profile-highlights span {
  display: block;
  padding: 7px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.host-detail-actions .secondary-action {
  border-color: var(--teal);
  background: #fff;
  color: var(--teal);
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #2b241f;
}

.login-card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
}

.login-card h1 {
  margin: 12px 0;
  font-size: 38px;
  line-height: 1.12;
}

.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card .primary-action {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #241f1a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(34, 28, 24, 0.58);
  backdrop-filter: blur(3px);
}

dialog form {
  position: relative;
  padding: 28px;
}

dialog h2 {
  margin: 10px 0;
}

dialog p {
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

dialog .primary-action {
  width: 100%;
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 16px;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
    order: 4;
    margin: -2px 0 -5px;
  }

  .featured-host {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
  }

  .featured-availability {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 210px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
  }

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

  .material-filter-bar {
    flex-wrap: wrap;
  }

  .material-filter-bar label {
    flex: 1 1 150px !important;
  }

  .host-library-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.6fr);
  }

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .global-search {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .primary-nav {
    grid-row: 3;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .topbar-actions {
    justify-self: end;
  }

  .retention-chip {
    display: none;
  }

  main {
    width: min(100% - 32px, 900px);
    padding-top: 20px;
  }

  .featured-host {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  }

  .featured-copy {
    padding: 34px;
  }

  .featured-availability {
    display: none;
  }

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

  .session-grid,
  .live-session-list {
    grid-template-columns: 1fr;
  }

  .host-library-layout {
    grid-template-columns: 1fr;
  }

  .host-detail {
    position: static;
    max-height: none;
  }

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

@media (max-width: 700px) {
  .topbar {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand span {
    font-size: 16px;
  }

  #logout {
    display: none;
  }

  main {
    width: min(100% - 24px, 660px);
  }

  .featured-host {
    display: block;
    min-height: 0;
  }

  .featured-copy {
    position: relative;
    z-index: 3;
    padding: 28px 24px;
  }

  .featured-copy h1 {
    font-size: 34px;
  }

  .featured-media {
    height: 250px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }

  .featured-media img {
    border-left: 0;
    object-position: center 20%;
  }

  .section-heading h1,
  .section-heading h2,
  .library-heading h1 {
    font-size: 25px;
  }

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

  .material-filter-bar,
  .host-library-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #reset-filters {
    width: 100%;
  }

  .session-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .replay-download {
    grid-column: 1 / -1;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .topbar-actions {
    display: none;
  }

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

  .brand {
    justify-self: center;
  }

  .global-search {
    grid-row: 2;
  }

  .primary-nav {
    grid-row: 3;
  }

  .highlight-grid,
  .host-grid,
  .material-filter-bar,
  .host-library-filters {
    grid-template-columns: 1fr;
  }

  .highlight-grid {
    width: min(100%, 330px);
    margin-left: auto;
    margin-right: auto;
  }

  .host-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .host-card-media {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .host-detail-head {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 18px;
  }

  .host-detail-head > img {
    width: 88px;
  }

  .profile-material-facts,
  .commercial-grid,
  .host-detail-actions {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 28px;
  }

  .login-card h1 {
    font-size: 31px;
  }
}

@media (hover: none) {
  .preview-hint {
    display: none;
  }

  .highlight-card:hover,
  .host-card:hover {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-09 homepage direction 2: portrait-first content storefront */
:root {
  --canvas: #f7f7f5;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #1f1f1d;
  --muted: #716f6a;
  --line: #e8e6e1;
  --line-strong: #d8d4cc;
  --brand: #c4513a;
  --brand-dark: #963824;
  --teal: #176f66;
  --teal-soft: #edf6f4;
  --shadow: 0 18px 50px rgba(35, 31, 27, 0.08);
  --shadow-small: 0 7px 22px rgba(35, 31, 27, 0.07);
}

body {
  background: var(--canvas);
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(224, 221, 215, 0.92);
  box-shadow: 0 2px 14px rgba(35, 31, 27, 0.04);
}

main {
  width: min(1360px, calc(100% - 48px));
  padding-top: 20px;
}

.home-intro {
  grid-template-columns: minmax(440px, 1fr) minmax(420px, 0.86fr);
  min-height: 222px;
  max-height: 222px;
  border-color: #e4e0d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(35, 31, 27, 0.06);
}

.intro-copy {
  padding: 30px 38px;
}

.intro-copy h1 {
  margin: 7px 0 6px;
  font-size: clamp(30px, 3vw, 42px);
}

.intro-copy > p {
  font-size: 13px;
}

.intro-facts {
  margin-top: 15px;
}

.intro-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px 16px 0;
}

.intro-preview {
  flex: 0 1 108px;
  width: 108px;
  height: 190px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(31, 28, 24, 0.13);
}

.intro-preview img {
  object-fit: cover;
}

.host-rail-section,
.material-section,
.live-section {
  margin-top: 22px;
}

.host-rail {
  grid-auto-columns: 148px;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 8px;
}

.host-rail-item {
  grid-template-rows: 78px auto;
  min-height: 120px;
  border-radius: 12px;
  box-shadow: none;
}

.host-rail-item:hover,
.host-rail-item.active {
  box-shadow: 0 7px 20px rgba(35, 31, 27, 0.08);
}

.rail-avatar {
  height: 78px;
  background: #f0eee9;
}

.rail-avatar.placeholder img,
.all-avatar img {
  padding: 20px;
}

.rail-copy {
  padding: 8px 9px 9px;
}

.material-filter-bar {
  position: sticky;
  top: 72px;
  z-index: 12;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(35, 31, 27, 0.045);
  backdrop-filter: blur(12px);
}

.material-filter-bar label {
  gap: 4px;
}

.material-filter-bar select,
#reset-filters {
  min-height: 36px;
  height: 36px;
  font-size: 12px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 24px;
}

.highlight-grid,
.session-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 13px;
}

.highlight-card,
.session-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(35, 31, 27, 0.055);
}

.media-frame,
.session-cover {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  background: #1e1d1b;
}

.media-frame .material-cover,
.media-frame .hover-preview,
.session-cover .material-cover {
  object-fit: cover;
}

.media-frame[data-orientation="landscape"] .material-cover,
.media-frame[data-orientation="landscape"] .hover-preview,
.session-cover[data-orientation="landscape"] .material-cover,
.media-frame[data-orientation="square"] .material-cover,
.media-frame[data-orientation="square"] .hover-preview,
.session-cover[data-orientation="square"] .material-cover {
  object-fit: contain;
}

.orientation-label {
  background: rgba(255, 255, 255, 0.92);
}

.highlight-body {
  padding: 13px 14px 14px;
}

.highlight-body h2 {
  min-height: 40px;
  font-size: 14px;
}

.session-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
}

.session-body {
  flex: 1;
  padding: 13px 14px 10px;
}

.session-title-line {
  align-items: flex-start;
  justify-content: space-between;
}

.session-title-line h2 {
  font-size: 15px;
}

.replay-download {
  width: auto;
  margin: 0 14px 14px;
}

.highlight-grid .empty-state,
.session-grid .empty-state {
  min-height: 72px;
  padding: 18px 24px;
  flex-direction: row;
  border-radius: 12px;
  background: #fff;
}

.highlight-grid .empty-state span,
.session-grid .empty-state span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .home-intro {
    grid-template-columns: minmax(360px, 1fr) minmax(350px, 0.82fr);
  }

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

@media (max-width: 900px) {
  main {
    width: min(100% - 32px, 860px);
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .intro-gallery {
    padding-right: 16px;
  }

  .intro-preview {
    flex-basis: 95px;
    width: 95px;
    height: 169px;
  }

  .material-filter-bar {
    position: static;
  }

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

@media (max-width: 700px) {
  .home-intro {
    display: block;
    max-height: none;
  }

  .intro-gallery {
    min-height: 205px;
    padding: 0 20px 18px;
  }

  .intro-preview {
    height: 185px;
    width: 104px;
    flex-basis: 104px;
  }

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

@media (max-width: 500px) {
  .highlight-grid,
  .session-grid {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto;
  }

  .highlight-grid .empty-state,
  .session-grid .empty-state {
    flex-direction: column;
  }

  .highlight-grid .empty-state span,
  .session-grid .empty-state span {
    padding-left: 0;
    border-left: 0;
  }
}

/* 2026-09 homepage direction 1: compact third-party material marketplace */
.topbar {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 2px 14px rgba(61, 43, 29, 0.045);
}

.brand img {
  width: 34px;
  height: 34px;
}

.global-search {
  height: 40px;
}

main {
  width: min(1320px, calc(100% - 48px));
  padding-top: 22px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(480px, 1.08fr);
  min-height: 178px;
  overflow: hidden;
  border: 1px solid #eadfd2;
  border-radius: 20px;
  background: linear-gradient(120deg, #fff9f0 0%, #fffdf9 57%, #f0ece4 100%);
  box-shadow: 0 12px 36px rgba(61, 43, 29, 0.075);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
}

.intro-copy .channel-label {
  color: var(--brand-dark);
}

.intro-copy h1 {
  margin: 7px 0 5px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.intro-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}

.intro-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #6e655c;
  font-size: 12px;
}

.intro-facts strong {
  color: var(--ink);
  font-size: 20px;
}

.intro-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 18px 20px 18px 0;
}

.intro-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  background: #241f1a;
  box-shadow: 0 8px 22px rgba(47, 34, 24, 0.15);
  cursor: pointer;
}

.intro-preview:hover img {
  transform: scale(1.035);
}

.intro-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.intro-preview span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(23, 19, 16, 0.74);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.intro-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed #d9cfc3;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
}

.intro-empty img {
  width: 40px;
  height: 40px;
}

.host-rail-section,
.material-section,
.live-section {
  margin-top: 25px;
}

.section-kicker h2 {
  font-size: 20px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 25px;
}

.host-rail {
  grid-auto-columns: 154px;
  gap: 11px;
  margin-top: 12px;
  padding: 3px 2px 10px;
}

.host-rail-item {
  display: grid;
  grid-template-rows: 92px auto;
  align-items: stretch;
  gap: 0;
  min-height: 139px;
  overflow: hidden;
  padding: 0;
  border-color: var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
}

.host-rail-item:hover,
.host-rail-item.active {
  border-color: #cbbbad;
  background: var(--surface-strong);
  box-shadow: 0 9px 24px rgba(61, 43, 29, 0.1);
}

.host-rail-item.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(216, 93, 51, 0.16), 0 9px 24px rgba(61, 43, 29, 0.1);
}

.rail-avatar {
  width: 100%;
  height: 92px;
  border: 0;
  border-radius: 0;
  background: #eee7de;
  box-shadow: none;
}

.host-rail-item.active .rail-avatar {
  box-shadow: none;
}

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

.rail-avatar.placeholder img,
.all-avatar img {
  padding: 23px;
  object-fit: contain;
}

.all-avatar {
  background: #25201c;
}

.rail-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px 9px;
  text-align: left;
}

.host-rail-item strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-rail-item small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-filter-bar {
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(61, 43, 29, 0.035);
}

.material-filter-bar label {
  gap: 4px;
}

.material-filter-bar select {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
}

#reset-filters {
  min-height: 34px;
  font-size: 12px;
}

.highlight-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 13px;
}

.highlight-card {
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(61, 43, 29, 0.055);
}

.media-frame {
  aspect-ratio: 16 / 9;
  background: #1d1916;
}

.media-frame .material-cover,
.media-frame .hover-preview,
.session-cover .material-cover {
  object-fit: contain;
}

.media-frame[data-orientation="landscape"] .material-cover,
.media-frame[data-orientation="landscape"] .hover-preview,
.session-cover[data-orientation="landscape"] .material-cover {
  object-fit: cover;
}

.preview-hint {
  top: 8px;
  left: 8px;
}

.orientation-label {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #544c45;
  font-size: 9px;
  font-weight: 900;
  pointer-events: none;
}

.media-frame figcaption {
  right: 8px;
  bottom: 8px;
  left: 8px;
}

.highlight-body {
  padding: 11px;
}

.highlight-body h2 {
  min-height: 36px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.38;
}

.download-button {
  min-height: 34px;
  margin-top: 9px;
}

.session-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 13px;
}

.session-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
}

.session-cover {
  aspect-ratio: 4 / 3;
  background: #1d1916;
}

.session-title-line {
  display: block;
}

.session-title-line h2 {
  overflow: hidden;
  margin: 1px 0 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-title-line .status-badge {
  padding: 3px 6px;
}

.replay-download {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .primary-nav {
    grid-row: auto;
    grid-column: auto;
    justify-content: flex-start;
    order: initial;
    margin: 0;
  }

  .home-intro {
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  }

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

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .global-search {
    grid-row: auto;
    grid-column: auto;
  }

  .home-intro {
    grid-template-columns: 1fr;
  }

  .intro-gallery {
    min-height: 170px;
    padding: 0 24px 22px;
  }

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

@media (max-width: 700px) {
  .intro-copy {
    padding: 25px 22px;
  }

  .intro-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 290px;
    padding: 0 20px 20px;
  }

  .host-rail {
    grid-auto-columns: 142px;
  }

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

@media (max-width: 460px) {
  .intro-gallery,
  .highlight-grid,
  .session-grid {
    grid-template-columns: 1fr;
  }

  .intro-gallery {
    min-height: 0;
  }

  .intro-preview {
    aspect-ratio: 16 / 9;
  }
}

/* Final precedence layer for the portrait-first storefront. */
.home-intro {
  grid-template-columns: minmax(440px, 1fr) minmax(420px, 0.86fr);
  min-height: 222px;
  max-height: 222px;
  border-color: #e4e0d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(35, 31, 27, 0.06);
}

.intro-copy {
  padding: 30px 38px;
}

.intro-copy h1 {
  margin: 7px 0 6px;
  font-size: clamp(30px, 3vw, 42px);
}

.intro-gallery {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 16px 24px 16px 0;
}

.intro-preview {
  flex: 0 1 108px;
  width: 108px;
  height: 190px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}

.host-rail {
  grid-auto-columns: 148px;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 8px;
}

.host-rail-item {
  grid-template-rows: 78px auto;
  min-height: 120px;
}

.rail-avatar {
  height: 78px;
}

.material-filter-bar {
  position: sticky;
  top: 72px;
  z-index: 12;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.highlight-grid,
.session-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 13px;
}

.media-frame,
.session-cover {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  background: #1e1d1b;
}

.media-frame .material-cover,
.media-frame .hover-preview,
.session-cover .material-cover {
  object-fit: cover;
}

.media-frame[data-orientation="landscape"] .material-cover,
.media-frame[data-orientation="landscape"] .hover-preview,
.session-cover[data-orientation="landscape"] .material-cover,
.media-frame[data-orientation="square"] .material-cover,
.media-frame[data-orientation="square"] .hover-preview,
.session-cover[data-orientation="square"] .material-cover {
  object-fit: contain;
}

.session-card {
  display: flex;
  grid-template-columns: none;
  grid-template-rows: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.session-body {
  flex: 1;
  padding: 13px 14px 10px;
}

.session-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.session-title-line h2 {
  font-size: 15px;
}

.replay-download {
  grid-column: auto;
  width: auto;
  margin: 0 14px 14px;
}

.highlight-grid .empty-state,
.session-grid .empty-state {
  min-height: 72px;
  padding: 18px 24px;
  flex-direction: row;
  border-radius: 12px;
  background: #fff;
}

.highlight-grid .empty-state span,
.session-grid .empty-state span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .home-intro {
    grid-template-columns: minmax(360px, 1fr) minmax(350px, 0.82fr);
  }

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

@media (max-width: 900px) {
  .home-intro {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .intro-gallery {
    min-height: 205px;
    padding: 0 20px 18px;
  }

  .intro-preview {
    flex-basis: 104px;
    width: 104px;
    height: 185px;
  }

  .material-filter-bar {
    position: static;
  }

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

@media (max-width: 500px) {
  .highlight-grid,
  .session-grid {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    margin-right: auto;
    margin-left: auto;
  }

  .highlight-grid .empty-state,
  .session-grid .empty-state {
    flex-direction: column;
  }

  .highlight-grid .empty-state span,
  .session-grid .empty-state span {
    padding-left: 0;
    border-left: 0;
  }
}
