/**
 * Lineup comparison table — layout 2.
 * Markup: inc/lineup-table-2.php · Behavior: js/lineup-table-2.js
 *
 * Every selector is scoped to #channelList2 / *2 class names so the
 * original [lineup_table] styles are never affected.
 */

#channelList2 {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

#channelList2,
#channelList2 *,
#channelList2 *::before,
#channelList2 *::after {
  box-sizing: border-box;
}

#channelList2 .hidden {
  display: none !important;
}

#channelList2 .lineup2SrOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Heading */

.top_comp2 {
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #292938;
}

.top_comp2 h4 {
  font-family: 'proximanova_extrabold', Helvetica, Arial, Lucida, sans-serif;
  font-size: 32px;
  padding-bottom: 4px;
  color: #292938;
}

.top_comp2 p {
  font-family: 'ProximaNova-Regular v2', Helvetica, Arial, Lucida, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  color: #292938;
}

/* Filters bar (search + genre) */

.lineup2Filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
  width: 100%;
  max-width: 1280px;
  margin: 30px auto 40px;
  position: relative;
  z-index: 20;
}

.lineup2FilterGroup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lineup2SearchGroup {
  flex: 1 1 58%;
}

.lineup2GenreGroup {
  flex: 1 1 42%;
  justify-content: flex-end;
}

.lineup2FilterLabel {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #171725;
  white-space: nowrap;
}

.lineup2FilterLabel i {
  color: #f01446;
  font-size: 18px;
}

.lineup2LabelMob {
  display: none;
}

.lineup2Search {
  flex: 1 1 auto;
  width: 100%;
  position: relative;
}

.lineup2SearchCnt,
.lineup2Search .inputbox2 {
  width: 100%;
}

.lineup2Search .inputbox2 {
  position: relative;
}

.lineup2Search .awesomplete {
  z-index: 333;
}

.lineup2Search #channelSearch2 {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 40px 0 16px;
  border: 2px solid #c6c6c6;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  color: #20202e;
  outline: none;
}

.lineup2Search #channelSearch2::placeholder {
  color: #62626b;
  opacity: 1;
}

.lineup2Search #channelSearch2:focus {
  border-color: #8f8f96;
}

/* Awesomplete suggestions — scoped copy so the widget is self-contained */

.lineup2Search .awesomplete {
  display: block;
  position: relative;
}

.lineup2Search .awesomplete > input {
  display: block;
}

.lineup2Search .awesomplete [hidden] {
  display: none;
}

.lineup2Search .awesomplete .visually-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.lineup2Search .awesomplete > ul {
  position: absolute;
  left: 0;
  z-index: 1;
  min-width: 100%;
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  background: #fff;
  border: 1px solid #d5d5da;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(23, 23, 37, 0.12);
  overflow: hidden;
  text-shadow: none;
}

.lineup2Search .awesomplete > ul:empty {
  display: none;
}

.lineup2Search .awesomplete > ul:before {
  display: none;
}

.lineup2Search .awesomplete > ul > li {
  position: relative;
  padding: 9px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: #292938;
}

.lineup2Search .awesomplete > ul > li:hover {
  background: #f7f7f8;
  color: #292938;
}

.lineup2Search .awesomplete > ul > li[aria-selected="true"] {
  background: #e41932;
  color: #fff;
}

.lineup2Search .awesomplete mark {
  background: transparent;
  color: #f01446;
  font-weight: 700;
}

.lineup2Search .awesomplete > ul > li:hover mark {
  background: transparent;
  color: #f01446;
}

.lineup2Search .awesomplete > ul > li[aria-selected="true"] mark {
  background: transparent;
  color: #fff;
}

/* Clear-search button (shown while hovering the input) */

.lineup2Search .reset-search2 {
  position: absolute;
  z-index: 999;
  width: 30px;
  height: 30px;
  right: 5px;
  top: 8px;
  cursor: pointer;
  display: none;
}

