:root {

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --page-simple-max: min(48rem, 100%);

  --color-bg: #7ec8e3;
  --color-surface: rgba(255, 255, 255, 0.35);
  --color-surface-2: rgba(255, 255, 255, 0.28);
  --color-surface-light: rgba(255, 255, 255, 0.45);
  --color-panel: rgba(255, 255, 255, 0.42);
  --color-panel-hover: rgba(255, 255, 255, 0.58);

  --color-text: #1a2a3a;
  --color-text-muted: #3a5068;
  --color-text-faint: #6b8299;
  --color-text-inverse: #f0f8ff;

  --color-accent: #d3a89c;
  --color-accent-hover: #be9286;
  --color-accent-light: #f1e6e3;
  --color-accent-rgb: 211, 168, 156;

  --color-player-bg: rgba(255, 255, 255, 0.22);
  --color-player-text: #1a2a3a;
  --color-player-accent: var(--color-accent);
  --color-player-accent-hover: var(--color-accent-hover);
  --color-player-accent-soft: rgba(var(--color-accent-rgb), 0.35);

  --color-border: rgba(0, 40, 80, 0.10);

  --shadow-sm: 0 1px 4px rgba(0, 60, 120, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 60, 120, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 60, 120, 0.14);

  --glass-blur: 16px;
  --glass-saturate: 1.32;
  --glass-panel: rgba(255, 255, 255, 0.42);
  --glass-panel-hover: rgba(255, 255, 255, 0.58);
  --glass-surface: rgba(255, 255, 255, 0.30);
  --glass-surface-2: rgba(255, 255, 255, 0.24);
  --glass-surface-light: rgba(255, 255, 255, 0.50);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-border-soft: rgba(255, 255, 255, 0.30);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.55);

  --e99-nav-strip: calc(env(safe-area-inset-top, 0px) + 3.75rem);
}

html {
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;

  scroll-padding-top: calc(var(--e99-nav-strip, 4.5rem) + 0.5rem);
  background-color: #7ed6f5;
}

body {
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -120vmax;
  z-index: -2;
  pointer-events: none;
  margin: 0;
  background: linear-gradient(
    135deg,
    #56c1e8 0%,
    #7ed6f5 18%,
    #a8e6cf 35%,
    #f9e4b7 52%,
    #f7b8a8 68%,
    #c4a8e8 82%,
    #82c4f0 100%
  );
  background-size: 400% 400%;

  background-position: var(--estakada-bg-pos-x, 0%) var(--estakada-bg-pos-y, 25%);
  transform: translateZ(0);
}

.e99-bg-blobs {
  position: fixed;
  inset: -110vmax;
  z-index: -1;
  pointer-events: none;
  margin: 0;
  opacity: 0.7;
  filter: blur(60px);
  background:
    radial-gradient(ellipse 72% 68% at 28% 42%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 68% 62% at 72% 58%, rgba(160, 220, 255, 0.45) 0%, transparent 48%),
    radial-gradient(ellipse 58% 70% at 48% 22%, rgba(255, 210, 180, 0.40) 0%, transparent 46%),
    radial-gradient(ellipse 52% 56% at 18% 78%, rgba(200, 180, 255, 0.35) 0%, transparent 44%);
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

html.e99-lite .e99-bg-blobs {
  display: none !important;
}

html.e99-lite .page-wrapper,
html.e99-lite .chat-panel__glass,
html.e99-lite .home-latest-uploads-panel__glass,
html.e99-lite .schedule-panel,
html.e99-lite .card,
html.e99-lite .archive-embed-card,
html.e99-lite .resident-detail-panel,
html.e99-lite .nav-links a,
html.e99-lite .home-uploads-arrow,
html.e99-lite .home-uploads-dot {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.e99-lite .player {
  backdrop-filter: blur(14px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.25) !important;
  background: rgba(255, 255, 255, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    background-position: 50% 50%;
    background-size: 100% 100%;
  }

  .e99-bg-blobs {
    transform: none !important;
    filter: blur(40px);
    opacity: 0.5;
  }

  .nav-links a.nav-links__onepointtwo:not(.active) {
    animation: none;
    background-size: 100% 100%, 100% 100%;
    background-position: 0 0, 50% 50%;
    box-shadow: var(--glass-highlight);
  }
}

@media (update: slow) {
  body::before {
    animation: none;
    background-position: 50% 50%;
    background-size: 100% 100%;
  }

  .e99-bg-blobs {
    transform: none !important;
    filter: blur(44px);
    opacity: 0.62;
  }
}

@media (max-width: 900px) {
  :root {
    --glass-blur: 12px;
    --glass-saturate: 1.22;
  }

  .e99-bg-blobs {
    filter: blur(44px);
    opacity: 0.65;
  }

  .player {
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
  }

  .chat-panel__glass,
  .home-latest-uploads-panel__glass,
  .schedule-panel {
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
  }
}

html.doc-visibility-paused .nav-links a.nav-links__onepointtwo:not(.active),
html.doc-visibility-paused #page-resident-detail .resident-photo,
html.doc-visibility-paused .player-show-title.player-show-title--live-pulse,
html.doc-visibility-paused #loading-icon {
  animation-play-state: paused !important;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
}

.card-image,
.resident-photo {
  user-select: none;
  -moz-user-select: none;
}

.page-wrapper {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 3.5rem;
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;

  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;

  padding-top: var(--e99-nav-strip);

  contain: layout;
  transform: translateZ(0);
}

@media (max-width: 768px) {

  .page-wrapper {
    padding-bottom: max(
      0.25rem,
      calc(var(--e99-player-mobile-estimate) + env(safe-area-inset-bottom, 0px))
    );
  }

  #main-content.e99-route-home {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  padding-top: max(var(--space-3), env(safe-area-inset-top, 0px));
  padding-right: var(--space-4);
  padding-bottom: var(--space-3);
  padding-left: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--glass-highlight), 0 6px 28px rgba(0, 50, 100, 0.06);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: clamp(1.5rem, 4.2vw, 2rem);
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
}

