@charset "utf-8";

lcars-podcast {
  display: block;
  min-width: 0;
  color: var(--space-white);
}

.podcast-terminal {
  min-width: 0;
  color: var(--space-white);
}

.podcast-header,
.podcast-subheading,
.podcast-time-row,
.podcast-episode-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.podcast-header {
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.4rem solid var(--neo-orange);
}

.podcast-header h3,
.podcast-subheading h4 {
  margin: 0;
}

.podcast-name {
  color: var(--neo-gold);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.podcast-eyebrow,
.podcast-section-label,
.podcast-signal,
.podcast-subheading span,
.podcast-system-code {
  color: var(--neo-violet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.podcast-signal {
  flex: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--neo-violet);
  color: #000;
}

.podcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.8fr);
  gap: 1.25rem;
  min-width: 0;
}

.podcast-current {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

.podcast-cover {
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--neo-border-card);
  border-left: 6px solid var(--neo-orange);
  border-radius: 0 12px 12px 0;
  background: #05070b;
}

.podcast-cover-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
  background:
    linear-gradient(90deg, transparent 48%, rgba(204, 153, 255, 0.16) 49%, rgba(204, 153, 255, 0.16) 51%, transparent 52%),
    linear-gradient(rgba(136, 153, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 18px;
  color: var(--neo-violet);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
}

.podcast-cover-placeholder strong {
  color: var(--neo-orange);
  font-size: clamp(1.2rem, 4vw, 2rem);
  line-height: 1;
}

.podcast-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-transmission-data {
  min-width: 0;
}

.podcast-episode-title {
  margin: 0.35rem 0 0.45rem;
  color: var(--neo-gold);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  overflow-wrap: anywhere;
}

.podcast-episode-meta {
  margin-bottom: 0.8rem;
  color: var(--neo-orange);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}

.podcast-description {
  color: #dfe3ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 0.9rem;
  line-height: 1.6;
}

.podcast-audio {
  display: none;
}

.podcast-controls,
.podcast-timeline-block,
.podcast-settings,
.podcast-status,
.podcast-chapters {
  grid-column: 1 / -1;
}

.podcast-controls {
  display: grid;
  grid-template-columns: minmax(72px, 0.45fr) minmax(120px, 1fr) minmax(72px, 0.45fr);
  gap: 0.6rem;
}

.podcast-control,
.podcast-episode-select,
.podcast-chapter {
  border: 0;
  cursor: pointer;
}

.podcast-control {
  min-height: 52px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--neo-blue);
  color: #000;
  font-weight: 700;
}

.podcast-play {
  background: var(--neo-orange);
}

.podcast-control:hover,
.podcast-control:focus-visible {
  filter: brightness(1.18);
}

.podcast-control:focus-visible,
.podcast-episode-select:focus-visible,
.podcast-chapter:focus-visible,
.podcast-timeline:focus-visible,
.podcast-volume:focus-visible,
.podcast-rate:focus-visible {
  outline: 3px solid var(--theme-sunflower);
  outline-offset: 3px;
}

.podcast-control:disabled,
.podcast-timeline:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.45;
}

.podcast-range-label,
.podcast-settings label > span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--neo-violet);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.podcast-timeline,
.podcast-volume {
  width: 100%;
  min-width: 0;
  accent-color: var(--neo-orange);
}

.podcast-timeline {
  height: 28px;
  margin: 0;
  cursor: pointer;
  background: transparent;
}

.podcast-timeline::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--neo-orange) var(--podcast-progress, 0%), #313747 var(--podcast-progress, 0%));
}

.podcast-timeline::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border: 3px solid #000;
  border-radius: 50%;
  appearance: none;
  background: var(--neo-violet);
}

.podcast-timeline::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #313747;
}

.podcast-timeline::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--neo-orange);
}

.podcast-timeline::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--neo-violet);
}

.podcast-time-row {
  color: var(--neo-gold);
  font-family: monospace;
  font-size: 0.76rem;
}

.podcast-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.4fr);
  gap: 1rem;
  align-items: end;
}

.podcast-settings label {
  min-width: 0;
}

.podcast-rate {
  width: 100%;
  min-height: 42px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--neo-border-card);
  border-radius: 6px;
  background: #101521;
  color: var(--space-white);
}

