/* Packs & Channels block — dark card housing a category sidebar + a
 * grid of channel/pack cards fetched live from the API. */
 
/* Only the block's own background + vertical spacing here — width, the
 * 1680px max-width, and the 16px horizontal gutter all come from the
 * page-wide `main > .section` rule (styles/styles.css) that every other
 * section/block already gets; padding-block (not the `padding` shorthand)
 * keeps that rule's own left/right padding intact instead of zeroing it. */
.section.packs-channels-container {
  padding-block: 32px;
  background: #0a0a0a;
}
 
.packs-channels {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  /* Matches the Figma frame: sidebar (left 50, width 361) + content (left
     450, width 1132) + a symmetric 50px right margin ≈ 1632px total. */
  max-width: 1632px;
  margin: 0 auto;
  padding: 20px 16px;
  font-family: Roboto, sans-serif;
}
 
.packs-channels__heading {
  margin: 0 0 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}
 
/* Its own row above the heading — not absolutely docked to the corner,
 * which on a narrow phone overlapped the centered heading text directly
 * (both would sit at the same y-position, one drawn on top of the other). */
.packs-channels__language {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.packs-channels .packs-channels__quality {
  display: flex;
  padding: 2px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: #24242b;
}

.packs-channels .packs-channels__quality[hidden] {
  display: none;
}

.packs-channels .packs-channels__quality-option {
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.packs-channels .packs-channels__quality-option[aria-pressed="true"] {
  background: #f24b26;
}
 
.packs-channels__language-select {
  appearance: none;
  padding: 6px 26px 6px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: #24242b;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
 
.packs-channels__language-select option {
  background: #24242b;
  color: #fff;
}
 
.packs-channels__language-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  color: #f24b26;
  pointer-events: none;
  transform: translateY(-50%);
}
 
.packs-channels__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
 
/* ── Sidebar ── */
.packs-channels__sidebar {
  flex-shrink: 0;
}
 
/* Mobile: compact text-only chips (no icon — there's no room for one at
 * this size), wrapping into rows. justify-content: space-between applies
 * per wrapped row, not just once overall, which is what actually keeps
 * each row's chips evenly spread edge to edge like the Figma frame.
 * Becomes the bigger icon+label pill at 900px+ (see media query) once the
 * sidebar sits beside the content instead of wrapping above it. */
.packs-channels__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.packs-channels__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 15px;
  background: #25262d;
  color: #9aa0aa;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
 
/* No icon on the compact mobile chip — brought back at 900px+ (see media
 * query) once the pill is big enough to hold one. */
.packs-channels__nav-icon {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6a5ce8, #9b6ee0);
  color: #fff;
}
 
/* max-width/height (not a fixed square) so a non-square icon keeps its own
 * aspect ratio instead of being stretched to fit. */
.packs-channels__nav-icon svg {
  width: auto;
  height: auto;
  max-width: 12px;
  max-height: 12px;
}
 
/* Suppress the browser's default focus ring on a mouse click (that's the
 * stray white outline around a just-clicked tab) while keeping one for
 * keyboard Tab navigation, so focus visibility isn't lost for accessibility. */
.packs-channels__nav-link:focus:not(:focus-visible) {
  outline: none;
}
 
.packs-channels__nav-link:focus-visible {
  outline: 2px solid #ff7a3d;
  outline-offset: 2px;
}
 
/* Compact mobile chip's own hover look: text turns solid orange, same dark
 * background/border as the unselected chip — no padding/radius change.
 * The selected chip itself gets its own background/border below (the
 * exact Figma spec: #1B1516 / 1px #F04C234D), not the plain hover look. */
.packs-channels__nav-link:hover {
  color: #f04c23;
}
 
.packs-channels__nav-link--current {
  background: #1b1516;
  border-color: rgb(240 76 35 / 30%);
  color: #f04c23;
}
 
/* A permanent ring on the selected tab itself — not the browser's own
 * focus ring, which disappears the moment focus moves elsewhere — so it
 * stays visibly "open" the whole time it's selected, not just at the
 * instant it was clicked. */
.packs-channels__nav-link--current {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
 
/* #2B293C40 — 25% opacity, not solid — is the exact Figma spec: the badge
 * lets the pill's own orange gradient show through underneath it, so each
 * tab's badge tints slightly differently depending on where it sits along
 * that gradient, rather than every selected tab sharing one flat navy. */
.packs-channels__nav-link:hover .packs-channels__nav-icon,
.packs-channels__nav-link--current .packs-channels__nav-icon {
  background: rgb(43 41 60 / 25%);
  color: #fff;
}
 
/* ── Content ── */
.packs-channels__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
 
/* Mobile: a swipeable single-card carousel (scroll-snap, one card mostly in
 * view with a sliver of the next) with dot pagination below. Wraps into a
 * plain row at 600px+ instead — see media queries — where "More" adds a new
 * row of the same fixed-size cards rather than scrolling to reveal them. */
.packs-channels__track {
  display: flex;
  flex: 1;
  gap: 32px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
 
.packs-channels__track::-webkit-scrollbar {
  display: none;
}
 
.packs-channels__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}
 
.packs-channels__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
  transition: width 0.2s ease, background 0.2s ease;
}
 
.packs-channels__dots span.is-active {
  width: 18px;
  background: var(--orange-color, #f24b26);
}
 
.packs-channels__loading {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
 
/* Matches the real dishtv "loader-style" spinner used site-wide (e.g. the
 * Manage Existing Pack page's own tab-loading state): two rings spinning in
 * opposite directions, each only a bottom-edge arc rather than a full ring. */
.packs-channels__spinner {
  position: relative;
  width: 32px;
  height: 32px;
  color: #f24b26;
}
 
.packs-channels__spinner::before,
.packs-channels__spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border: 3px solid transparent;
  border-bottom-color: currentcolor;
  border-radius: 50%;
  animation: packs-channels-spin 1s linear infinite;
}
 
.packs-channels__spinner::before {
  width: 32px;
  height: 32px;
}
 
.packs-channels__spinner::after {
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  animation-direction: reverse;
}
 
@media (prefers-reduced-motion: reduce) {
  .packs-channels__spinner::before,
  .packs-channels__spinner::after {
    animation-duration: 2.5s;
  }
}
 
@keyframes packs-channels-spin {
  to {
    transform: rotate(360deg);
  }
}
 
/* ── "View Details" modal ── */
.packs-channels__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(0 0 0 / 65%);
}

/* White card with an orange title bar, per the design. Flex column so only the body
 * scrolls while the header stays pinned. */
.packs-channels__modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 35%);
}

