/* ==========================================================================
   Musfiq R. Farhan Official — cinematic dark theme
   Loaded on every public page. Written mobile-first; every media block that
   reserves space uses aspect-ratio so nothing shifts while images decode.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ink: #f4f5f7;
  --ink-soft: #b6bac4;
  --ink-faint: #7d828f;

  --bg: #08090c;
  --bg-raise: #101218;
  --bg-card: #14161e;
  --bg-glass: rgba(12, 14, 20, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --brand: #e11d2e;
  --brand-bright: #ff3b4e;
  --brand-deep: #8f0f1b;
  --gold: #f0b429;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-float: 0 30px 70px -30px rgba(0, 0, 0, 0.95);

  --page: min(1440px, 100% - 2.5rem);
  --gutter: clamp(1rem, 4vw, 3.5rem);

  --font-ui: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Hind Siliguri', var(--font-ui);
  --font-display: 'Playfair Display', Georgia, serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:lang(bn),
.bn {
  font-family: var(--font-bn);
  line-height: 1.85;
}

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

img {
  height: auto;
  background: var(--bg-raise);
}

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

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

/*
 * A button with no styling of its own is not invisible: the browser paints it
 * grey with a 2px outset border. The gallery's full-size trigger is exactly
 * that — a transparent hit area stretched over the photo — and it covered
 * every image on the page with a grey rectangle, which is why the pictures
 * only appeared once the lightbox opened. Every other button here sets its
 * own background and border, so they are unaffected by this reset.
 */
button {
  background: none;
  border: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

/* --------------------------------------------------------------- love marquee */

.love-strip {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand-deep), #16070a 45%, var(--brand-deep));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.love-strip__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: var(--gutter);
}

.love-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.55rem 0.9rem 0.55rem 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd9dd;
}

.love-strip__count {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-variant-numeric: tabular-nums;
}

.love-strip__viewport {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

.love-strip__track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
}

/*
 * Only scroll once real notes have been loaded and the track duplicated.
 * Animating the single placeholder would just slide it out of view.
 */
.love-strip__track[data-ready] {
  animation: love-scroll 60s linear infinite;
}

.love-strip:hover .love-strip__track,
.love-strip:focus-within .love-strip__track {
  animation-play-state: paused;
}

@keyframes love-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.love-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: #ffe8ea;
  white-space: nowrap;
}

.love-chip__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.love-chip__initial {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.love-chip__name {
  font-weight: 700;
  color: #fff;
}

.love-chip__message {
  color: rgba(255, 255, 255, 0.78);
}

.love-strip__cta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  transition: background 0.2s var(--ease);
}

.love-strip__cta:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
  .about-hero {
    min-height: auto;
    align-items: flex-end;
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }

  .about-hero__media {
    background-position: 62% center;
  }

  .about-hero__title {
    max-width: none;
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .about-hero__copy {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero--release {
    min-height: 520px;
  }

  .love-strip__label span:not(.love-strip__count) {
    display: none;
  }
  .love-strip__cta {
    display: none;
  }
}

/* -------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding: 0.85rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/*
 * `img` carries a placeholder background so photos do not flash the page
 * through while they decode. The mark is a circle on transparency, so that
 * placeholder would show as a lit square behind it.
 */
.brand__mark,
.footer-brand img {
  background: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/*
 * The full name rather than the initials, so the header says who the site
 * belongs to. It has to survive a 320px phone next to the search and menu
 * buttons, hence the clamp: no breakpoint, it just gives back tracking and
 * size as the viewport narrows.
 */
.brand__name {
  font-weight: 800;
  font-size: clamp(0.66rem, 2.4vw, 0.82rem);
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
}

.brand__tag {
  margin-top: 0.3rem;
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  font-weight: 800;
}

.drawer__title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: #fff;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-inline-end: auto;
}

@media (min-width: 1040px) {
  .primary-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  /* The menu triggers are <button>s; without this they inherit the browser's
     grey button face and read as filled pills. */
  background: none;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover,
.nav-link[aria-expanded='true'],
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--ease);
}

.nav-link[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  translate: -50% 0;
  width: min(620px, 78vw);
  padding: 1.35rem;
  background: #0d0f15;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega__group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mega__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  transition: background 0.15s var(--ease);
}

