/* ============================================
   Theresa Kewley — AI Video Art Portfolio
   Nomad Adventurer palette (camper van • peaks • forest • snow)
   ============================================ */

:root {
  /* Nomad Adventurer + moss forest #4d592e */
  --moss: #4d592e;
  --moss-light: #6b7a42;
  --moss-soft: rgba(77, 89, 46, 0.35);
  --moss-glow: rgba(77, 89, 46, 0.55);
  --bg: #0c100b;
  --bg-elevated: #141a12;
  --bg-card: #1a2218;
  --border: rgba(107, 122, 66, 0.22);
  --text: #eef0e6;
  --text-muted: #9aa38a;
  --accent: #e08a5c;          /* warm terracotta */
  --accent-strong: #d06b3c;
  --gold: #e6c99a;
  --ink: #4d592e;             /* primary moss */
  --space: #6a9bb5;
  --pets: #c4a07a;
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(77, 89, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 20%, rgba(224, 138, 92, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 35% at 50% 100%, rgba(77, 89, 46, 0.18), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-container {
  width: min(1120px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end; /* text at bottom — video stays clear */
  justify-content: center;
  text-align: left;
  padding: 5rem 1.5rem 2.25rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: object-position 0.6s ease;
}

.hero-overlay {
  display: none !important;
  background: none !important;
}

.hero-content {
  max-width: min(560px, 100%);
  width: 100%;
  position: relative;
  z-index: 2;
  margin-right: auto;
  padding: 0.85rem 0 0.25rem;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent); /* orange text */
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px; /* pill */
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(224, 138, 92, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #f3d2b0; /* soft warm cream — readable on desert video */
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin-inline: 0;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.about-follow-btn {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 999px;
  width: fit-content;
  margin-top: 1rem;
  margin-left: 0;
  margin-right: 0;
}

.btn-primary {
  background: var(--accent-strong);
  color: #0a0a12;
}

.btn-primary:hover {
  background: #e89b6e;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(208, 107, 60, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Series ---------- */
.series-section {
  padding: 4rem 0 3rem;
}

.series-layout {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.series-nav {
  position: sticky;
  top: 5.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(8px);
}

.series-nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.series-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.series-nav-list a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.25;
  transition: color 0.2s ease, background 0.2s ease;
}

.series-nav-list a:hover,
.series-nav-list a.is-active {
  color: #fff;
  background: rgba(224, 138, 92, 0.16);
}

/* Scroll window: about two series rows tall */
.series-scroll {
  max-height: min(78vh, 980px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-strong) transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  padding: 1rem 0.85rem 0.5rem;
}

.series-scroll::-webkit-scrollbar {
  width: 6px;
}
.series-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-strong);
  border-radius: 3px;
}

.series-row {
  margin-bottom: 2.25rem;
  scroll-margin-top: 0.75rem;
}

.series-row:last-child {
  margin-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .series-layout {
    grid-template-columns: 1fr;
  }
  .series-nav {
    position: static;
    top: auto;
  }
  .series-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .series-nav-list a {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
  }
  .series-scroll {
    max-height: min(72vh, 820px);
  }
}

.series-meta {
  margin-bottom: 1.25rem;
}

.series-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.series-tagline {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 540px;
  line-height: 1.55;
}

.episodes-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: none; /* free scroll — stop between cards */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.episodes-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.episodes-track {
  scrollbar-width: none; /* hide bottom slider */
  -ms-overflow-style: none;
}
.episodes-track::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.episode-card {
  flex: 0 0 280px;
  scroll-snap-align: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 138, 92, 0.3);
}

.episode-card.coming-soon {
  opacity: 0.65;
}

.episode-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1f2a24 0%, #141c18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.episode-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.episode-card:hover .episode-thumb img {
  transform: scale(1.05);
}

.episode-number {
  position: absolute;
  top: auto;
  bottom: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  background: rgba(208, 107, 60, 0.92);
  padding: 0.2em 0.45em;
  border-radius: 8px;
  line-height: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.episode-card:not(.coming-soon):hover .play-overlay {
  opacity: 1;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #e6c99a;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
}

.episode-card:not(.coming-soon) {
  cursor: pointer;
}

.episode-info {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.episode-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.episode-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 4.5rem 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}



.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(224, 138, 92, 0.12);
  border-color: var(--accent-strong);
  color: var(--accent);
}.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1rem 0.9rem;
}

.gallery-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
}

