.tv-show-page {
  display: grid;
  gap: 22px;
}
.tv-show-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(8,13,24,.74));
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.tv-show-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5,8,14,.92), rgba(5,8,14,.12) 44%, rgba(5,8,14,.18));
}
.tv-show-hero > * {
  position: relative;
  z-index: 1;
}
.tv-back-button {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
}
.tv-show-poster {
  width: min(100%, 230px);
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e293b, #020617);
  color: rgba(255,255,255,.7);
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(0,0,0,.48);
}
.tv-show-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tv-show-copy {
  max-width: 920px;
  padding-right: 12px;
}
.tv-show-kicker {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tv-show-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 78px);
  letter-spacing: -.055em;
  line-height: .92;
}
.tv-show-meta-line {
  margin-top: 12px;
  color: rgba(226,232,240,.86);
  font-size: 15px;
  font-weight: 700;
}
.tv-show-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}
.tv-show-actions button:disabled,
.tv-episode-play:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.tv-show-copy p {
  max-width: 900px;
  color: rgba(226,232,240,.9);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.tv-show-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tv-show-pills span,
.tv-episode-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(241,245,249,.9);
  font-size: 12px;
  font-weight: 800;
}
.tv-show-body {
  display: grid;
  gap: 14px;
}
.tv-show-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}
.tv-show-section-head h2 {
  margin: 0 0 4px;
}
.tv-show-section-head p {
  margin: 0;
}
.tv-season-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scrollbar-width: none;
}
.tv-season-tabs::-webkit-scrollbar { display: none; }
.tv-season-tabs button {
  min-width: 122px;
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(15,23,42,.72);
  color: #f8fafc;
  cursor: pointer;
}
.tv-season-tabs button:hover,
.tv-season-tabs button.active {
  background: rgba(56,189,248,.16);
  border-color: rgba(56,189,248,.46);
}
.tv-season-tabs span {
  font-weight: 900;
}
.tv-season-tabs small {
  color: var(--muted);
}
.tv-episode-list {
  display: grid;
  gap: 10px;
}
.tv-episode-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(15,23,42,.62);
}
.tv-episode-card.has-file {
  background: linear-gradient(90deg, rgba(15,23,42,.82), rgba(8,47,73,.34));
}
.tv-episode-number {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: rgba(226,232,240,.92);
  font-weight: 900;
  letter-spacing: .03em;
}
.tv-episode-main {
  min-width: 0;
}
.tv-episode-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.tv-episode-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.tv-episode-status.available {
  border-color: rgba(34,197,94,.32);
  background: rgba(34,197,94,.12);
}
.tv-episode-status.missing {
  color: rgba(226,232,240,.74);
}
.tv-episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.tv-episode-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 8px;
  color: rgba(148,163,184,.72);
}
.tv-episode-card p {
  margin: 8px 0 0;
  color: rgba(203,213,225,.86);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tv-episode-play {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: white;
  font-size: 17px;
}
.tv-empty-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(15,23,42,.72);
  color: var(--muted);
}
.tv-loading-card h2,
.tv-error-card h2 {
  color: white;
  margin: 0 0 8px;
}
@media (max-width: 780px) {
  .tv-show-hero {
    min-height: 0;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 70px 16px 20px;
    border-radius: 22px;
  }
  .tv-show-poster {
    width: 120px;
    border-radius: 16px;
  }
  .tv-show-copy h2 {
    font-size: clamp(30px, 10vw, 48px);
  }
  .tv-episode-card {
    grid-template-columns: 1fr 44px;
  }
  .tv-episode-number {
    grid-column: 1 / -1;
    justify-content: start;
    place-items: center start;
    min-height: 0;
    padding: 8px 10px;
  }
}
@media (max-width: 540px) {
  .tv-show-hero {
    grid-template-columns: 1fr;
  }
  .tv-show-poster {
    width: 150px;
  }
  .tv-episode-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.tv-episode-play:not(:disabled) {
  cursor: pointer;
  background: rgba(56,189,248,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.tv-episode-play:not(:disabled):hover,
.tv-episode-play:not(:disabled):focus-visible {
  background: rgba(56,189,248,.34);
  transform: translateY(-1px);
}