.nav-logo:hover {
  opacity: 0.88;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  list-style: none;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--glass-surface-2);
  backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--glass-highlight);
}

.nav-links a:hover {
  background: var(--glass-panel-hover);
}

.nav-links a.active {
  background: color-mix(in srgb, var(--color-accent) 52%, white);
  color: var(--color-text);
  border-color: rgba(var(--color-accent-rgb), 0.35);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb), 0.22);
}

.nav-links a.nav-links__onepointtwo:not(.active) {
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  background-image:
    linear-gradient(var(--glass-surface-2), var(--glass-surface-2)),
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--color-accent) 32%, white),
      var(--color-accent),
      color-mix(in srgb, var(--color-accent) 55%, #ffc9d9),
      color-mix(in srgb, var(--color-accent) 40%, #7ec8e3),
      color-mix(in srgb, var(--color-accent) 35%, white)
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 220% 100%;
  animation: navOnepointtwoGlow 5.5s ease-in-out infinite alternate;
}

.nav-links a.nav-links__onepointtwo:not(.active):hover {
  background-image:
    linear-gradient(var(--glass-panel-hover), var(--glass-panel-hover)),
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--color-accent) 28%, white),
      var(--color-accent),
      color-mix(in srgb, var(--color-accent) 62%, #ffd0de),
      color-mix(in srgb, var(--color-accent) 45%, #8ed4ea),
      color-mix(in srgb, var(--color-accent) 30%, white)
    );
  background-size: 100% 100%, 220% 100%;
}

.nav-links a.nav-links__onepointtwo.active {
  animation: none;
  background: color-mix(in srgb, var(--color-accent) 52%, white);

  border-width: 2px;
  border-style: solid;
  border-color: rgba(var(--color-accent-rgb), 0.35);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb), 0.22);
}

@keyframes navOnepointtwoGlow {
  0% {
    background-position: 0 0, 0% 50%;
    box-shadow: var(--glass-highlight), 0 0 0 0 rgba(var(--color-accent-rgb), 0.12);
  }
  100% {
    background-position: 0 0, 100% 50%;
    box-shadow: var(--glass-highlight), 0 0 14px 1px rgba(var(--color-accent-rgb), 0.18);
  }
}

.nav-links a.nav-links__external {
  gap: var(--space-2);
}

.nav-links__external-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav { flex-wrap: wrap; justify-content: space-between; }
  .nav-brand-group { margin-right: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    width: calc(100% + 2 * var(--space-4));
    max-width: none;
    flex: 1 1 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2) 0;
    margin-inline: calc(-1 * var(--space-4));
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    min-width: 0;
  }
  .nav-links a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

.home-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  grid-template-rows: 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  height: calc(100dvh - var(--e99-nav-strip) - 5.75rem);
  min-height: 0;
}

.home-content > .home-left-stack,
.home-content > .schedule-panel {
  min-height: 0;
  min-width: 0;
}

.home-left-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
  min-width: 0;
}

.home-left-stack > .home-latest-uploads-panel {
  flex: 0 0 auto;
  min-height: 0;
}

.home-left-stack > .chat-panel {
  flex: 1 1 0;
  min-height: 0;
}

@media (min-width: 769px) {
  .home-left-stack > .chat-panel {
    flex: 1 1 auto;
    min-height: clamp(220px, 32vh, 560px);
  }

  .chat-embed-wrapper {
    min-height: max(13rem, min(42vh, 320px));
    min-width: min(100%, 300px);
  }
}

@media (max-width: 768px) {

  #page-home.page-content {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #page-home .home-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: auto;
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .home-content > .home-left-stack {
    display: none !important;
  }

  .home-content.e99-home-embed-mode .home-youtube-panel {
    flex: 1 1 auto;
    min-height: 0;
  }
}