.podcast-status {
  padding: 0.55rem 0.75rem;
  border-left: 5px solid var(--neo-orange);
  background: rgba(255, 153, 0, 0.08);
  color: var(--neo-gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.podcast-status.is-error,
.podcast-system-message.is-error {
  border-color: var(--theme-tomato);
  color: var(--theme-tomato);
}

.podcast-chapters,
.podcast-database {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--neo-border-card);
  background: rgba(255, 255, 255, 0.025);
}

.podcast-subheading {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.podcast-subheading h4 {
  color: var(--neo-violet);
  font-size: 0.9rem;
}

.podcast-chapter-list,
.podcast-episode-list {
  display: grid;
  gap: 0.35rem;
}

.podcast-chapter {
  display: grid;
  grid-template-columns: 70px 95px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.035);
  color: #aeb5c3;
  text-align: left;
}

.podcast-chapter:hover {
  background: rgba(204, 153, 255, 0.1);
}

.podcast-chapter-code,
.podcast-chapter-time,
.podcast-chapter-status {
  font-family: monospace;
  font-size: 0.68rem;
}

.podcast-chapter-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.podcast-chapter-status {
  color: var(--theme-gray);
}

.podcast-chapter.is-complete .podcast-chapter-status {
  color: var(--theme-lima);
}

.podcast-chapter.is-active {
  border-left: 5px solid var(--neo-orange);
  background: rgba(255, 153, 0, 0.1);
  color: var(--space-white);
}

.podcast-chapter.is-active .podcast-chapter-status {
  color: var(--neo-orange);
}

.podcast-chapter.is-reached {
  animation: podcast-chapter-reached 600ms ease-out;
}

.podcast-episode-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.7rem;
  width: 100%;
  min-height: 58px;
  padding: 0.65rem 0.75rem;
  border-left: 5px solid var(--neo-blue);
  background: rgba(136, 153, 255, 0.07);
  color: var(--space-white);
  text-align: left;
}

.podcast-episode-select:hover,
.podcast-episode-select.is-active {
  background: rgba(204, 153, 255, 0.13);
  border-left-color: var(--neo-orange);
}

.podcast-episode-code {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--neo-orange);
  font-family: monospace;
  font-size: 0.7rem;
}

.podcast-episode-select-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.podcast-episode-select-date {
  color: #9aa1ae;
  font-size: 0.66rem;
}

.podcast-empty-state {
  padding: 0.75rem;
  color: #9aa1ae;
  font-size: 0.75rem;
}

.podcast-system-message {
  padding: 1.25rem;
  border-left: 7px solid var(--neo-orange);
  background: rgba(255, 153, 0, 0.06);
}

.podcast-system-message strong,
.podcast-system-message p {
  display: block;
  margin-top: 0.5rem;
}

@keyframes podcast-chapter-reached {
  0% { filter: brightness(1); box-shadow: inset 0 0 0 rgba(255, 153, 0, 0); }
  45% { filter: brightness(1.45); box-shadow: inset 0 0 28px rgba(255, 153, 0, 0.25); }
  100% { filter: brightness(1); box-shadow: inset 0 0 0 rgba(255, 153, 0, 0); }
}

@media (max-width: 1000px) {
  .podcast-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .podcast-header {
    align-items: flex-start;
  }

  .podcast-current {
    grid-template-columns: 1fr;
  }

  .podcast-cover {
    width: min(100%, 280px);
  }

  .podcast-controls,
  .podcast-timeline-block,
  .podcast-settings,
  .podcast-status,
  .podcast-chapters {
    grid-column: 1;
  }

  .podcast-chapter {
    grid-template-columns: 58px 76px minmax(0, 1fr);
  }

  .podcast-chapter-status {
    grid-column: 3;
  }
}

@media (max-width: 480px) {
  .podcast-header {
    flex-direction: column;
  }

  .podcast-controls {
    grid-template-columns: 1fr 1.35fr 1fr;
  }

  .podcast-control {
    min-height: 48px;
    padding-inline: 0.45rem;
  }

  .podcast-settings {
    grid-template-columns: 1fr;
  }

  .podcast-chapter {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .podcast-chapter-time {
    text-align: right;
  }

  .podcast-chapter-title,
  .podcast-chapter-status {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-chapter.is-reached {
    animation: none;
  }
}