.mega__title:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mega__title span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-bright);
  font-weight: 700;
}

.mega__sub {
  padding: 0.32rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.mega__sub:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

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

.button--primary:hover {
  background: var(--brand-bright);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
  color: #fff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button--whatsapp {
  background: #25d366;
  color: #062d15;
}

.button--whatsapp:hover {
  background: #34e77a;
}

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

/*
 * On a narrow phone the brand, the WhatsApp button, search and the menu
 * toggle no longer fit on one row. The button is dropped rather than
 * squeezed — the drawer opens with the same call to action at the top, and
 * the footer carries it too.
 */
@media (max-width: 560px) {
  .header-actions .button--whatsapp {
    display: none;
  }
}

.nav-toggle {
  display: grid;
}

@media (min-width: 1040px) {
  .nav-toggle {
    display: none;
  }
}

/* ------------------------------------------------------------ mobile drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
}

.drawer[hidden] {
  display: none;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.drawer__panel {
  position: relative;
  margin-left: auto;
  width: min(400px, 88vw);
  height: 100%;
  background: #0b0d13;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  padding-bottom: 3rem;
}

.drawer.is-open {
  pointer-events: auto;
}

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

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0b0d13;
  border-bottom: 1px solid var(--line);
}

.drawer__body {
  padding: 1rem 1.25rem;
}

.drawer__search {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

.accordion {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.accordion__trigger svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
  color: var(--brand-bright);
}

.accordion__trigger[aria-expanded='true'] svg {
  transform: rotate(45deg);
}

.accordion__panel {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.85rem;
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__panel a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.accordion__panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 860px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  margin-top: -74px;
  padding: 8rem var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

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

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(8, 9, 12, 0.55) 42%, rgba(8, 9, 12, 0.75) 100%),
    linear-gradient(to right, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.25) 62%, transparent 100%);
}

.hero__inner {
  width: 100%;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 1rem;
}

.hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero h1 em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.52em;
  letter-spacing: -0.01em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__official {
  max-width: 43rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__official-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__official-rule {
  width: 1.35rem;
  height: 2px;
  background: var(--brand-bright);
}

.hero__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.2rem;
  padding: 0.2rem 0.46rem;
  border: 1px solid rgba(120, 219, 164, 0.35);
  border-radius: 999px;
  color: #9de7bd;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

.hero__verified span {
  display: grid;
  width: 0.88rem;
  height: 0.88rem;
  place-items: center;
  border-radius: 50%;
  background: #35b875;
  color: #07150e;
  font-size: 0.62rem;
  line-height: 1;
}

.hero__official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.65rem;
}

.hero__official-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 2rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.36);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero__official-links a:hover,
.hero__official-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.hero__official-links img {
  display: block;
  width: 1.08rem;
  height: 1.08rem;
  object-fit: contain;
  border-radius: 0.22rem;
}

.hero__official-links a:nth-child(2) img,
.hero__official-links a:nth-child(3) img {
  width: 1.35rem;
  height: 0.82rem;
  border-radius: 0.16rem;
}

.about-hero {
  min-height: clamp(660px, 88vh, 920px);
  align-items: center;
  padding-top: 9rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.about-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.72) 42%, rgba(8, 9, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, 0.9) 0%, rgba(8, 9, 12, 0.1) 55%, rgba(8, 9, 12, 0.68) 100%),
    url('/assets/hero_red.png') center / cover no-repeat;
  filter: saturate(0.92) contrast(1.06);
}

.about-hero__inner {
  width: 100%;
  max-width: 800px;
}

.about-hero__title {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  color: #ffcf33;
  animation: about-title-colors 4s steps(1, end) infinite;
  text-wrap: balance;
}

.about-hero__copy {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.about-hero__copy p {
  margin: 0 0 1rem;
}

.about-hero__copy strong {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero--release {
  min-height: clamp(420px, 58vh, 640px);
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes about-title-colors {
  0%, 24.99% { color: #ffcf33; }
  25%, 49.99% { color: #63d391; }
  50%, 74.99% { color: #ff5261; }
  75%, 100% { color: #5db7ff; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__title { animation: none; color: #ffcf33; }
}

.hero__official-note {
  max-width: 38rem;
  margin: 0.58rem 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .hero__official-links {
    gap: 0.32rem;
  }

  .hero__official-links a {
    font-size: 0.65rem;
    padding-inline: 0.46rem;
  }
}

/* -------------------------------------------------------------------- rails */

.section {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.section--tight {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  margin-bottom: 1.1rem;
}

.section__title {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section__title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(var(--brand-bright), var(--brand-deep));
}

.section__blurb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.section__link {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.section__link:hover {
  color: var(--brand-bright);
}

.rail {
  position: relative;
}

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 42vw, 300px);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0.4rem var(--gutter) 1.25rem;
  scrollbar-width: none;
}

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

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

.rail--posters .rail__track {
  grid-auto-columns: clamp(160px, 30vw, 228px);
}

.rail__arrow {
  position: absolute;
  top: calc(50% - 1.5rem);
  translate: 0 -50%;
  z-index: 3;
  width: 44px;
  height: 64px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.rail:hover .rail__arrow:not([disabled]) {
  opacity: 1;
}

.rail__arrow:hover {
  background: rgba(20, 22, 30, 0.95);
}

.rail__arrow--prev {
  left: calc(var(--gutter) - 0.6rem);
}

.rail__arrow--next {
  right: calc(var(--gutter) - 0.6rem);
}

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

/* -------------------------------------------------------------------- cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #171a22, #0d0f14);
}

.card--poster .card__media {
  aspect-ratio: 2 / 3;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(6px);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.card__badge--live {
  background: var(--brand);
}

.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(8, 9, 12, 0.35);
  transition: opacity 0.25s var(--ease);
}

.card:hover .card__play,
.card:focus-within .card__play {
  opacity: 1;
}

.card__play span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #08090c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card__duration {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: rgba(8, 9, 12, 0.85);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem 1rem;
  flex: 1;
}

.card__kicker {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

.card__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__excerpt {
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.stars__value {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------- grid */

.grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  padding-inline: var(--gutter);
}

.grid--posters {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}

.grid--gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.figure:hover img {
  transform: scale(1.05);
}

.figure figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.75rem 0.85rem 0.7rem;
  font-size: 0.8rem;
  background: linear-gradient(transparent, rgba(6, 7, 10, 0.92));
}