.home-content.e99-home-hide-chat .home-left-stack {
  display: none !important;
}

.home-content.e99-home-hide-chat:not(.e99-home-embed-mode) .schedule-panel {
  grid-column: 1 / -1;
}

.home-content.e99-home-embed-mode .home-left-stack,
.home-content.e99-home-embed-mode .schedule-panel {
  display: none !important;
}

.home-content.e99-home-embed-mode .home-youtube-panel {
  display: flex !important;
  grid-column: 1 / -1;
}

.home-youtube-panel {
  position: relative;
  isolation: isolate;
  display: none;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--glass-highlight), var(--shadow-md);
  background: transparent;
}

.home-youtube-panel__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.home-youtube-panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.home-youtube-panel__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  flex-shrink: 0;
}

.home-youtube-embed-root {
  flex: 1;
  min-height: min(50dvh, 28rem);
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--glass-border-soft);
}

.home-youtube-embed-root iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(50dvh, 28rem);
  border: 0;
}

.home-latest-uploads-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--glass-highlight), var(--shadow-md);
  background: transparent;
}

.home-latest-uploads-panel__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.home-latest-uploads-panel__body {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.home-latest-uploads-panel__body > h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
  flex-shrink: 0;
}

.chat-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--glass-highlight), var(--shadow-md);
  background: transparent;
}

.chat-panel__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.chat-panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
}

.chat-panel__body > h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  flex-shrink: 0;
}

.home-uploads-slider {

  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
}

.home-uploads-slider:focus-visible {
  outline: 2px solid rgba(var(--color-accent-rgb), 0.55);
  outline-offset: 3px;
  border-radius: var(--radius-xl);
}

.home-uploads-carousel {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
}

.home-uploads-controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  padding: 0;
  min-height: 0;
}

.home-uploads-controls .home-uploads-arrow {
  position: static;
  transform: none;
}

.home-uploads-arrow {
  z-index: 4;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--glass-highlight);
}

.home-uploads-arrow:hover:not(:disabled) {
  background: var(--glass-panel-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb), 0.15);
}

.home-uploads-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: var(--glass-highlight);
}

.home-uploads-viewport {
  min-width: 0;

  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.28);
  contain: layout paint;
  box-sizing: border-box;
}

.home-uploads-track {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  --home-uploads-count: 1;
  width: calc(var(--home-uploads-count, 1) * 100%);
  transition: transform 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .home-uploads-track {
    transition: none;
  }
}

.home-uploads-dots {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.home-uploads-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-full);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: var(--glass-highlight);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-uploads-dot:hover {
  background: var(--glass-panel-hover);
  border-color: rgba(var(--color-accent-rgb), 0.4);
}

.home-uploads-dot[aria-current='true'] {
  background: color-mix(in srgb, var(--color-accent) 52%, white);
  border-color: rgba(var(--color-accent-rgb), 0.35);
  transform: scale(1.28);
  box-shadow: 0 2px 12px rgba(var(--color-accent-rgb), 0.22);
}

.home-uploads-slide--embed {
  flex: 0 0 calc(100% / var(--home-uploads-count, 1));
  min-width: 0;
  box-sizing: border-box;
  padding: var(--space-2) var(--space-3);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.home-uploads-slide--embed:last-child {
  border-right: 0;
}

.archive-embed-card.archive-embed-card--home {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

html.e99-lite .archive-embed-card.archive-embed-card--home {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-uploads-slide--embed .archive-embed-card {
  margin: 0;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.home-uploads-slide--embed .archive-embed-frame {
  flex-shrink: 0;
}

.home-uploads-slide--embed .archive-embed-frame iframe {
  min-width: 0;
  width: 100%;

  height: clamp(8.25rem, min(18vh, 15vw), 13rem);
  min-height: clamp(8.25rem, min(18vh, 15vw), 13rem);
  border: 0;
  display: block;
}

.home-uploads-status,
.home-uploads-empty {
  margin: 0;
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.chat-embed-wrapper {
  flex: 1;
  min-height: max(10rem, 140px);
  min-width: min(100%, 280px);
  width: 100%;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--glass-border-soft);
}

.chat-embed-close-shield {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  z-index: 4;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .nav-links__item--chat-mobile {
    display: none;
  }
}

.schedule-panel {
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--glass-highlight), var(--shadow-md);
  isolation: isolate;
}

.schedule-panel h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
  flex-shrink: 0;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 60, 120, 0.15) transparent;
  contain: layout;
}

@media (max-width: 768px) {
  #page-home .home-content > .schedule-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;

    margin-top: auto;
    margin-bottom: auto;
  }

  #page-home .schedule-panel .schedule-grid {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(
      70dvh,
      calc(
        100dvh - var(--e99-nav-strip) - var(--e99-player-mobile-estimate) - 7.5rem -
          env(safe-area-inset-bottom, 0px)
      )
    );
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--glass-surface-2);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--glass-highlight);
}

