/*
Theme Name: CAN Station
Theme URI: https://example.com/can-station
Author: OpenAI Codex
Author URI: https://openai.com
Description: WordPress theme for a live community channel platform.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: can-station
*/

:root {
  --bg: #080b12;
  --bg-elevated: #0f1420;
  --panel: #111826;
  --panel-soft: #171f30;
  --panel-strong: #0d121d;
  --text: #f5f7fb;
  --muted: #9aabc4;
  --muted-strong: #cbd5e5;
  --accent: #ff0000;
  --accent-soft: rgba(255, 0, 0, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --site-width: min(1520px, calc(100vw - 32px));
  --content-width: min(1160px, 100%);
  --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(239, 51, 64, 0.18), transparent 24%),
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #070a10 0%, #0a0f18 46%, #06080d 100%);
  min-height: 100vh;
}

body.can-station-dark .site,
body.can-station-dark .site-content,
body.can-station-dark .content-area,
body.can-station-dark #primary,
body.can-station-dark #content,
body.can-station-dark .site-main,
body.can-station-dark article,
body.can-station-dark .entry-content,
body.can-station-dark .ast-container {
  background: transparent !important;
}

body.post-type-archive-ca_channel .entry-header,
body.single-ca_channel .entry-header,
body.post-type-archive-ca_channel .page-header {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: var(--site-width);
  margin: 0 auto;
}

.page-wrap {
  padding: 28px 0 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.84);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header__inner {
  min-height: 76px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__logo-image {
  align-self: center;
  display: block;
  width: 255px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff0000);
  color: #fff;
  box-shadow: var(--shadow);
}

.nav-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a,
.pill-button,
.menu-toggle,
.ca-chip,
.ca-action-button,
.ca-remote-launch,
.ca-remote__close {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.pill-button,
.menu-toggle,
.ca-chip,
.ca-action-button,
.ca-remote-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.pill-button--accent,
.ca-remote-launch,
.ca-action-button:not(.ca-action-button--muted):not(.ca-action-button--outline):not(.ca-action-button--home):not(.ca-action-button--guide):not(.ca-action-button--account):not(.ca-action-button--auth):not(.ca-action-button--archive),
.ca-badge--live {
  background: linear-gradient(135deg, var(--accent), #ff0000);
  border-color: transparent;
  color: #fff;
}

.menu-toggle {
  display: none;
}

.panel,
.ca-channel-card,
.ca-program-card,
.ca-surf-item,
.ca-sponsor__card,
.ca-empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.96), rgba(10, 14, 22, 0.96));
  box-shadow: var(--shadow);
}

.ca-homepage,
.ca-channel-directory,
.ca-single-channel {
  display: grid;
  gap: 22px;
}

.ca-homepage__intro,
.ca-directory-hero,
.ca-channel-meta,
.ca-sponsor,
.ca-remote {
  padding: 28px;
}

.ca-homepage__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.ca-homepage__title,
.ca-directory-hero h1,
.ca-channel-meta h1,
.ca-section-heading h2,
.ca-remote__header h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.ca-homepage__title,
.ca-directory-hero h1,
.ca-channel-meta h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.ca-homepage__summary,
.ca-directory-hero p,
.ca-channel-meta__summary,
.ca-remote__description,
.ca-sponsor__tagline,
.ca-surf-item__body p,
.ca-channel-card__description,
.ca-channel-card__now,
.ca-content-prose,
.site-footer {
  color: var(--muted);
}

.ca-homepage__actions,
.ca-chip-strip,
.ca-card-row,
.ca-card-grid,
.ca-program-list,
.ca-surf-list,
.ca-action-grid {
  display: grid;
  gap: 16px;
}

.ca-chip-strip {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  align-items: start;
}

.ca-chip {
  width: fit-content;
  background: rgba(255, 255, 255, 0.03);
}

.ca-browse-section {
  display: grid;
  gap: 16px;
}

.ca-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ca-section-kicker,
.ca-remote__label {
  margin: 0 0 8px;
  color: #ff0000;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

.ca-section-link {
  color: var(--muted-strong);
}

.ca-card-row {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 300px));
  justify-content: start;
}

.ca-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 300px));
  justify-content: start;
}

.ca-channel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
}

