:root {
  --tv-bg: #f6f8fb;
  --tv-surface: #ffffff;
  --tv-surface-muted: #eef5fb;
  --tv-border: #d9e2ea;
  --tv-text: #17212b;
  --tv-muted: #5e6c78;
  --tv-blue: #0f6cbf;
  --tv-blue-dark: #084b86;
  --tv-shadow: 0 18px 48px rgba(21, 42, 62, 0.09);
  --tv-radius: 18px;
}

.tv-content {
  margin-top: 24px;
}

.tv-main {
  display: grid;
  gap: 24px;
}

.tv-page-head {
  max-width: 760px;
}

.tv-kicker {
  margin: 0 0 8px;
  color: var(--tv-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.tv-page-head p:last-child {
  margin: 14px 0 0;
  color: var(--tv-muted);
  font-size: 1.08rem;
}

.tv-watchlist-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #cfe0ee;
  border-radius: var(--tv-radius);
  background: linear-gradient(135deg, #e9f4ff, #ffffff 70%);
  box-shadow: 0 12px 34px rgba(33, 81, 122, 0.08);
}

.tv-watchlist-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.tv-watchlist-note p {
  margin: 0;
  color: var(--tv-muted);
}

.tv-button,
.tv-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tv-button:focus-visible,
.tv-card__actions a:focus-visible,
.tv-bookmark:focus-visible,
.tv-filter input:focus-visible,
.tv-filter select:focus-visible {
  outline: 3px solid rgba(15, 108, 191, 0.28);
  outline-offset: 3px;
}

.tv-button:hover,
.tv-card__actions a:hover {
  transform: translateY(-1px);
}

.tv-button--light {
  flex: 0 0 auto;
  border: 1px solid #b6d1e8;
  background: #fff;
  color: var(--tv-blue-dark);
}

.tv-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(18, 37, 56, 0.05);
}

.tv-filter label {
  display: grid;
  gap: 6px;
  color: #314252;
  font-size: 0.82rem;
  font-weight: 750;
}

.tv-filter input,
.tv-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9e2;
  border-radius: 12px;
  background: #fff;
  color: var(--tv-text);
  font: inherit;
  padding: 0 12px;
}

.tv-results {
  display: grid;
  gap: 20px;
}

.tv-date-group {
  display: grid;
  gap: 14px;
}

.tv-date-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #243442;
}

.tv-date-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tv-date-heading span {
  color: var(--tv-muted);
  font-size: 0.9rem;
}

.tv-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 36%) 1fr;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  background: var(--tv-surface);
  box-shadow: var(--tv-shadow);
}

.tv-card__image {
  position: relative;
  min-height: 238px;
  background: #dce7f0;
}

.tv-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 238px;
  object-fit: cover;
}

.tv-card__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 238px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.38), transparent 22%),
    linear-gradient(135deg, #18364a, #5f90a8);
}

.placeholder-volcano {
  background:
    radial-gradient(circle at 68% 70%, rgba(255, 111, 44, 0.9), transparent 21%),
    linear-gradient(140deg, #111923, #46505b 55%, #e8602e);
}

.placeholder-northern-lights {
  background:
    radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.28), transparent 20%),
    linear-gradient(135deg, #071d38, #165866 52%, #55d9aa);
}

.placeholder-nature {
  background:
    radial-gradient(circle at 32% 46%, rgba(255, 255, 255, 0.72), transparent 9%),
    linear-gradient(135deg, #365f4f, #91b76f 48%, #d8edf2);
}

.placeholder-wikings {
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(135deg, #152332, #31485d 54%, #728294);
}

.placeholder-travel {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.54), transparent 16%),
    linear-gradient(135deg, #0f5f8f, #7cb1c9 54%, #eef7f8);
}

.tv-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(17, 28, 39, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.tv-card__content {
  display: grid;
  gap: 12px;
  padding: 23px 24px 18px;
}

.tv-card__topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-right: 44px;
}

.tv-sender {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tv-sender--arte {
  color: #f05a24;
}

.tv-sender--zdf {
  color: #ef7b22;
}

.tv-sender--ard {
  color: #1b5ba7;
}

.tv-sender--3sat {
  color: #202a34;
}

.tv-time,
.tv-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #293847;
  font-size: 0.92rem;
  font-weight: 720;
}

.tv-duration::before {
  content: "◷";
  color: var(--tv-blue);
}

.tv-bookmark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd7e2;
  border-radius: 12px;
  background: #fff;
  color: #253443;
  cursor: pointer;
  font-size: 1.25rem;
}

.tv-bookmark[aria-pressed="true"] {
  border-color: #93bde1;
  background: #e8f3ff;
  color: var(--tv-blue);
}

.tv-card h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.tv-subtitle {
  margin: -5px 0 0;
  color: #2b3946;
  font-weight: 780;
}

.tv-description {
  margin: 0;
  color: #40505e;
}

.tv-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  color: #3c4d5c;
  font-size: 0.88rem;
}

.tv-card__meta span:not(:last-child)::after {
  content: "•";
  margin-left: 14px;
  color: #94a3b0;
}

.tv-cast {
  margin: -2px 0 0;
  color: #314252;
  font-size: 0.9rem;
}

.tv-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
}

.tv-card__actions a {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #cfdeeb;
  background: #f7fbff;
  color: var(--tv-blue-dark);
  font-size: 0.88rem;
}

.tv-card__actions a::before {
  margin-right: 7px;
  color: var(--tv-blue);
}

.tv-card__actions a[data-action="source"]::before {
  content: "▣";
}

.tv-card__actions a[data-action="mediathek"]::before {
  content: "▷";
}

.tv-card__actions a[data-action="info"]::before {
  content: "ⓘ";
}

.tv-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tv-info-strip article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 37, 56, 0.05);
}

.tv-info-strip span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-radius: 12px;
  background: var(--tv-surface-muted);
  color: var(--tv-blue);
  font-weight: 850;
}

.tv-info-strip h2 {
  margin: 0;
  font-size: 1rem;
}

.tv-info-strip p {
  margin: 6px 0 0;
  color: var(--tv-muted);
  font-size: 0.92rem;
}

.tv-loading,
.tv-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  background: #fff;
  color: var(--tv-muted);
  text-align: center;
}

.tv-error {
  margin: 0;
  padding: 18px;
  border: 1px solid #f0c7c7;
  border-radius: var(--tv-radius);
  background: #fff7f7;
  color: #8f1f1f;
}

@media (max-width: 900px) {
  .tv-filter,
  .tv-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-card {
    grid-template-columns: 1fr;
  }

  .tv-card__image,
  .tv-card__image img,
  .tv-card__image-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .tv-content {
    padding-inline: 12px;
  }

  .tv-watchlist-note {
    align-items: stretch;
    flex-direction: column;
  }

  .tv-filter,
  .tv-info-strip {
    grid-template-columns: 1fr;
  }

  .tv-card__content {
    padding: 20px 18px 18px;
  }

  .tv-card__topline {
    padding-right: 0;
  }

  .tv-bookmark {
    top: 14px;
    right: 14px;
  }
}