.schedule-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  width: 100%;
}

.schedule-item:hover {
  background: var(--glass-panel-hover);
}

.schedule-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.schedule-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.65;
  align-self: center;
}

.schedule-item.is-expanded .schedule-chevron {
  transform: rotate(-135deg);
}

.schedule-item-body {
  width: 100%;
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.schedule-item-body[hidden] {
  display: none !important;
}

.schedule-description {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: inherit;
}

.schedule-description-na {
  color: var(--color-text-muted);
  font-style: italic;
}

.schedule-item.now-playing .schedule-description-na {
  color: var(--color-text-muted);
}

.schedule-item.now-playing .schedule-item-body {
  border-top-color: var(--color-border);
}

.schedule-item.schedule-item--past .schedule-item-body {
  border-top-color: var(--color-border);
  opacity: 1;
}

.schedule-item.now-playing {
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--color-accent) 44%, white),
      color-mix(in srgb, var(--color-accent) 44%, white)
    ),
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--color-accent) 32%, white),
      var(--color-accent),
      color-mix(in srgb, var(--color-accent) 55%, #ffc9d9),
      color-mix(in srgb, var(--color-accent) 40%, #7ec8e3),
      color-mix(in srgb, var(--color-accent) 35%, white)
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 220% 100%;
  animation: navOnepointtwoGlow 5.5s ease-in-out infinite alternate;
  color: var(--color-text);
  box-shadow: var(--glass-highlight), 0 0 0 0 rgba(var(--color-accent-rgb), 0.12);
}

.schedule-item.now-playing:hover {
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--color-accent) 52%, white),
      color-mix(in srgb, var(--color-accent) 52%, white)
    ),
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--color-accent) 28%, white),
      var(--color-accent),
      color-mix(in srgb, var(--color-accent) 62%, #ffd0de),
      color-mix(in srgb, var(--color-accent) 45%, #8ed4ea),
      color-mix(in srgb, var(--color-accent) 30%, white)
    );
  background-size: 100% 100%, 220% 100%;
}

.schedule-item.now-playing .schedule-time {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.schedule-item.schedule-item--broadcast-live {
  background: rgba(180, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 18px rgba(180, 42, 42, 0.45);
}

.schedule-item.schedule-item--broadcast-live .schedule-description-na {
  color: rgba(255, 255, 255, 0.75);
}

.schedule-item.schedule-item--broadcast-live .schedule-item-body {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.schedule-item.schedule-item--broadcast-live .schedule-time {
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.schedule-item.schedule-item--past {
  opacity: 0.5;
  background: var(--glass-surface-2);
}

.schedule-item.schedule-item--past .schedule-time,
.schedule-item.schedule-item--past .schedule-show {
  color: var(--color-text-muted);
}

.schedule-item.schedule-item--past:hover {
  opacity: 0.55;
  transform: none;
  background: var(--glass-surface-2);
}

.schedule-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  flex: 0 0 auto;
  min-width: 10.5ch;
  margin-bottom: 0;
  white-space: nowrap;
}

.schedule-show {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  flex: 1 1 12rem;
  min-width: 0;
}

.page-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.page-section {
  padding: clamp(var(--space-8), 6vw, var(--space-16)) var(--space-4);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.page-section > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-resident-detail .page-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--e99-nav-strip) - 3.5rem);
  padding-top: clamp(2.5rem, 7vh, 4.5rem);
  padding-bottom: clamp(3.25rem, 11vh, 6.5rem);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: 1.05;
}

#page-residents .page-title {
  text-align: center;
  margin-inline: auto;
}

#page-residents .page-section > .container,
#page-archive .page-section > .container {
  justify-content: flex-start;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#page-resident-detail .page-section > .container {
  justify-content: flex-start;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

#page-residents .page-section > .container {
  align-items: stretch;
  width: 100%;
}

#page-residents .residents-toolbar {
  width: 100%;
  box-sizing: border-box;
}

#page-residents .residents-grid {
  width: 100%;
  min-width: 0;
}

.page-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 65ch;
  line-height: 1.7;
}

.page-body p + p {
  margin-top: var(--space-4);
}

#page-archive .container {
  text-align: center;
}

#page-archive .page-title {
  margin-inline: auto;
}

#page-about .page-section,
#page-cms .page-section,
#page-donate .page-section,
#page-onepointtwo .page-section,
#page-contacts .page-section {
  align-items: center;
}

#page-about .page-section > .container,
#page-cms .page-section > .container,
#page-donate .page-section > .container,
#page-onepointtwo .page-section > .container,
#page-contacts .page-section > .container {
  justify-content: flex-start;
  align-self: center;
  width: min(100%, var(--page-simple-max));
  max-width: var(--page-simple-max);
  box-sizing: border-box;
}

#page-about .page-title,
#page-cms .page-title,
#page-donate .page-title,
#page-onepointtwo .page-title,
#page-contacts .page-title {
  margin-inline: 0;
  text-align: left;
  width: 100%;
}

