.tv-season-episode-section {
  padding-bottom: 54px;
}

.tv-season-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tv-season-subtitle,
.tv-season-count {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 650;
}

.tv-season-count {
  text-align: right;
  white-space: nowrap;
}

.tv-season-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.tv-season-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.tv-season-tabs::-webkit-scrollbar {
  display: none;
}

.tv-season-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  padding: 5px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 0 16px rgba(27,216,106,0.10);
}

.tv-season-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tv-season-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  filter: grayscale(1);
}

.tv-season-arrow:not(:disabled):hover,
.tv-season-arrow:not(:disabled):focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(27,216,106,0.72), 0 0 18px rgba(27,216,106,0.18);
}

.tv-season-tab {
  min-width: 138px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
}

.tv-season-tab span,
.tv-season-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-season-tab span {
  font-size: 14px;
  font-weight: 900;
}

.tv-season-tab small {
  margin-top: 4px;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 700;
}

.tv-season-tab:hover,
.tv-season-tab:focus-visible,
.tv-season-tab.is-active {
  outline: none;
  border-color: rgba(27,216,106,0.78);
  background: rgba(27,216,106,0.12);
}

.tv-episode-list {
  display: grid;
  gap: 10px;
}

.tv-episode-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(90deg, rgba(255,255,255,0.072), rgba(255,255,255,0.035));
}

.tv-episode-number {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.tv-episode-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

.tv-episode-meta {
  margin-top: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
}

.tv-episode-overview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 7px 0 0;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1.42;
}

.tv-episode-actions {
  display: flex;
  gap: 8px;
}

.tv-episode-actions button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  padding: 5px;
  cursor: pointer;
}

.tv-episode-actions button:disabled {
  cursor: default;
  opacity: 0.36;
  filter: grayscale(1);
}

.tv-episode-actions img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tv-episodes-empty {
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.62);
  padding: 18px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .tv-season-header {
    display: block;
  }

  .tv-season-count {
    margin-top: 7px;
    text-align: left;
    white-space: normal;
  }

  .tv-season-nav {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
  }

  .tv-season-arrow {
    width: 34px;
    height: 34px;
    padding: 4px;
  }

  .tv-season-tab {
    min-width: 122px;
    padding: 10px 12px;
  }

  .tv-episode-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 82px;
    padding: 12px;
  }

  .tv-episode-number {
    font-size: 12px;
  }

  .tv-episode-title {
    font-size: 14px;
  }

  .tv-episode-overview {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }

  .tv-episode-actions button {
    width: 32px;
    height: 32px;
    padding: 4px;
  }
}
