/* ── VIDEOS PAGE ─────────────────────────────────────────────── */

.videosPage {
  background: #f7f7f9;
  padding: calc(var(--nav-h, 96px) + 40px) 0 80px;
  min-height: 100vh;
}

/* ── FILTERS (FULL WIDTH) ───────────────────────────────────── */

.videoFilters {
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  padding: 20px 24px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.filterRow {
  margin-bottom: 14px;
}

.filterRow:last-child {
  margin-bottom: 0;
}

.filterRow + .filterRow {
  padding-top: 14px;
  border-top: 1px solid #f0f0f3;
}

.filterGroup {
  width: 100%;
}

.filterLabel {
  margin: 0 0 10px;
  font-size: 11px;
  font-family: GothamRounded-Medium, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

/* ── SHARED PILL STYLES ─────────────────────────────────────── */

.verticalPills,
.modelPills,
.tagPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filterPill {
  padding: 7px 16px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
  font-family: GothamRounded-Medium, sans-serif;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filterPill:hover {
  border-color: #c0c0c5;
  color: #333;
  background: #fafafa;
}

.filterPill--vertical.active {
  background: #1e1e1e;
  border-color: #1e1e1e;
  color: #fff;
}

.filterPill--model.active {
  background: #d32d3e;
  border-color: #d32d3e;
  color: #fff;
}

.filterPill--tag {
  padding: 5px 13px;
  font-size: 11px;
  border-radius: 20px;
  border-width: 1px;
}

.filterPill--tag.active {
  background: #fff0f1;
  border-color: #d32d3e;
  color: #d32d3e;
}

/* ── PLAYER + PLAYLIST GRID ─────────────────────────────────── */

.videoLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

/* ── PLAYER ──────────────────────────────────────────────────── */

.videoPlayerWrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.videoPlayerWrap iframe,
#ytPlayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── VIDEO INFO ──────────────────────────────────────────────── */

.videoInfo {
  padding: 20px 0 0;
}

.videoInfoRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.videoModelBadge {
  flex-shrink: 0;
  padding: 4px 12px;
  background: #d32d3e;
  color: #fff;
  font-family: GothamRounded-Medium, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}

.videoInfoTitle {
  margin: 0;
  font-family: Gilroy-Bold, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #1e1e1e;
  line-height: 1.35;
}

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

.videoInfoTag {
  padding: 4px 12px;
  background: #f0f0f3;
  color: #666;
  font-size: 12px;
  border-radius: 20px;
  font-family: GothamRounded-Medium, sans-serif;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */

.videoSidebar {
  position: sticky;
  top: calc(var(--nav-h, 70px) + 20px);
  display: flex;
  flex-direction: column;
  height: 560px;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.videoSidebarHeader {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f3;
}

.videoCountLine {
  margin: 0;
  font-size: 12px;
  color: #999;
  font-family: GothamRounded-Medium, sans-serif;
  letter-spacing: 0.03em;
}

/* ── PLAYLIST ────────────────────────────────────────────────── */

.videoPlaylist {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.videoItem {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
  align-items: center;
}

.videoItem + .videoItem {
  border-top: 1px solid #f5f5f7;
}

.videoItem:hover {
  background: #fafafb;
}

.videoItem.nowPlaying {
  border-left-color: #d32d3e;
  background: #fef7f7;
}

.videoItemThumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

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

.nowPlayingBadge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(211, 45, 62, 0.88);
  color: #fff;
  font-size: 9px;
  font-family: GothamRounded-Medium, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
}

.videoItemMeta {
  flex: 1;
  min-width: 0;
}

.videoItemModel {
  display: inline-block;
  font-size: 10px;
  font-family: GothamRounded-Medium, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d32d3e;
  margin-bottom: 4px;
}

.videoItemTitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #1e1e1e;
  font-family: Gilroy-Bold, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.videoItem.nowPlaying .videoItemTitle {
  color: #d32d3e;
}

.videoPlaylistEmpty {
  padding: 40px 20px;
  text-align: center;
  color: #bbb;
  font-size: 13px;
  margin: 0;
  font-family: GothamRounded-Medium, sans-serif;
}

/* ── MOBILE ──────────────────────────────────────────────────── */

@media (max-width: 919px) {
  .videosPage {
    padding: calc(var(--nav-h, 60px) + 16px) 0 56px;
  }

  .videoFilters {
    padding: 16px 16px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .filterRow {
    margin-bottom: 12px;
  }

  .filterRow + .filterRow {
    padding-top: 12px;
  }

  .verticalPills,
  .modelPills,
  .tagPills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .verticalPills::-webkit-scrollbar,
  .modelPills::-webkit-scrollbar,
  .tagPills::-webkit-scrollbar {
    display: none;
  }

  .videoLayout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .videoSidebar {
    position: static;
    height: 320px;
  }

  .videoInfoTitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 520px) {
  .filterPill {
    padding: 6px 12px;
    font-size: 11px;
  }

  .filterPill--tag {
    padding: 4px 10px;
    font-size: 10px;
  }

  .videoItemThumb {
    width: 100px;
    height: 56px;
  }
}
