.show-hero {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(231,193,107,.090), transparent 34%),
    linear-gradient(135deg, rgba(38,31,24,.84), rgba(14,20,30,.74));
  box-shadow: var(--shadow);
}

.show-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.07em;
}

.show-copy {
  padding: 6px 0;
}

.show-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.poster-button {
  position: relative;
  overflow: hidden;
  width: 250px;
  max-height: 430px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #020617;
  cursor: zoom-in;
  flex: 0 0 auto;
}

.poster-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.poster-button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.actions form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.season {
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(30,41,59,.44);
}

.season summary {
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 900;
}

.episode-list {
  display: grid;
}

.episode-row {
  display: grid;
  grid-template-columns: 44px 112px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.episode-row.watched {
  opacity: .62;
}

.episode-thumb {
  overflow: hidden;
  height: 64px;
  border-radius: 14px;
  background: #020617;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb span {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent);
  font-weight: 900;
}

.episode-copy span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.watch-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #020617;
  color: var(--success);
  cursor: pointer;
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2,6,23,.86);
  backdrop-filter: blur(12px);
}

.lightbox.open {
  display: grid;
}

.lightbox-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox img {
  max-width: min(92vw, 780px);
  max-height: 84vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15,23,42,.88);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

/* TV Tracker 0.1.8 - watch flow tools */
.episode-section {
  background:
    radial-gradient(circle at 6% 0%, rgba(201,154,74,.08), transparent 30%),
    rgba(15,23,42,.64);
}

.season summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.season summary small {
  color: var(--muted);
  font-weight: 700;
}

.season-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, .18);
}

.episode-row {
  grid-template-columns: 44px 112px minmax(0, 1fr) auto;
}

.episode-row form {
  margin: 0;
}

.episode-actions {
  display: flex;
  justify-content: flex-end;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(244, 215, 170, .16);
  border-radius: 999px;
  background: rgba(201, 154, 74, .14);
  color: #f6dca8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mini-button:hover {
  border-color: rgba(231, 193, 107, .35);
  background: rgba(201, 154, 74, .22);
}

.mini-button.ghost {
  background: rgba(2, 6, 23, .20);
  color: var(--muted);
}

.mini-button.through {
  color: #a7f3d0;
  background: rgba(20, 184, 166, .10);
}

.button.danger {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(127, 29, 29, .34);
  color: #fecaca;
}

.danger-zone {
  border-color: rgba(248, 113, 113, .18);
  background:
    radial-gradient(circle at top right, rgba(127, 29, 29, .16), transparent 35%),
    rgba(15,23,42,.58);
}

.delete-show-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.delete-show-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .episode-row {
    grid-template-columns: 40px 82px minmax(0, 1fr);
  }

  .episode-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .episode-actions .mini-button {
    width: 100%;
  }

  .delete-show-form {
    grid-template-columns: 1fr;
  }
}

/* TV Tracker 0.1.26 - show and season rating */
.rating-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0 2px;
  padding: 12px;
  border: 1px solid rgba(245, 197, 24, .14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(245,197,24,.10), transparent 34%),
    rgba(2, 6, 23, .18);
  width: max-content;
  max-width: 100%;
}

.rating-readout {
  display: grid;
  gap: 2px;
  min-width: 118px;
}

.rating-readout span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rating-readout strong {
  color: #f5c518;
  font-size: 20px;
  line-height: 1;
}

.rating-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.season-rating-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.season-rating-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.season-rating-form select,
.rating-form select {
  min-height: 34px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .rating-panel {
    width: 100%;
  }

  .rating-form {
    width: 100%;
  }

  .rating-form select,
  .rating-form button {
    flex: 1;
  }

  .season-rating-form {
    width: 100%;
    margin-left: 0;
  }

  .season-rating-form select,
  .season-rating-form button {
    flex: 1;
  }
}

/* TV Tracker 0.1.30 - star rating UI */
.star-rating-panel {
  align-items: stretch;
  width: min(100%, 640px);
  padding: 14px;
}

.star-rating-form {
  display: grid;
  gap: 10px;
}

.star-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(245, 197, 24, .15);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    rgba(0, 0, 0, .18);
}

.star-option,
.rating-clear-option {
  cursor: pointer;
  user-select: none;
}

.star-option input,
.rating-clear-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-option span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  color: rgba(245, 197, 24, .24);
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,.30);
  transition: transform .12s ease, color .12s ease, filter .12s ease;
}

.star-option.filled span,
.star-option input:checked + span {
  color: #f5c518;
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, .20));
}

.star-option:hover span {
  color: #f7d24a;
  transform: translateY(-1px) scale(1.08);
}

.rating-clear-option span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, .45);
  font-size: 12px;
  font-weight: 900;
}