.ca-channel-card:hover,
.ca-chip:hover,
.ca-chip:focus-visible,
.ca-action-button:hover,
.ca-remote-launch:hover,
.ca-surf-item:hover,
.ca-sponsor__card:hover,
.pill-button:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}
.ca-sponsor__link,
.ca-sponsor__link:hover,
.ca-sponsor__link:focus,
.ca-sponsor__card:hover .ca-sponsor__link {
  color: #FF0000;
}
.ca-channel-card.is-active {
  border-color: rgba(239, 51, 64, 0.55);
}

.ca-channel-card__media {
  position: relative;
  background: #0d111a;
}

.ca-channel-card__image,
.ca-channel-card__placeholder,
.ca-surf-item__thumb,
.ca-surf-item__thumb--placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ca-channel-card__placeholder,
.ca-surf-item__thumb--placeholder,
.ca-player-fallback {
  background:
    linear-gradient(135deg, rgba(239, 51, 64, 0.18), rgba(255, 255, 255, 0.04)),
    #0d111a;
}

.ca-channel-card__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ca-channel-card__header-row,
.ca-channel-card__footer,
.ca-channel-meta__header,
.ca-remote__header,
.ca-remote__status-row,
.ca-surf-item__title-row,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ca-channel-card__title,
.ca-program-card__title,
.ca-remote__channel-title,
.ca-sponsor__name,
.ca-surf-item__title-row h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

.ca-channel-card__header-row {
  align-items: start;
}

.ca-channel-card__footer,
.ca-remote__status-row,
.ca-surf-item__title-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ca-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-badge--muted,
.ca-action-button--muted {
  background: rgba(255, 255, 255, 0.05);
}

.ca-action-button--outline {
  background: transparent;
}

.ca-action-button[disabled],
.ca-action-button--muted[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.ca-empty-state {
  padding: 26px;
}

.ca-single-channel__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 22px;
  align-items: start;
}

.ca-single-channel__main {
  display: grid;
  gap: 18px;
}

.ca-player-shell {
  overflow: hidden;
}

.ca-player-embed {
  position: relative;
  width: 100%;
  background: #000;
}

.ca-player-embed iframe,
.ca-player-embed video,
.ca-player-embed embed,
.ca-player-embed object,
.ca-player-embed [class*="strimm"],
.ca-player-embed [id*="embedded"],
.ca-player-embed [id*="uzer"],
.ca-player-embed div[style*="max-width"] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 620px !important;
  height: 72vh !important;
  max-height: 900px !important;
  border: 0 !important;
}

.ca-player-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 32px;
}

.ca-single-channel__controls {
  display: flex;
  justify-content: flex-start;
}

.ca-channel-meta__header {
  align-items: start;
}

.ca-content-prose {
  max-width: var(--content-width);
  line-height: 1.7;
}

.ca-content-prose p:first-child {
  margin-top: 0;
}

.ca-content-prose a {
  color: #ffb8bf;
}

.ca-sponsor__card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.ca-sponsor__logo {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

.ca-sponsor__link {
  display: inline-flex;
  margin-top: 10px;
  color: #FF0000;
  font-weight: 700;
}

.ca-remote {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.ca-remote__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #ff0000;
  background: #ff0000;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(255, 0, 0, 0.24);
}

.ca-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ca-program-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.98), rgba(10, 15, 24, 0.98));
}

.ca-program-card.is-current {
  border-color: rgba(239, 51, 64, 0.4);
}

.ca-program-card__time {
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ca-surf-list {
  gap: 14px;
}

.ca-surf-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
}

.ca-surf-item.is-current {
  border-color: rgba(239, 51, 64, 0.45);
}

.ca-surf-item__thumb {
  border-radius: 12px;
}

.ca-surf-item__body {
  min-width: 0;
}

.ca-surf-item__body p {
  margin: 0;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
}