.packs-channels__modal-header {
  position: relative;
  flex-shrink: 0;
  padding: 18px 48px;
  background: var(--orange-color, #f24b26);
  text-align: center;
}

.packs-channels__modal-title {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.packs-channels__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  line-height: 0;
  cursor: pointer;
  opacity: 0.9;
}

.packs-channels__modal-close:hover,
.packs-channels__modal-close:focus-visible {
  opacity: 1;
}

.packs-channels__modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 24px;
  color: #333;
}

/* Count pills ("12 HD Channels", "19 SD Channels", "05 OTT Apps") — they double as the
 * HD/SD/OTT switch (see buildModalTabs in the JS). */
.packs-channels__modal-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.packs-channels__modal-toggle-btn {
  padding: 5px 12px;
  border: 1px solid #f5a08c;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.packs-channels__modal-toggle-btn:hover {
  border-color: var(--orange-color, #f24b26);
}

.packs-channels__modal-toggle-btn--active {
  border-color: var(--orange-color, #f24b26);
  background: var(--orange-color, #f24b26);
  color: #fff;
}

.packs-channels__modal-genres {
  display: flex;
  flex-direction: column;
}

/* Genre rows — <details>/<summary> rather than hand-rolled JS toggling, since the
 * browser's own expand/collapse behavior already does exactly what's needed here. */
.packs-channels__modal-genre {
  border-bottom: 1px solid #e6e6e6;
}

.packs-channels__modal-genre-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  list-style: none;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.packs-channels__modal-genre-summary::-webkit-details-marker {
  display: none;
}

.packs-channels__modal-genre-count {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  color: #444;
}

.packs-channels__modal-genre-chevron {
  transition: transform 0.15s ease;
}

.packs-channels__modal-genre[open] .packs-channels__modal-genre-chevron {
  transform: rotate(180deg);
}

.packs-channels__modal-genre-grid,
.packs-channels__modal-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.packs-channels__modal-genre-grid {
  padding: 2px 0 16px;
}

/* Logo-only tile with a light border; falls back to the name text when the logo fails
 * to load (see buildModalTile). */
.packs-channels__modal-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.packs-channels__modal-channel:hover {
  border-color: #b9a8e6;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.packs-channels__modal-channel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.packs-channels__modal-channel-name {
  overflow: hidden;
  color: #555;
  font-size: 11px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (width >= 600px) {
  .packs-channels__modal-body {
    padding: 22px 24px 28px;
  }

  .packs-channels__modal-genre-grid,
  .packs-channels__modal-apps-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ── No-results / coming-soon state (matches production's own markup) ── */
.packs-channels__no-results {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 16px;
  text-align: center;
}
 
.packs-channels__no-results-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgb(242 75 38 / 12%);
  color: #f24b26;
}
 
.packs-channels__no-results-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
 
.packs-channels__no-results-message {
  margin: 0;
  max-width: 320px;
  color: #9aa0aa;
  font-size: 13px;
  line-height: 1.5;
}
 
/* ── Card ── */
/* No gap here — the poster variant needs its image and info bar flush
 * against each other (one continuous card, not two floating pieces); its
 * own spacing before the button, and the pack variant's internal spacing,
 * are added explicitly below instead of inheriting a blanket gap.
 * Border/radius/background/overflow-clip are set once here at the card
 * level per the Figma card spec — .packs-channels__card--pack below
 * overrides them with its own values, so this only visually affects the
 * poster variant (Single Channels/Active Services). */
/* Fixed Figma size (288x379) at every breakpoint — mobile and desktop show
 * the exact same card size, not a fluid/stretched one, per the Figma spec —
 * but 288px is a cap, not a rigid value, on both ends: on mobile it's a
 * percentage (so the next card still peeks in on a narrow phone, the same
 * carousel affordance as before) capped at 288px so it never overshoots the
 * design; at 600px+ (see media query) cards shrink together instead of
 * wrapping to a second row or leaving a gap before "More" when the panel
 * isn't quite wide enough for three of them (common at everyday laptop
 * widths, once the sidebar and the panel's own padding are accounted for). */
.packs-channels__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 82%;
  width: 82%;
  max-width: 300px;
  overflow: hidden;
  border: 1px solid rgb(76 76 76 / 51%);
  border-radius: 16px;
  background: #181920;
  padding-bottom: 10px;
  scroll-snap-align: start;
}
 
/* The card itself has no horizontal padding (the poster image stays flush
 * to its edges), so the button needs its own inset to match the info bar's
 * own 10px padding instead of stretching edge to edge underneath it. */
.packs-channels__card > .packs-channels__add-button {
  margin: 10px 10px 0;
}
 
/* Pack/bundle tabs (All in One, DishTV Combos, DishTv Add-ons, Broadcaster
 * Bouquets) carry no channel poster — matches production's own card
 * templates for those tabs: title, count, a Highlights checklist, optional
 * description, "+ Add to Pack" + price footer. Fixed at the same 288x379
 * Figma size as the poster card — content that would otherwise overflow it
 * (the description) is clamped by its own rule below, not by this card. */
/* Figma marks this card with only a single padding-bottom (10px) — no
 * top/left/right padding of its own — because the name/count/Highlights/
 * description live in their own nested panel (.packs-channels__pack-body,
 * below) that carries its own background/padding/divider, rather than the
 * card applying padding uniformly to everything inside it. gap: 17px is the
 * card's own spec too — since pack-body and pack-footer are its only two
 * direct children, that's the same 17px gap between them; margin-top: auto
 * on the footer (see below) still absorbs any extra leftover height so the
 * footer stays pinned to the bottom on a shorter card, on top of this
 * baseline 17px. */
/* No fixed height (Figma's own cards size to their content, not a rigid 360px box) —
 * a fixed height only made sense back when every pack card carried the same amount of
 * content (name, count, 3 Highlights lines, a description); with the description gone
 * and HD/SD lines only shown when non-zero, a fixed height was leaving a dead gap of
 * empty card background for any shorter pack, which is exactly what Figma's own compact,
 * auto-height card avoids. */
.packs-channels__card--pack {
  padding-bottom: 10px;
  border: 1px solid rgb(76 76 76 / 51%);
  border-radius: 16px;
  background: #181920;
  gap: 17px;
}
 
/* Name, count and Highlights all live in one nested panel — a single divider at its own
 * bottom edge, matching the Figma card, instead of a separate divider line before each
 * individual section. Sized to its own content now (see .packs-channels__card--pack) —
 * no flex: 1 grow trick needed since the card itself no longer has a fixed height to fill. */
.packs-channels__pack-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 29px 16px 6px;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}
 
/* min-height reserves room for 2 lines always (font-size 15px * line-height
 * 1.3 * 2), whether a given pack's own name wraps to 1 line or 2 — without
 * it, a short single-line name (e.g. "ETV HD FAMILY PACK1") left everything
 * below it — channel count, Highlights, footer — sitting noticeably higher
 * than in a neighboring card whose longer name wrapped to 2 lines, throwing
 * off the whole row's alignment. -webkit-line-clamp: 2 caps the opposite
 * case (a name long enough to want 3+ lines) so it can't grow past that
 * same 2-line box either. */
.packs-channels__pack-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: calc(15px * 1.3 * 2);
}
 
.packs-channels__pack-count {
  margin: 0;
  color: #767c86;
  font-size: 13px;
}
 
/* Divider between the name/count group and Highlights — margin-top is the
 * gap before the line, padding-top the gap after it before the label text. */
.packs-channels__pack-highlights-label {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
 
/* min-height reserves room for 3 lines always (16px icon height * 3 + the list's own
 * 10px gap * 2) — the same reasoning as .packs-channels__pack-name's own min-height
 * above. A hybrid pack (HD + SD + a real appCount) shows all 3 lines, while a
 * regular pack only shows 1-2 — reserving the max keeps every card the same body
 * height regardless of how many lines a given pack actually has, rather than a shorter
 * pack (and its footer) shrinking and throwing off row alignment against its siblings. */
.packs-channels__pack-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 68px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
 
/* Checkmark-circle icon + text per line — matches the Figma card exactly: muted, compact
 * text (not bold/white), a small icon — Highlights is a quiet checklist here, not the
 * card's own visual focus. */
.packs-channels__pack-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7dae0;
  font-size: 12.5px;
}
 
.packs-channels__pack-highlights li svg {
  flex-shrink: 0;
  color: #f24b26;
}

/* VZY Add-ons only ever show one Highlights line (the OTT app count), so they don't
 * need the 3-line height reserved above for HD/SD/OTT packs. */
.packs-channels__card--vzy .packs-channels__pack-highlights {
  min-height: 0;
}

/* VZY Add-ons only: up to 3 OTT app logos + a "+N More" pill (opens View Details). */
.packs-channels__pack-ott {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 4px 0 8px;
}

.packs-channels__pack-ott-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 8px;
  background: #fff;
}

/* Every logo fills its tile edge to edge (no inner padding), so all tiles read as the
 * same size regardless of how much whitespace each source image has. */
.packs-channels__pack-ott-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Non-square logos (set in buildPackOttLogo): shown whole, centred, not cropped. */
.packs-channels__pack-ott-logo--fit {
  padding: 3px;
}

.packs-channels__pack-ott-logo--fit img {
  object-fit: contain;
}

.packs-channels__pack-ott-name {
  color: #333;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.packs-channels__pack-ott-more {
  padding: 6px 12px;
  border: 1px solid rgb(240 76 35 / 30%);
  border-radius: 999px;
  background: transparent;
  color: #f24b26;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.packs-channels__pack-ott-more:hover {
  background: rgb(240 76 35 / 10%);
}

/* Narrow cards (3 across on a ~1280-1440px laptop at 100% zoom leaves ~195px inside the
 * card): 3 fixed 48px logos + "+N More" need ~240px, so the pill was cut off. Logos now
 * shrink together (square, up to 48px) and the pill keeps its full width. */
.packs-channels__pack-ott .packs-channels__pack-ott-logo {
  flex: 0 1 48px;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
}

.packs-channels__pack-ott .packs-channels__pack-ott-more {
  flex-shrink: 0;
  padding: 6px 10px;
}
 
/* margin-top: auto still matters even without a fixed card height: the 600px+ grid (see
 * media query below) stretches every card in a row to match its tallest sibling by
 * default, so a shorter card's footer still needs pushing down to the bottom of that
 * stretched height rather than sitting stranded right under its own (shorter) content.
 * align-items: center centers the standalone "+ Add to Pack" button (its own row, per
 * the reference design) — the row below it (View Details + price) overrides that back
 * to stretch so it can still span the full width for its own space-between layout. */
.packs-channels__pack-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0 16px;
}
 
