:root {
  --bg: #0A0A0C;
  --bg1: #121317;
  --card: #17181D;
  --card2: #1E2025;
  --line: #2A2B33;
  --line-light: rgba(255, 255, 255, 0.1);
  --ink: #F3F3F5;
  --dim: #A6A7B2;
  --faint: #6e707d;
  --accent: #F5A524;
  --accent-light: #ffc15a;
  --accent-ink: #241701;
  --font: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Ambient glow backgrounds */
.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  max-width: 100vw;
  overflow: hidden;
}

.ambient-one {
  width: 520px;
  height: 520px;
  background: #F5A524;
  top: 60px;
  right: 5%;
}

.ambient-two {
  width: 440px;
  height: 440px;
  background: #c27613;
  top: 1100px;
  left: -180px;
  opacity: 0.10;
}

.ambient-three {
  width: 480px;
  height: 480px;
  background: #F5A524;
  top: 2200px;
  right: -150px;
  opacity: 0.08;
}

/* Container */
.section-wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  height: 86px;
  width: min(1280px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 18px var(--display);
  letter-spacing: 0.08em;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.35);
  border-radius: 9px;
}

.brand-mark span {
  width: 3.5px;
  border-radius: 4px;
  background: var(--accent);
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 13px; }

.nav-links {
  display: flex;
  gap: 32px;
  color: var(--dim);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.header-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(245, 165, 36, 0.08);
  border: 1px solid rgba(245, 165, 36, 0.25);
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: rgba(245, 165, 36, 0.16);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 48px;
  padding-top: 50px;
  padding-bottom: 75px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.pulse, .meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px #F5A524;
}

.hero h1 {
  font: 700 clamp(44px, 5.2vw, 68px)/1.05 var(--display);
  letter-spacing: -0.045em;
  margin: 22px 0 18px;
}

.gradient-text {
  background: linear-gradient(100deg, #ffe0a3 0%, #F5A524 50%, #d98213 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 520px;
  color: var(--dim);
  font-size: 17.5px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(245, 165, 36, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.button-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 165, 36, 0.32);
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.button-quiet:hover, .button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 165, 36, 0.05);
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 30px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-dot {
  width: 6px;
  height: 6px;
}

/* Hero Showcase Visuals */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.screen-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.18) 0%, rgba(245, 165, 36, 0.04) 55%, transparent 75%);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
}

.hero-device-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  z-index: 1;
}

/* TV Mockup in Hero */
.hero-tv-mockup {
  position: relative;
  width: 90%;
  border-radius: 14px;
  background: #14151a;
  border: 2px solid #32343e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tv-bezel-top {
  height: 24px;
  background: #1b1c22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.tv-brand-pill {
  font: 700 9px var(--display);
  letter-spacing: 0.14em;
  color: var(--dim);
}

.tv-brand-pill span {
  color: var(--accent);
}

.tv-status-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff5565;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tv-status-badge i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff4757;
}

.tv-screen-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.tv-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tv-screen-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.tv-bezel-bottom {
  height: 14px;
  background: #15161b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tv-chin-led {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* Phone Mockup in Hero */
.hero-phone-mockup {
  position: absolute;
  right: -8px;
  bottom: -32px;
  width: 185px;
  border-radius: 28px;
  background: #0b0c10;
  border: 3px solid #383a45;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.3s ease;
}

.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 9px;
  border-radius: 10px;
  background: #000;
  z-index: 3;
}

.phone-screen-wrap {
  position: relative;
  aspect-ratio: 792 / 1785;
  background: #000;
  overflow: hidden;
}

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

.phone-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* Floating Chips in Hero */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 24, 30, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  z-index: 4;
}

.chip-top {
  top: -12px;
  right: 12px;
}

.chip-bottom {
  bottom: -18px;
  left: -15px;
}

.chip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
}

.chip-icon.amber {
  color: var(--accent);
  background: rgba(245, 165, 36, 0.16);
  border: 1px solid rgba(245, 165, 36, 0.3);
}

.float-chip b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.float-chip small {
  display: block;
  font-size: 11px;
  color: var(--dim);
}

/* Trust Strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
}

.trust-strip div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.trust-strip div:first-child {
  border: 0;
  padding-left: 0;
}

.trust-strip strong {
  display: block;
  font: 700 13px var(--display);
  letter-spacing: 0.12em;
  color: var(--ink);
}

.trust-strip span {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-top: 5px;
}

/* Section Common */
.section-block {
  padding-top: 110px;
  padding-bottom: 30px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered p {
  margin-inline: auto;
}

.section-heading h2,
.download-inner h2,
.support-panel h2 {
  font: 700 clamp(36px, 4.2vw, 54px)/1.08 var(--display);
  letter-spacing: -0.04em;
  margin: 18px 0;
}

.section-heading p,
.download-inner p,
.support-panel p {
  color: var(--dim);
  font-size: 16.5px;
  line-height: 1.7;
}

.muted-heading {
  color: #797c8b;
}

/* Screenshots Showcase Section */
.screens-section {
  position: relative;
}

.screens-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.tab-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: rgba(245, 165, 36, 0.4);
  color: var(--ink);
}

.tab-btn.active {
  background: rgba(245, 165, 36, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 165, 36, 0.18);
}