@media (max-width: 1180px) {
  .ca-single-channel__layout {
    grid-template-columns: 1fr;
  }

  .ca-remote {
    position: static;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 8px;
    flex-wrap: wrap;
  }

  .nav-links.is-open {
    display: flex;
  }

  .ca-homepage__intro,
  .ca-section-heading,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-shell {
    width: min(100vw - 24px, 100%);
  }

  .page-wrap {
    padding: 18px 0 48px;
  }

  .ca-homepage__intro,
  .ca-directory-hero,
  .ca-channel-meta,
  .ca-sponsor,
  .ca-remote {
    padding: 22px;
  }

  .ca-action-grid {
    grid-template-columns: 1fr;
  }

  .ca-player-embed iframe,
  .ca-player-embed video,
  .ca-player-embed embed,
  .ca-player-embed object,
  .ca-player-embed [class*="strimm"],
  .ca-player-embed [id*="embedded"],
  .ca-player-embed [id*="uzer"],
  .ca-player-embed div[style*="max-width"] {
    min-height: 320px !important;
    height: 56.25vw !important;
    max-height: 560px !important;
  }

  .ca-sponsor__card,
  .ca-surf-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .pill-button,
  .ca-homepage__actions .pill-button,
  .ca-chip {
    width: 100%;
  }

  .ca-card-row,
  .ca-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) {
  .ca-single-channel[data-drawer-state="closed"] .ca-single-channel__layout {
    grid-template-columns: minmax(0, 1fr) 0;
  }

  .ca-single-channel[data-drawer-state="closed"] .ca-remote {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 0;
    border-width: 0;
    min-height: 0;
    transform: translateX(20px);
  }
}

@media (max-width: 1180px) {
  .ca-single-channel[data-drawer-state="closed"] .ca-remote {
    display: none;
  }
}


.home .page-wrap {
  padding-top: 0;
}

.communityaccess-homepage {
  --bg: #0a0d14;
  --bg-2: #101726;
  --panel: #101827;
  --panel-2: #121d30;
  --border: rgba(255,255,255,.08);
  --text: #f4f7fb;
  --muted: #9fb0c7;
  --accent: #ff0000;
  --chip: #1a2438;
  --live: #ff0000;
  --shadow: 0 12px 30px rgba(0,0,0,.32);
  --radius: 18px;
  background: radial-gradient(circle at top left, #0f1c39 0%, var(--bg) 35%);
  color: var(--text);
}

.communityaccess-homepage a {
  color: inherit;
  text-decoration: none;
}

.communityaccess-homepage .site-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 22px 56px;
}

.communityaccess-homepage .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8,10,16,.92), rgba(8,10,16,.76));
  border-bottom: 1px solid var(--border);
  margin: 0 0 24px;
  padding: 14px 22px;
}

.communityaccess-homepage .topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.communityaccess-homepage .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.communityaccess-homepage .brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff7b54, var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.communityaccess-homepage .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.communityaccess-homepage .nav a.active {
  color: var(--text);
  font-weight: 700;
}