#page-about .page-body,
#page-cms .page-body,
#page-donate .page-body,
#page-onepointtwo .page-body,
#page-contacts .page-body {
  margin-inline: 0;
  text-align: left;
  max-width: none;
  width: 100%;
}

#page-archive .archive-intro {
  margin-inline: auto;
  text-align: center;
}

.page-not-found-section .container {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.page-not-found-code {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--color-text);
  margin: 0;
}

.page-not-found-message {
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 28rem;
  margin: 0;
  line-height: 1.65;
}

.page-not-found-message a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-not-found-message a:hover {
  text-decoration-thickness: 2px;
}

#page-donate .donate-options,
#page-contacts .contact-links {
  justify-content: flex-start;
}

.onepointtwo-guide {
  margin-top: var(--space-8);
  width: 100%;
}

.onepointtwo-guide__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

.onepointtwo-guide__steps {
  margin: 0 0 var(--space-5);
  padding-left: 1.35rem;
  max-width: none;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.onepointtwo-guide__steps li + li {
  margin-top: var(--space-2);
}

.onepointtwo-guide__steps a {
  color: var(--color-accent);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.onepointtwo-beneficiary {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--glass-panel);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.onepointtwo-beneficiary dl {
  margin: 0;
}

.onepointtwo-beneficiary__row {
  display: grid;
  gap: var(--space-1);
}

.onepointtwo-beneficiary__row + .onepointtwo-beneficiary__row {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--glass-border-soft);
}

.onepointtwo-beneficiary dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.onepointtwo-beneficiary dd {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

.onepointtwo-beneficiary__code {
  font-family: ui-monospace, monospace;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.onepointtwo-outro {
  margin-top: var(--space-8);
}

.page-cms-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

#page-cms .page-body h2,
#page-cms .page-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

#page-cms .page-body h2 {
  font-size: var(--text-xl);
}

#page-cms .page-body h3 {
  font-size: var(--text-lg);
}

#page-cms .page-body ul,
#page-cms .page-body ol {
  margin: var(--space-3) 0;
  padding-left: 1.35rem;
  max-width: none;
}

#page-cms .page-body blockquote {
  margin: var(--space-4) 0;
  padding-left: var(--space-4);
  border-left: 3px solid rgba(var(--color-accent-rgb), 0.45);
  color: var(--color-text-muted);
}

.page-cms-lead {
  margin-bottom: var(--space-4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

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

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

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

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

#page-residents .residents-grid {
  grid-template-columns: repeat(2, 1fr);
  contain: layout;
}

@media (min-width: 480px) {
  #page-residents .residents-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  #page-residents .residents-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 880px) {
  #page-residents .residents-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
  }
}

.residents-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.residents-sort-wrap {
  flex: 0 0 auto;
}

.residents-sort-select {
  min-width: 12.5rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  border: 1px solid var(--glass-border-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.residents-sort-select:hover {
  border-color: var(--color-accent);
}

.residents-sort-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.22);
}

.residents-search-wrap {
  flex: 1 1 12rem;
  min-width: min(100%, 12rem);
}

.residents-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  border: 1px solid var(--glass-border-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.residents-search-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.residents-search-input:hover {
  border-color: var(--color-accent);
}

.residents-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.22);
  background: var(--glass-panel);
}

.residents-surprise-btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.residents-surprise-btn:hover:not(:disabled) {
  background: rgba(var(--color-accent-rgb), 0.14);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-hover);
}

.residents-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  justify-self: center;
  max-width: 100%;
}

.card {
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#page-residents .card {
  display: flex;
  flex-direction: column;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.resident-love-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border-soft);
  background: var(--glass-surface-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
  box-shadow: var(--glass-highlight);
}

.resident-love-btn:hover:not(:disabled) {
  background: rgba(var(--color-accent-rgb), 0.14);
  border-color: rgba(var(--color-accent-rgb), 0.38);
  color: var(--color-accent);
}

.resident-love-btn:disabled {
  cursor: default;
  opacity: 0.88;
}

.resident-love-btn.resident-love-btn--busy {
  pointer-events: none;
  opacity: 0.65;
}

.resident-love-btn.resident-love-btn--active {
  color: var(--color-accent);
  border-color: rgba(var(--color-accent-rgb), 0.42);
  background: rgba(var(--color-accent-rgb), 0.18);
}

.resident-love-btn.resident-love-btn--active:disabled {
  opacity: 1;
}

.resident-love-icon {
  font-size: 1.08em;
  line-height: 1;
  transform: translateY(-0.04em);
}

.resident-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}

.resident-name-row .resident-name {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.resident-love-btn--detail {
  flex-shrink: 0;
}

#page-residents .card-show {
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  height: calc(1.3 * var(--text-sm));
  min-height: calc(1.3 * var(--text-sm));
  max-height: calc(1.3 * var(--text-sm));
  overflow: hidden;
  line-height: 1.3;
}