/* ------------------------------------------------------------- page headers */

.page-head {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 100% at 0% 0%, rgba(225, 29, 46, 0.14), transparent 60%);
}

/*
 * A video page leads with the player: breadcrumb, player, then the title.
 * The head splits in two around it, so the breadcrumb strip loses its tall
 * padding and its rule, and the title block below the player loses the top
 * padding it would otherwise repeat.
 */
.page-head--watch {
  padding-block: clamp(1rem, 3vw, 1.75rem) clamp(0.75rem, 2vw, 1rem);
  border-bottom: 0;
}

.page-head--titled {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

.watch-lead {
  padding-inline: var(--gutter);
}

/* The player is the point of the page, so give it the width to say so. */
.watch-lead .player {
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 0;
}

/*
 * Whose video this is, when it is not ours. The structured data withholds the
 * licence claim, but a reader cannot see structured data — this is the half of
 * respecting someone's rights that a person can actually check.
 */
.media-credit {
  max-width: 1100px;
  margin: 0.7rem auto 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

.media-credit a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.media-credit a:hover {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.breadcrumb a:hover {
  color: var(--brand-bright);
}

.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  margin-bottom: 0.6rem;
}

.page-head p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.chip:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.chip[aria-current='page'],
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ------------------------------------------------------------------ article */

.article {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter);
}

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

.article__body {
  max-width: 74ch;
  font-size: 1.03rem;
  color: #dfe2e8;
  /* Article text is written by hand and can carry a long URL or an unbroken
     Bengali compound; on a narrow phone either one would push the page wider
     than the screen. Break inside the word rather than scroll the page. */
  overflow-wrap: anywhere;
}

.article__body > * + * {
  margin-top: 1.1rem;
}

.article__body h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 2.25rem;
}

