/* ─── Videos page — inherits CSS variables from styles.css ──────── */

/* ─── Page strip ────────────────────────────────────────────────── */
.vp-strip {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}
.vp-strip__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.vp-strip__count {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.vp-strip__new {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: none;
}
.vp-strip__new.visible { display: block; }
.vp-strip__sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
}
.vp-strip__back {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.vp-strip__back:hover { color: var(--white); }

/* ─── Filter bar ────────────────────────────────────────────────── */
#filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
#filter-bar::-webkit-scrollbar { display: none; }

.fb-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  flex-shrink: 0;
}
.fb-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.72rem;
  width: 140px;
}
.fb-search input::placeholder { color: rgba(255,255,255,0.3); }
.fb-search svg { width: 12px; height: 12px; color: rgba(255,255,255,0.3); flex-shrink: 0; }

.fb-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Platform toggle */
.fb-platform {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.fb-platform button {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.fb-platform button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Series dropdown */
.fb-series {
  position: relative;
  flex-shrink: 0;
}
.fb-series select {
  appearance: none;
  color-scheme: dark;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.38rem 1.6rem 0.38rem 0.65rem;
  cursor: pointer;
  outline: none;
  max-width: 160px;
}
.fb-series select option {
  background: #111;
  color: #fff;
}
.fb-series::after {
  content: '▾';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  pointer-events: none;
}

/* Tag chips */
.fb-tags {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.fb-tag {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.fb-tag.active {
  background: rgba(192,57,43,0.2);
  border-color: var(--accent);
  color: var(--white);
}

/* Sort dropdown */
.fb-sort {
  position: relative;
  flex-shrink: 0;
}
.fb-sort select {
  appearance: none;
  color-scheme: dark;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 0.62rem;
  padding: 0.38rem 1.4rem 0.38rem 0.65rem;
  cursor: pointer;
  outline: none;
}
.fb-sort select option {
  background: #111;
  color: #fff;
}
.fb-sort::after {
  content: '▾';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  pointer-events: none;
}

/* Icon buttons (hide watched, watch later, settings) */
.fb-icon-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.fb-icon-btn.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.fb-wl-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}
.fb-icon-btn .fb-count {
  background: var(--accent);
  color: var(--white);
  font-size: 0.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1;
}

/* ─── Series Shelf ───────────────────────────────────────────────── */
#series-shelf {
  padding: 1.75rem 2rem 0.5rem;
  background: #0a0a0a;
}
.shelf-heading {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.shelf-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.shelf-scroll::-webkit-scrollbar { display: none; }

.shelf-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.shelf-card:hover { transform: translateY(-3px); }
.shelf-card.active { border-color: var(--accent); }

.shelf-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
}
/* Gradient overlay on shelf card */
.shelf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.6rem 0.5rem 0.5rem;
}
.shelf-card__name {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.shelf-card__eps {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* ─── Today's Drop ───────────────────────────────────────────────── */
#todays-drop {
  display: none;
  padding: 1.5rem clamp(0.75rem, 3vw, 2rem) 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#todays-drop.visible { display: flex; }
#todays-drop .drop-banner { flex: 1 1 280px; min-width: 0; max-width: calc(50% - 0.375rem); }

.drop-heading { /* kept for compat — hidden in new layout */
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.drop-heading::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.drop-banner {
  display: flex;
  align-items: stretch;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 180px;
}
.drop-banner:hover { border-color: rgba(192,57,43,0.35); }

.drop-banner__content {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.drop-banner__label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.drop-banner__label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.drop-banner__series {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.drop-banner__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
}
.drop-banner__tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.25rem; }
.drop-banner__thumb {
  flex: 0 0 clamp(70px, 14vw, 120px);
  object-fit: cover;
  background: #1a1a1a;
  display: block;
}

/* Deprecated horizontal card — keep class to avoid JS errors if cached */
.drop-card { display: none; }
.v-tag {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* ─── Video Grid ─────────────────────────────────────────────────── */
#video-grid-wrap {
  padding: 1.5rem 2rem 0.5rem;
  background: #0a0a0a;
  min-height: 60vh;
}
.grid-status {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 1rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

/* ─── Video Card ─────────────────────────────────────────────────── */
.v-card {
  position: relative;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}
.v-card:hover { transform: translateY(-3px); }

.v-card__play {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.v-card__thumb-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  position: relative;
}
.v-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.v-card:hover .v-card__thumb { transform: scale(1.04); }

.v-card__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  font-size: 1.6rem;
  color: rgba(255,255,255,0);
  transition: all 0.2s;
}
.v-card:hover .v-card__play-icon {
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
}

.v-card__featured-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  color: #f5c518;
  font-size: 0.75rem;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

.v-card__watched-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(0,0,0,0.7);
  color: var(--accent);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v-card__platform {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.6);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-card__platform svg { width: 10px; height: 10px; fill: var(--white); }

.v-card__info {
  padding: 0.55rem 0.6rem 0.45rem;
}
.v-card__meta {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v-card__title {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-card__save {
  position: absolute;
  bottom: 2.8rem;
  right: 0.4rem;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.v-card__save.saved { color: var(--accent); }
.v-card__save:hover { background: rgba(0,0,0,0.75); color: var(--white); }

/* Infinite scroll sentinel */
#load-sentinel {
  height: 1px;
  margin: 1rem 0 2rem;
}
.load-more-btn {
  display: none;
  margin: 1.5rem auto 2rem;
  padding: 0.75rem 2rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.load-more-btn.visible { display: block; }
.load-more-btn:hover { border-color: rgba(255,255,255,0.35); color: var(--white); }

/* ─── Video Modal ────────────────────────────────────────────────── */
#v-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#v-modal[hidden] { display: none; }

.v-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}

.v-modal__dialog {
  position: relative;
  display: flex;
  gap: 1.5rem;
  max-height: 90vh;
  z-index: 1;
}

.v-modal__player {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 360px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.v-modal__player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.v-modal__sidebar {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  color: var(--white);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.v-modal__series {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.v-modal__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.15;
}
.v-modal__tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.v-modal__desc {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.v-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.v-modal__platform-link,
.v-modal__save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}
.v-modal__platform-link {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: none;
  text-decoration: none;
}
.v-modal__platform-link:hover { border-color: var(--white); }
.v-modal__save-btn {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: var(--white);
}
.v-modal__save-btn.saved { background: none; color: var(--accent); }
.v-modal__save-btn:hover { opacity: 0.85; }

.v-modal__nav {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.v-modal__prev,
.v-modal__next {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.v-modal__prev:hover,
.v-modal__next:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.v-modal__prev:disabled,
.v-modal__next:disabled { opacity: 0.2; cursor: default; }

.v-modal__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.v-modal__close:hover { background: rgba(255,255,255,0.2); }

/* ─── Watch Later Panel ──────────────────────────────────────────── */
#wl-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  background: #0f0f0f;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 180;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#wl-panel.open { transform: translateX(0); }

.wl-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wl-panel__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--white);
}
.wl-panel__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.wl-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.wl-panel__empty {
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  margin-top: 3rem;
}

/* Mini card in panel */
.wl-mini {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
  padding: 0.4rem;
  cursor: pointer;
  transition: background 0.15s;
}
.wl-mini:hover { background: rgba(255,255,255,0.07); }
.wl-mini__thumb {
  flex: 0 0 45px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
  background: #222;
}
.wl-mini__info { flex: 1; overflow: hidden; }
.wl-mini__series {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}
.wl-mini__title {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--white);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-mini__remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.wl-mini__remove:hover { color: var(--accent); }

/* ─── Settings Modal ─────────────────────────────────────────────── */
#settings-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
}
#settings-modal[hidden] { display: none; }

.settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
}
.settings-modal__box {
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  width: 380px;
  max-width: 90vw;
  padding: 1.75rem;
  z-index: 1;
}
.settings-modal__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.settings-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
}

.settings-group {
  margin-bottom: 1.5rem;
}
.settings-group:last-child { margin-bottom: 0; }
.settings-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 0.65rem;
}

.settings-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.settings-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.settings-radio input[type="radio"] { accent-color: var(--accent); }
.settings-radio span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.settings-radio input:checked ~ span { color: var(--white); }

.settings-select {
  width: 100%;
  appearance: none;
  color-scheme: dark;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  font-family: var(--sans);
  font-size: 0.72rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}
.settings-select option {
  background: #111;
  color: #fff;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}
.settings-toggle input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }
.settings-toggle span { font-size: 0.75rem; color: rgba(255,255,255,0.65); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .v-modal__sidebar { width: 220px; }
}

@media (max-width: 768px) {
  .vp-strip { padding: 0.7rem 1rem; }

  #filter-bar {
    position: static;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.4rem;
  }
  .fb-search { flex: 1 1 100%; }
  .fb-search input { width: 100%; }
  .fb-divider { display: none; }
  .fb-tags { flex-wrap: wrap; }

  #series-shelf { padding: 1.25rem 1rem 0.25rem; }

  #todays-drop { padding: 1rem 1rem 0; flex-direction: column; overflow-x: hidden; }
  #todays-drop .drop-banner { width: 100%; flex-basis: auto; min-width: 0; max-width: none; }
  .drop-banner { position: relative; min-height: 200px; }
  .drop-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, #0d0d0d 30%, transparent 55%);
    pointer-events: none;
  }
  .drop-banner__thumb {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 75%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 15%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 15%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%);
  }
  .drop-banner__content {
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
    background: none;
    width: 60%;
    flex: 0 0 auto;
  }
  .drop-banner__title { font-size: 1.15rem; }

  #video-grid-wrap { padding: 1.25rem 1rem 0.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }

  /* Modal: full-screen stacked on mobile */
  #v-modal { padding: 0; align-items: flex-end; }
  .v-modal__dialog {
    flex-direction: column;
    width: 100%;
    max-height: 95svh;
    background: #0d0d0d;
    border-radius: 12px 12px 0 0;
    gap: 0;
    overflow: hidden;
  }
  .v-modal__player {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 55svh;
    border-radius: 0;
    flex-shrink: 0;
  }
  .v-modal__sidebar {
    width: 100%;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: 40svh;
    overflow-y: auto;
  }
  .v-modal__close {
    top: 0.5rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.5);
  }

  /* Watch later panel: full-width bottom sheet on mobile */
  #wl-panel {
    top: auto;
    right: 0;
    left: 0;
    width: 100%;
    height: 75svh;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(100%);
  }
  #wl-panel.open { transform: translateY(0); }

  #settings-modal .settings-modal__box { width: 90vw; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .shelf-card { flex: 0 0 120px; }
}