#page-residents .card-show__inner {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

#page-residents .card-show.card-show--marquee .card-show__inner {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #page-residents .card-show.card-show--marquee .card-show__inner {
    animation: none !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

#page-residents .card-byline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-image {
  position: relative;
  aspect-ratio: 1;
  background: rgba(200, 225, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resident-new-sticker {
  position: absolute;
  top: clamp(3px, 1.8vw, 9px);
  right: clamp(3px, 1.8vw, 9px);
  width: min(34%, 5.75rem);
  max-width: 7.5rem;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

.resident-new-sticker img {
  width: 100%;
  height: auto;
  display: block;
}

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

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 225, 245, 0.4), rgba(255, 255, 255, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder svg {
  width: 40%;
  height: 40%;
  opacity: 0.3;
  color: var(--color-text-muted);
}

.card-info {
  padding: var(--space-3) var(--space-4);
}

#page-residents .card-info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-show {
  font-size: var(--text-sm);
  font-weight: 700;
}

.card-byline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.archive-intro {
  margin-bottom: var(--space-6);
  max-width: 65ch;
}

.archive-intro a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.archive-wrap {
  width: 100%;
}

.archive-embed-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 20rem));
  gap: var(--space-6);
  align-items: start;
  justify-content: center;
}

.archive-embed-card {
  width: 100%;
  margin-inline: 0;
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  overflow: hidden;
  box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.archive-status {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .archive-embed-grid {
    grid-template-columns: repeat(2, minmax(0, 20rem));
  }
}

@media (max-width: 700px) {
  .archive-embed-grid {
    grid-template-columns: 1fr;
  }
}

.archive-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(200, 225, 245, 0.3);
  margin-bottom: var(--space-3);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.archive-cover-link {
  display: block;
  text-decoration: none;
}

.archive-cover-link:focus-visible {
  outline: 3px solid rgba(var(--color-accent-rgb), 0.55);
  outline-offset: 4px;
  border-radius: var(--radius-xl);
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-cover--placeholder svg {
  width: 34%;
  height: 34%;
  opacity: 0.35;
  color: var(--color-text-muted);
}

.archive-title {
  margin-bottom: var(--space-3);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;

  min-height: 2.4em;
}

.archive-title a {
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.archive-embed-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(200, 225, 245, 0.3);
}

.archive-embed-frame iframe {
  display: block;
  width: 100%;
  min-width: 280px;
  height: 128px;
  min-height: 128px;
  border: 0;
}

.archive-pagination {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.archive-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.archive-page-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  border: 1px solid var(--glass-border-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.archive-page-btn:hover:not(:disabled) {
  background: var(--glass-panel-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.archive-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.archive-page-indicator {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.archive-status {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.archive-status a {
  color: var(--color-accent);
}

.archive-status--muted {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  text-align: left;
  padding: 0 0 var(--space-3);
}

.archive-fallback {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.archive-fallback .archive-oembed iframe {
  width: 100%;
  max-width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius-lg);
}

.archive-profile-link {
  margin-top: var(--space-4);
  text-align: center;
  max-width: none;
}

.archive-profile-link a {
  color: var(--color-accent);
  font-weight: 600;
}

.resident-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(var(--space-6), 3.5vw, var(--space-10));
  row-gap: var(--space-6);
  padding: clamp(var(--space-3), 2vh, var(--space-5)) clamp(var(--space-2), 2vw, var(--space-4))
    clamp(var(--space-8), 6vh, var(--space-12));
  align-items: start;
  align-content: start;
}

#page-resident-detail .resident-detail {
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--e99-nav-strip) - 7rem);
  box-sizing: border-box;
}

.resident-photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: min(400px, 100%);
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: var(--glass-panel);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.resident-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.e99-main-scroll-active #page-resident-detail .resident-photo {
  animation-play-state: paused;
}

#page-resident-detail .resident-photo {
  border: none;
  padding: 2px;
  background-color: transparent;
  background-image: linear-gradient(
    105deg,
    color-mix(in srgb, var(--color-accent) 32%, white),
    var(--color-accent),
    color-mix(in srgb, var(--color-accent) 55%, #ffc9d9),
    color-mix(in srgb, var(--color-accent) 40%, #7ec8e3),
    color-mix(in srgb, var(--color-accent) 35%, white)
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  animation: residentDetailPhotoGlow 5.5s ease-in-out infinite alternate;
  box-shadow: var(--glass-highlight), 0 0 0 0 rgba(var(--color-accent-rgb), 0.12);
}

#page-resident-detail .resident-photo:hover {
  background-image: linear-gradient(
    105deg,
    color-mix(in srgb, var(--color-accent) 28%, white),
    var(--color-accent),
    color-mix(in srgb, var(--color-accent) 62%, #ffd0de),
    color-mix(in srgb, var(--color-accent) 45%, #8ed4ea),
    color-mix(in srgb, var(--color-accent) 30%, white)
  );
  background-size: 220% 100%;
}

#page-resident-detail .resident-photo img,
#page-resident-detail .resident-photo .resident-photo-placeholder {
  border-radius: calc(var(--radius-2xl) - 2px);
}

@keyframes residentDetailPhotoGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: var(--glass-highlight), 0 0 0 0 rgba(var(--color-accent-rgb), 0.12);
  }
  100% {
    background-position: 100% 50%;
    box-shadow: var(--glass-highlight), 0 0 14px 1px rgba(var(--color-accent-rgb), 0.18);
  }
}

.resident-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 225, 245, 0.4), rgba(255, 255, 255, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.resident-info {
  grid-column: 2;
  grid-row: 1;
  padding-top: 0;
  min-width: 0;
  width: 100%;
}

@media (max-width: 768px) {
  #page-resident-detail .resident-detail {
    min-height: calc(
      100dvh - var(--e99-nav-strip) - var(--e99-player-mobile-estimate) - 1.25rem
    );
  }

  .resident-detail {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding-bottom: clamp(var(--space-8), 5vh, var(--space-10));
    padding-inline: var(--space-2);
  }

  .resident-photo {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: min(320px, 80vw);
  }

  .resident-info {
    grid-column: 1;
    grid-row: 2;
    padding-top: var(--space-2);
  }
}

.resident-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.resident-bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 62ch;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.resident-socials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--glass-surface-2);
  backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-soft);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  background: var(--glass-panel-hover);
  transform: translateY(-1px);
}

