:root {
  --pod-bg: #f6f0e8;
  --pod-bg-deep: #101b35;
  --pod-ink: #111827;
  --pod-muted: #5b6475;
  --pod-line: rgba(17, 24, 39, 0.12);
  --pod-surface: rgba(255, 255, 255, 0.88);
  --pod-surface-strong: #ffffff;
  --pod-accent: #ff7a18;
  --pod-accent-deep: #e45f00;
  --pod-accent-soft: rgba(255, 122, 24, 0.15);
  --pod-success: #1f9d55;
  --pod-danger: #d9485f;
  --pod-shadow: 0 18px 55px rgba(16, 27, 53, 0.12);
  --pod-radius-xl: 28px;
  --pod-radius-lg: 18px;
  --pod-radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.podcast-body {
  margin: 0;
  font-family: "IBM Plex Sans JP", "Avenir Next", "Noto Sans JP", sans-serif;
  color: var(--pod-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 87, 0.24), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(73, 185, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fff7ee 0%, var(--pod-bg) 42%, #eef3f8 100%);
}
body.podcast-body.is-studio {
  background:
    radial-gradient(circle at 0 0, rgba(255, 122, 24, 0.16), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(90, 117, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #fef6ef 0%, #f4efe8 40%, #eff4fb 100%);
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.podcast-wrap {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.podcast-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 242, 0.78);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.podcast-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.podcast-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.podcast-brand-mark strong {
  display: block;
  font-size: 1rem;
}
.podcast-brand-mark small {
  display: block;
  color: var(--pod-muted);
}
.podcast-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pod-bg-deep), #203a72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.podcast-topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.podcast-topnav a,
.podcast-locale-select,
.podcast-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,0.72);
  color: var(--pod-ink);
  text-decoration: none;
}
.podcast-locale-select {
  width: auto;
  min-width: 150px;
  font: inherit;
  cursor: pointer;
}
.podcast-topnav a.is-active { background: var(--pod-bg-deep); color: #fff; }
.podcast-inline-form { margin: 0; }
.podcast-ghost-button { cursor: pointer; }

.podcast-main-shell {
  padding: 28px 0 150px;
}
.podcast-kicker {
  margin: 0 0 8px;
  color: var(--pod-accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.podcast-hero-shell,
.podcast-library-shell,
.podcast-form-panel {
  border: 1px solid var(--pod-line);
  border-radius: var(--pod-radius-xl);
  background: var(--pod-surface);
  box-shadow: var(--pod-shadow);
}
.podcast-hero-shell { padding: 24px; }
.podcast-library-shell,
.podcast-form-panel { padding: 22px; }
.podcast-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}
.podcast-hero-grid.studio { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr); }
.podcast-hero-copy h1,
.podcast-section-head h2,
.podcast-episode-card h3,
.podcast-hero-card h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.podcast-hero-copy h1 { font-size: clamp(2rem, 5vw, 4rem); }
.podcast-hero-text,
.podcast-muted,
.podcast-hero-card p,
.podcast-episode-card p {
  color: var(--pod-muted);
}
.podcast-hero-actions,
.podcast-inline-actions,
.podcast-chip-row,
.podcast-card-meta,
.podcast-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.podcast-chip-row { margin-top: 16px; }
.podcast-inline-actions.wrap { flex-wrap: wrap; }
.podcast-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(17,24,39,0.08);
}
.podcast-primary-button,
.podcast-secondary-button,
.podcast-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.podcast-primary-button { background: linear-gradient(135deg, var(--pod-bg-deep), #203a72); color: #fff; }
.podcast-secondary-button { background: rgba(255,255,255,0.8); color: var(--pod-ink); border-color: rgba(17,24,39,0.08); }
.podcast-danger-button { background: rgba(217,72,95,0.12); color: var(--pod-danger); border-color: rgba(217,72,95,0.24); min-height: 44px; }
.podcast-primary-button.small,
.podcast-secondary-button.small { min-height: 42px; padding: 0 14px; }
.podcast-hero-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: calc(var(--pod-radius-xl) - 6px);
  background: linear-gradient(145deg, rgba(14, 24, 52, 0.98), rgba(30, 58, 138, 0.94));
  color: #fff;
}
.podcast-cover-art {
  width: clamp(120px, 18vw, 180px);
  aspect-ratio: 1;
  border-radius: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,122,24,0.5));
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
}
img.podcast-cover-art {
  object-fit: cover;
}
.podcast-hero-card p,
.podcast-hero-card .podcast-muted { color: rgba(255,255,255,0.76); }
.podcast-hero-meta { display: grid; gap: 12px; }
.podcast-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.podcast-section-head.compact { align-items: start; }
.podcast-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.podcast-card-grid.studio { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.podcast-episode-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--pod-radius-lg);
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(255,255,255,0.82);
}
.podcast-episode-card.is-selected { border-color: rgba(255,122,24,0.44); box-shadow: 0 18px 36px rgba(255,122,24,0.14); }
.podcast-card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.podcast-episode-badge {
  display: inline-flex;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31,157,85,0.12);
  color: var(--pod-success);
  font-size: 0.78rem;
  font-weight: 800;
  align-items: center;
}
.podcast-episode-badge.private { background: rgba(17,24,39,0.08); color: var(--pod-ink); }
.podcast-episode-badge.public { background: rgba(31,157,85,0.12); color: var(--pod-success); }
.podcast-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 18px;
}
.podcast-upload-form,
.podcast-manage-panel form {
  display: grid;
  gap: 12px;
}
.podcast-upload-form label,
.podcast-manage-panel label { display: grid; gap: 7px; }
.podcast-upload-form input[type="text"],
.podcast-upload-form input[type="url"],
.podcast-upload-form input[type="datetime-local"],
.podcast-upload-form textarea,
.podcast-manage-panel input[type="text"],
.podcast-manage-panel input[type="url"],
.podcast-manage-panel input[type="datetime-local"],
.podcast-manage-panel textarea {
  width: 100%;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  padding: 14px;
}
.podcast-upload-form textarea,
.podcast-manage-panel textarea { min-height: 110px; resize: vertical; }
.podcast-inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.podcast-toggle-row {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.podcast-file-field input[type="file"] { padding: 12px; }
.podcast-inline-doc,
.podcast-tool-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(17,24,39,0.08);
}
.podcast-tool-box strong,
.podcast-inline-doc strong { display: block; margin-bottom: 8px; }
.podcast-stat-row.vertical { flex-direction: column; align-items: flex-start; gap: 6px; }
.podcast-flash {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}
.podcast-flash.is-success { background: rgba(31,157,85,0.12); color: #155d36; }
.podcast-flash.is-error { background: rgba(217,72,95,0.14); color: #912338; }
.podcast-manage-panel {
  border-top: 1px solid rgba(17,24,39,0.08);
  padding-top: 12px;
}
.podcast-manage-panel summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}
.podcast-delete-form { margin-top: 12px; }
.podcast-empty-state {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(17,24,39,0.16);
  color: var(--pod-muted);
}
.podcast-empty-state.large { min-height: 160px; display: grid; place-items: center; }
.podcast-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(16, 27, 53, 0.94);
  color: #fff;
  box-shadow: 0 24px 64px rgba(16, 27, 53, 0.34);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 16px;
  z-index: 40;
}
.podcast-dock-copy { min-width: 0; }
.podcast-dock-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.podcast-dock-title { font-size: 1.1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-dock-subtitle { color: rgba(255,255,255,0.72); }
.podcast-player { width: 100%; min-height: 54px; }
.podcast-muted code,
.podcast-inline-doc code { word-break: break-all; }
.wrap { flex-wrap: wrap; }

@media (max-width: 960px) {
  .podcast-hero-grid,
  .podcast-admin-grid,
  .podcast-hero-grid.studio,
  .podcast-inline-grid,
  .podcast-dock {
    grid-template-columns: 1fr;
  }
  .podcast-topbar-inner,
  .podcast-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .podcast-topnav { justify-content: flex-start; }
  .podcast-main-shell { padding-bottom: 190px; }
}
