/* ==========================================================================
   College Athletics — Roku-style Channel
   Brand palette sampled from the provided logo image:
   deep green #062102 / #061f02, grass green #135700, gold #f2c218 / #facb01,
   white high-contrast text.
   ========================================================================== */

:root {
  --bg: #061f02;
  --bg-elev: #0b2e07;
  --bg-tile: #0e3609;
  --border: rgba(242, 194, 24, 0.18);
  --text: #f5f7f2;
  --text-dim: #b8c9b0;
  --accent: #f2c218;
  --accent-strong: #facb01;
  --green: #135700;
  --green-bright: #2e8b12;
  --focus-ring: #facb01;
  --shadow: rgba(0, 0, 0, 0.55);
  --overlay: rgba(0, 0, 0, 0.9);
  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Light theme (Settings toggle) */
body.theme-light {
  --bg: #f2f5ee;
  --bg-elev: #ffffff;
  --bg-tile: #ffffff;
  --border: rgba(19, 87, 0, 0.25);
  --text: #10260a;
  --text-dim: #4c614a;
  --accent: #b58900;
  --accent-strong: #9a7500;
  --green: #135700;
  --green-bright: #1d7a05;
  --focus-ring: #135700;
  --shadow: rgba(20, 40, 10, 0.25);
  --overlay: rgba(0, 0, 0, 0.9);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

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

button { font-family: inherit; cursor: pointer; }

/* ------------------------------------------------------------------ topnav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: linear-gradient(180deg, rgba(4, 22, 1, 0.98), rgba(6, 31, 2, 0.96));
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 18px var(--shadow);
}

body.theme-light .topnav {
  background: linear-gradient(180deg, #0a2a04, #113f06);
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.topnav__logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.topnav__brandtext { display: flex; flex-direction: column; min-width: 0; }

.topnav__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topnav__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f2c218;
  white-space: nowrap;
}

.topnav__nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(242, 194, 24, 0.35);
  border-radius: 8px;
  background: rgba(19, 87, 0, 0.35);
  color: #f5f7f2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease, color 0.18s ease;
}

.navbtn__icon { font-size: 0.95rem; line-height: 1; }

.navbtn:hover {
  background: var(--green);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.navbtn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.navbtn.is-active {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: #10260a;
}

.topnav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(242, 194, 24, 0.4);
  border-radius: 8px;
  background: rgba(19, 87, 0, 0.35);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.topnav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* -------------------------------------------------------------------- app */
.app {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 48px;
}

.screen { animation: fadeIn 0.28s ease; }

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

/* Typography hierarchy */
.screen-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 6px;
}

.screen-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 70ch;
}

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

/* ------------------------------------------------------------------- hero */
.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(1100px 320px at 8% 0%, rgba(19, 87, 0, 0.55), transparent 60%),
    linear-gradient(120deg, rgba(11, 46, 7, 0.95), rgba(6, 31, 2, 0.85));
  box-shadow: 0 8px 30px var(--shadow);
}

body.theme-light .hero {
  background: linear-gradient(120deg, #0d3305, #1a5c08);
  color: #f5f7f2;
}

.hero__logo {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  color: #ffffff;
}

.hero__title .gold { color: var(--accent-strong); }

.hero__sub {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #f2c218;
}

.hero__provider {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #b8c9b0;
}

/* ---------------------------------------------------------- category rows */
.cat-row { margin-bottom: 34px; }

.cat-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cat-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.cat-row__more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.cat-row__more:hover { color: var(--accent-strong); text-decoration: underline; }
.cat-row__more:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.cat-row__scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}

.cat-row__scroller::-webkit-scrollbar { height: 8px; }
.cat-row__scroller::-webkit-scrollbar-thumb { background: var(--green); border-radius: 6px; }
.cat-row__scroller::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }

/* Row tiles: sized so desktop shows ~5–7 per row */
.cat-row__scroller .tile {
  flex: 0 0 calc((100% - 5 * 14px) / 6);
  min-width: 168px;
  scroll-snap-align: start;
}

/* ------------------------------------------------------------------- tiles */
.tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tile);
  box-shadow: 0 3px 12px var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 10px 26px var(--shadow), 0 0 0 2px var(--accent);
  z-index: 2;
}

.tile:focus-visible { outline: none; }

.tile__thumbwrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04150140;
  overflow: hidden;
}

.tile__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tile:hover .tile__thumb { transform: scale(1.06); }

.tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 15, 1, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; }

.tile__play span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #10260a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 31, 2, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}

.tile__badge--live {
  background: #a30d0d;
  border-color: #ff5252;
  color: #ffffff;
}

.tile__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(3, 15, 1, 0.8);
  color: #f5f7f2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.tile__body { padding: 10px 12px 12px; flex: 1; }

.tile__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile__desc {
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------------- grid view */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* ------------------------------------------------------------------ search */
.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  max-width: 720px;
}

.searchbar__input {
  flex: 1;
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.searchbar__input::placeholder { color: var(--text-dim); }

.searchbar__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 194, 24, 0.25);
}

.searchbar__btn {
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #10260a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, transform 0.12s ease;
}

.searchbar__btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.searchbar__btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* --------------------------------------------------------------- settings */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  max-width: 780px;
  box-shadow: 0 6px 22px var(--shadow);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-row__label { font-weight: 700; font-size: 1rem; }
.setting-row__hint { font-size: 0.82rem; color: var(--text-dim); margin-top: 3px; }

.setting-block {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--border);
}