.resident-info .resident-show {
  margin-top: var(--space-4);
}

.resident-show {
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.resident-show h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.resident-show-embed {
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(200, 225, 245, 0.3);
}

.resident-show-iframe {
  display: block;
  width: 100%;
  min-width: 280px;
  height: 166px;
  border: 0;
}

.donate-options {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  cursor: pointer;
}

.donate-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--color-accent-rgb), 0.32);
}

.donate-btn--alt {
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
}

.donate-btn--alt:hover {
  background: var(--glass-panel-hover);
  box-shadow: var(--glass-highlight), var(--shadow-md);
}

.donate-funds-meter {
  width: 100%;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.donate-funds-meter__track {
  position: relative;
  width: 100%;
  height: 1.125rem;
  border-radius: var(--radius-full);
  background: var(--glass-surface-2);
  border: 1px solid var(--glass-border-soft);
  box-shadow: inset 0 1px 2px rgba(0, 40, 80, 0.06);
  overflow: hidden;
}

.donate-funds-meter__fill {
  height: 100%;
  width: 0%;
  min-width: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-accent) 28%, white) 0%,
    color-mix(in srgb, var(--color-accent) 55%, white) 38%,
    color-mix(in srgb, var(--color-accent) 88%, #1a3a4a) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.donate-funds-meter__caption {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

.donate-funds-meter__note {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  max-width: none;
}

@media (max-width: 768px) {
  .donate-funds-meter {
    display: none !important;
  }
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 0;
}

.contact-item:hover {
  background: var(--glass-panel-hover);
  transform: translateY(-2px);
  box-shadow: var(--glass-highlight), var(--shadow-md);
  z-index: 1;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  transform: translateY(var(--e99-player-pin-y, 0px));
  z-index: 100;
  overflow: visible;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  color: var(--color-player-text);
  padding: var(--space-2) var(--space-4);
  padding-bottom: max(var(--space-2), env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 -4px 24px rgba(0, 50, 100, 0.08);
}

:root {

  --e99-player-mobile-estimate: 7.75rem;
}

.player-copy-toast {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-5);
  max-width: min(92vw, 22rem);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight), var(--shadow-md), 0 8px 28px rgba(0, 50, 100, 0.1);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  z-index: 2;
}

.player-copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.player-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.player-show-info {
  min-width: 0;
}