.communityaccess-homepage .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.communityaccess-homepage .btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.communityaccess-homepage .btn-primary {
  background: linear-gradient(135deg, #ff7b54, var(--accent));
  border: none;
}

.communityaccess-homepage .intro {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
}

.communityaccess-homepage .intro-panel,
.communityaccess-homepage .side-panel {
  background: linear-gradient(180deg, rgba(18,29,48,.92), rgba(10,13,20,.92));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.communityaccess-homepage .intro-panel {
  padding: 26px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.communityaccess-homepage .eyebrow {
  color: #f1a78d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.communityaccess-homepage h1 {
  font-size: 44px;
  line-height: 1.02;
  margin: 0 0 12px;
}

.communityaccess-homepage .intro-copy {
  color: var(--muted);
  max-width: 860px;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.communityaccess-homepage .side-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.communityaccess-homepage .mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.communityaccess-homepage .mini-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.communityaccess-homepage .mini-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.communityaccess-homepage .mini-stat span {
  color: var(--muted);
  font-size: 13px;
}

.communityaccess-homepage .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.communityaccess-homepage .chip {
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.communityaccess-homepage .chip.active {
  background: rgba(255,90,95,.18);
  border-color: rgba(255,90,95,.45);
}

.communityaccess-homepage .section {
  margin-bottom: 30px;
}

.communityaccess-homepage .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 14px;
}

.communityaccess-homepage .section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.communityaccess-homepage .section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.communityaccess-homepage .section-link {
  color: #f1a78d;
  font-size: 14px;
  font-weight: 700;
}

.communityaccess-homepage .channel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.communityaccess-homepage .channel-card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(18,24,39,.96), rgba(11,16,27,.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.communityaccess-homepage .channel-card > a {
  display: block;
  height: 100%;
}

.communityaccess-homepage .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #38507a, #243553 45%, #16233b 100%);
  position: relative;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 14px;
  overflow: hidden;
}

.communityaccess-homepage .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.communityaccess-homepage .thumb::after {
  content: "CHANNEL THUMBNAIL";
  position: absolute;
  inset: auto 14px 14px 14px;
  color: rgba(255,255,255,.35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.communityaccess-homepage .thumb.has-image::after {
  display: none;
}

.communityaccess-homepage .live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,90,95,.92);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 7px 10px;
  text-transform: uppercase;
  z-index: 1;
}

.communityaccess-homepage .status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8,10,16,.74);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
  z-index: 1;
}

.communityaccess-homepage .card-body {
  padding: 16px;
}

.communityaccess-homepage .channel-name {
  font-size: 26px;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 900;
}

.communityaccess-homepage .now-playing {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}

.communityaccess-homepage .now-playing strong {
  color: #f1a78d;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  display: inline-block;
  margin-right: 6px;
}

.communityaccess-homepage .card-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.communityaccess-homepage .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.communityaccess-homepage .meta-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  color: var(--text);
}

.communityaccess-homepage .category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.communityaccess-homepage .category-card {
  min-height: 104px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,24,39,.96), rgba(9,14,24,.96));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.communityaccess-homepage .category-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.communityaccess-homepage .category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.communityaccess-homepage .footer-note {
  margin-top: 44px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .communityaccess-homepage .intro {
    grid-template-columns: 1fr;
  }

  .communityaccess-homepage .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communityaccess-homepage h1 {
    font-size: 36px;
  }
}

@media (max-width: 720px) {
  .communityaccess-homepage .topbar-inner {
    flex-wrap: wrap;
  }

  .communityaccess-homepage .nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
  }

  .communityaccess-homepage .site-shell {
    padding: 16px 14px 40px;
  }

  .communityaccess-homepage h1 {
    font-size: 31px;
  }

  .communityaccess-homepage .section-title {
    font-size: 25px;
  }

  .communityaccess-homepage .channel-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .communityaccess-homepage .category-grid {
    grid-template-columns: 1fr;
  }
}

.home .page-wrap {
.home .page-wrap {
  padding: 0;
}

.communityaccess-wireframe {
  background: radial-gradient(circle at top left, #0f1c39 0%, #0a0d14 35%);
  color: #f4f7fb;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.communityaccess-wireframe a {
  color: inherit;
  text-decoration: none;
}

.communityaccess-wireframe .site-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 22px 56px;
}

.communityaccess-wireframe .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8,10,16,.92), rgba(8,10,16,.76));
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 0 0 24px;
  padding: 14px 22px;
}

.communityaccess-wireframe .topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.communityaccess-wireframe .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.communityaccess-wireframe .brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff7b54, #ff5a5f);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.communityaccess-wireframe .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #9fb0c7;
  font-size: 14px;
}

.communityaccess-wireframe .nav a.active {
  color: #f4f7fb;
  font-weight: 700;
}