.lineup2Search .reset-search2:before {
  position: absolute;
  content: '\f057';
  color: #e41932;
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  font-size: 24px;
  left: 0;
  top: 0;
}

.lineup2Search .awesomplete:hover .reset-search2,
.lineup2Search .awesomplete:focus .reset-search2,
.lineup2Search .awesomplete:focus-within .reset-search2 {
  display: inline !important;
}

/* Genre dropdown */

.genreDropdown2 {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.genreDropdown2Toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 2px solid #c6c6c6;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #62626b;
  text-align: left;
  cursor: pointer;
}

.genreDropdown2Toggle i {
  font-size: 14px;
  color: #6b6b72;
  transition: transform 0.2s ease;
}

.genreDropdown2.is-open .genreDropdown2Toggle {
  border-radius: 7px 7px 0 0;
}

.genreDropdown2.is-open .genreDropdown2Toggle i {
  transform: rotate(180deg);
}

.genreDropdown2Menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px 0;
  border: 1px solid #c8c8c8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  z-index: 999;
  scrollbar-width: thin;
  scrollbar-color: #bcbcbc #f2f2f2;
}

.genreDropdown2.is-open .genreDropdown2Menu {
  display: block;
}

.genreDropdown2Menu::-webkit-scrollbar {
  width: 10px;
}

.genreDropdown2Menu::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.genreDropdown2Menu::-webkit-scrollbar-thumb {
  border: 2px solid #f2f2f2;
  border-radius: 10px;
  background: #bcbcbc;
}

.genreDropdown2Option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin: 0;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: 400;
  color: #484852;
  cursor: pointer;
}

.genreDropdown2Option:hover {
  background: #f7f7f8;
}

.genreDropdown2Icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.genreDropdown2Icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.genreDropdown2Name {
  min-width: 0;
  line-height: 1.25;
}

.genreDropdown2Option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.genreCheckbox2 {
  display: block;
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid #8c8c8c;
  background: #fff;
}

.genreDropdown2Option input:checked + .genreCheckbox2::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #252525;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Comparison table */

.lineup2TableWrap {
  border: 1px solid #e3e3e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 23, 37, 0.06);
}

.channeltables .lineup2Scroll {
    contain: paint;
}

.lineup2Scroll {
  max-height: 640px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #f01446 #e7e7e7;
}

.lineup2Scroll::-webkit-scrollbar {
  width: 12px;
  background: #e7e7e7;
}

.lineup2Scroll::-webkit-scrollbar-thumb {
  background: #f01446;
  border-radius: 1ex;
}

.lineup2Scroll::-webkit-scrollbar-corner {
  background: #fff;
}

table.pcklist2 {
  width: 100%;
  margin: 0 !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
}

/* Header */

.pcklist2 thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #171725 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 20px 12px !important;
  vertical-align: middle;
  text-align: center;
}

