/* TW Fiction homepage. Every rule is scoped; other website routes retain their design. */
body:has(.video-home) {
  --home-amber: #efb923;
  --home-amber-ink: #775200;
  --home-charcoal: #202226;
  --home-cream: #f7f6f2;
  --home-white: #fff;
  --home-gray: #66686b;
  --home-border: #e6e3da;
  --paper: var(--home-cream);
  --surface: var(--home-white);
  --ink: var(--home-charcoal);
  --muted: var(--home-gray);
  --green: var(--home-amber-ink);
  --on-green: #fff;
  --soft: #f0ece1;
  --line: var(--home-border);
  --focus: #946300;
  --color-paper: var(--paper); --color-surface: var(--surface);
  --color-ink: var(--ink); --color-muted: var(--muted);
  --color-accent: var(--green); --color-accent-ink: var(--on-green);
  --color-rule: var(--line); --color-tint: var(--soft); --color-focus: var(--focus);
  --home-panel-radius: 16px;
  --home-section-gap: 40px;
  background: var(--paper); color: var(--ink);
}
html[data-theme="night"] body:has(.video-home) {
  --paper: #191a1d; --surface: #232529; --ink: #f4f2eb;
  --muted: #b5b5b4; --green: #f2c34e; --on-green: #1c1b17;
  --soft: #2d2e31; --line: #3b3c40; --focus: #f2c34e;
}
body:has(.video-home) .topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
body:has(.video-home) .topbar-inner { max-width: 1160px; gap: 24px; min-height: 76px; }
body:has(.video-home) .brand-kit-logo { width: 170px; height: 44px; }
body:has(.video-home) .top-nav { gap: 24px; font-size: 14px; }
body:has(.video-home) .top-nav a { min-height: 76px; }
body:has(.video-home) .top-search { width: 236px; border-radius: 24px; background: var(--paper); }
body:has(.video-home) .top-actions { gap: 12px; }
body:has(.video-home) #account a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--home-amber); color: #251d0a; font-weight: 700; }
body:has(.video-home) .main { max-width: 1208px; padding: 28px 24px 40px; }
body:has(.video-home) #mobileAccount { display: none; }
.video-home { font-size: 14px; }
.video-home .home-feature-banner.brand-banner { position: relative; isolation: isolate; overflow: hidden; height: 292px; border-radius: var(--home-panel-radius); background: #171d2a; margin: 0 0 28px; }
.video-home .brand-banner [data-brand-banner] { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; object-fit: cover; object-position: right center; border-radius: 0; }
.video-home .home-feature-banner::after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg,#141923 0%,#141923 39%,#14192396 58%,#14192300 85%); }
.video-home .home-banner-caption { position: relative; z-index: 1; width: 64%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px 40px; color: #fff; }
.video-home .home-eyebrow { color: #f4c65c; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.video-home .home-banner-caption .home-banner-title { font-family: var(--font-body); font-weight: 700; font-size: clamp(25px,3vw,36px); line-height: 1.5; margin: 0; text-wrap: balance; }
.video-home .home-banner-caption h1.home-eyebrow { font-family: var(--font-body); font-size: 12px; line-height: 1.6; letter-spacing: .03em; margin: 0 0 12px; }
.video-home .home-banner-description { font-size: 15px; color: #d5d7de; margin-top: 8px; }
.video-home .brand-banner .brand-banner-actions { padding-top: 24px; gap: 18px; }
.video-home .brand-banner-actions .solid { border: 0; border-radius: 7px; background: var(--home-amber); color: #251d0a; font-weight: 700; min-height: 44px; padding: 11px 20px; }
.video-home .brand-banner-actions .banner-directory { color: #fff; font-size: 13px; }
.video-home .discovery-section { margin-bottom: var(--home-section-gap); }
.video-home .discovery-section-head { min-height: 44px; gap: 16px; margin-bottom: 18px; }
.video-home .discovery-section-head h2 { color: var(--ink); font: 700 23px/1.5 var(--font-body); margin: 0; }
.video-home .discovery-section-head h2::before { content: ''; display: inline-block; width: 4px; height: 20px; vertical-align: -2px; border-radius: 2px; background: var(--home-amber); margin-right: 10px; }
.video-home .discovery-see-all { color: var(--green); font-size: 13px; font-weight: 600; }
.video-home #homeRatings { border-radius: var(--home-panel-radius); padding: 24px; border-color: var(--line); box-shadow: 0 5px 22px #16171b04; margin-bottom: 28px; }
.video-home .home-section-description { font-size: 12px; color: var(--muted); margin: 5px 0 0 14px; }
.video-home .rating-layout { display: block; }
.video-home .rating-podium { gap: 24px; padding-bottom: 24px; }
.video-home .rating-podium .discovery-open { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.video-home .rating-podium .discovery-cover { width: 100%; height: 256px; max-height: none; aspect-ratio: auto; border-radius: 10px; border-color: var(--line); }
.video-home .rating-podium .discovery-cover img { object-fit: contain; background: var(--soft); }
.video-home .rating-podium .discovery-copy { margin-top: 12px; }
.video-home .rating-podium .discovery-copy h3 { font-size: 16px; line-height: 1.65; min-height: 2.8em; }
.video-home .rating-podium .discovery-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; }
.video-home .rating-podium .discovery-meta > p { margin-top: 0; }
.video-home .rating-number { background: var(--home-amber); color: #30230a; width: 38px; height: 40px; font-size: 23px; border-radius: 9px 0 10px 0; top: 0; left: 0; }
.video-home .rating-podium .discovery-book:nth-child(2) .rating-number { background: #d9dfe4; color: #384453; }
.video-home .rating-podium .discovery-book:nth-child(3) .rating-number { background: #d5aa80; color: #38291a; }
.video-home .rating-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.video-home .rating-index li { padding: 12px 0; min-height: 92px; grid-template-columns: 26px minmax(0,1fr); }
.video-home .rating-index li::before { color: var(--muted); font-size: 18px; font-weight: 500; }
.video-home .rating-index .discovery-open { grid-template-columns: 44px minmax(0,1fr); gap: 14px; }
.video-home .rating-index .discovery-copy h3 { font-size: 14px; }
.video-home .rating-index .discovery-cover { border-radius: 4px; }
.video-home .source-rating { color: var(--green); }
.video-home .home-more-rankings { border-top: 1px solid var(--line); }
.video-home .home-more-rankings summary { cursor: pointer; width: fit-content; margin: 10px auto 0; padding: 12px 20px; min-height: 44px; color: var(--green); font-weight: 600; }
.video-home #discoveryGenres { padding: 0; border: 0; margin-bottom: 32px; scroll-margin-top: 100px; }
.video-home #discoveryGenres .discovery-section-head { margin-bottom: 8px; }
.video-home .discovery-genre-grid { gap: 10px; padding: 4px 2px 12px; }
.video-home .discovery-genre-grid a { background: var(--surface); border-color: var(--line); padding: 10px 22px; font-size: 14px; }
.video-home .discovery-genre-grid a:hover { background: var(--soft); border-color: var(--green); }
.video-home .catalog-welcome { margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.video-home .catalog-welcome > div { margin-right: auto; }
.video-home .catalog-welcome h2 { font: 700 23px/1.5 var(--font-body); }
.video-home .catalog-welcome .subheading { margin-top: 6px; color: var(--muted); }
.video-home .catalog-welcome .discovery-source { flex-basis: 100%; padding: 0; font-size: 11px; }
.video-home #importOpen { border-radius: 8px; font-size: 13px; }
.video-home #discoveryFeatured { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--home-panel-radius); background: var(--surface); }
.video-home .source-picks { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 24px; }
.video-home .source-picks .discovery-open { grid-template-columns: 48px minmax(0,1fr); }
.video-home .source-picks .discovery-copy h3 { font-size: 13px; }
.video-home .discovery-shelf { grid-auto-columns: calc((100% - 120px) / 6); gap: 24px; padding: 4px 2px 16px; }
.video-home .discovery-shelf .discovery-cover { border-radius: 9px; }
.video-home .discovery-shelf .discovery-copy h3 { font-size: 15px; line-height: 1.7; }
.video-home .shelf-controls { gap: 8px; }
.video-home .shelf-controls button { border-radius: 50%; background: var(--surface); color: var(--ink); border-color: var(--line); }
.video-home .shelf-controls button:not(:disabled):hover { background: var(--home-amber); color: #251d0a; }
.video-home .shelf-controls button:disabled { opacity: .38; }
.video-home .discovery-updates-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 24px; }
.video-home .discovery-update .discovery-open { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
.video-home .discovery-update .discovery-copy h3 { font-size: 14px; }
.video-home #homeIndexed .discovery-book-row { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 28px 24px; }
.video-home #homeIndexedBrowse { background: transparent; color: var(--green); border: 1px solid var(--line); border-radius: 8px; }
.video-home .cover-fallback { inset: 0; padding: 16px; flex-direction: column; justify-content: center; gap: 12px; background: #eee9dc; color: #524a3a; }
.video-home .home-cover-brand { font: 10px/1.4 Georgia,serif; letter-spacing: .19em; opacity: .7; }
.video-home .home-cover-title { font: 600 18px/1.65 var(--font-body); max-width: 20ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.video-home .home-cover-note { font: 10px/1.4 var(--font-body); opacity: .7; }
.video-home .rating-index .cover-fallback,.video-home .source-picks .cover-fallback,.video-home .discovery-update .cover-fallback { padding: 4px; }
.video-home .rating-index .home-cover-brand,.video-home .source-picks .home-cover-brand,.video-home .discovery-update .home-cover-brand,
.video-home .rating-index .home-cover-note,.video-home .source-picks .home-cover-note,.video-home .discovery-update .home-cover-note { display: none; }
.video-home .rating-index .home-cover-title,.video-home .source-picks .home-cover-title,.video-home .discovery-update .home-cover-title { font-size: 9px; line-height: 1.5; -webkit-line-clamp: 4; }
html[data-theme="night"] .video-home .cover-fallback { background: #303136; color: #ddd7c9; }
body:has(.video-home) :where(a,button,summary,input,select):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
body:has(.video-home) .page-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media(min-width:1000px) {
  .video-home .rating-podium .discovery-cover { height: 286px; }
}
@media(max-width:1100px) {
  body:has(.video-home) .topbar-inner { gap: 16px; }
  body:has(.video-home) .top-nav { gap: 16px; font-size: 13px; }
  body:has(.video-home) .top-search { width: 180px; }
  body:has(.video-home) .brand-kit-logo { width: 150px; }
  .video-home .source-picks { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px) {
  body:has(.video-home) .topbar { padding: 12px 20px; }
  body:has(.video-home) .topbar-inner { min-height: 0; gap: 10px; }
  body:has(.video-home) .top-search { width: 100%; }
  body:has(.video-home) .main { padding: 20px; }
  .video-home .home-feature-banner.brand-banner { height: 270px; }
  .video-home .home-banner-caption { width: 78%; padding: 24px; }
  .video-home .rating-podium { gap: 16px; }
  .video-home .rating-podium .discovery-cover { height: 230px; }
  .video-home .rating-podium .discovery-copy h3 { font-size: 14px; }
  .video-home .discovery-shelf { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; }
  .video-home #homeIndexed .discovery-book-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .video-home .discovery-updates-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body:has(.video-home) { --home-section-gap: 30px; }
  body:has(.video-home) .topbar { padding: 10px 16px; }
  body:has(.video-home) .main { padding: 16px; }
  body:has(.video-home) .topbar-inner { gap: 8px; }
  body:has(.video-home) .brand-kit-logo { width: 144px; height: 40px; }
  body:has(.video-home) #account a { padding-inline: 10px; font-size: 12px; }
  .video-home .home-feature-banner.brand-banner { height: 264px; margin-bottom: 20px; border-radius: 12px; }
  .video-home .brand-banner [data-brand-banner] { width: 160%; max-width: none; opacity: .65; }
  .video-home .home-feature-banner::after { background: linear-gradient(90deg,#141923f5,#1419238a); }
  .video-home .home-banner-caption { padding: 24px 20px; width: 100%; }
  .video-home .home-banner-caption .home-banner-title { font-size: 27px; max-width: 13ch; line-height: 1.5; }
  .video-home .home-banner-caption h1.home-eyebrow { font-size: 11px; margin-bottom: 8px; }
  .video-home .home-banner-description { font-size: 13px; }
  .video-home .home-eyebrow { font-size: 11px; margin-bottom: 8px; }
  .video-home .brand-banner .brand-banner-actions { padding-top: 16px; gap: 6px 14px; }
  .video-home .brand-banner-actions .solid { padding-inline: 12px; font-size: 12px; }
  .video-home .brand-banner-actions .banner-directory { font-size: 12px; }
  .video-home #homeRatings { padding: 16px 12px; border-radius: 12px; margin-bottom: 24px; }
  .video-home .discovery-section-head { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
  .video-home .discovery-section-head h2,.video-home .catalog-welcome h2 { font-size: 20px; }
  .video-home .discovery-section-head h2::before { height: 17px; margin-right: 8px; }
  .video-home .home-section-description { font-size: 11px; margin-left: 12px; }
  .video-home .discovery-see-all { font-size: 12px; }
  .video-home #homeRatings .discovery-section-head { align-items: flex-start; }
  .video-home .rating-podium { gap: 10px; padding-bottom: 16px; }
  .video-home .rating-podium .discovery-cover { height: auto; aspect-ratio: 2 / 3; border-radius: 6px; }
  .video-home .rating-number { width: 26px; height: 28px; font-size: 17px; border-radius: 5px 0 6px 0; }
  .video-home .rating-podium .discovery-copy h3 { font-size: 12px; line-height: 1.65; }
  .video-home .rating-podium .source-rating { font-size: 10px; }
  .video-home .rating-podium .home-cover-title { font-size: 12px; }
  .video-home .rating-podium .cover-fallback { padding: 10px 6px; gap: 6px; }
  .video-home .rating-podium .home-cover-brand { font-size: 7px; letter-spacing: .06em; }
  .video-home .rating-podium .home-cover-note { font-size: 8px; }
  .video-home .rating-index { grid-template-columns: minmax(0,1fr); }
  .video-home .rating-index li { min-height: 88px; padding: 10px 0; }
  .video-home .rating-index .discovery-copy h3 { font-size: 13px; }
  .video-home .discovery-genre-grid a { font-size: 13px; padding-inline: 18px; }
  .video-home #discoveryFeatured { padding: 16px; }
  .video-home .source-picks { grid-template-columns: minmax(0,1fr); }
  .video-home .catalog-welcome .subheading { display: block; font-size: 12px; }
  .video-home .discovery-shelf { grid-auto-columns: calc((100% - 28px) / 2.25); gap: 14px; }
  .video-home .discovery-shelf .discovery-copy h3 { font-size: 13px; }
  .video-home .discovery-section-head:has(.shelf-controls) h2 { flex-basis: auto; }
  .video-home .shelf-controls { margin: 0 0 0 auto; }
  .video-home .shelf-controls button { min-width: 44px; min-height: 44px; }
  .video-home .discovery-updates-grid { grid-template-columns: minmax(0,1fr); }
  .video-home #homeIndexed .discovery-book-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .video-home .home-cover-title { font-size: 15px; }
}
@media(prefers-reduced-motion:reduce) {
  .video-home *, .video-home *::before, .video-home *::after { scroll-behavior: auto; transition: none; }
}
@media(max-width:360px) {
  body:has(.video-home) .brand-kit-logo { width: 88px; }
  body:has(.video-home) .top-actions { gap: 6px; }
  body:has(.video-home) #account a { padding-inline: 8px; }
}