.communityaccess-wireframe .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.communityaccess-wireframe .btn {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #f4f7fb;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.communityaccess-wireframe .btn-primary {
  background: linear-gradient(135deg, #ff7b54, #ff5a5f);
  border: none;
}

.communityaccess-wireframe .intro {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
}

.communityaccess-wireframe .intro-panel,
.communityaccess-wireframe .side-panel {
  background: linear-gradient(180deg, rgba(18,29,48,.92), rgba(10,13,20,.92));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

.communityaccess-wireframe .intro-panel {
  padding: 26px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.communityaccess-wireframe .eyebrow {
  color: #f1a78d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.communityaccess-wireframe h1 {
  font-size: 44px;
  line-height: 1.02;
  margin: 0 0 12px;
}

.communityaccess-wireframe .intro-copy {
  color: #9fb0c7;
  max-width: 860px;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.communityaccess-wireframe .side-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.communityaccess-wireframe .mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.communityaccess-wireframe .mini-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
}

.communityaccess-wireframe .mini-stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.communityaccess-wireframe .mini-stat span {
  color: #9fb0c7;
  font-size: 13px;
}

.communityaccess-wireframe .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.communityaccess-wireframe .chip {
  background: #1a2438;
  border: 1px solid rgba(255,255,255,.08);
  color: #f4f7fb;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.communityaccess-wireframe .chip.active {
  background: rgba(255,90,95,.18);
  border-color: rgba(255,90,95,.45);
}

.communityaccess-wireframe .section {
  margin-bottom: 30px;
}

.communityaccess-wireframe .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 14px;
}

.communityaccess-wireframe .section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.communityaccess-wireframe .section-note {
  margin: 0;
  color: #9fb0c7;
  font-size: 13px;
}

.communityaccess-wireframe .section-link {
  color: #f1a78d;
  font-size: 14px;
  font-weight: 700;
}

.communityaccess-wireframe .channel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.communityaccess-wireframe .channel-card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(18,24,39,.96), rgba(11,16,27,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  min-height: 100%;
}

.communityaccess-wireframe .channel-card > a {
  display: block;
  height: 100%;
}

.communityaccess-wireframe .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #38507a, #243553 45%, #16233b 100%);
  position: relative;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 14px;
  overflow: hidden;
}

.communityaccess-wireframe .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.communityaccess-wireframe .thumb::after {
  content: "CHANNEL THUMBNAIL";
  position: absolute;
  inset: auto 14px 14px 14px;
  color: rgba(255,255,255,.35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.communityaccess-wireframe .thumb.has-image::after {
  display: none;
}

.communityaccess-wireframe .live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,90,95,.92);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 7px 10px;
  text-transform: uppercase;
  z-index: 1;
}

.communityaccess-wireframe .status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8,10,16,.74);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
  z-index: 1;
}

.communityaccess-wireframe .card-body {
  padding: 16px;
}

.communityaccess-wireframe .channel-name {
  font-size: 26px;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 900;
}

.communityaccess-wireframe .now-playing {
  color: #f4f7fb;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}

.communityaccess-wireframe .now-playing strong {
  color: #f1a78d;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  display: inline-block;
  margin-right: 6px;
}

.communityaccess-wireframe .card-copy {
  color: #9fb0c7;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.communityaccess-wireframe .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.communityaccess-wireframe .meta-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  color: #f4f7fb;
}

.communityaccess-wireframe .category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.communityaccess-wireframe .category-card {
  min-height: 104px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(16,24,39,.96), rgba(9,14,24,.96));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

.communityaccess-wireframe .category-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.communityaccess-wireframe .category-card p {
  margin: 0;
  color: #9fb0c7;
  font-size: 14px;
  line-height: 1.5;
}

.communityaccess-wireframe .footer-note {
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  color: #9fb0c7;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .communityaccess-wireframe .intro {
    grid-template-columns: 1fr;
  }

  .communityaccess-wireframe .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communityaccess-wireframe h1 {
    font-size: 36px;
  }
}

@media (max-width: 720px) {
  .communityaccess-wireframe .topbar-inner {
    flex-wrap: wrap;
  }

  .communityaccess-wireframe .nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
  }

  .communityaccess-wireframe .site-shell {
    padding: 16px 14px 40px;
  }

  .communityaccess-wireframe h1 {
    font-size: 31px;
  }

  .communityaccess-wireframe .section-title {
    font-size: 25px;
  }

  .communityaccess-wireframe .channel-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .communityaccess-wireframe .category-grid {
    grid-template-columns: 1fr;
  }
}

.ca-remote__section--schedule {
  display: grid;
  gap: 14px;
}