.article__body h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.article__body ul,
.article__body ol {
  padding-left: 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.article__body a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body blockquote {
  border-left: 3px solid var(--brand);
  padding: 0.4rem 0 0.4rem 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

.article__body img {
  border-radius: var(--radius);
  width: 100%;
}

.article__aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel h2,
.panel h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.meta-row strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* The reading count, once Analytics has answered. */
.meta-row .views {
  font-variant-numeric: tabular-nums;
}

.meta-row .views::before {
  content: '👁 ';
  font-size: 0.9em;
}

/* --------------------------------------------------------------- sharing */

.share {
  margin-bottom: 1.25rem;
}

.share__button {
  gap: 0.45rem;
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
}

@media (min-width: 640px) {
  .share-sheet {
    place-items: center;
    padding: 1.5rem;
  }
}

.share-sheet__panel {
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.15rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  background: var(--bg-card);
}

@media (min-width: 640px) {
  .share-sheet__panel {
    border-radius: var(--radius-lg);
  }
}

.share-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.share-sheet__head h2 {
  font-size: 1.05rem;
}

.share-sheet__close {
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}

.share-sheet__close:hover {
  color: var(--ink);
}

.share-sheet__title {
  margin: 0.15rem 0 1rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-sheet__grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.share-sheet__item {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.76rem;
  text-decoration: none;
  text-align: center;
}

.share-sheet__item:hover,
.share-sheet__item:focus-visible {
  border-color: var(--brand);
  background: rgba(225, 29, 46, 0.12);
}

.share-sheet__foot {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.share-sheet__url {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-input, rgba(255, 255, 255, 0.05));
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.share-sheet__foot .button {
  white-space: nowrap;
}

/* Stop the page behind the sheet scrolling under it. */
body.is-sharing {
  overflow: hidden;
}

/* ------------------------------------------------------------------- player */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.player iframe,
.player video {
  width: 100%;
  height: 100%;
  border: 0;
}

.player__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(6, 7, 10, 0.35);
  cursor: pointer;
  color: #fff;
}

.player__start span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 16px 44px rgba(225, 29, 46, 0.45);
  transition: transform 0.2s var(--ease);
}

.player__start:hover span {
  transform: scale(1.08);
}

/* ------------------------------------------------------------------ ratings */

.rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.rating-summary__score {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.star-input {
  /* Positioned so the visually hidden radios below cannot escape the row and
     stretch the page — `.field input { width: 100% }` otherwise applies to
     them and pushes the document a few pixels wider than the viewport. */
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.star-input input[type='radio'] {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.star-input label {
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--line-strong);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--gold);
}

.star-input label:hover {
  transform: scale(1.15);
}

.star-input input:focus-visible + label {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.07);
}

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

.field--honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  font-size: 0.82rem;
  min-height: 1.3em;
  color: var(--ink-soft);
}

.form-status[data-state='error'] {
  color: #ff8a7a;
}

.form-status[data-state='success'] {
  color: #6ee7a0;
}

.review-list {
  display: grid;
  gap: 0.75rem;
}

.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.review p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-block: 0.35rem;
}

.review strong {
  font-size: 0.82rem;
}

/* --------------------------------------------------------------- love notes */

.note-wall {
  columns: 3 260px;
  column-gap: 1rem;
  padding-inline: var(--gutter);
}

/* On the home page the wall is a taste of the fan page, not the whole of it:
   six notes in wider columns so the section stays short. */
.note-wall--home {
  columns: 3 300px;
}

.home-notes__cta {
  padding-inline: var(--gutter);
  margin-top: 1.25rem;
}

.note {
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(225, 29, 46, 0.1), rgba(20, 22, 30, 0.9));
}

.note--pinned {
  border-color: rgba(240, 180, 41, 0.45);
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.14), rgba(20, 22, 30, 0.92));
}

.note__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.note__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}

.note__initial {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  font-weight: 800;
  flex-shrink: 0;
}

.note__name {
  font-weight: 700;
  font-size: 0.92rem;
}

.note__place {
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.note__message {
  font-size: 0.95rem;
  color: #e4e7ec;
}

.note__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.heart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s var(--ease);
}

.heart-button:hover,
.heart-button.is-active {
  color: #ff8390;
  border-color: rgba(255, 131, 144, 0.5);
  background: rgba(225, 29, 46, 0.15);
}

.counter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-inline: var(--gutter);
  margin-bottom: 1.5rem;
}

