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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top, var(--top-glow), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 22%),
    var(--bg);
  transition: background-color 180ms ease, color 180ms ease;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white 28%);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  z-index: 400;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #091015;
  text-decoration: none;
  font-weight: 700;
  transition: transform 120ms ease;
}

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

.shell {
  width: min(1140px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.brand-mark__eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark__name {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list,
.mobile-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-list a,
.mobile-nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  color: var(--text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.header-social:hover,
.header-social:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.header-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-social__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.header-social__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.16rem;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: #24d366;
  color: #06120b;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-social::before,
.header-social::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.header-social::before {
  content: "";
  top: calc(100% + 0.28rem);
  right: 0.95rem;
  width: 10px;
  height: 10px;
  transform: translateY(-4px) rotate(45deg);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  z-index: 1;
}

.header-social::after {
  content: attr(data-tooltip);
  top: calc(100% + 0.55rem);
  right: 0;
  transform: translateY(-4px);
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.header-social:hover::before,
.header-social:focus-visible::before {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}

.header-social:hover::after,
.header-social:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.header-social--youtube:hover,
.header-social--youtube:focus-visible {
  color: #ff4e45;
  border-color: color-mix(in srgb, #ff4e45 36%, var(--border));
}

.header-social--whatsapp:hover,
.header-social--whatsapp:focus-visible {
  color: #24d366;
  border-color: color-mix(in srgb, #24d366 36%, var(--border));
}

.header-social--instagram:hover,
.header-social--instagram:focus-visible {
  color: #f45a7b;
  border-color: color-mix(in srgb, #f45a7b 36%, var(--border));
}

.header-social--facebook:hover,
.header-social--facebook:focus-visible {
  color: #1877f2;
  border-color: color-mix(in srgb, #1877f2 36%, var(--border));
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.23rem;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 1.2rem 1.2rem;
  background: var(--surface);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.hero-section,
.overview-section,
.featured-section,
.support-section,
.feed-section {
  padding: 2.6rem 0;
}

.hero-section {
  padding-top: 3.2rem;
  padding-bottom: 1.25rem;
}

.hero-grid,
.featured-grid,
.support-layout {
  display: grid;
  gap: 1.4rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.eyebrow,
.section-eyebrow,
.hero-panel__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}

.hero-title__lead {
  color: var(--text);
}

.hero-title__highlight {
  color: var(--accent);
}

.hero-description,
.section-heading p,
.hero-panel__description,
.featured-description,
.featured-support-copy,
.story-page__lead,
.story-page__body p,
.overview-card p,
.support-card__copy span,
.story-card__body p,
.empty-state p,
.not-found-card p {
  color: var(--muted);
}

.hero-description {
  max-width: none;
  margin: 1rem 0 0;
  width: 100%;
  font-size: 1rem;
}

.hero-actions,
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.hero-actions {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, white 28%) 100%);
  color: #071015;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--surface-2) 58%, var(--accent) 8%);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent);
}

:root[data-theme='dark'] .button-secondary,
:root[data-theme='dark'] .story-dialog__close {
  background: color-mix(in srgb, var(--surface-2) 84%, white 6%);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme='dark'] .button-secondary:hover,
:root[data-theme='dark'] .story-dialog__close:hover {
  background: color-mix(in srgb, var(--surface-2) 68%, var(--accent) 10%);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
}

.hero-panel,
.overview-card,
.featured-copy,
.support-card,
.story-card article,
.search-panel,
.story-page,
.not-found-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.hero-panel {
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 68%);
  pointer-events: none;
}

.hero-panel__title,
.section-heading h2,
.overview-card h3,
.empty-state h3,
.not-found-card h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-panel__title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.hero-panel__summary {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.hero-panel__summary div {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  border: 1px solid var(--border);
}

.hero-panel__summary strong,
.story-card__cta,
.support-highlight {
  color: var(--text);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.featured-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.85rem);
}

.featured-copy h2 {
  font-size: clamp(1.3rem, 1.6vw, 1.62rem);
}

.featured-copy h2,
.story-page__header h1,
.story-dialog__header h2,
.story-card__body h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.story-dialog__header h2 {
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
}

.section-heading p {
  margin: 0.85rem 0 0;
  font-size: 1rem;
}

.overview-grid,
.support-grid,
.feed-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.overview-card {
  padding: 1.3rem;
}

.overview-card h3 {
  font-size: 1.35rem;
}

.overview-card p {
  margin: 0.75rem 0 0;
  font-size: 0.96rem;
}

.featured-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: stretch;
}

.featured-section {
  padding-top: 0;
}

.featured-media {
  position: relative;
}

.featured-poster,
.featured-poster--empty,
.story-page__video,
.story-page__image {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--video-grad-start) 0%, var(--video-grad-end) 100%);
}

.featured-poster,
.featured-poster--empty {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.featured-poster--embed {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.featured-poster img,
.story-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-poster:not(.featured-poster--embed)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.08), rgba(7, 11, 16, 0.38));
}

.featured-play,
.featured-control {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.featured-control {
  inset: 50% auto auto 50%;
  width: 4.55rem;
  height: 4.55rem;
  margin-left: -2.275rem;
  margin-top: -2.275rem;
  border: 1px solid color-mix(in srgb, var(--surface) 42%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.featured-control:hover,
.featured-control:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent);
}

.featured-control.is-playing {
  color: var(--accent-2);
}

.featured-control__icon {
  font-size: 1.45rem;
  line-height: 1;
}

.featured-poster__fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--text);
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
}

.featured-poster--content {
  transition: transform 180ms ease, border-color 180ms ease;
}

.featured-poster--content:hover,
.featured-poster--content:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.featured-poster__fallback--content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured-poster__fallback--content > span {
  display: inline-grid;
  place-items: center;
  min-width: 4.25rem;
  min-height: 4.25rem;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--accent);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.featured-poster iframe,
.story-page__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.featured-poster iframe {
  min-height: 0;
}

.featured-copy {
  padding: 1.45rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-copy .section-eyebrow {
  margin: 0 0 0.4rem;
  line-height: 1;
}

.featured-copy h2 {
  margin: 0;
}

.featured-description {
  margin: 0.55rem 0 0;
  font-size: 1.04rem;
  line-height: 1.48;
  white-space: pre-line;
}

.featured-support-copy {
  margin: 0.7rem 0 0;
  line-height: 1.48;
  white-space: pre-line;
}

.featured-actions {
  margin-top: 1.15rem;
}

.featured-actions .button,
.story-dialog__actions .button,
.story-page__actions .button {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.15;
}

.support-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.support-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.support-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.support-card--youtube .support-card__icon {
  color: #ff4e45;
  background: color-mix(in srgb, #ff4e45 14%, var(--surface-2));
  border-color: color-mix(in srgb, #ff4e45 26%, var(--border));
}

.support-card--whatsapp .support-card__icon {
  color: #24d366;
  background: color-mix(in srgb, #24d366 14%, var(--surface-2));
  border-color: color-mix(in srgb, #24d366 24%, var(--border));
}

.support-card--instagram .support-card__icon {
  color: #f45a7b;
  background: color-mix(in srgb, #f45a7b 12%, var(--surface-2));
  border-color: color-mix(in srgb, #f45a7b 22%, var(--border));
}

.support-card--facebook .support-card__icon {
  color: #1877f2;
  background: color-mix(in srgb, #1877f2 12%, var(--surface-2));
  border-color: color-mix(in srgb, #1877f2 24%, var(--border));
}

.support-card__copy strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feed-topbar {
  display: block;
  margin-bottom: 1rem;
}

.search-panel {
  padding: 1rem;
}

.search-panel__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-panel__title {
  margin: 0.45rem 0 0.95rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.search-panel--feed {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

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

.search-field input {
  border: 0;
  background: transparent;
  color: var(--text);
  min-height: 2.6rem;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field input:focus {
  outline: none;
}

.search-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
}

.results-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.feed-controls {
  position: sticky;
  top: calc(72px + 0.85rem);
  z-index: 70;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.55rem 0.9rem;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.filter-chip.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.no-js-note {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.feed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  align-items: stretch;
}

.story-card {
  text-decoration: none;
  display: block;
  height: 100%;
}

.story-card[hidden] {
  display: none !important;
}

.story-card article {
  display: flex;
  flex-direction: column;
  height: clamp(31rem, 34vw, 33rem);
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.story-card--news article {
  gap: 0;
}

.story-card:hover article {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
}

.story-card--video:hover article {
  border-color: color-mix(in srgb, var(--accent-2) 34%, var(--border));
}

.story-card__media {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  overflow: hidden;
}

.story-card--video .story-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.08), rgba(7, 11, 16, 0.44));
}

.story-card__media.has-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-left: -2rem;
  margin-top: -2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 32%, var(--border));
  color: var(--accent-2);
  font-size: 1.45rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.story-card__emoji {
  font-size: 3.1rem;
}

.story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.2rem;
  flex: 1;
  min-height: 0;
}

.story-card__tag,
.story-dialog__tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.story-card--video .story-card__tag,
.story-dialog__tag.is-video {
  color: var(--accent-2);
}

.story-card--video .story-card__tag {
  border-color: color-mix(in srgb, var(--accent-2) 34%, var(--border));
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.story-card--news .story-card__body {
  padding: 1.45rem;
  gap: 0.9rem;
}

.story-card__body h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.14;
}

.story-card__body p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
}

.story-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}

.story-card__footer .story-card__meta {
  flex: 1;
  flex-wrap: nowrap;
  gap: 0.7rem;
  min-width: 0;
  overflow: hidden;
}

.story-card__footer .story-card__meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-card__meta,
.story-page__meta,
.story-dialog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.story-card__cta {
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--accent);
}

.story-card--video .story-card__cta {
  color: var(--accent-2);
}

.empty-state {
  margin-top: 1.2rem;
  padding: 2rem 1.4rem;
  border: 1px dashed var(--border);
  border-radius: 24px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.site-footer {
  padding: 2.6rem 0 3rem;
  border-top: 1px solid var(--border);
}

.site-footer__layout {
  display: grid;
  gap: 2rem;
}

.site-footer__support {
  display: grid;
  gap: 1.15rem;
}

.support-grid--footer {
  margin-top: 0.25rem;
}

.site-footer__content {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  color: var(--muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__content strong {
  color: var(--accent);
}

.site-footer__content p {
  margin: 0;
}

.site-footer__meta {
  font-size: 0.88rem;
}

.site-footer__developer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__developer a {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.site-footer__developer-logo {
  display: block;
  width: 100px;
  height: auto;
}

.site-footer__developer-logo--light {
  display: none;
}

:root[data-theme='light'] .site-footer__developer-logo--dark {
  display: none;
}

:root[data-theme='light'] .site-footer__developer-logo--light {
  display: block;
}

.item-page-main {
  padding: 2.8rem 0 3rem;
}

.item-shell {
  display: grid;
  gap: 1.3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.story-page,
.not-found-card {
  padding: 1.6rem;
}

.story-page__header h1 {
  font-size: clamp(1.95rem, 3.5vw, 3rem);
}

.not-found-card h1 {
  font-size: clamp(2.05rem, 4vw, 3.5rem);
}

.story-page__lead {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.story-page__meta {
  margin-top: 1rem;
}

.story-page__media {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.story-page__actions {
  margin-top: 1.15rem;
}

.story-page__video {
  aspect-ratio: 16 / 9;
}

.story-page__image {
  max-height: 620px;
}

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

.story-page__body {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.story-page__body p {
  margin: 0;
  font-size: 1rem;
}

.related-section {
  display: grid;
  gap: 1rem;
}

.support-section--compact {
  padding-top: 0.3rem;
}

.not-found-card {
  text-align: center;
}

.rich-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.rich-link:hover,
.rich-link:focus-visible {
  text-decoration: underline;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-shell[hidden] {
  display: none !important;
}

.modal-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
}

.story-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.story-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.story-dialog__close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.story-dialog__close:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--surface-2) 58%, var(--accent) 8%);
  color: var(--accent);
}

.story-dialog__content {
  display: grid;
  gap: 1rem;
}

.story-dialog__media,
.story-dialog__video,
.story-dialog__image,
.story-dialog__placeholder {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--video-grad-start) 0%, var(--video-grad-end) 100%);
}

.story-dialog__video {
  aspect-ratio: 16 / 9;
}

.story-dialog__video iframe,
.story-dialog__image img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.story-dialog__placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 8vw, 4.5rem);
}

.story-dialog__body {
  display: grid;
  gap: 0.8rem;
}

.story-dialog__body p {
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .featured-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .desktop-nav {
    display: none;
  }

  .header-socials {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .overview-grid,
  .support-grid,
  .feed-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 2.2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 3.4rem);
    gap: 0.3rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-description {
    font-size: 1.02rem;
  }

  .feed-controls {
    position: static;
    top: auto;
    padding: 0.9rem;
  }

  .feed-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .theme-toggle span:last-child {
    display: none;
  }

  .story-page,
  .not-found-card,
  .featured-copy,
  .hero-panel,
  .search-panel,
  .story-dialog {
    padding: 1.15rem;
  }

  .featured-poster,
  .featured-poster iframe {
    min-height: 0;
  }

  .featured-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .featured-actions .button {
    width: 100%;
    min-width: 0;
  }

  .featured-control {
    width: 3.8rem;
    height: 3.8rem;
    margin-left: -1.9rem;
    margin-top: -1.9rem;
  }

  .featured-control__icon {
    font-size: 1.2rem;
  }

  .story-card--news .story-card__body h3 {
    font-size: 1rem;
  }

  .story-card__body h3 {
    font-size: 1rem;
  }

  .story-page__header h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .story-page__lead {
    font-size: 1rem;
  }

  .story-dialog__actions,
  .story-page__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .story-card article {
    height: clamp(28rem, 120vw, 31rem);
    min-height: clamp(28rem, 120vw, 31rem);
  }

  .story-dialog__actions .button,
  .story-page__actions .button {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.5rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .story-card__play {
    width: 3.35rem;
    height: 3.35rem;
    margin-left: -1.675rem;
    margin-top: -1.675rem;
    font-size: 1.2rem;
  }

  .modal-shell {
    padding: 0.8rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
