/* ===== PODCAST STYLES ===== */
/* Gemeinsames Styling für Player, Detail-Seite und Embed */

* {
  box-sizing: border-box;
}

/* ===== MOBILE FIRST ===== */
.podcast-container {
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}

.podcast-player {
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(2, 136, 209, 0.3);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  width: 100%;
  overflow-x: hidden;
}

.podcast-header {
  margin-bottom: 20px;
}

.podcast-title {
  font-size: 1.2rem;
  color: var(--c64-accent);
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.podcast-emoji {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.podcast-title-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  flex: 1;
  max-width: 100%;
}

.podcast-sub {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

.podcast-description {
  font-size: 0.85rem !important;
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
}

.podcast-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.podcast-category-badge {
  display: inline-block;
  padding: 4px 12px;
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Player Controls */
.podcast-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.podcast-btn {
  background: var(--c64-accent, #0288d1);
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  flex-shrink: 0;
}

.podcast-btn:hover {
  background: var(--c64-accent-dark, #01579b);
  transform: translateY(-2px);
}

.podcast-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.podcast-seek {
  flex: 1;
  min-width: 50px;
  accent-color: var(--c64-accent, #0288d1);
  cursor: pointer;
}

.podcast-time {
  width: auto;
  text-align: right;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Playlist */
.podcast-playlist {
  margin-top: 25px;
  border-top: 1px solid rgba(2, 136, 209, 0.2);
  padding-top: 20px;
}

.podcast-playlist-title {
  font-size: 0.9rem;
  color: var(--c64-accent, #0288d1);
  font-weight: 600;
  margin-bottom: 12px;
}

.podcast-playlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(2, 136, 209, 0.2);
  border-radius: 4px;
}

.podcast-playlist-list li {
  padding: 10px 12px !important;
  cursor: pointer;
  color: #333;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(2, 136, 209, 0.1);
  list-style: none;
  display: flex;
  align-items: center;
}

.podcast-playlist-list li::before {
  content: none !important;
}

.podcast-playlist-list li:last-child {
  border-bottom: none;
}

.podcast-playlist-list li:hover {
  background: rgba(2, 136, 209, 0.1);
  border-left-color: var(--c64-accent, #0288d1);
  color: var(--c64-accent, #0288d1);
}

.podcast-playlist-list li.active {
  background: rgba(2, 136, 209, 0.15);
  border-left-color: var(--c64-accent, #0288d1);
  color: var(--c64-accent, #0288d1);
  font-weight: 500;
}

/* Playlist Item Layout */
.podcast-playlist-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.podcast-playlist-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podcast-playlist-item-cats {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.podcast-playlist-item-cat {
  display: inline-block;
  padding: 2px 8px;
  color: white;
  border-radius: 10px;
  font-size: 0.7em;
  font-weight: 500;
  white-space: nowrap;
}

.podcast-playlist-item-duration {
  color: #999;
  font-size: 0.85em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Kategorie-Filter */
.podcast-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.podcast-filter-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  color: white;
  opacity: 0.7;
}

.podcast-filter-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.podcast-filter-btn.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== KATEGORIE-ÜBERSICHT ===== */
.podcast-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.podcast-cat-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(2, 136, 209, 0.2);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.podcast-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(2, 136, 209, 0.15);
  border-color: var(--cat-color, #0288d1);
  text-decoration: none !important;
}

.podcast-cat-card-color {
  width: 6px;
  flex-shrink: 0;
}

.podcast-cat-card-body {
  flex: 1;
  padding: 16px;
  min-width: 0;
}

.podcast-cat-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.podcast-cat-card-desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-cat-card-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #888;
}

.podcast-cat-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.podcast-cat-card-arrow {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 1.4rem;
  color: #ccc;
  transition: color 0.2s;
}

.podcast-cat-card:hover .podcast-cat-card-arrow {
  color: var(--cat-color, #0288d1);
}

/* ===== EMBED (in Artikeln) ===== */
.podcast-embed {
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(2, 136, 209, 0.3);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  width: 100%;
}

.podcast-embed .podcast-title {
  font-size: 1.1rem;
}

.podcast-embed .podcast-controls {
  margin-top: 15px;
  margin-bottom: 10px;
}

.podcast-embed-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--c64-accent, #0288d1);
  text-decoration: none;
}

.podcast-embed-link:hover {
  text-decoration: underline;
}

/* ===== DETAIL-SEITE ===== */
.podcast-detail {
  max-width: 800px;
  margin: 0 auto;
}

.podcast-detail .podcast-player {
  margin-bottom: 0;
}

.podcast-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(2, 136, 209, 0.15);
  font-size: 0.85rem;
  color: #666;
}

.podcast-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.podcast-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(2, 136, 209, 0.15);
}

.podcast-detail-nav a {
  color: var(--c64-accent, #0288d1);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid var(--c64-accent, #0288d1);
  border-radius: 4px;
  transition: all 0.2s;
}

.podcast-detail-nav a:hover {
  background: var(--c64-accent, #0288d1);
  color: white;
}

/* ===== TABLET & DESKTOP (ab 768px) ===== */
@media (min-width: 768px) {
  .podcast-container {
    max-width: 700px;
    padding: 0;
  }

  .podcast-player {
    padding: 25px;
  }

  .podcast-title {
    font-size: 1.5rem;
  }

  .podcast-emoji {
    font-size: 1.5rem;
  }

  .podcast-sub {
    font-size: 0.95rem;
    margin-top: 0;
  }

  .podcast-description {
    font-size: 0.9rem !important;
  }

  .podcast-btn {
    padding: 10px 16px;
    font-size: 1rem;
  }

  .podcast-time {
    width: 100px;
    font-size: 0.9rem;
  }

  .podcast-playlist-title {
    font-size: 0.95rem;
  }

  .podcast-playlist-list li {
    font-size: 0.9rem;
  }

  .podcast-detail {
    padding: 0 15px;
  }

  .podcast-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