.ca-program-card__description {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ca-action-stack {
  display: grid;
  gap: 14px;
}

.ca-action-stack .ca-action-grid {
  gap: 14px;
}

.ca-action-stack .ca-action-button {
  width: 100%;
}
.ca-program-card__status {
  margin: 0 0 10px;
  color: #ffd700;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ca-program-card__meta {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ca-program-card--browser {
  min-height: 168px;
  justify-content: center;
}

.ca-remote__section--search {
  display: grid;
  gap: 14px;
}
.ca-program-browser__count {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.ca-up-next-list {
  display: grid;
  gap: 14px;
}

.ca-program-card--up-next {
  padding: 14px 16px;
}
.ca-auth-page,
.ca-account-page {
  display: grid;
  gap: 24px;
}

.ca-auth-hero,
.ca-account-hero {
  padding: 32px;
}

.ca-auth-hero h1,
.ca-account-hero h1,
.ca-account-overview h2,
.ca-account-actions h2,
.ca-account-followed h2 {
  margin: 0 0 12px;
}

.ca-auth-panel,
.ca-account-overview,
.ca-account-actions,
.ca-account-followed {
  padding: 24px;
}

.ca-auth-form {
  display: grid;
  gap: 16px;
}

.ca-auth-form label,
.ca-account-card {
  display: grid;
  gap: 8px;
}

.ca-auth-form span,
.ca-account-card span {
  color: #d3b28b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ca-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-strong);
}

.ca-auth-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 0, 0, 0.35);
  border-radius: 14px;
  background: rgba(255, 0, 0, 0.08);
}

.ca-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 20px;
}

