.tvp-diff-search-page {
  max-width: 1220px;
  margin: 0 auto 1rem;
}

.tvp-diff-search-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--tvp-u-border-strong, #bdcde0);
  border-radius: 0.4rem;
  background: #ffffff;
}

.tvp-diff-search-bouquet-menu {
  margin: 0.25rem 0 0.75rem;
}

.tvp-diff-search-bouquet-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.1rem 0.05rem 0.45rem;
}

.tvp-diff-search-bouquet-btn {
  white-space: nowrap;
}

.tvp-diff-search-field {
  min-width: 0;
}

.tvp-diff-search-field--wide {
  grid-column: span 2;
}

.tvp-diff-search-range {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 0;
}

.tvp-diff-search-field label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.25rem;
  color: var(--tvp-u-text-muted, #5f6b7a);
  font-size: 0.9rem;
  font-weight: 600;
}

.tvp-diff-search-label-icon {
  width: 0.98rem;
  height: 0.98rem;
}

.tvp-diff-search-label-icon--rating {
  color: #facc15;
}

.tvp-diff-search-field input,
.tvp-diff-search-field select {
  display: block;
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--tvp-u-border-strong, #bdcde0);
  border-radius: 0.4rem;
  background: #ffffff;
  color: inherit;
  padding: 0.4rem 0.55rem;
}

.tvp-diff-search-action-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tvp-diff-search-action-cell .tvp-u-btn {
  width: 100%;
  justify-content: center;
}

.tvp-diff-search-empty {
  margin: 0 0 1rem;
  border: 1px solid var(--tvp-u-border-strong, #bdcde0);
  border-radius: 0.4rem;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
}

.tvp-diff-search-intro {
  display: grid;
  gap: 0.45rem;
  line-height: 1.45;
}

.tvp-diff-search-intro p {
  margin: 0;
}

.tvp-diff-search-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tvp-u-border-strong, #bdcde0);
  border-radius: 0.4rem;
  background: #ffffff;
}

.tvp-diff-search-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.tvp-diff-search-table th,
.tvp-diff-search-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e4ebf3;
  text-align: left;
  vertical-align: middle;
}

.tvp-diff-search-table th {
  background: #f2f6fb;
  font-weight: 600;
}

.tvp-diff-search-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.tvp-diff-search-inline-form {
  display: inline;
  margin: 0;
}

.tvp-diff-search-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
}

.tvp-diff-search-sort span,
.tvp-diff-search-date span {
  color: var(--tvp-u-text-muted, #5f6b7a);
}

.tvp-diff-search-sort.is-active {
  color: var(--tvp-u-primary, #0f6fdb);
}

.tvp-diff-search-date {
  white-space: nowrap;
}

.tvp-diff-search-date,
.tvp-diff-search-date-heading {
  width: 1%;
}

.tvp-diff-search-date time {
  display: inline;
}

.tvp-diff-search-date-link {
  color: inherit;
  text-decoration: none;
}

.tvp-diff-search-date-link:hover {
  text-decoration: underline;
}

.tvp-diff-search-relative-row {
  display: block;
  margin-top: 0.25rem;
}

.tvp-diff-search-live-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
}

.tvp-diff-search-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  border-radius: 999px;
  padding: 0.14rem 0.58rem;
  background: var(--tvp-u-danger, #dc3545);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tvp-diff-search-live-remaining {
  color: var(--tvp-u-text-muted, #5f6b7a);
  white-space: nowrap;
}

.tvp-diff-search-program-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.tvp-diff-search-program-link img {
  display: block;
  width: 96px;
  height: 54px;
  border-radius: 0.25rem;
  background: #eef2f7;
  object-fit: cover;
}

.tvp-diff-search-program-link strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tvp-diff-search-program-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tvp-diff-search-program-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin-top: 0.18rem;
}

.tvp-diff-search-format-chip {
  display: inline-flex;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  margin-top: 0;
}

.tvp-diff-search-rating,
.tvp-diff-search-channel {
  white-space: nowrap;
}

.tvp-diff-search-channel,
.tvp-diff-search-channel-heading {
  width: 1%;
  text-align: center;
}

.tvp-diff-search-rating-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.tvp-diff-search-rating-star {
  color: #facc15;
  font-size: 1.05rem;
  line-height: 1;
}

.tvp-diff-search-channel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-inline: auto;
  color: inherit;
  text-decoration: none;
}

.tvp-diff-search-channel-inner img {
  display: block;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tvp-diff-search-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}

.tvp-diff-search-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  border: 1px solid var(--tvp-u-border-strong, #bdcde0);
  border-radius: 0.4rem;
  background: #ffffff;
  color: inherit;
  padding: 0.3rem 0.65rem;
}

.tvp-diff-search-page-btn.is-active {
  border-color: var(--tvp-u-primary, #0f6fdb);
  background: var(--tvp-u-primary, #0f6fdb);
  color: #ffffff;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-page {
  color: #e5edf8;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-form,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-empty,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-table-wrap {
  border-color: #405775;
  background: #101b2e;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-field input,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-field select,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-page-btn {
  border-color: #4d6481;
  background: #0b1628;
  color: #e5edf8;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-field input::placeholder {
  color: #8599b2;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-field option {
  background: #0b1628;
  color: #e5edf8;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-table th {
  background: #17243a;
  color: #dce8f8;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-table td {
  border-bottom-color: #263a55;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-table tbody tr {
  background: #101b2e;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-table tbody tr:nth-child(even) {
  background: #0d1829;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-program-link,
:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-channel-inner {
  color: #e5edf8;
}

:is(html[data-bs-theme="dark"], html[data-theme="dark"], html.dark, body.dark-mode, body.dark-theme) .tvp-diff-search-program-link strong {
  color: #f4f8ff;
}

@media (max-width: 1199.98px) {
  .tvp-diff-search-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .tvp-diff-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .tvp-diff-search-field--wide,
  .tvp-diff-search-range {
    grid-column: 1 / -1;
  }
}