.pcklist2 thead th.lineup2ColChannel {
  width: 30%;
  text-align: left;
  padding-left: 30px !important;
  font-family: 'proximanova_extrabold', Helvetica, Arial, Lucida, sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.pcklist2 thead th.lineup2ColPack {
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.lineup2PackName {
  font-family: 'proximanova_extrabold', Helvetica, Arial, Lucida, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
}

.lineup2PackMeta {
  font-family: 'ProximaNova-Regular v2', Helvetica, Arial, Lucida, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.lineup2Badge {
  display: inline-block;
  background: #f01446;
  color: #fff;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 6px;
  font-family: 'proximanova_extrabold', Helvetica, Arial, Lucida, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Body rows */

.pcklist2 tbody td {
  border: 0 !important;
  border-bottom: 1px solid #ececef !important;
  padding: 10px 12px !important;
  vertical-align: middle;
  background: #fff;
}

.pcklist2 tbody tr:hover td {
  background: #fafafb;
}

.pcklist2 td.lineup2Channel {
  text-align: left;
  padding-left: 30px !important;
}

.pcklist2 td.lineup2Channel a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #292938;
  text-decoration: none;
}

.pcklist2 td.lineup2Channel a:hover .lineup2ChannelName {
  color: #f01446;
}

.lineup2LogoBox {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 38px;
}

.lineup2Logo {
  display: block;
  max-width: 52px;
  max-height: 38px;
  width: auto;
  height: auto;
}

.lineup2ChannelName {
  font-family: 'ProximaNova-Regular v2', Helvetica, Arial, Lucida, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #292938;
}

.pcklist2 td.lineup2Cell {
  text-align: center;
  border-left: 1px solid #ececef !important;
}

.lineup2Check {
  font-size: 22px;
  color: #f01446;
}

.lineup2Dash {
  font-size: 22px;
  color: #c3c3c9;
}

/* Empty search result */

.lineup2Empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  color: #62626b;
}

/* Footer */

.lineup2Footer {
  border-top: 1px solid #ececef;
  background: #fff;
  text-align: center;
}

.lineup2ViewMore {
  display: inline-block;
  color: #f01446;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 0;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 980px) {
  .lineup2Filters {
    gap: 25px;
  }

  .lineup2FilterGroup {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lineup2GenreGroup {
    align-items: stretch;
  }

  .genreDropdown2 {
    width: 100%;
  }

  .pcklist2 thead th.lineup2ColChannel {
    font-size: 18px;
    padding-left: 16px !important;
  }

  .lineup2PackName {
    font-size: 18px;
  }

  .lineup2PackMeta {
    font-size: 12px;
  }

  .pcklist2 td.lineup2Channel {
    padding-left: 16px !important;
  }
}

@media (max-width: 767px) {
  .lineup2Filters {
    flex-direction: column;
    gap: 20px;
    margin: 25px auto 30px;
  }

  .lineup2FilterGroup,
  .lineup2SearchGroup,
  .lineup2GenreGroup {
    width: 100%;
    flex: none;
  }

  /* Labels sit left-aligned above their fields, with the mobile copy */
  .lineup2FilterLabel {
    font-size: 17px;
    justify-content: flex-start;
    text-align: left;
  }

  .lineup2LabelDesk {
    display: none;
  }

  .lineup2LabelMob {
    display: inline;
  }

  .lineup2Search #channelSearch2 {
    text-align: left;
    padding-left: 16px !important;
  }

  .genreDropdown2Menu {
    position: relative;
    top: auto;
  }

  .lineup2Scroll {
    max-height: 520px;
  }

  /* All four columns fit the viewport — no sideways scrolling */
  .pcklist2 thead th {
    padding: 14px 4px !important;
  }

  .pcklist2 thead th.lineup2ColChannel {
    width: 38%;
    font-size: 16px;
    text-align: center;
    padding-left: 4px !important;
  }

  /* White gaps between the black header boxes, like the mockup */
  .pcklist2 thead th.lineup2ColPack {
    border-left: 4px solid #fff !important;
  }

  .lineup2PackName {
    font-size: 13px;
  }

  .lineup2PackMeta {
    font-size: 8px;
    margin-top: 3px;
    white-space: nowrap;
  }

  .lineup2Badge {
    display: none;
  }

  .pcklist2 tbody td {
    padding: 8px 4px !important;
  }

  .pcklist2 td.lineup2Channel {
    padding-left: 10px !important;
  }

  .pcklist2 td.lineup2Channel a {
    gap: 8px;
  }

  /* Hide the "(CALL) HD" part so names stay short on small screens */
  .lineup2NameExtra {
    display: none;
  }

  .top_comp2 h4 {
    font-size: 26px;
  }

  .top_comp2 p {
    font-size: 18px;
  }

  .lineup2ChannelName {
    font-size: 13px;
  }

  .lineup2LogoBox {
    flex-basis: 34px;
    width: 34px;
    height: 30px;
  }

  .lineup2Logo {
    max-width: 34px;
    max-height: 30px;
  }

  .lineup2Check {
    font-size: 19px;
  }
}