.ca-account-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ca-account-card,
.ca-account-empty-state {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.ca-account-card strong,
.ca-account-empty-state h3 {
  font-size: 1.15rem;
}

.ca-account-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ca-account-empty-state {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .ca-account-grid,
  .ca-account-cards {
    grid-template-columns: 1fr;
  }
}
.ca-remote-action-form {
  width: 100%;
}

.ca-remote-action-form .ca-action-button {
  width: 100%;
}

.ca-followed-channel-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.ca-followed-channel-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.ca-followed-channel-card h3,
.ca-followed-channel-card p {
  margin: 0;
}

.ca-action-button--home {
  background: linear-gradient(135deg, #006600, #004d00);
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(0, 102, 0, 0.28);
}

.ca-action-button--home:hover,
.ca-action-button--home:focus-visible {
  background: linear-gradient(135deg, #008000, #006600);
}


.ca-action-button--guide {
  background: linear-gradient(135deg, #663399, #4f2677);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(102, 51, 153, 0.22);
}

.ca-action-button--guide:hover,
.ca-action-button--guide:focus-visible {
  background: linear-gradient(135deg, #7744aa, #5d2d8d);
}

.ca-action-button--account {
  background: linear-gradient(135deg, #3333cc, #24249e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(51, 51, 204, 0.22);
}

.ca-action-button--account:hover,
.ca-action-button--account:focus-visible {
  background: linear-gradient(135deg, #4141db, #2d2daf);
}

.ca-action-button--auth {
  background: linear-gradient(135deg, #ff9933, #db7d1e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(255, 153, 51, 0.22);
}

.ca-action-button--auth:hover,
.ca-action-button--auth:focus-visible {
  background: linear-gradient(135deg, #ffab52, #ea8821);
}

.ca-action-button--archive {
  background: linear-gradient(135deg, #999999, #767676);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(153, 153, 153, 0.22);
}

.ca-action-button--archive:hover,
.ca-action-button--archive:focus-visible {
  background: linear-gradient(135deg, #aaaaaa, #848484);
}



.ca-remote-launch {
  width: auto;
  height: auto;
}


.ca-remote-launch__label {
  display: inline-flex;
  align-items: center;
}

.ca-search {
  --ca-search-surface: #f8fbff;
  --ca-search-surface-strong: #ffffff;
  --ca-search-border: rgba(11, 18, 32, 0.1);
  --ca-search-text: #0f1728;
  --ca-search-muted: #66758f;
  --ca-search-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.ca-search__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.78fr) minmax(0, 1.4fr) auto;
  align-items: stretch;
  gap: 14px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(12, 18, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--ca-search-shadow);
}

.ca-search__field {
  min-width: 0;
}

.ca-search__label {
  display: block;
  margin: 0 0 6px;
  color: #9fb1c9;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-search__control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--ca-search-border);
  background: linear-gradient(180deg, var(--ca-search-surface-strong), var(--ca-search-surface));
}

.ca-search__icon {
  flex: 0 0 auto;
  color: #8695ad;
  font-size: 0.95rem;
}

.ca-search__control select,
.ca-search__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ca-search-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.ca-search__control select {
  appearance: none;
  padding-right: 18px;
  background-image: linear-gradient(45deg, transparent 50%, #61708a 50%), linear-gradient(135deg, #61708a 50%, transparent 50%);
  background-position: calc(100% - 10px) calc(50% - 3px), calc(100% - 5px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ca-search__control input::placeholder {
  color: var(--ca-search-muted);
  opacity: 1;
}

.ca-search__field:focus-within .ca-search__label {
  color: #ffffff;
}

.ca-search__field:focus-within .ca-search__control {
  border-color: rgba(255, 90, 95, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.16);
}

.ca-search__actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.ca-search__submit {
  min-width: 132px;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff4d39, #f02121);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(240, 33, 33, 0.2);
}

.ca-search__submit:hover,
.ca-search__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 0, 0, 0.28);
}

.ca-search__reset {
  align-self: center;
  color: #d7e3f7;
  font-size: 0.84rem;
  font-weight: 700;
}

.ca-search__reset:hover,
.ca-search__reset:focus-visible {
  color: #ffffff;
}

.ca-search--homepage .ca-search__shell {
  width: 100%;
}
.ca-search--homepage .ca-search__label {
  color: #ff0000;
}

.ca-search--homepage .ca-search__field:focus-within .ca-search__label {
  color: #ff0000;
}


@media (max-width: 1180px) {
  .ca-search__shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-search__field--keyword {
    grid-column: 1 / -1;
  }

  .ca-search__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .ca-search__shell {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .ca-search__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ca-search__submit {
    width: 100%;
  }

  .ca-search__reset {
    align-self: flex-start;
  }
}


/* Responsive remediation foundation */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

iframe,
video,
embed,
object,
svg,
table {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
label,
button {
  overflow-wrap: anywhere;
}

.site-shell {
  width: min(var(--site-width), calc(100vw - 24px));
}

.brand {
  min-width: 0;
}

.brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel,
.ca-channel-card,
.ca-program-card,
.ca-surf-item,
.ca-sponsor__card,
.ca-empty-state,
.ca-auth-panel,
.ca-account-overview,
.ca-account-actions,
.ca-account-followed {
  min-width: 0;
}

.ca-card-row,
.ca-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.ca-single-channel__layout,
.ca-account-grid,
.ca-account-cards,
.ca-followed-channel-list,
.ca-program-list,
.ca-action-stack,
.ca-up-next-list {
  min-width: 0;
}

.ca-player-shell,
.ca-player-embed {
  width: 100%;
  max-width: 100%;
}

.ca-player-embed {
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 56vw, 620px);
  overflow: hidden;
}

.ca-player-embed iframe,
.ca-player-embed video,
.ca-player-embed embed,
.ca-player-embed object,
.ca-player-embed [class*="strimm"],
.ca-player-embed [id*="embedded"],
.ca-player-embed [id*="uzer"],
.ca-player-embed div[style*="max-width"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
}

.ca-content-prose,
.ca-channel-meta__summary,
.ca-program-card__title,
.ca-program-card__meta,
.ca-remote__label,
.ca-auth-links,
.ca-followed-channel-card p {
  word-break: break-word;
}

.ca-remote,
.ca-action-grid,
.ca-remote-action-form,
.ca-action-button {
  min-width: 0;
}

.ca-action-button,
.ca-remote__close,
.ca-remote-launch,
.pill-button,
.menu-toggle {
  min-height: 48px;
}

.ca-auth-form--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.ca-auth-form--inline label {
  min-width: 0;
}

.ca-followed-channel-card,
.ca-account-action-row,
.ca-auth-links,
.header-actions,
.nav-links {
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .site-shell {
    width: min(var(--site-width), calc(100vw - 20px));
  }

  .ca-single-channel__layout {
    grid-template-columns: 1fr;
  }

  .ca-remote {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --site-width: min(1520px, calc(100vw - 20px));
    --radius-xl: 22px;
    --radius-lg: 18px;
  }

  .page-wrap {
    padding: 18px 0 40px;
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
  }

  .brand {
    gap: 10px;
    font-size: 0.92rem;
  }

  .brand__badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .panel,
  .ca-channel-meta,
  .ca-sponsor,
  .ca-remote,
  .ca-auth-panel,
  .ca-auth-hero,
  .ca-account-hero,
  .ca-account-overview,
  .ca-account-actions,
  .ca-account-followed {
    padding: 18px;
  }

  .ca-channel-meta__header,
  .ca-remote__header,
  .ca-program-card__header,
  .ca-account-action-row {
    align-items: flex-start;
  }

  .ca-sponsor__card,
  .ca-surf-item {
    grid-template-columns: 1fr;
  }

  .ca-sponsor__logo {
    width: 72px;
    height: 72px;
  }

  .ca-action-grid {
    grid-template-columns: 1fr;
  }

  .ca-auth-form--inline {
    grid-template-columns: 1fr;
  }

  .ca-account-grid,
  .ca-account-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100vw - 16px);
  }

  .site-header__inner {
    min-height: 68px;
    padding: 14px 0;
  }

  .brand {
    width: 100%;
  }

  .ca-player-embed {
    min-height: clamp(200px, 58vw, 320px);
  }

  .ca-player-fallback {
    min-height: 240px;
    padding: 20px;
  }

  .ca-channel-meta__header,
  .ca-remote__header,
  .ca-remote__section,
  .ca-guide-page__meta {
    gap: 12px;
  }

  .ca-program-card,
  .ca-program-card--up-next,
  .ca-followed-channel-card,
  .ca-empty-state {
    padding: 14px;
  }

  .ca-card-row,
  .ca-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-wrap {
    padding: 14px 0 32px;
  }

  .site-shell {
    width: calc(100vw - 12px);
  }

  .panel,
  .ca-channel-meta,
  .ca-sponsor,
  .ca-remote,
  .ca-auth-panel,
  .ca-auth-hero,
  .ca-account-hero,
  .ca-account-overview,
  .ca-account-actions,
  .ca-account-followed {
    padding: 14px;
    border-radius: 16px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .brand__badge {
    width: 34px;
    height: 34px;
  }

  .pill-button,
  .menu-toggle,
  .ca-chip,
  .ca-action-button,
  .ca-remote-launch {
    width: 100%;
    padding-inline: 14px;
  }

  .ca-remote__close {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .ca-content-prose {
    font-size: 0.98rem;
  }

  .ca-channel-card__title,
  .ca-program-card__title,
  .ca-sponsor__name,
  .ca-channel-meta h1,
  .ca-account-hero h1,
  .ca-auth-hero h1 {
    font-size: clamp(1.55rem, 6vw, 2rem);
    line-height: 1.08;
  }
}

/* Global footer manager */
.site-footer {
  --ca-footer-bg: rgba(8, 12, 20, 0.96);
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.98), var(--ca-footer-bg));
  color: #d5deeb;
}

.ca-footer__inner {
  padding: 30px 0 34px;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr minmax(180px, auto);
  align-items: center;
  gap: 24px;
}

.ca-footer__brand-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.ca-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ca-footer__brand-mark {
  background: linear-gradient(135deg, #ff4d4d, #a80000);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  color: #fff;
  font-weight: 800;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
}

.ca-footer__logo-image {
  display: block;
  width: 255px;
  max-width: 255px;
  height: 40px;
  max-height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
}

.ca-footer__brand-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ca-footer__copyright {
  margin: 0;
  max-width: 280px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #93a6c4;
}

.ca-footer__nav {
  min-width: 0;
  width: 100%;
  justify-self: center;
}

.ca-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
}

.ca-footer__menu a {
  color: #e7edf7;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ca-footer__menu a:hover,
.ca-footer__menu a:focus-visible,
.ca-footer__social-link:hover,
.ca-footer__social-link:focus-visible,
.ca-footer__brand:hover,
.ca-footer__brand:focus-visible {
  color: #FF0000;
}

.ca-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
}

.ca-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7edf7;
}

.ca-footer__social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.ca-footer__social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ca-footer__social-label {
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .ca-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ca-footer__menu {
    justify-content: flex-start;
  }

  .ca-footer__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 28px;
  }

  .ca-footer__inner {
    padding: 24px 0 28px;
  }

  .ca-footer__menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ca-footer__socials {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ca-footer__social-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ca-footer__menu {
    grid-template-columns: 1fr;
  }

  .ca-footer__brand {
    align-items: flex-start;
  }
}