.feed-source-status {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--text-dim);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.feed-source-status strong { color: var(--text); }
.feed-source-status__url, .feed-note__url { overflow-wrap: anywhere; }

.feed-url-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.feed-url-input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.feed-url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 194, 24, 0.25);
}

.feed-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.feed-file-input {
  flex: 1 1 360px;
  min-width: 0;
  min-height: 41px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.feed-file-input::file-selector-button {
  min-height: 39px;
  margin: 0 12px 0 0;
  padding: 9px 18px;
  border: 0;
  border-right: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.feed-file-input:hover::file-selector-button { background: var(--accent); color: #10260a; }
.feed-file-input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.feed-action-btn:active { transform: scale(0.97); }

.feed-local-help { margin-top: 12px; line-height: 1.55; }
.feed-local-help code { color: var(--accent); font-size: 0.76rem; overflow-wrap: anywhere; }

.feed-settings-status {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.feed-settings-status:not(:empty) { display: block; }
.feed-settings-status--loading { background: rgba(242, 194, 24, 0.1); color: var(--accent); }
.feed-settings-status--error { background: rgba(176, 30, 30, 0.18); border: 1px solid rgba(255, 110, 110, 0.35); color: #ffb2b2; }

.feed-action-btn:disabled, .feed-file-input:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Toggle switch */
.switch {
  position: relative;
  width: 56px;
  height: 30px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch__slider {
  position: absolute;
  inset: 0;
  background: var(--green);
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #f5f7f2;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked + .switch__slider { background: var(--accent); }
.switch input:checked + .switch__slider::before { transform: translateX(26px); background: #10260a; }
.switch input:focus-visible + .switch__slider { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.btn-secondary {
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover { background: var(--accent); color: #10260a; }
.btn-secondary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.fatal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ------------------------------------------------------------------ about */
.about-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-hero__logo {
  width: 240px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px var(--shadow);
  flex-shrink: 0;
}

.about-hero__text { flex: 1; min-width: 280px; }

.about-hero__text p { margin-bottom: 14px; color: var(--text); max-width: 72ch; }

.about-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 22px;
  text-align: center;
  min-width: 110px;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
}

.stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ----------------------------------------------------------- empty / misc */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.empty__icon { font-size: 2.4rem; margin-bottom: 10px; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50vh;
  color: var(--text-dim);
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--green);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.feed-note {
  margin: -10px 0 22px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.feed-note--warn { color: #e0a800; }

/* --------------------------------------------------------- player overlay */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.22s ease;
}

.player-overlay[hidden] { display: none; }

.player-overlay__inner {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.player-overlay__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

.player-overlay__video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay__close {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(6, 31, 2, 0.9);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  align-self: flex-end;
  position: sticky;
  top: 0;
  margin-left: auto;
}

.player-overlay__close:hover {
  background: var(--accent);
  color: #10260a;
  transform: scale(1.06);
}

.player-overlay__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.player-overlay__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  color: #f5f7f2;
  font-size: 0.95rem;
}

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

.player-overlay__meta { color: #f5f7f2; padding: 0 4px 10px; }

.player-overlay__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.player-overlay__desc {
  font-size: 0.9rem;
  color: #c9d8c2;
  max-width: 90ch;
}

body.player-open { overflow: hidden; }

/* ----------------------------------------------------------------- footer */
.footer {
  padding: 22px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ============================================================ responsive */

/* Large desktop: up to 7 tiles */
@media (min-width: 1500px) {
  .grid { grid-template-columns: repeat(7, 1fr); }
  .cat-row__scroller .tile { flex-basis: calc((100% - 6 * 14px) / 7); }
}

/* Small desktop / large tablet landscape: 5 tiles */
@media (max-width: 1250px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
  .cat-row__scroller .tile { flex-basis: calc((100% - 4 * 14px) / 5); }
}

/* Tablet: 3–4 tiles */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-row__scroller .tile { flex-basis: calc((100% - 3 * 14px) / 4); min-width: 160px; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-row__scroller .tile { flex-basis: calc((100% - 2 * 14px) / 3); min-width: 150px; }
}

/* Mobile: 2–3 tiles, collapsible nav */
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-row__scroller .tile { flex-basis: calc((100% - 1 * 14px) / 2); min-width: 136px; }

  .topnav { flex-wrap: wrap; padding: 10px 14px; }
  .topnav__tagline { display: none; }
  .topnav__toggle { display: flex; }

  .topnav__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 10px;
  }

  .topnav__nav.is-open { display: flex; }
  .navbtn { justify-content: flex-start; padding: 12px 16px; font-size: 0.95rem; }

  .hero { flex-direction: column; text-align: center; padding: 20px 16px; }
  .hero__logo { width: 92px; height: 92px; }

  .searchbar { flex-direction: column; }
  .feed-url-form { flex-direction: column; }
  .feed-url-form .feed-action-btn { width: 100%; }
  .feed-file-row { align-items: stretch; }
  .feed-file-row .feed-file-input, .feed-file-row .btn-secondary { flex: 1 1 100%; }
  .setting-row { align-items: flex-start; }
  .about-hero__logo { width: 100%; max-width: 300px; margin: 0 auto; }

  .player-overlay { padding: 10px; }
}

@media (max-width: 380px) {
  .cat-row__scroller .tile { min-width: 124px; }
}

/* ============================================================ refresh toast */
.refresh-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #10260a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 9999;
  pointer-events: none;
}
.refresh-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.refresh-toast--error {
  background: #c93b3b;
  color: #ffffff;
}