.player-show-title-wrap {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.player-show-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.player-show-title.player-show-title--live-pulse {
  color: #ff5c5c;
  animation: playerLiveTitlePulse 1.5s ease-in-out infinite;
}

.player-show-title.player-show-title--marquee {
  overflow: visible;
  text-overflow: clip;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .player-show-title.player-show-title--marquee {
    animation: none !important;
    transform: none !important;
    text-overflow: ellipsis;
  }
}

@keyframes playerLiveTitlePulse {
  0%, 100% {
    color: #ff7a7a;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: #ff2a2a;
    text-shadow: 0 0 14px rgba(255, 60, 60, 0.85);
  }
}

.player-show-time {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.player-track-line[hidden] {
  display: none !important;
}

.player-track-line {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
  align-items: baseline;

  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.player-track-label {
  flex-shrink: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-xs);
  opacity: 0.75;
}

.player-track-text {
  min-width: 0;
  word-break: break-word;
}

@media (min-width: 769px) {
  .player-track-line.is-copy-ready {
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s ease, background 0.15s ease;
  }

  .player-track-line.is-copy-ready:hover {
    opacity: 1;
    background: rgba(0, 60, 120, 0.08);
  }

  .player-track-line.is-copy-ready:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  .player-track-line.is-copied-flash {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.player-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 60, 120, 0.10);
  color: var(--color-player-text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.player-btn:hover {
  background: rgba(0, 60, 120, 0.18);
  transform: scale(1.05);
}

.player-btn svg {
  width: 20px;
  height: 20px;
}

.player-btn.is-loading {
  cursor: wait;
}

.player-spinner-track {
  stroke: rgba(0, 60, 120, 0.15);
  stroke-width: 2;
}

.player-spinner-head {
  stroke: var(--color-player-text);
  stroke-width: 2;
  stroke-linecap: round;
}

#loading-icon {
  animation: playerSpin 0.85s linear infinite;
}

@keyframes playerSpin {
  to { transform: rotate(360deg); }
}

.player-volume {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.player-volume-icon-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-player-text);
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.player-volume-icon-btn:hover {
  opacity: 1;
  color: var(--color-player-accent);
  background: rgba(var(--color-accent-rgb), 0.1);
}

.player-volume-icon-btn:focus-visible {
  outline: 2px solid var(--color-player-accent);
  outline-offset: 2px;
}

.player-volume-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 60, 120, 0.15);
  border-radius: var(--radius-full);
  outline: none;
}

.volume-slider:focus-visible {
  outline: 2px solid var(--color-player-accent);
  outline-offset: 4px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-player-accent);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 50, 100, 0.2);
}

.volume-slider::-webkit-slider-thumb:hover {
  background: var(--color-player-accent-hover);
}

.volume-slider::-moz-range-track {
  height: 4px;
  background: rgba(0, 60, 120, 0.15);
  border-radius: var(--radius-full);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-player-accent);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 50, 100, 0.2);
}

.volume-slider::-moz-range-thumb:hover {
  background: var(--color-player-accent-hover);
}

@media (max-width: 768px) {
  .player {
    flex-wrap: nowrap;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    padding-bottom: max(var(--space-3), env(safe-area-inset-bottom, 0px));
  }
  .player-middle {
    gap: 0;
  }
  .player-show-title {
    font-size: var(--text-base);
    font-weight: 800;
    letter-spacing: 0.03em;
  }
  .player-show-time {
    font-size: 0.7rem;
  }
  .player-track-line {
    font-size: 0.75rem;
  }
  .player-volume {
    display: none;
  }
  .player-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }
  .player-btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .player-middle {
    gap: 0.15rem;
  }
  .player-show-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.78;
    margin-top: 0.05rem;
  }
  .player-track-line {
    display: flex;
    font-size: 0.68rem;
    line-height: 1.3;
    opacity: 0.88;
  }
  .player-track-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .page-section {
    padding: var(--space-6) var(--space-3);
  }
  .contact-links {
    grid-template-columns: 1fr;
  }
  .contact-item {
    padding: var(--space-3) var(--space-6);
  }
  .donate-options {
    flex-direction: column;
    align-items: stretch;
  }
  .donate-btn {
    width: 100%;
    justify-content: center;
  }
  .nav-links a {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #page-about .page-title,
  #page-cms .page-title,
  #page-donate .page-title,
  #page-onepointtwo .page-title,
  #page-contacts .page-title {
    text-align: center;
  }

  #page-about .page-body,
  #page-cms .page-body,
  #page-donate .page-body,
  #page-onepointtwo .page-body,
  #page-contacts .page-body {
    text-align: center;
    margin-inline: auto;
  }

  #page-donate .donate-options {
    align-items: center;
  }

  #page-donate .donate-btn {
    width: min(100%, 22rem);
  }

  #page-contacts .contact-links {
    justify-items: center;
  }

  #page-contacts .contact-item {
    width: min(100%, 22rem);
  }
}

.page-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#page-home.page-content {
  animation: none;
}

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

body.minesweeper-modal-open {
  overflow: hidden;
}

.minesweeper-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  padding-bottom: max(var(--space-4), env(safe-area-inset-bottom, 0px));
}

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

.minesweeper-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 50, 70, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.minesweeper-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  max-height: min(90dvh, 36rem);
  display: flex;
  flex-direction: column;
  background: var(--glass-panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-highlight), var(--shadow-md);
  overflow: hidden;
}

.minesweeper-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--glass-border-soft);
  flex-shrink: 0;
}

.minesweeper-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
}

.minesweeper-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: var(--glass-surface-2);
  border: 1px solid var(--glass-border-soft);
  cursor: pointer;
}

.minesweeper-modal__close:hover {
  color: var(--color-text);
  background: var(--glass-panel-hover);
}

.minesweeper-modal__iframe {
  display: block;
  width: 100%;
  height: min(62dvh, 28rem);
  min-height: 320px;
  border: 0;
  background: transparent;
}