.gallery-card.hidden {
  display: none;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #1a1a1e 0%, #0e0e12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-thumb.fantasy {
  background: linear-gradient(145deg, #1c1a24 0%, #121018 100%);
}
.gallery-thumb.space {
  background: linear-gradient(145deg, #121820 0%, #0a0e14 100%);
}
.gallery-thumb.pets {
  background: linear-gradient(145deg, #1a1814 0%, #12100c 100%);
}

.gallery-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(224, 138, 92, 0.9);
  color: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-play {
  opacity: 1;
  transform: scale(1.08);
}

.gallery-cat {
  position: absolute;
  left: 0.45rem;
  bottom: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  pointer-events: none;
}

.gallery-title {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  padding: 0 0.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-hint {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1.15rem 1rem;
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem 0.95rem;
  }
}



.gallery-note {
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.gallery-note strong {
  color: var(--text);
}

.gallery-note ol {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.gallery-note li {
  margin-bottom: 0.4rem;
}

.gallery-note code {
  background: rgba(224, 138, 92, 0.12);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

/* ---------- About ---------- */
.about-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(to bottom, rgba(12, 16, 13, 0.55) 0%, rgba(19, 26, 22, 0.85) 40%, rgba(19, 26, 22, 0.7) 100%);
  border-top: 1px solid rgba(107, 122, 66, 0.22);
  border-bottom: 1px solid rgba(107, 122, 66, 0.22);
}

/* Accent line bars — top and bottom of About */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(180px, 40%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--moss-light), transparent);
  opacity: 0.85;
}
.about-section::before {
  top: 0;
}
.about-section::after {
  bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.about-photo picture,
.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
}
.about-photo img {
  object-fit: cover;
  object-position: center center;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 5rem 0 6rem;
  text-align: center;
}

.contact-content {
  max-width: 560px;
  margin-inline: auto;
}

.contact-desc {
  color: var(--text-muted);
  margin: 1.25rem 0 0.75rem;
  font-size: 1.05rem;
}
.contact-desc-secondary {
  margin: 0 0 2rem;
  font-size: 0.98rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}
.social-links-legacy {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(224, 138, 92, 0.08);
  color: var(--accent);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    order: -1;
  }

  .about-photo {
    max-width: 240px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }
  .about-text {
    text-align: left;
  }
  .about-follow-btn {
    display: inline-flex;
    width: fit-content;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 7, 11, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
  }
  .gallery-title {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Hide filtered cards */
.gallery-card.hidden {
  display: none;
}

/* ---------- Series Player Modal ---------- */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-modal.open {
  opacity: 1;
  visibility: visible;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.player-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, 98vw);
  max-height: 94vh;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.player-close:hover {
  background: var(--accent-strong);
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  min-height: 0;
  max-height: 94vh;
}

.player-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #000;
}

.player-video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  width: 100%;
  overflow: hidden;
}

.player-video-wrap video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.player-coming-soon[hidden],
.player-error[hidden],
.player-embed[hidden] {
  display: none !important;
}

.player-meta {
  padding: 1rem 1.25rem 1.15rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.player-series-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.player-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.player-side {
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.player-side-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 1rem 1rem 0.6rem;
}

.player-ep-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  -webkit-overflow-scrolling: touch;
}

.player-ep-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.player-ep-item:hover {
  background: rgba(255,255,255,0.04);
}

.player-ep-item.active {
  background: rgba(224, 138, 92, 0.12);
  border-color: rgba(224, 138, 92, 0.35);
}

.player-ep-item.disabled {
  opacity: 0.5;
  cursor: default;
}

.player-ep-thumb {
  width: 72px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a221d;
  position: relative;
}

.player-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-ep-num {
  position: absolute;
  bottom: 2px;
  left: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
}

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

.player-ep-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-ep-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mobile: stack video + horizontal episode scroller */
@media (max-width: 800px) {
  .player-shell {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .player-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 100vh;
    height: 100%;
  }

  .player-video-wrap {
    max-height: 42vh;
    aspect-ratio: auto;
    height: 42vh;
  }

  .player-side {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 0;
  }

  .player-ep-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: unset;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.65rem 0.75rem 1rem;
    gap: 0.55rem 0.5rem;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .player-ep-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .player-ep-item .player-ep-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .player-ep-item .player-ep-info strong {
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .player-ep-item {
    flex: 0 0 150px;
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
    padding: 0.4rem;
  }

  .player-ep-thumb {
    width: 100%;
    height: 78px;
  }

  .player-ep-info strong {
    white-space: normal;
    line-height: 1.25;
  }

  .player-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}

/* Player extras: error, fullscreen btn, hint, stronger 16:9 */
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #111;
  color: #e08a5c;
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 4;
}

.player-fs-btn {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.player-fs-btn:hover {
  background: var(--accent-strong);
}

.player-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-video-wrap {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 720px);
}

.player-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* When the browser is in fullscreen on the wrap */
.player-video-wrap:fullscreen,
.player-video-wrap:-webkit-full-screen {
  max-height: none;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.player-video-wrap:fullscreen video,
.player-video-wrap:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 800px) {
  .player-video-wrap {
    max-height: none;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .player-fs-btn {
    top: 0.45rem;
    left: 0.45rem;
    width: 34px;
    height: 34px;
  }
}


/* Hero on phones: show more of the horizontal video frame */
@media (max-width: 800px) {
  .hero {
    min-height: 78vh;
    min-height: 78dvh;
    padding: 5.5rem 1.25rem 3rem;
  }

  .hero-video {
    /* Prefer filling width so left/right of the 16:9 shot stay visible */
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 35%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 72vh;
    min-height: 72dvh;
  }

  .hero-video {
    object-position: center 30%;
  }
}

/* X embed inside player — must stay hidden unless actively used */
.player-embed {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
  background: #000;
  -webkit-overflow-scrolling: touch;
}

.player-embed[hidden] {
  display: none !important;
  pointer-events: none;
}

.player-embed .twitter-tweet,
.player-embed iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.player-video-wrap:has(.player-embed:not([hidden])) {
  aspect-ratio: auto;
  min-height: 480px;
  height: min(78vh, 820px);
  max-height: 82vh;
}

@media (max-width: 800px) {
  .player-video-wrap:has(.player-embed:not([hidden])) {
    min-height: 360px;
    height: auto;
    max-height: 55vh;
  }
}

.x-embed-frame {
  width: 100%;
  min-height: 520px;
  height: 70vh;
  max-height: 720px;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.x-embed-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.5rem 0.25rem;
  text-align: center;
}

.x-embed-fallback p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
}

.player-embed {
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 800px) {
  .x-embed-frame {
    min-height: 380px;
    height: 50vh;
  }
}

/* X link on episode card thumbnail (bottom right of image) */
.episode-x-link {
  position: absolute;
  top: auto;
  bottom: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 4;
}

.episode-x-link:hover {
  color: #fff;
  border-color: rgba(224, 138, 92, 0.7);
  background: rgba(224, 138, 92, 0.45);
}

/* Player description + X link */
.player-desc {
  margin: 0.55rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42rem;
}

.player-x-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.player-x-link:hover {
  text-decoration: underline;
}

.player-ep-item {
  position: relative;
}

.player-ep-x {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  z-index: 2;
}

.player-ep-x:hover {
  color: #fff;
  border-color: rgba(224, 138, 92, 0.5);
}

/* Series episode count + scroll hint */
.series-count {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.episodes-track {
  position: relative;
}



@media (max-width: 800px) {
  .episode-card {
    flex: 0 0 72vw;
    max-width: 280px;
  }

  .episodes-track {
    gap: 0.85rem;
    padding-right: 1.5rem;
  }
}

/* CSS pseudo-fullscreen for phones when native FS fails */
.player-video-wrap.is-fs {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  background: #000 !important;
  border-radius: 0 !important;
}

.player-video-wrap.is-fs video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-fs-exit {
  display: none;
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.player-video-wrap.is-fs .player-fs-exit {
  display: flex;
}

.player-video-wrap.is-fs .player-fs-btn {
  display: none;
}

body.player-fs-active {
  overflow: hidden;
}

/* Stronger mobile player episode scroller affordance */
@media (max-width: 800px) {
  .player-side-title {
    padding-bottom: 0.35rem;
  }

  .player-ep-list {
    padding-right: 1.25rem;
  }

  .player-ep-item {
    flex: 0 0 42vw;
    max-width: 170px;
  }

  .player-fs-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .player-close {
    width: 44px;
    height: 44px;
  }

  .player-hint {
    font-size: 0.78rem;
  }
}

/* Landscape phone: prioritize video height when modal is open */
@media (max-width: 1100px) and (orientation: landscape) {
  /* Phone/tablet landscape: video left, title/desc right, episodes far right if space */
  .player-shell {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .player-layout {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 28vw);
    grid-template-rows: 1fr;
    height: 100vh;
    max-height: 100vh;
  }

  .player-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.75fr);
    grid-template-rows: 1fr;
    min-height: 0;
    height: 100%;
    background: #0a0a0c;
  }

  .player-video-wrap {
    height: 100% !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .player-video-wrap:has(.player-embed:not([hidden])) {
    height: 100% !important;
    max-height: 100vh !important;
    min-height: 0 !important;
  }

  .player-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem 0.75rem 0.65rem;
    overflow-y: auto;
    background: var(--bg-elevated, #12141a);
    border-left: 1px solid var(--border, rgba(255,255,255,0.08));
  }

  .player-desc,
  .player-hint {
    display: block;
  }

  .player-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    max-height: none;
  }

  .player-hint {
    font-size: 0.72rem;
  }

  .player-side {
    max-height: 100vh;
    border-left: 1px solid var(--border, rgba(255,255,255,0.08));
    border-top: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .player-ep-list {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem;
  }

  .player-ep-item {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .player-ep-thumb {
    height: 52px;
  }

  .player-embed:not([hidden]) {
    align-items: center !important;
    padding: 0.2rem !important;
  }
}


/* Make series row drag reliable across the whole card (not only the text area) */
.episode-card img,
.episode-card .play-overlay,
.episode-card .episode-number,
.episode-card .coming-soon-overlay {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.episode-x-link {
  pointer-events: auto;
}


/* X embed must fit inside the player frame */
.player-video-wrap {
  overflow: hidden;
}

.player-embed:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  background: #0a0a0c !important;
  padding: 0.25rem 0.25rem 0 !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
}

.player-embed .twitter-tweet,
.player-embed iframe,
.player-embed twitter-widget {
  margin: 0 auto !important;
  max-width: min(100%, 720px) !important;
  width: min(100%, 720px) !important;
}

/* Scale tweet widget to available height when possible */
.player-embed iframe {
  max-height: calc(100% - 0.5rem) !important;
}

/* Fullscreen controls removed — X embed has its own */
.player-fs-btn,
.player-fs-exit {
  display: none !important;
}

.gallery-play { display: none !important; }


/* ===== Compact player sized for 720×16:9 X embed ===== */
.player-shell {
  width: min(960px, 96vw) !important;
  max-height: min(94vh, 900px) !important;
  overflow: hidden !important;
}

.player-layout {
  grid-template-columns: minmax(0, 720px) 220px !important;
  max-height: min(94vh, 900px) !important;
  height: auto !important;
  align-items: stretch;
}

.player-main {
  max-width: 720px;
  width: 100%;
  background: var(--bg-elevated, #12141a) !important;
}

.player-video-wrap {
  width: 100% !important;
  max-width: 720px !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: min(40.5vw, 405px) !important; /* 720/16*9 = 405 */
  min-height: 0 !important;
  background: #0a0a0c !important;
}

.player-video-wrap:has(.player-embed:not([hidden])) {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  max-width: 720px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(48vh, 405px) !important;
}

.player-embed:not([hidden]) {
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0a0a0c !important;
}

.player-embed .twitter-tweet,
.player-embed iframe,
.player-embed twitter-widget {
  max-width: 720px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.player-meta {
  padding: 0.65rem 0.9rem 0.75rem !important;
  flex-shrink: 0;
}

.player-meta h3 {
  font-size: 1.05rem !important;
  line-height: 1.25;
}

.player-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.player-hint {
  display: none !important;
}

.player-side {
  width: 220px;
  max-width: 220px;
  min-height: 0 !important;
  overflow: hidden !important;
}

.player-ep-list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  cursor: grab;
  max-height: none !important;
  min-height: 0 !important;
}

.player-ep-list.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.player-ep-item {
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.player-ep-item.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.player-ep-item.active {
  background: rgba(224, 138, 92, 0.18) !important;
  border-color: rgba(224, 138, 92, 0.55) !important;
  box-shadow: inset 0 0 0 1px rgba(224, 138, 92, 0.25);
}

.player-ep-item:not(.disabled):hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 800px) {
  .player-shell {
    width: 100% !important;
    max-height: 100vh !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  .player-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    max-height: 100vh !important;
    height: 100% !important;
  }
  .player-main {
    max-width: 100%;
  }
  .player-video-wrap,
  .player-video-wrap:has(.player-embed:not([hidden])) {
    max-width: 100% !important;
    max-height: 42vh !important;
    aspect-ratio: 16 / 9 !important;
  }
  .player-side {
    width: 100% !important;
    max-width: none !important;
    max-height: 32vh !important;
    border-left: none !important;
    border-top: 1px solid var(--border);
  }
  .player-ep-list {
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 1100px) and (orientation: landscape) {
  .player-shell {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .player-layout {
    grid-template-columns: minmax(0, 1fr) 180px !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .player-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.7fr) !important;
    max-width: none;
  }
  .player-video-wrap,
  .player-video-wrap:has(.player-embed:not([hidden])) {
    max-height: 100vh !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  .player-side {
    max-height: 100vh !important;
    width: 180px !important;
  }
  .player-ep-list {
    overflow-y: auto !important;
  }
}


/* Drag affordances for series panel + episode tracks */
.series-scroll {
  cursor: grab;
}
.series-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto; /* snap off feel while dragging */
}
.episodes-track {
  cursor: grab;
  touch-action: pan-x;
}
.episodes-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto;
}
.episodes-track .episode-card {
  -webkit-user-drag: none;
}


/* ===== Series picker layout (one series at a time) ===== */
.series-picker-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.series-picker {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-card, #161a16);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 560px);
  overflow: hidden;
}

.series-picker .series-nav-label {
  margin: 0 0.35rem 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.series-picker .series-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-strong) transparent;
}
.series-picker .series-nav-list::-webkit-scrollbar {
  width: 4px;
}
.series-picker .series-nav-list::-webkit-scrollbar-thumb {
  background: var(--accent-strong);
  border-radius: 2px;
}

.series-pick {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.series-pick:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.series-pick.is-active {
  background: rgba(224, 138, 92, 0.14);
  border-color: rgba(224, 138, 92, 0.45);
}

.series-pick-name {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
}

.series-pick-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.series-detail {
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  cursor: default !important;
}

.series-detail .series-row {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  animation: seriesFade 0.25s ease;
}

.series-detail .series-row.is-active {
  display: block;
}

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

.series-detail .series-meta {
  margin-bottom: 1rem;
  max-width: none; /* align with cards below */
  padding-inline: 0;
}

.series-detail .series-name {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.series-detail .episodes-track {
  padding-bottom: 0.5rem;
}

/* Cards align with title text; arrows overlay edges instead of pushing layout */
.series-detail .episodes-carousel {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.series-detail .episodes-carousel .episodes-track {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.series-detail .episodes-carousel .ep-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 5;
  margin: 0;
}

.series-detail .episodes-carousel .ep-nav-prev {
  left: 0.25rem;
}

.series-detail .episodes-carousel .ep-nav-next {
  right: 0.25rem;
}

.series-detail .episodes-carousel .ep-nav-btn:hover {
  transform: translateY(-70%) scale(1.05);
}
.series-detail .episodes-carousel .ep-nav-btn:active {
  transform: translateY(-70%) scale(0.96);
}

@media (max-width: 860px) {
  /* Keep "Choose a series" on the left; shrink picker cards */
  .series-picker-layout {
    grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
    gap: 0.75rem 0.7rem;
    align-items: start;
  }
  .series-picker {
    position: sticky;
    top: 4.25rem;
    padding: 0.55rem 0.4rem 0.65rem;
    border-radius: 12px;
    max-height: min(62vh, 420px);
  }
  .series-picker .series-nav-label {
    margin: 0 0.2rem 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .series-picker .series-nav-list {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
    max-height: none; /* parent caps height */
  }
  .series-pick {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    gap: 0.12rem;
  }
  .series-pick-name {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .series-pick-meta {
    font-size: 0.62rem;
    line-height: 1.25;
  }
  .series-detail .series-name {
    font-size: 1.2rem;
  }
  .series-detail .series-tagline {
    font-size: 0.85rem;
  }
  .series-detail .series-meta {
    margin-bottom: 0.75rem;
  }
  /* Episode cards a bit tighter on phone beside the picker */
  .series-detail .episode-card {
    flex: 0 0 min(68vw, 220px);
    max-width: 230px;
  }
  .episodes-carousel .ep-nav-btn {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .series-picker-layout {
    grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
    gap: 0.55rem;
  }
  .series-pick-meta {
    /* keep meta for context; wrap if needed */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* ===== Moss #4d592e accents + decorative graphics ===== */
.section-eyebrow {
  color: var(--accent) !important; /* orange */
}

.section-header .section-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Orange line directly under white section title, same length as before */
.section-header .section-title::after {
  content: "";
  display: block;
  width: min(560px, 100%);
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 55%, rgba(224,138,92,0.15) 100%);
}

.section-header {
  position: relative;
}

.section-header::after {
  content: none;
}

/* Decorative leaf / brush SVG strips behind section headers */
.section-header {
  position: relative;
}

.section-header::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: -0.4rem;
  width: min(220px, 40vw);
  height: 72px;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80' fill='none'%3E%3Cpath d='M12 48c28-28 62-36 98-28 24 6 44 20 68 18 18-2 32-14 48-22' stroke='%234d592e' stroke-width='10' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M20 58c36-18 70-14 104-4 22 6 40 8 62 2' stroke='%236b7a42' stroke-width='6' stroke-linecap='round' opacity='0.7'/%3E%3Ccircle cx='168' cy='22' r='10' fill='%234d592e' opacity='0.55'/%3E%3Ccircle cx='188' cy='30' r='5' fill='%23e08a5c' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.navbar.scrolled,
.navbar.is-solid {
  border-bottom-color: rgba(77, 89, 46, 0.35);
  background: rgba(12, 16, 11, 0.88);
  backdrop-filter: blur(12px);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--moss-light);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--moss) !important;
  color: #e8ecd8 !important;
  background: rgba(77, 89, 46, 0.35) !important;
}

.series-pick.is-active {
  background: rgba(77, 89, 46, 0.28) !important;
  border-color: rgba(107, 122, 66, 0.65) !important;
}

.series-pick.is-active .series-pick-name {
  color: #e4ebd0;
}

.episode-card:hover {
  border-color: rgba(77, 89, 46, 0.55) !important;
}

.episode-number {
  background: rgba(208, 107, 60, 0.92) !important;
  color: #fff !important;
}

.gallery-cat {
  background: rgba(77, 89, 46, 0.82) !important; /* moss green labels */
  color: #eef2e0 !important;
}

.gallery-thumb.fantasy {
  background: linear-gradient(145deg, #2a3220 0%, #141c12 100%);
}

.gallery-thumb.space {
  background: linear-gradient(145deg, #1a2430 0%, #121820 100%);
}

.gallery-thumb.pets {
  background: linear-gradient(145deg, #2a241c 0%, #16140f 100%);
}

.gallery-thumb.character {
  background: linear-gradient(145deg, #322820 0%, #1a1612 100%);
}

/* Soft moss orbs / graphic dots in footer + contact */
.footer,
.contact-section {
  position: relative;
  overflow: hidden;
}

.footer::before,
.contact-section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 89, 46, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer::before {
  right: -60px;
  bottom: -80px;
}

.contact-section::before {
  left: -80px;
  top: -40px;
}

.footer .container,
.contact-section .container {
  position: relative;
  z-index: 1;
}

/* Accent bar on series detail */
.series-detail .series-name {
  color: #f0f3e6;
}

.series-detail .series-count,
.series-count {
  color: var(--accent) !important; /* orange episode counts */
}

/* CTA buttons pick up moss outline option */
.btn-secondary {
  border-color: rgba(77, 89, 46, 0.65) !important;
}

.btn-secondary:hover {
  border-color: var(--moss-light) !important;
  color: var(--moss-light) !important;
}

.btn-primary {
  box-shadow: 0 8px 24px rgba(208, 107, 60, 0.28);
}

/* Hero overlay removed — keep video bright */
.hero-overlay {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Decorative corner marks on player shell */
.player-shell {
  border-color: rgba(77, 89, 46, 0.35) !important;
}

.player-ep-item.active {
  background: rgba(77, 89, 46, 0.28) !important;
  border-color: rgba(107, 122, 66, 0.65) !important;
}

/* Thin moss rule under nav brand */
.nav-brand span {
  background: linear-gradient(90deg, var(--moss-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Episode carousel */
.episodes-carousel {
  position: relative;
  display: block;
  width: 100%;
}

.episodes-carousel .episodes-track {
  min-width: 0;
  width: 100%;
}

.episodes-carousel .ep-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 5;
}

.episodes-carousel .ep-nav-prev { left: 0.2rem; }
.episodes-carousel .ep-nav-next { right: 0.2rem; }

.ep-nav-btn {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(224, 138, 92, 0.45);
  background: rgba(26, 34, 24, 0.9);
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.ep-nav-btn:hover {
  background: rgba(208, 107, 60, 0.25);
  border-color: var(--accent);
  transform: scale(1.05);
}

.ep-nav-btn:active {
  transform: scale(0.96);
}

@media (max-width: 640px) {
  .ep-nav-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.15rem;
  }
}


/* Gallery related list inside player (phone: 2 across, scroll) */
.player-side.is-gallery-list .player-side-title {
  margin-bottom: 0.65rem;
}

#playerEpList.gallery-ep-grid,
.player-ep-list.gallery-ep-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.player-ep-item.is-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
}

.player-ep-item.is-gallery .gallery-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0a0c0a;
  flex-shrink: 0;
  height: auto !important;
  max-height: none !important;
}

.player-ep-item.is-gallery .gallery-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full thumbnail, no crop */
  display: block;
}

.player-ep-item.is-gallery .player-ep-info {
  padding: 0 0.15rem 0.15rem;
}

.player-ep-item.is-gallery .player-ep-info strong {
  font-size: 0.78rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 800px) {
  /* Portrait phone: gallery player uses full screen; list scrolls under video */
  .player-modal.open:has(.player-side.is-gallery-list) .player-shell,
  .player-modal.open .player-shell:has(.player-side.is-gallery-list) {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .player-modal.open .player-shell:has(.player-side.is-gallery-list) .player-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .player-modal.open .player-shell:has(.player-side.is-gallery-list) .player-main {
    flex: 0 0 auto;
  }

  .player-modal.open .player-shell:has(.player-side.is-gallery-list) .player-video-wrap {
    width: 100%;
    max-height: 42vh;
    aspect-ratio: 16 / 9;
  }

  .player-modal.open .player-shell:has(.player-side.is-gallery-list) .player-meta {
    padding: 0.55rem 0.85rem 0.35rem;
  }

  .player-side.is-gallery-list {
    display: block !important;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.35rem;
    padding: 0.35rem 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
  }

  #playerEpList.gallery-ep-grid,
  .player-ep-list.gallery-ep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem 0.5rem;
  }
}

/* Fallback without :has support */
@media (max-width: 800px) {
  .player-modal.is-gallery-open .player-shell {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .player-modal.is-gallery-open .player-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .player-modal.is-gallery-open .player-side.is-gallery-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
  }
}

@media (min-width: 801px) {
  .player-side.is-gallery-list #playerEpList.gallery-ep-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Swipe hint under series episode cards (replaces side buttons) */
.ep-nav-btn {
  display: none !important;
}

.ep-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.15rem 0;
  user-select: none;
  pointer-events: none;
}

.ep-swipe-arrow {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.95;
}

.ep-swipe-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.episodes-carousel .episodes-track {
  /* no side padding for removed buttons */
  width: 100%;
}


/* Gallery "more" list: show ALL items, vertical scroll */
.player-side.is-gallery-list {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.player-side.is-gallery-list .player-side-title {
  flex-shrink: 0;
}

.player-side.is-gallery-list #playerEpList,
.player-side.is-gallery-list .player-ep-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 800px) {
  .player-modal.is-gallery-open .player-shell,
  .player-modal.open .player-shell:has(.player-side.is-gallery-list) {
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .player-modal.is-gallery-open .player-layout,
  .player-modal.open .player-shell:has(.player-side.is-gallery-list) .player-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .player-modal.is-gallery-open .player-main {
    flex: 0 0 auto;
  }

  .player-modal.is-gallery-open .player-side.is-gallery-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }

  .player-modal.is-gallery-open #playerEpList.gallery-ep-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 801px) {
  .player-side.is-gallery-list {
    max-height: 100%;
  }
  .player-side.is-gallery-list #playerEpList.gallery-ep-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Phone: center swipe hint under the first episode card */
@media (max-width: 860px) {
  .series-detail .ep-swipe-hint {
    justify-content: center;
    width: min(68vw, 220px);
    max-width: 230px;
    margin-left: 0;
    margin-right: auto;
  }
}


/* Phone: smaller gallery category tags on thumbnails */
@media (max-width: 800px) {
  .gallery-cat {
    font-size: 0.48rem !important;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.28rem !important;
    border-radius: 4px;
    left: 0.3rem !important;
    bottom: 0.28rem !important;
    opacity: 0.82;
    max-width: calc(100% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* Smoother free series swipe on phone — native momentum, no card snap */
@media (max-width: 900px) {
  .episodes-track {
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  .episodes-track .episode-card {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal;
  }
}


/* Swipe-down handle above video (phone player) */
.player-swipe-handle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 22px;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 8;
  background: transparent;
}
.player-swipe-pill {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}
@media (max-width: 900px) {
  .player-swipe-handle {
    display: flex;
    height: 28px;
    padding-top: 6px;
  }
  /* Extra invisible hit area over top of video for swipe-down */
  .player-video-wrap {
    touch-action: pan-y;
  }
}


/* Web: gallery "more" list — full 16:9 thumbs, not cropped */
@media (min-width: 801px) {
  .player-side.is-gallery-list {
    width: min(280px, 28vw);
    min-width: 240px;
  }

  .player-side.is-gallery-list .player-ep-item.is-gallery {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .player-side.is-gallery-list .player-ep-item.is-gallery .player-ep-thumb,
  .player-side.is-gallery-list .player-ep-item.is-gallery .gallery-list-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
    flex-shrink: 0;
  }

  .player-side.is-gallery-list .player-ep-item.is-gallery .gallery-list-thumb img,
  .player-side.is-gallery-list .player-ep-item.is-gallery .player-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
  }

  .player-side.is-gallery-list #playerEpList.gallery-ep-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }
}


/* Web gallery player: less empty space bottom-left */
@media (min-width: 801px) {
  .player-modal.is-gallery-open .player-shell,
  .player-modal.open:has(.player-side.is-gallery-list) .player-shell {
    width: min(980px, 96vw);
    max-height: none;
    height: auto;
    align-self: center;
  }

  .player-modal.is-gallery-open .player-layout,
  .player-modal.open:has(.player-side.is-gallery-list) .player-layout {
    max-height: none;
    height: auto;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }

  .player-modal.is-gallery-open .player-video-wrap,
  .player-modal.open:has(.player-side.is-gallery-list) .player-video-wrap {
    max-height: min(56vh, 520px);
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .player-modal.is-gallery-open .player-main,
  .player-modal.open:has(.player-side.is-gallery-list) .player-main {
    height: auto;
  }

  .player-modal.is-gallery-open .player-meta,
  .player-modal.open:has(.player-side.is-gallery-list) .player-meta {
    padding: 0.75rem 1rem 0.85rem;
  }

  .player-modal.is-gallery-open .player-side.is-gallery-list,
  .player-modal.open .player-side.is-gallery-list {
    max-height: min(calc(56vh + 7rem), 620px);
    height: auto;
    align-self: stretch;
  }
}


/* < 3 episodes: no carousel, blank third slot, no swipe */
.episodes-track.no-carousel {
  overflow-x: hidden !important;
  scroll-snap-type: none !important;
  cursor: default;
  touch-action: pan-y;
}
.episodes-track.no-carousel .episode-card.is-spacer {
  flex: 0 0 280px;
  max-width: 280px;
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 800px) {
  .episodes-track.no-carousel .episode-card.is-spacer {
    flex: 0 0 min(68vw, 220px);
    max-width: 230px;
  }
}
.episodes-carousel:has(.no-carousel) .ep-swipe-hint {
  display: none !important;
}


.hero-now-playing {
  position: absolute;
  right: 1.25rem;
  left: auto;
  bottom: 1.25rem;
  z-index: 3;
  text-align: left;
  pointer-events: none;
  max-width: min(280px, 70vw);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(8, 10, 9, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-now-playing .np-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.hero-now-playing .np-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .hero-now-playing {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.5rem 0.65rem;
  }
  .hero-content {
    padding: 1.25rem 1rem 1.35rem;
  }
}


/* Hero bottom text — phone */
@media (max-width: 800px) {
  .hero {
    align-items: flex-end;
    text-align: left;
    padding: 4.5rem 1rem 1.35rem;
    min-height: 100svh;
  }
  .hero-content {
    max-width: 100%;
    padding-bottom: 2.5rem;
    padding-right: 0.25rem;
  }
  .hero-eyebrow {
    font-size: 0.62rem;
    padding: 0.22rem 0.5rem;
  }
  .hero-title {
    font-size: clamp(1.35rem, 5.8vw, 1.7rem);
    margin-bottom: 0.45rem;
  }
  .hero-subtitle {
    font-size: 0.78rem;
    line-height: 1.45;
    max-width: 92%;
  }
  .hero-now-playing {
    right: 0.55rem;
    left: auto;
    top: auto;
    bottom: 0.5rem;
    max-width: none;
    width: max-content;
    max-width: calc(100vw - 1.2rem);
    padding: 0.3rem 0.45rem;
  }
  .hero-now-playing .np-label {
    font-size: 0.5rem;
    margin-bottom: 0.08rem;
  }
  .hero-now-playing .np-title {
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 1.8rem);
  }
}


.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}