/* Exact Figma spec (height/padding/radius) — scoped to this one button rather than the
 * shared .packs-channels__add-button rule, so the poster cards' (Single Channels/Active
 * Services) own "+ Add Channel"/"+ Add This Service" buttons keep their existing size.
 * Figma's own width: 129px is left out — it's inconsistent with its own padding-left/
 * right: 61px (122px of padding alone in a 129px-wide box), which means it's Figma's
 * auto-computed instance width for this exact button's text, not an independent
 * constraint; height/padding/radius are unambiguous and applied as given instead. */
.packs-channels__pack-add-button {
  height: 30px;
  padding: 9px 61px;
  border-radius: 60px;
}
 
/* Its own slightly darker band across the card's full width, with rounded bottom corners
 * matching the card's own — Figma sets the View Details/price row apart from the rest of
 * the card with a subtly different background, not just the divider line above it. The
 * negative margins cancel the footer's own 16px side padding and the card's own 10px
 * bottom padding so this band reaches flush to the card's actual edges instead of
 * floating short of them. */
.packs-channels__pack-footer-row {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px -10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0 0 15px 15px;
  background: rgb(0 0 0 / 20%);
}
 
/* Outlined pill with an orange-tinted border (rgb(240 76 35 / 30%) — the same tint
 * .packs-channels__more and .packs-channels__nav-link--current already use elsewhere in
 * this file) rather than a plain white/gray border, matching the Figma card exactly. */