.rating-clear-option.active span,
.rating-clear-option input:checked + span {
  color: #111827;
  background: #f5c518;
  border-color: rgba(245, 197, 24, .65);
}

.rating-save-button {
  justify-self: start;
}

.star-season-rating-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.star-season-rating-form .compact-stars {
  padding: 5px;
  border-radius: 14px;
}

.compact-stars .star-option span {
  width: 18px;
  height: 22px;
  font-size: 18px;
}

.compact-stars .rating-clear-option span {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .star-rating-panel {
    width: 100%;
  }

  .star-picker {
    width: 100%;
  }

  .star-option span {
    width: 22px;
    height: 27px;
    font-size: 21px;
  }

  .rating-save-button {
    width: 100%;
  }

  .star-season-rating-form {
    width: 100%;
    margin-left: 0;
  }

  .star-season-rating-form .compact-stars {
    flex: 1 1 100%;
  }
}

/* TV Tracker 0.1.31 - auto-save star rating polish */
.star-rating-panel {
  width: min(100%, 560px);
  gap: 10px;
}

.rating-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.rating-label-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rating-label-row strong {
  color: #f5c518;
  font-size: 13px;
  font-weight: 950;
}

.star-rating-form {
  width: 100%;
}

.star-picker {
  width: 100%;
}

.auto-rating-form.is-saving {
  opacity: .72;
  pointer-events: none;
}

.auto-rating-form.is-saving::after {
  content: "Kaydediliyor...";
  display: inline-flex;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.star-season-rating-form.auto-rating-form.is-saving::after {
  margin-top: 0;
}

.rating-save-button {
  display: none;
}

.star-option input:checked + span {
  color: #f5c518;
}

.star-picker:hover .star-option span {
  color: rgba(245, 197, 24, .24);
}

.star-picker .star-option:hover span,
.star-picker .star-option:hover ~ .star-option span {
  color: rgba(245, 197, 24, .24);
}

/* CSS sibling direction sağa doğru olduğu için gerçek hover preview'ı JS'siz sınırlı bırakıyoruz.
   Kaydedilen değer server render sonrası filled class ile doğru görünür. */
.star-option:hover span {
  color: #f7d24a;
}

@media (max-width: 760px) {
  .rating-label-row {
    align-items: flex-start;
  }
}

/* TV Tracker 0.1.32 - star rating autosave fix */
.rating-label-row {
  justify-content: flex-start;
}

.rating-label-row strong {
  display: none;
}

.star-rating-panel {
  width: min(100%, 540px);
}

.star-rating-form {
  width: 100%;
}

.rating-save-button {
  display: none;
}

.auto-rating-form.is-saving {
  opacity: .65;
  pointer-events: none;
}

.auto-rating-form.is-saving::after {
  content: "Kaydediliyor...";
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.star-option.preview-filled span {
  color: #f7d24a;
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, .20));
}

.star-picker:hover .star-option.filled span {
  color: #f5c518;
}

.star-picker:hover .star-option.preview-filled span {
  color: #f7d24a;
}

.star-option.filled span {
  color: #f5c518;
}

.star-option input:checked + span {
  color: #f5c518;
}

.star-season-rating-form {
  gap: 8px;
}

/* TV Tracker 0.1.34 - external star rating JS support */
.auto-rating-form[data-rating-bound="1"] .star-picker {
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 24, .03),
    0 0 0 1px rgba(245, 197, 24, .02);
}

/* TV Tracker 0.1.55 - compact bulk watch actions */
.show-bulk-actions-0155 {
  width: min(100%, 680px);
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 176, 79, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(226, 176, 79, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(17, 24, 39, 0.46));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quick-watch-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quick-watch-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-watch-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.quick-watch-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-watch-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-watch-buttons form {
  margin: 0;
}

.compact-action {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.86rem;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.ghost:hover {
  border-color: rgba(226, 176, 79, 0.35);
  background: rgba(226, 176, 79, 0.08);
}

@media (max-width: 760px) {
  .show-bulk-actions-0155 {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-watch-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}
/* /TV Tracker 0.1.55 */

/* TV Tracker 0.1.56 - ultra compact bulk watch actions */
.show-bulk-actions-0156 {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 6px;
  border: 1px solid rgba(226, 176, 79, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.44);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.show-bulk-actions-0156 form {
  margin: 0;
}

.show-quick-label {
  padding: 0 8px 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mini-action {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-action.primary {
  border-color: rgba(226, 176, 79, 0.5);
  background: var(--accent);
  color: #17120a;
}

.mini-action:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 176, 79, 0.4);
}

@media (max-width: 760px) {
  .show-bulk-actions-0156 {
    width: 100%;
    border-radius: 16px;
  }
}
/* /TV Tracker 0.1.56 */