.tab-btn .tab-badge {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active .tab-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.screens-tab-content {
  display: none;
}

.screens-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

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

/* TV Showcase Cards Grid */
.tv-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tv-card {
  background: linear-gradient(150deg, #181920, #111216);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tv-card:hover {
  border-color: rgba(245, 165, 36, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.tv-card-header {
  margin-bottom: 16px;
}

.tv-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tv-card h3 {
  font: 700 21px var(--display);
  margin: 0 0 8px;
  color: #fff;
}

.tv-card p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.tv-device-frame {
  margin-top: 18px;
  border-radius: 10px;
  background: #000;
  border: 2px solid #2d2e38;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  cursor: pointer;
}

.tv-device-frame:hover img {
  transform: scale(1.02);
}

.tv-device-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tv-device-frame:hover .zoom-overlay,
.phone-card-frame:hover .zoom-overlay {
  opacity: 1;
}

.zoom-overlay span {
  padding: 8px 16px;
  background: rgba(245, 165, 36, 0.95);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Phone Showcase Cards Grid */
.phone-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.phone-card {
  background: linear-gradient(150deg, #181920, #111216);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.phone-card:hover {
  border-color: rgba(245, 165, 36, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.phone-card-frame {
  position: relative;
  width: 175px;
  border-radius: 24px;
  background: #000;
  border: 2.5px solid #333541;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  cursor: pointer;
}

.phone-card-frame:hover img {
  transform: scale(1.03);
}

.phone-card-frame img {
  width: 100%;
  aspect-ratio: 792 / 1785;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.phone-card h3 {
  font: 700 18.5px var(--display);
  margin: 0 0 6px;
  color: #fff;
}

.phone-card p {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* Features Grid (THE ARCHITECTURE) - Clean Non-Image Design */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  min-height: 260px;
  background: linear-gradient(145deg, #191a20, #121317);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(245, 165, 36, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.feature-card.feature-wide {
  grid-column: span 2;
}

.feature-card-content {
  flex-grow: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 165, 36, 0.35);
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font: 700 21px var(--display);
  margin: 0 0 10px;
  color: #fff;
}

.feature-card p {
  color: var(--dim);
  font-size: 14.5px;
  max-width: 460px;
  margin: 0;
  line-height: 1.65;
}

/* Clean Feature Card Visuals without cropped images */
.library-visual {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.library-line {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  margin: 8px 0;
}

.library-line.active {
  background: linear-gradient(90deg, var(--accent) 45%, rgba(255, 255, 255, 0.12) 45%);
}

.library-line.short {
  width: 60%;
}

.library-pills {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.library-pills span {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
}

.library-pills span.active {
  color: var(--accent);
  border-color: rgba(245, 165, 36, 0.45);
  background: rgba(245, 165, 36, 0.10);
}

.library-pills span.active i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.engine-tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.engine-pill {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 13px;
  border-radius: 6px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
}

.engine-pill.active {
  color: var(--accent);
  border-color: rgba(245, 165, 36, 0.4);
  background: rgba(245, 165, 36, 0.08);
}

.card-caption-tag {
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
}

.tv-control-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-preview-capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.dpad-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.dpad-row {
  display: flex;
  gap: 3px;
}

.dpad-btn {
  width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: var(--dim);
}

.dpad-btn.dpad-center {
  background: rgba(245, 165, 36, 0.14);
  border-color: var(--accent);
  color: var(--accent);
  font-size: 7.5px;
}

.remote-sync-visual {
  margin-top: 22px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sync-devices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.device-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.device-pill.accent {
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.3);
  color: var(--accent);
}

.sync-arrow {
  color: var(--accent);
  font-size: 13px;
}

.sync-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3ddc97;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 8px #3ddc97;
}

.audio-stream-visual {
  margin-top: 22px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin-bottom: 12px;
}

.equalizer-bars span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
}

.equalizer-bars span:nth-child(1) { height: 40%; }
.equalizer-bars span:nth-child(2) { height: 75%; }
.equalizer-bars span:nth-child(3) { height: 100%; }
.equalizer-bars span:nth-child(4) { height: 55%; }
.equalizer-bars span:nth-child(5) { height: 85%; }
.equalizer-bars span:nth-child(6) { height: 45%; }
.equalizer-bars span:nth-child(7) { height: 90%; }

.audio-stream-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.audio-badge {
  color: var(--dim);
}

.bitrate-badge {
  color: var(--accent);
}

.fine-print {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 24px;
  line-height: 1.6;
}

/* Download Section */
.download-section {
  margin-top: 110px;
  background: linear-gradient(110deg, #17181d, #111216);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.download-inner {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding-block: 75px;
  gap: 36px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.download-actions .button {
  min-width: 210px;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 20px;
}

.play-store-icon {
  font-size: 22px;
}

.download-actions small,
.download-actions b {
  display: block;
  line-height: 1.35;
}

.download-actions small {
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.download-actions b {
  font-size: 15.5px;
}

.arrow {
  margin-left: auto;
}

.text-link {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.download-orbit {
  position: relative;
  display: grid;
  place-items: center;
  height: 380px;
}

.orbit-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(245, 165, 36, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(245, 165, 36, 0.1), inset 0 0 60px rgba(245, 165, 36, 0.05);
}

.orbit-ring:before,
.orbit-ring:after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-ring:after {
  inset: 60px;
  border-style: solid;
  border-color: rgba(245, 165, 36, 0.18);
}

.orbit-phone-frame {
  position: relative;
  width: 170px;
  border-radius: 28px;
  background: #08090b;
  border: 3px solid #4a4d5c;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: rotate(6deg);
  z-index: 2;
  transition: transform 0.3s ease;
}

.orbit-phone-frame:hover {
  transform: rotate(0deg) scale(1.03);
}

.orbit-phone-screen {
  aspect-ratio: 792 / 1785;
  background: #000;
  overflow: hidden;
}

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

.orbit-label {
  position: absolute;
  right: 5%;
  top: 30px;
  font: 700 12px/1.5 var(--display);
  letter-spacing: 0.16em;
  color: var(--dim);
  z-index: 3;
}

.orbit-label b {
  color: var(--accent);
}

/* Open Source Section */
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.source-card {
  background: linear-gradient(145deg, #191a20, #121317);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.source-card-highlight {
  border-color: #76551e;
  box-shadow: inset 0 1px rgba(245, 165, 36, 0.15);
}

.source-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.repo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.repo-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--dim);
}

.public-pill {
  margin-left: auto;
  color: #9de0bd;
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.source-card h3 {
  font: 700 24px var(--display);
  margin: 22px 0 10px;
  color: #fff;
}

.source-card p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.repo-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12.5px;
  margin: 24px 0;
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  min-height: 46px;
  background: rgba(255, 255, 255, 0.02);
}

.open-note {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.open-note span {
  color: var(--accent);
  font-size: 16px;
}

.open-note p {
  margin: 0;
}

/* Support Section */
.support-block {
  padding-top: 100px;
  padding-bottom: 100px;
}

.support-panel {
  padding: 44px 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(110deg, #1b1b20, #121317);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.support-panel h2 {
  font-size: 38px;
}

.support-panel p {
  font-size: 15.5px;
  margin-bottom: 0;
}

.support-links {
  min-width: 230px;
  display: grid;
  gap: 14px;
}

.support-links a {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.support-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  padding-left: 4px;
}

.support-links span {
  color: var(--accent);
}

/* Playlist Provider & Content Disclaimer Card */
.playlist-info-card {
  margin-top: 28px;
  padding: 36px 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #17181e, #111216);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.playlist-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.playlist-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.3);
  color: var(--accent);
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.playlist-badge {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.playlist-info-header h3 {
  font: 700 22px var(--display);
  margin: 0;
  color: #fff;
}

.playlist-disclaimer-box {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(245, 165, 36, 0.06);
  border: 1px solid rgba(245, 165, 36, 0.24);
  margin-bottom: 22px;
  align-items: flex-start;
}

.warning-icon {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.playlist-disclaimer-box p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #eeddbf;
}

.playlist-disclaimer-box strong {
  color: #fff;
}

.playlist-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.playlist-link-text h4 {
  font: 700 17px var(--display);
  margin: 0 0 6px;
  color: #fff;
}

.playlist-link-text p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  max-width: 600px;
  line-height: 1.6;
}

.playlist-action-btn {
  white-space: nowrap;
  gap: 8px;
  font-size: 14px;
}

.playlist-footer-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand {
  font-size: 16px;
}

.site-footer .brand-mark {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 26px;
  color: var(--dim);
  font-size: 13.5px;
}

.site-footer p {
  font-size: 13px;
  color: var(--faint);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lightbox-caption {
  margin-top: 14px;
  color: #fff;
  font: 600 15px var(--display);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.1);
}

/* Privacy Page */
.privacy-main {
  max-width: 860px;
  padding: 90px 0 120px;
}

.privacy-main h1 {
  font: 700 clamp(40px, 5.5vw, 56px)/1.1 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.privacy-main h2 {
  font: 700 23px var(--display);
  margin-top: 42px;
  margin-bottom: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.privacy-main p,
.privacy-main li {
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.8;
}

.privacy-main ul {
  padding-left: 22px;
  margin: 14px 0 22px;
}

.privacy-main li {
  margin-bottom: 8px;
}

.permission-block {
  margin: 16px 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.permission-block:hover {
  border-color: rgba(245, 165, 36, 0.35);
}

.permission-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.permission-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.permission-tag {
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 165, 36, 0.3);
}

.permission-desc {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

.policy-meta-box {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: rgba(245, 165, 36, 0.06);
  border: 1px solid rgba(245, 165, 36, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.policy-meta-box span {
  font-size: 13.5px;
  color: var(--ink);
}

.policy-meta-box b {
  color: var(--accent);
}

.contact-card {
  margin-top: 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #181920, #121317);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-card strong {
  display: block;
  font-size: 17px;
  font-family: var(--display);
  color: #fff;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Playlist Creator Tool Styles
   ========================================================================== */
.font-mono {
  font-family: 'JetBrains Mono', monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.nav-links a.nav-active {
  color: var(--accent);
  font-weight: 600;
}

.creator-main {
  padding-top: 48px;
  padding-bottom: 90px;
}

.creator-hero {
  margin-bottom: 34px;
}

.creator-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  margin: 12px 0 14px;
  line-height: 1.15;
}

.creator-lead {
  font-size: 17px;
  color: var(--dim);
  max-width: 760px;
  line-height: 1.65;
  margin: 0;
}

.creator-lead code {
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', monospace;
}

.creator-toolbar-quick {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card2);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 165, 36, 0.08);
  transform: translateY(-1px);
}

.tool-btn.text-danger:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.creator-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.creator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.45), transparent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 18px;
  gap: 16px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header h2 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 700;
}

.card-header p {
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}

.header-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 165, 36, 0.15);
  border: 1px solid rgba(245, 165, 36, 0.35);
  padding: 4px 12px;
  border-radius: 100px;
  align-self: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.form-label .required {
  color: var(--accent);
}

.attr-tag {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--accent);
  background: rgba(245, 165, 36, 0.1);
  border: 1px solid rgba(245, 165, 36, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.field-hint {
  font-size: 12px;
  color: var(--faint);
}

.form-input {
  width: 100%;
  height: 48px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18);
  background: #14151a;
}

.form-input::placeholder {
  color: rgba(166, 167, 178, 0.45);
  font-size: 13.5px;
}

/* Logo Input Row with Live Preview Box */
.logo-input-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.logo-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.preview-box {
  width: 82px;
  height: 82px;
  background: var(--bg1);
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.preview-box:hover {
  border-color: var(--accent);
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.preview-placeholder,
.preview-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.preview-error span {
  color: #ef4444;
}

.preview-label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

/* Playlist Header Bar & Summary */
.playlist-header-bar {
  margin-top: 44px;
  margin-bottom: 24px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.playlist-summary {
  display: flex;
  gap: 28px;
  align-items: center;
}

.summary-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-number {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filename-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 48px;
}

.filename-prefix {
  font-size: 13px;
  color: var(--faint);
  margin-right: 6px;
}

.filename-input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  outline: none;
  width: 135px;
}

.download-m3u-btn {
  min-height: 48px;
  padding: 0 20px;
  gap: 8px;
  font-weight: 700;
}

/* Raw Code Inspector */
.raw-code-section {
  margin-bottom: 24px;
}

.raw-code-card {
  background: #0c0d11;
  border-color: #272832;
  padding: 0;
  overflow: hidden;
}

.raw-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14151b;
  padding: 12px 18px;
  border-bottom: 1px solid #272832;
}

.code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.tool-btn-sm {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn-sm:hover {
  background: rgba(245, 165, 36, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.raw-code-block {
  margin: 0;
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #a5b4fc;
  background: #0c0d11;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Grid Filter Bar */
.grid-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: min(260px, 100%);
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--faint);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 36px 0 38px;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.filter-input:focus {
  border-color: var(--accent);
}

.clear-filter-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.category-filter-pills {
  display: flex;
  gap: 8px 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cat-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  user-select: none;
}

.cat-pill:hover {
  border-color: var(--line-light);
  color: var(--ink);
}

.cat-pill.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Channel Grid & Cards */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.channel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-width: 0; /* prevent grid blowout */
  overflow: hidden;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 165, 36, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-logo-fallback {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  font-family: var(--display);
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.card-channel-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-cat {
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 165, 36, 0.28);
}

.badge-epg {
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
  border: 1px solid var(--line);
  font-size: 10.5px;
}

.card-url-wrap {
  background: var(--bg1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.url-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.url-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.url-text {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.copy-url-btn {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.copy-url-btn:hover {
  color: var(--accent);
}

.card-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reorder-btns,
.edit-delete-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-card-action {
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-card-action:hover:not(:disabled) {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.btn-card-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-edit:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 165, 36, 0.1);
}

.btn-delete:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
}

.empty-state p {
  font-size: 15px;
  color: var(--dim);
  max-width: 440px;
  margin: 0 auto 24px;
}

.no-filter-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--dim);
}

.no-filter-results p {
  margin: 0 0 16px;
}

/* Guide Section */
.guide-card {
  margin-bottom: 50px;
}

.guide-card h3 {
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px;
}

.guide-card p {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0 0 20px;
}

.guide-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.guide-table th {
  background: var(--bg1);
  color: var(--dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--dim);
  word-break: break-word;
}

.guide-table td code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(245, 165, 36, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.toast-item {
  pointer-events: auto;
  background: #16171d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.toast-item.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast-item.toast-warning { border-color: rgba(234, 179, 8, 0.4); }
.toast-item.toast-danger { border-color: rgba(239, 68, 68, 0.4); }

/* ==========================================================================
   Video Player Modal (Video.js powered)
   ========================================================================== */

/* Theme overrides for Video.js to match MaxPlayer dark aesthetic */
.vjs-maxplayer-theme.video-js {
  background-color: #000;
  font-family: var(--font);
  /* no border-radius — control bar must reach bottom edge */
}

/* Control bar base — always rendered, fades when inactive during playback */
.vjs-maxplayer-theme .vjs-control-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;   /* never collapse the bar */
  visibility: visible !important;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 65%, transparent 100%) !important;
  z-index: 25 !important;
  height: 48px;
  padding: 0 8px;
  align-items: center;
  opacity: 1;                 /* default visible — no !important so lower rules can override */
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

/* Auto-hide: fade out after inactivity while playing */
.vjs-maxplayer-theme.vjs-user-inactive.vjs-playing .vjs-control-bar {
  opacity: 0;
  pointer-events: none;       /* clicks pass through to the video when hidden */
  transition: opacity 0.5s ease 1s;
}

/* Snap back immediately when user moves / pauses / touches */
.vjs-maxplayer-theme.vjs-user-active .vjs-control-bar,
.vjs-maxplayer-theme.vjs-paused .vjs-control-bar {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.15s ease !important;
}

/* Big play button */
.vjs-maxplayer-theme .vjs-big-play-button {
  background: rgba(245, 165, 36, 0.92);
  border: none;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  line-height: 68px;
  font-size: 28px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  transition: transform 0.2s ease, background 0.2s ease;
  /* Keep above our custom loading overlay */
  z-index: 15;
}

.vjs-maxplayer-theme .vjs-big-play-button:hover,
.vjs-maxplayer-theme .vjs-big-play-button:focus {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.12);
}

/* Hide the native VJS loading spinner — we render our own */
.vjs-maxplayer-theme .vjs-loading-spinner {
  display: none !important;
}

/* Progress / volume accent */
.vjs-maxplayer-theme .vjs-play-progress,
.vjs-maxplayer-theme .vjs-volume-level {
  background-color: var(--accent);
}

.vjs-maxplayer-theme .vjs-load-progress {
  background: rgba(245, 165, 36, 0.3);
}

.vjs-maxplayer-theme .vjs-slider:focus {
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.4);
}

/* Tooltip / menu styling */
.vjs-maxplayer-theme .vjs-menu-button-popup .vjs-menu {
  background: #17181d;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vjs-maxplayer-theme .vjs-menu li {
  color: var(--dim);
  font-size: 13px;
}

.vjs-maxplayer-theme .vjs-menu li.vjs-selected,
.vjs-maxplayer-theme .vjs-menu li:hover {
  background: rgba(245, 165, 36, 0.15);
  color: var(--accent);
}

/* Captions/subtitles display on video */
.vjs-maxplayer-theme .vjs-text-track-display .vjs-text-track {
  font-size: 1.2em;
  background: rgba(0,0,0,0.75);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Full-screen overlay for the video player */
.vp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vp-overlay.active {
  display: flex;
  opacity: 1;
}

.vp-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(900px, 100%);
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0,0,0,0.85);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Player Header */
.vp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.vp-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.vp-header-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-header-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.vp-now-playing-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.vp-live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: vpPulse 1.4s ease-in-out infinite;
}

@keyframes vpPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.55; transform: scale(0.78); box-shadow: 0 0 3px var(--accent); }
}

.vp-channel-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.vp-category-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  background: var(--card2);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 100px;
}

.vp-close-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: var(--dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.vp-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* Player Wrapper — 16:9 container */
.vp-player-wrap {
  position: relative;
  background: #000;
  flex-shrink: 0;
  /* Explicit height so the control bar always has room */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
}

.vp-player-wrap .video-js {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

/* Cancel VJS fluid mode's own padding-top trick — we control sizing via aspect-ratio */
.vp-player-wrap .video-js.vjs-fluid,
.vp-player-wrap .video-js.vjs-responsive {
  padding-top: 0 !important;
  height: 100% !important;
}

/* Video element itself must fill the container */
.vp-player-wrap .video-js video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Loading State — matches site's amber dot aesthetic */
.vp-loading-state,
.vp-error-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.7);
  /* Must be BELOW the VJS control bar (z:20) but above the video */
  z-index: 10;
  pointer-events: none;
  color: var(--dim);
  font-size: 14px;
}

.vp-error-state {
  pointer-events: auto;
  gap: 10px;
}

.vp-error-state p {
  margin: 0;
  font-weight: 600;
  color: #ef4444;
  font-size: 15px;
}

.vp-error-hint {
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  max-width: 320px;
}

/* Three animated dots spinner — matches site .pulse style */
.vp-spinner-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-spinner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: vpDotBounce 1.2s ease-in-out infinite;
}

.vp-spinner-dots span:nth-child(2) { animation-delay: 0.2s; }
.vp-spinner-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vpDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1.1); opacity: 1; box-shadow: 0 0 18px var(--accent); }
}

/* ---- Subtitle / Caption Panel ---- */
.vp-subtitle-panel {
  border-top: 1px solid var(--line);
  background: var(--bg1);
  flex-shrink: 0;
}

.vp-subtitle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease;
}

.vp-subtitle-header:hover {
  background: rgba(245,165,36,0.06);
}

.vp-subtitle-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.vp-subtitle-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}

.vp-subtitle-active-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 100px;
}

.vp-subtitle-chevron {
  color: var(--faint);
  transition: transform 0.22s ease;
}

.vp-subtitle-panel.open .vp-subtitle-chevron {
  transform: rotate(180deg);
}

.vp-subtitle-panel.open .vp-subtitle-header-left {
  color: var(--accent);
}

.vp-subtitle-body {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Source tabs */
.vp-subtitle-source-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.vp-sub-tab {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.18s ease;
}

.vp-sub-tab:hover {
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}

.vp-sub-tab.active {
  background: rgba(245,165,36,0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* File upload drop zone */
.vp-sub-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dim);
  background: var(--card2);
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.18s ease;
}

.vp-sub-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,165,36,0.06);
}

.vp-sub-upload-label span {
  font-weight: 500;
}

/* Language/label mini row */
.vp-sub-lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vp-sub-mini-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}

.vp-sub-input-sm {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s;
  width: 90px;
}

.vp-sub-input-sm:focus {
  border-color: var(--accent);
}

.vp-sub-apply-btn {
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
  gap: 7px;
}

.vp-sub-off-hint {
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 14px;
}

/* Player Footer */
.vp-footer {
  padding: 12px 18px;
  background: var(--bg1);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.vp-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
  width: 100%;
}

.vp-url-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.vp-url-text {
  font-size: 12px;
  color: var(--dim);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-copy-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--dim);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vp-copy-url-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vp-hint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faint);
}

.vp-hint-row strong {
  color: var(--accent);
}

/* ============================================================
   Channel Card — updated layout with large play button on logo
   ============================================================ */

/* Make the card-top clickable play area */
.card-play-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.card-logo-wrap-play {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 140px;
  max-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo-wrap-play .card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-logo-wrap-play .card-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--faint);
  font-family: var(--display);
  background: #0b0c10;
  border-radius: 10px;
}

/* Play icon overlay */
.card-play-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 10px;
}

.card-play-icon {
  width: 42px;
  height: 42px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: scale(0.85);
  transition: transform 0.22s ease;
}

/* Show play overlay on hover (desktop) */
.card-play-btn:hover .card-play-icon-wrap,
.card-play-btn:focus-visible .card-play-icon-wrap {
  opacity: 1;
}

.card-play-btn:hover .card-play-icon {
  transform: scale(1);
}

.card-play-btn:hover .card-logo-img {
  transform: scale(1.04);
  opacity: 0.85;
}

/* Always show play icon on touch devices (no hover available) */
@media (hover: none) {
  .card-play-icon-wrap {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
  }
  .card-play-icon {
    transform: scale(1);
    width: 36px;
    height: 36px;
  }
}

/* Stack card info below the play area */
.card-info-block {
  padding: 0 2px 6px;
}

/* Small "Play" button in the footer action bar */
.btn-play-sm {
  color: var(--accent) !important;
  border-color: rgba(245, 165, 36, 0.4) !important;
}

.btn-play-sm:hover:not(:disabled) {
  background: rgba(245, 165, 36, 0.12) !important;
  border-color: var(--accent) !important;
}

/* Import URL Modal */
.creator-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.creator-modal.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 0;
}

.modal-close-btn {
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(245, 165, 36, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-desc {
  font-size: 14px;
  color: var(--dim);
  margin: 0 0 20px;
  line-height: 1.5;
}

.modal-desc code {
  color: var(--accent);
  background: rgba(245, 165, 36, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', monospace;
}

.modal-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.presets-label {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
}

.preset-pill-btn {
  background: var(--bg1);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 165, 36, 0.08);
}

.paste-text-accordion {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--dim);
}

.paste-text-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  user-select: none;
}

.paste-text-accordion summary:hover {
  color: var(--accent);
}

.paste-text-wrap {
  margin-top: 12px;
}

.paste-textarea {
  height: 110px;
  padding: 10px 14px;
  resize: vertical;
  font-size: 12.5px;
  line-height: 1.5;
}

.modal-footer-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

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

/* Responsive Breakpoints */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-art {
    margin-top: 20px;
  }
  .phone-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .nav-links {
    gap: 20px;
  }
  .hero {
    gap: 20px;
  }
  .hero-tv-mockup {
    width: 95%;
  }
  .hero-phone-mockup {
    width: 160px;
    right: 0;
    bottom: -24px;
  }
  .tv-showcase-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.feature-wide {
    grid-column: span 2;
  }
  .download-inner {
    gap: 24px;
  }
  .support-panel {
    padding: 34px;
  }
  .creator-card {
    padding: 24px;
  }
  .playlist-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .download-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  /* ---- Creator toolbar wraps to 2 cols on tablet ---- */
  .creator-toolbar-quick {
    gap: 10px;
  }
  .tool-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* ---- Video player modal narrower on tablet ---- */
  .vp-modal {
    width: min(720px, 100%);
  }
  .vp-channel-title {
    max-width: 320px;
  }

  /* ---- Channel cards: 2-col grid on tablet ---- */
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .ambient {
    display: none !important;
  }
  .section-wrap,
  .site-header {
    width: calc(100% - 32px);
    max-width: 100%;
    box-sizing: border-box;
  }
  .site-header {
    height: 72px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 18px;
  }
  .header-cta {
    font-size: 12px;
    padding: 6px 12px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    padding: 20px;
    background: #17181df8;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(20px);
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 25px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-lead {
    font-size: 15.5px;
  }
  .hero-tv-mockup {
    width: 100%;
  }
  .hero-phone-mockup {
    width: 125px;
    right: -5px;
    bottom: -15px;
  }
  .float-chip {
    padding: 8px 12px;
  }
  .chip-top {
    top: -15px;
    right: 0;
  }
  .chip-bottom {
    bottom: -20px;
    left: 0;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 22px 0;
  }
  .trust-strip div {
    padding-left: 16px;
  }
  .trust-strip div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .section-block {
    padding-top: 75px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .phone-showcase-grid {
    grid-template-columns: 1fr;
  }
  .phone-card-frame {
    width: 200px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card.feature-wide {
    grid-column: auto;
  }
  .download-section {
    margin-top: 75px;
  }
  .download-inner {
    grid-template-columns: 1fr;
    padding-block: 55px;
  }
  .download-inner h2 {
    font-size: 38px;
  }
  .download-orbit {
    height: 320px;
    margin-top: 15px;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .source-card {
    padding: 24px;
  }
  .support-block {
    padding-block: 75px;
  }
  .support-panel {
    display: block;
    padding: 28px 24px;
  }
  .support-panel h2 {
    font-size: 30px;
  }
  .support-links {
    margin-top: 28px;
  }
  .playlist-info-card {
    padding: 26px 20px;
  }
  .playlist-link-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .playlist-action-btn {
    width: 100%;
    justify-content: center;
  }
  .site-footer {
    padding-block: 28px;
    flex-wrap: wrap;
  }
  .footer-links {
    order: 3;
    width: 100%;
    gap: 18px;
  }
  .site-footer p {
    margin-left: auto;
  }
  .privacy-main {
    padding-top: 60px;
  }
  .creator-main {
    padding-top: 28px;
  }
  .creator-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .logo-input-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .logo-preview-container {
    flex-direction: row;
    gap: 12px;
  }
  .preview-box {
    width: 64px;
    height: 64px;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
  .playlist-header-bar {
    padding: 16px;
  }
  .playlist-summary {
    justify-content: space-around;
  }
  .download-cluster {
    flex-direction: column;
    align-items: stretch;
  }
  .filename-input-wrap {
    width: 100%;
  }
  .filename-input {
    width: 100%;
  }
  .download-m3u-btn {
    width: 100%;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .grid-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .search-input-wrap {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .category-filter-pills {
    width: 100%;
  }

  /* ======================================================
     CREATOR PAGE — mobile fixes (≤650px)
     ====================================================== */

  /* Hero text */
  .creator-hero {
    margin-bottom: 24px;
  }
  .creator-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
    margin: 8px 0 10px;
  }
  .creator-lead {
    font-size: 15px;
  }

  /* Toolbar: stack buttons full-width */
  .creator-toolbar-quick {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }
  .tool-btn {
    width: 100%;
    justify-content: center;
    font-size: 13.5px;
    padding: 10px 16px;
  }

  /* Card header stacks on small screen */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* ======================================================
     CHANNEL CARDS — mobile fixes (≤650px)
     ====================================================== */

  /* Single column, full-width */
  .channel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .channel-card {
    padding: 16px;
    gap: 12px;
  }

  /* Logo / poster thumbnail clean 16:9 on mobile — fully visible */
  .card-logo-wrap-play {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 130px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .card-play-icon {
    width: 36px;
    height: 36px;
  }

  /* Channel name clear and readable */
  .card-channel-name {
    font-size: 16px;
    font-weight: 700;
  }

  /* Badges readable */
  .badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
  }

  /* URL box: readable and clean */
  .card-url-wrap {
    padding: 8px 12px;
  }
  .url-label {
    font-size: 11px;
    font-weight: 700;
  }
  .url-text {
    font-size: 12.5px;
  }

  /* Footer: reorder on left, play+edit+delete on right, touch-friendly */
  .card-footer-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .reorder-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  .edit-delete-btns {
    display: flex;
    flex: 1;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .btn-card-action {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    gap: 5px;
    min-height: 36px;
  }
  .btn-play-sm {
    font-size: 13px;
    font-weight: 700;
  }

  /* Category filter pills: responsive wrapping pills */
  .category-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    width: 100%;
    padding: 2px 0;
  }
  .cat-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    min-height: 36px;
  }

  /* Raw code block */
  .raw-code-block {
    font-size: 12px;
    overflow-x: auto;
  }

  /* ======================================================
     VIDEO PLAYER MODAL — responsive mobile (≤650px)
     ====================================================== */

  /* Centered popup with dark blurred backdrop */
  .vp-overlay {
    padding: 10px;
    align-items: center;
    justify-content: center;
  }

  /* Modal card: responsive, elegant corners, fits screen height */
  .vp-modal {
    width: 100%;
    max-width: 580px;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 18px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ── Header ─────────────────────── */
  .vp-header {
    padding: 12px 16px;
    gap: 12px;
    flex-shrink: 0;
    background: var(--bg1);
    border-bottom: 1px solid var(--line);
  }
  .vp-header-info {
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }
  .vp-header-logo-wrap {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .vp-now-playing-label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.08em;
  }
  .vp-channel-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    max-width: calc(100vw - 120px);
  }
  .vp-close-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
    flex-shrink: 0;
  }

  /* ── Video area ──────────────────── */
  .vp-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  /* VJS elements fill wrapper completely */
  .vp-player-wrap .video-js {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
  }

  /* ── Control bar: full width, bottom anchored, touch targets ──── */
  .vjs-maxplayer-theme .vjs-control-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 6px !important;
    font-size: 14px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 65%, transparent 100%) !important;
    z-index: 30 !important;
    display: flex !important;
    visibility: visible !important;
  }
  .vjs-maxplayer-theme .vjs-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 100% !important;
  }
  .vjs-maxplayer-theme .vjs-button .vjs-icon-placeholder:before {
    font-size: 20px !important;
    line-height: 50px !important;
  }
  .vjs-maxplayer-theme .vjs-current-time,
  .vjs-maxplayer-theme .vjs-duration,
  .vjs-maxplayer-theme .vjs-time-divider {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-family: var(--font-mono, monospace) !important;
    padding: 0 4px !important;
    min-width: auto !important;
    line-height: 1 !important;
    color: #e2e8f0 !important;
  }
  .vjs-maxplayer-theme .vjs-progress-control {
    flex: 1 !important;
    min-width: 50px !important;
    align-items: center !important;
    padding: 0 6px !important;
  }
  .vjs-maxplayer-theme .vjs-progress-holder {
    height: 6px !important;
    border-radius: 3px !important;
  }
  .vjs-maxplayer-theme .vjs-play-progress {
    border-radius: 3px !important;
  }
  .vjs-maxplayer-theme .vjs-big-play-button {
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    font-size: 26px !important;
  }

  /* ── Subtitle panel ─────────────── */
  .vp-subtitle-panel {
    border-left: none;
    border-right: none;
    flex-shrink: 0;
  }
  .vp-subtitle-header {
    padding: 12px 16px;
    font-size: 14px;
  }
  .vp-subtitle-header-left span {
    font-size: 14px;
    font-weight: 600;
  }
  .vp-subtitle-active-badge {
    font-size: 11px;
    padding: 2px 7px;
  }
  .vp-subtitle-body {
    padding: 14px 16px 16px;
  }
  .vp-subtitle-source-tabs {
    gap: 8px;
    margin-bottom: 14px;
  }
  .vp-sub-tab {
    flex: 1;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 8px;
    min-height: 38px;
  }
  .vp-sub-lang-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .vp-sub-mini-label {
    font-size: 12.5px;
  }
  .vp-sub-input-sm {
    min-width: 0;
    flex: 1;
    font-size: 14px;
    height: 38px;
  }
  .vp-sub-apply-btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    min-height: 40px;
  }
  .vp-sub-upload-label {
    padding: 14px;
    font-size: 13.5px;
  }
  .vp-sub-off-hint {
    font-size: 13px;
  }

  /* ── Footer URL bar ─────────────── */
  .vp-footer {
    padding: 12px 16px 16px;
    flex-shrink: 0;
    background: var(--bg1);
    border-top: 1px solid var(--line);
  }
  .vp-url-row {
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
  }
  .vp-url-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
  }
  .vp-url-text {
    font-size: 13px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dim);
  }
  .vp-copy-url-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 32px;
  }
  .vp-hint-row {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dim);
  }

  /* ======================================================
     IMPORT URL MODAL — mobile fixes (≤650px)
     ====================================================== */
  .creator-modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    width: 100%;
    max-height: 92dvh;
    max-height: 92vh; /* fallback */
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 22px 18px;
  }
  .modal-header h3 {
    font-size: 18px;
  }
  .modal-presets {
    gap: 6px;
  }
  .modal-footer-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .modal-footer-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Landscape phone — player fills screen height ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .vp-overlay {
    padding: 0;
    align-items: stretch;
  }
  .vp-modal {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    flex-direction: column;
    overflow: hidden;
  }
  .vp-player-wrap {
    aspect-ratio: unset;
    flex: 1;
    min-height: 0;
  }
  .vp-header {
    padding: 6px 12px;
    min-height: auto;
  }
  .vp-footer {
    padding: 6px 12px 8px;
  }
  .vp-subtitle-panel {
    overflow-y: auto;
  }
  /* Slim control bar in landscape */
  .vjs-maxplayer-theme .vjs-control-bar {
    height: 38px;
  }
}

/* ---- Very small phones (≤400px) ---- */
@media (max-width: 400px) {
  .creator-hero h1 {
    font-size: 26px;
  }

  /* Cards stay clean and readable */
  .channel-card {
    padding: 14px;
  }
  .card-logo-wrap-play {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 120px;
    max-height: 180px;
  }
  .card-channel-name {
    font-size: 15px;
    font-weight: 700;
  }
  .btn-card-action {
    padding: 6px 10px;
    font-size: 12.5px;
    min-height: 34px;
  }

  /* VJS control bar: compact but comfortable to touch */
  .vjs-maxplayer-theme .vjs-control-bar {
    height: 46px !important;
    padding: 0 4px !important;
  }
  .vjs-maxplayer-theme .vjs-button {
    min-width: 40px !important;
    width: 40px !important;
  }
  .vjs-maxplayer-theme .vjs-big-play-button {
    width: 54px !important;
    height: 54px !important;
    line-height: 54px !important;
    font-size: 22px !important;
  }

  /* Player header */
  .vp-channel-title {
    font-size: 15px;
    max-width: calc(100vw - 70px);
  }

  .cat-pill {
    font-size: 12.5px;
    padding: 6px 12px;
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}