.packs-channels__view-details {
  padding: 8px 18px;
  border: 1px solid rgb(240 76 35 / 30%);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
 
.packs-channels__view-details:hover {
  background: rgb(240 76 35 / 10%);
}
 
.packs-channels__pack-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.2;
}
 
.packs-channels__pack-price span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Small and raised near the top of the price, not the browser's own default sup offset
 * (which sits lower/larger) — matches the reference's own asterisk placement, keeping
 * this block's own orange accent color rather than copying the reference's color. */
.packs-channels__pack-price span sup {
  font-size: 0.55em;
  vertical-align: 0.9em;
}
 
.packs-channels__pack-price small {
  color: #767c86;
  font-size: 10.5px;
}
 
.packs-channels__card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 288 / 286;
  background: #1f2632;
}
 
.packs-channels__card-img,
.packs-channels__card-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
/* Channel logos: several are small square badges, not full-bleed poster art, so
 * contain (not cover) keeps the whole logo legible — every logo at the same fixed
 * 149 × 148 px box (border included), centred in the tile, with no background
 * of its own. */
img.packs-channels__card-img {
  box-sizing: border-box;
  width: 149px;
  max-width: 100%;
  height: 148px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 12px;
  object-fit: contain;
  background: white;
}

/* Premium Ad Free Services (VAS): keep the artwork full-size, filling the tile as
 * before — no fixed logo box, inner padding or border. */