.counter__cell {
  flex: 1 1 160px;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.counter__value {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.counter__label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------- CTAs */

.cta-band {
  margin: clamp(2rem, 5vw, 4rem) var(--gutter);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(37, 211, 102, 0.18), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(225, 29, 46, 0.22), transparent 60%),
    var(--bg-card);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--ink-soft);
  max-width: 58ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------- ad slots */
/* --------------------------------------------------------------------- ads */

.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  margin: clamp(1.5rem, 4vw, 2.75rem) auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  /* Reserve the box before the iframe loads so nothing shifts underneath. */
  contain: layout paint;
}

.ad-slot__label {
  position: absolute;
  top: 0.32rem;
  left: 0.55rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.ad-slot__frame {
  display: block;
  border: 0;
  max-width: 100%;
  /*
   * An iframe paints white until its document arrives, and paints white for
   * good when the ad server has nothing to fill the unit with. On a page this
   * dark that is a bright slab, so let the slot's own surface show through.
   */
  background: transparent;
  color-scheme: dark;
}

.ad-slot__native {
  width: 100%;
  min-height: 150px;
}

/*
 * Sizing is driven by data-ad-role, not the slot name, and the breakpoints
 * match the ones ads.js uses to pick a size — so the space reserved in CSS is
 * the space the banner actually occupies.
 */
.ad-slot[data-ad-role='banner'] {
  width: min(320px, 100%);
  min-height: 50px;
}

@media (min-width: 500px) {
  .ad-slot[data-ad-role='banner'] {
    width: min(468px, 100%);
    min-height: 60px;
  }
}

@media (min-width: 760px) {
  .ad-slot[data-ad-role='banner'] {
    width: min(728px, 100%);
    min-height: 90px;
  }
}

.ad-slot[data-ad-role='rectangle'] {
  width: min(300px, 100%);
  min-height: 250px;
}

.ad-slot[data-ad-role='rail'] {
  width: 160px;
  min-height: 600px;
  margin-inline: auto;
}

.ad-slot[data-ad-role='rail-short'] {
  width: 160px;
  min-height: 300px;
  margin-inline: auto;
}

/* Native units fill their column, but capped so one dropped straight into the
   page after a grid does not run edge to edge past the layout gutter. */
.ad-slot[data-ad-role='native'] {
  width: min(100%, 920px);
  min-height: 180px;
}

/* A unit sitting between grid cards spans the row rather than squeezing
   into one column, so the surrounding layout keeps its rhythm. */
.ad-slot--in-grid {
  grid-column: 1 / -1;
  width: 100%;
  max-width: min(100%, 728px);
}

/* The blog list and note wall are single columns; keep units inline there. */
.post-list > .ad-slot,
.note-wall > .ad-slot {
  break-inside: avoid;
}

.article__aside .ad-slot { margin: 1rem auto; }
.article__body > .ad-slot { clear: both; }

/* The rail unit only exists on wide screens; the placer never inserts it below
   1080px, and this keeps it out of the way if a narrow reload finds one. */
@media (max-width: 1079px) {
  .ad-slot[data-ad-role='rail'],
  .ad-slot[data-ad-role='rail-short'] { display: none; }
}

@media (max-width: 560px) {
  .ad-slot { margin-block: 1.25rem; }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #06070a;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}

/*
 * The footer opens with the mark rather than a link column, so a page that
 * someone landed on deep in the archive still ends by naming whose site it
 * is. Same mark as the header, at a size where the line portrait resolves.
 */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: 1.6rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.footer-brand__name {
  font-weight: 800;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  letter-spacing: 0.14em;
  color: #fff;
  line-height: 1;
}

.footer-brand__tag {
  margin-top: 0.35rem;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  font-weight: 800;
  color: var(--gold);
}

.footer-brand__line {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 2.5rem;
}

.footer-grid h2 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-grid a {
  font-size: 0.87rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.footer-credit {
  margin-top: 0.35rem;
  color: var(--ink-faint);
}

/*
 * The developer's name cycles through the site's own accent colours, a step a
 * second. Written as discrete keyframe stops rather than a gradient sweep so
 * each colour is actually shown rather than passed through, and paused for
 * anyone who has asked the system for less motion.
 */
.footer-credit__name {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--brand-bright);
  animation: credit-hue 6s steps(1, end) infinite;
}

.footer-credit__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes credit-hue {
  0% { color: var(--brand-bright); }
  16.66% { color: var(--gold); }
  33.33% { color: #4fd1c5; }
  50% { color: #b5f26d; }
  66.66% { color: #8ab4ff; }
  83.33% { color: #ff8ac4; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit__name {
    animation: none;
    color: var(--gold);
  }
}

/* ------------------------------------------------------------ gallery lightbox */

.lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--ink-soft);
}

.lightbox__share {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/*
 * The follow block under the home biography.
 *
 * It sits inside the hero, so it is read against the portrait behind it: the
 * circles get a dark fill of their own rather than relying on the page
 * background showing through, which at this point in the page is a photograph.
 */
.social-follow {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.social-follow__label {
  margin-bottom: 0.8rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-row--lg a {
  width: 44px;
  height: 44px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 9, 12, 0.55);
  backdrop-filter: blur(6px);
}

.social-row--lg a:hover {
  border-color: var(--gold);
  background: rgba(8, 9, 12, 0.8);
  transform: translateY(-2px);
}

.social-row--lg svg {
  width: 19px;
  height: 19px;
}

.footer-brand .social-row {
  margin-top: 0.85rem;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.social-row a:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.social-row svg {
  width: 17px;
  height: 17px;
}

/* -------------------------------------------------------------- misc states */

.muted {
  color: var(--ink-faint);
  padding-inline: var(--gutter);
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #14161e 30%, #1d2029 50%, #14161e 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.card-skeleton {
  aspect-ratio: 16 / 9;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: clamp(3rem, 10vh, 7rem) 1.25rem 2rem;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(10px);
}

.search-panel[hidden] {
  display: none;
}

.search-panel__box {
  width: min(680px, 100%);
  background: #0d0f15;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.search-panel input {
  width: 100%;
  padding: 1.1rem 1.35rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 1.05rem;
}

.search-results {
  max-height: min(56vh, 460px);
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.search-result img {
  width: 76px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result__title {
  font-size: 0.9rem;
  font-weight: 600;
}

.search-result__meta {
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.pagination {
  display: flex;
  justify-content: center;
  padding: 1.5rem var(--gutter) 0;
}

/* ==========================================================================
   Watch hub — poster grid with an inline player stage above it
   ========================================================================== */

.stage {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: 0 var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  scroll-margin-top: 5rem;
}

@media (min-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.stage[hidden] {
  display: none;
}

.stage__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}

.stage__frame iframe,
.stage__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage__title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0.35rem 0 0.6rem;
}

.stage__lede {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vgrid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  padding-inline: var(--gutter);
}

.vcard {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.vcard:hover,
.vcard:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

/* The poster is the play button, so the whole thumbnail is one large target. */
.vcard__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vcard__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.vcard:hover .vcard__play img {
  transform: scale(1.06);
}

.vcard__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.8);
  backdrop-filter: blur(6px);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.vcard__time {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: rgba(8, 9, 12, 0.85);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.vcard__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.vcard__icon svg {
  width: 54px;
  height: 54px;
  padding: 0.85rem;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease);
}

.vcard__play:hover .vcard__icon svg,
.vcard__play:focus-visible .vcard__icon svg {
  transform: scale(1.12);
}

.vcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
}

.vcard__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vcard__meta {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.vcard__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.vcard__link:hover {
  color: var(--brand-bright);
}

/* ==========================================================================
   Blog hub — a reading list rather than a card wall
   ========================================================================== */

.post-list {
  display: grid;
  gap: 1rem;
  padding-inline: var(--gutter);
  max-width: 920px;
}

.post-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-row:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .post-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-row__cover {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.post-row__cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-row__title {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin: 0.2rem 0 0.4rem;
}

.post-row__excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* The four main destinations sit above the category list in the drawer. */
.drawer__hubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.drawer__hubs a {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.drawer__hubs a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

/* One Categories panel instead of four menus: columns of grouped categories. */
.mega--wide {
  width: min(940px, 92vw);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.mega__col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mega__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
  padding: 0 0.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}

.mega__col .mega__group + .mega__group {
  margin-top: 0.5rem;
}

@media (max-width: 1180px) {
  .mega--wide {
    width: min(720px, 90vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the blog section heading aligned with its reading column. */
.post-list-head {
  max-width: calc(920px + var(--gutter) * 2);
}