.packs-channels__card-media--vas img.packs-channels__card-img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
 
.packs-channels__card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
 
/* Directly below the poster, not overlaid on the image — name/genre on the
 * left, price on the right. Shares the card's own background (set at the
 * .packs-channels__card level) rather than a separate band of its own. */
.packs-channels__card-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}
 
.packs-channels__card-info-text {
  min-width: 0;
}
 
.packs-channels__card-name {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 
.packs-channels__card-genre {
  margin: 2px 0 0;
  overflow: hidden;
  color: #767c86;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 
.packs-channels__card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.2;
}
 
.packs-channels__card-price span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Same small/raised asterisk treatment as the pack cards' own price
 * (.packs-channels__pack-price span sup) — inherits this span's own white color as-is,
 * not a copied color. */
.packs-channels__card-price span sup {
  font-size: 0.55em;
  vertical-align: 0.9em;
}
 
.packs-channels__card-price small {
  color: #767c86;
  font-size: 10.5px;
}
 
.packs-channels__add-button {
  padding: 6px 25px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #f24b26, #ff7a3d);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
 
.packs-channels__add-button:hover {
  filter: brightness(1.1);
}
 
/* ── "More" control ── */
/* A small pill matching the desktop docked version's own colors/border,
 * just inline and vertically centered in the row rather than absolutely
 * docked on a container edge — there's no panel border to dock to here. */
/* Lives inside the track now (see renderTabResults()) — scroll-snap-align
 * matches the cards' own so it snaps into place the same way, appearing
 * only once the user scrolls past the visible cards instead of floating
 * beside the track as an always-visible stray button. */
.packs-channels__more {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 8px 14px;
  border: 1px solid rgb(240 76 35 / 30%);
  border-radius: 999px;
  background: #1b1516;
  color: #f24b26;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}
 
.packs-channels__more:hover {
  background: rgb(240 76 35 / 15%);
}
 
/* Two labels, one shown per breakpoint (see renderMoreButton()) — "View
 * More" below 900px, "More" at 900px+ once it's a small pill docked to
 * the content panel's own edge with little room for a longer label. */
.packs-channels__more-label--desktop {
  display: none;
}
 
/* ── 600px+ (a plain row replaces the mobile carousel; "More" adds a row) ── */
@media (width >= 600px) {
  .packs-channels {
    padding: 24px;
  }
 
  .packs-channels__heading {
    font-size: 36px;
  }
 
  /* Back to a corner badge here — the in-flow "own row above heading" fix
   * (see the base rule) only exists to stop it overlapping the heading on
   * a narrow phone, where the heading's centered text reaches all the way
   * to that corner; at this width the heading never gets that close to the
   * edge, so docking it back to the corner avoids the extra row pushing
   * the heading down and reordering the visual stack. */
  .packs-channels__language {
    position: absolute;
    top: 24px;
    right: 24px;
    margin-bottom: 0;
  }
 
  /* A CSS grid, not a flex row, once the mobile carousel's horizontal
   * scroll-snap goes away. minmax(200px, 1fr) — not minmax(200px, 300px) —
   * is deliberate: auto-fit/auto-fill compute how many columns fit using
   * each column's own MAXIMUM bound, and only fall back to the minimum
   * once that maximum is indefinite (1fr counts as indefinite; a fixed
   * 300px doesn't) — so minmax(200px, 300px) was packing columns as if
   * they were always 300px wide, dropping to 2 columns (or fewer) far
   * before the cards actually needed to shrink. With 1fr as the max, the
   * column count is packed against the 200px floor instead, so three
   * cards keep shrinking together across ordinary laptop widths
   * (~1366-1440px) and only drop to two columns once even 200px doesn't
   * fit three across. The 300px cap now lives on the card itself, below,
   * so a column doesn't stretch a lone card past its intended width. */
  .packs-channels__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
 
  /* Grid items stretch to their column's own width by default; max-width
   * caps that at the Figma size instead of letting a lone card in a wide
   * column stretch past it. */
  .packs-channels__card {
    width: auto;
    max-width: 300px;
  }
 
  /* Same stretch-by-default issue as the cards above, but the pill should
   * stay compact (not stretch to fill its whole grid cell) rather than
   * getting a max-width — it's not a card. */
  .packs-channels__more {
    justify-self: center;
    align-self: center;
  }
 
  .packs-channels__dots {
    display: none;
  }
}
 
/* ── 900px+ (sidebar + content side by side, three cards per row) ── */
@media (width >= 900px) {
  .packs-channels__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 39px;
  }
 
  .packs-channels__sidebar {
    width: 361px;
    max-width: 100%;
    padding: 16px 25px;
    border: 1px solid #4e4d56;
    border-radius: 19px;
    background: #000;
  }
 
  .packs-channels__nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
  }
 
  /* justify-content: flex-start, not the base rule's own center — center
   * was the compact mobile chip's own intent (hugging short, similar-length
   * text), but here it centers the icon+label GROUP within the full-width
   * row based on each row's own text length, so "All in One" and
   * "Broadcaster Bouquets" (very different lengths) end up with their icon
   * at a different x position each — the exact "zigzag" this fixes. */
  .packs-channels__nav-link {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
  }
 
  /* Re-asserted here, after the reset just above — that reset and the
   * selected/hover gradient rule share the same specificity, so without
   * this the reset (being later in the file) would win once the mouse
   * wasn't actively hovering, silently dropping the gradient off the
   * selected tab the moment focus moved elsewhere. Padding is NOT
   * overridden — it stays the same 10px/14px as every other row so the
   * selected tab doesn't come out a different height and throw off the
   * list's own uniform row spacing. */
  .packs-channels__nav-link:hover,
  .packs-channels__nav-link--current {
    gap: 17px;
    background: linear-gradient(90deg, #e13b3f 0%, #fe9815 100%);
    color: #fff;
  }
 
  /* Icon comes back now that the pill is big enough to hold one (hidden
   * on the compact mobile chip — see the base rule). */
  /* Bigger than the Figma-spec 30x30 — at that size, even with the icon
   * filling nearly the whole badge, the line-art icons still read as thin
   * and unclear. Scaled up proportionally (badge, radius and icon together)
   * rather than just cranking up the icon size inside the old box, which
   * would have left almost no padding around it. */
  .packs-channels__nav-icon {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 11px;
    background: #2b293c;
  }
 
  /* width/height: auto with a max-width/max-height cap (not a fixed square)
   * — most of these icons have a wide, non-square viewBox, so forcing an
   * exact square box letterboxes them down well below their own actual
   * size (the SVG's default preserveAspectRatio scales proportionally to
   * fit the box rather than distorting to fill it). */
  .packs-channels__nav-icon svg {
    width: auto;
    height: auto;
    max-width: 26px;
    max-height: 26px;
  }
 
  .packs-channels__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 37px 50px 18px;
    border: 1px solid #4e4d56;
    border-radius: 19px;
    background: #000;
    box-shadow: 0 0 25px 0 rgb(235 73 33 / 60%);
  }
 
  .packs-channels__row {
    gap: 50px;
  }
 
  /* Docked as a pill on the content panel's own right border — rounded only
   * on the left, sitting half-on/half-off the edge — rather than an inline
   * text link in the flex row alongside the cards. top is a fixed offset
   * (roughly a card's own vertical center), not top: 50%/translateY(-50%)
   * against the row's own height — the row can now hold more than one
   * grid row of cards (see .packs-channels__track's grid at 600px+), and
   * centering against that whole variable-height stack left "More"
   * floating in the middle of empty space once there was more than one
   * row of cards, disconnected from any card in particular. This keeps it
   * pinned level with the first row instead, however many more follow. */
  .packs-channels__more {
    position: absolute;
    top: 190px;
    right: -50px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 69px;
    height: 38px;
    padding: 10px 17px;
    border: 1px solid rgb(240 76 35 / 30%);
    border-radius: 20px 0 0 20px;
    background: #1b1516;
    color: #f24b26;
    font-size: 13px;
    transform: translateY(-50%);
  }
 
  .packs-channels__more:hover {
    background: rgb(240 76 35 / 15%);
    text-decoration: none;
  }
 
  .packs-channels__more-label--mobile {
    display: none;
  }
 
  .packs-channels__more-label--desktop {
    display: inline;
  }
 
  .packs-channels__track {
    /* Leaves the room the "More" pill needs — the gap it lost by becoming
       position: absolute (out of the row's normal flex flow, so
       .packs-channels__row's own gap no longer reaches it). */
    margin-right: 30px;
  }
}
 
/* ── 1200px+ ── */
@media (width >= 1200px) {
  .packs-channels {
    padding: 32px 40px;
  }
}

/* Desktop: the whole section renders at 90% (what it looks like with the browser at 90%
 * zoom), so three cards per row fit their content (OTT logos + "+N More") at 100% zoom.
 * zoom (not transform: scale) also shrinks the layout box, so no empty gap is left below. */
@media (width >= 900px) {
  .packs-channels {
    zoom: 0.9;
  }
}
 
