:root {
  --bg: #f4f3ef;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #111111;
  --muted: #6b6b6b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  --accent: #111111;
  --accent-soft: rgba(17, 17, 17, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --dock-h: 132px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.06), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.05), transparent 28%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.ai-mode {
  background:
    radial-gradient(circle at 20% 20%, rgba(112, 71, 255, 0.45), transparent 25%),
    radial-gradient(circle at 80% 15%, rgba(0, 208, 255, 0.35), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(255, 84, 196, 0.30), transparent 25%),
    linear-gradient(135deg, #050816 0%, #0a1024 45%, #120a24 100%);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.hero-card:focus-visible,
.card-surface:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.45);
  outline-offset: 3px;
}

body.ai-mode button:focus-visible,
body.ai-mode input:focus-visible,
body.ai-mode .hero-card:focus-visible,
body.ai-mode .card-surface:focus-visible {
  outline-color: rgba(255, 255, 255, 0.72);
}

.app {
  min-height: 100vh;
  padding-bottom: calc(var(--dock-h) + 36px);
}

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.container {
  width: min(1450px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  padding: 28px 0 14px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.app-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-header__copy {
  min-width: 0;
}

.brand {
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  margin: 0;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.45;
}

body.ai-mode .subtitle,
body.ai-mode .section-hint,
body.ai-mode .meta,
body.ai-mode .chip {
  color: rgba(255, 255, 255, 0.75);
}

.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 10px 0 14px;
}

.section-title {
  font-size: 1.22rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.section-hint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.hero-row,
.carousel {
  display: grid;
  gap: 18px;
}

.hero-row {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.carousel {
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 290px);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.20) transparent;
}

.carousel::-webkit-scrollbar {
  height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.hero-card,
.episode-card,
.mini-player,
.dock-bar,
.panel,
.modal-box {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  min-height: 270px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.hero-card:hover,
.card-surface:hover {
  transform: translateY(-4px);
}

.hero-copy .eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.hero-copy h3 {
  font-size: 1.9rem;
  margin: 8px 0 0;
  max-width: 11ch;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 24ch;
  line-height: 1.4;
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.68);
}

.hero-art {
  margin-left: auto;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.1em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-chip {
  align-self: flex-start;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.8rem;
  font-weight: 650;
}

.card-surface {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.cover {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #666, #bbb);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cover::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.30), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.20), transparent 18%),
    linear-gradient(140deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.cover-image,
.detail-cover-image,
.mini-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-image,
.detail-cover-image {
  position: absolute;
  inset: 0;
}

.cover-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.02;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
  max-width: 10ch;
}

.card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.episode-title {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.duration {
  flex: none;
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.35;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--muted);
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.empty {
  padding: 40px 24px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
}

.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(1450px, calc(100% - 24px));
  z-index: 40;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.dock-bar,
.mini-player {
  pointer-events: auto;
  border-radius: 999px;
  padding: 11px 14px;
}

.dock-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 70px;
}

.dock-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
}

.dock-input-wrap span {
  font-size: 1.05rem;
  opacity: 0.78;
}

.dock-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
  min-width: 0;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background .15s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: rgba(0, 0, 0, 0.04);
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.search-suggestion-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.dock-btn,
.nav-action-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.83);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  flex: none;
}

.dock-btn {
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
}

.nav-action-btn {
  min-width: 132px;
  height: 54px;
  padding: 0 20px;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

.dock-btn:hover,
.nav-action-btn:hover,
.icon-btn:hover,
.back-btn:hover {
  transform: scale(1.04);
}

.dock-btn.primary {
  background: #111;
  color: white;
}

.mini-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.84);
}

.library-category {
  margin-top: 28px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.library-empty {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  color: var(--muted);
}

.library-empty h3 {
  margin: 0 0 10px;
}

.mini-cover {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7a7a7a, #d8d8d8);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
}

.mini-text h4 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.mini-text p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease;
}

.icon-btn.primary {
  background: #111;
  color: white;
}

.panel {
  border-radius: 22px;
  padding: 18px;
}

.modal,
.ai-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px 22px 22px;
  overflow-y: auto;
}

.modal.active,
.ai-overlay.active {
  display: flex;
}

.modal-box {
  width: min(760px, 100%);
  border-radius: 28px;
  background: var(--panel-strong);
  overflow: hidden;
  max-height: calc(100vh - 80px);
  max-width: 100%;
  margin: 0 auto 16px;
}


.modal-header,
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header h3,
.ai-header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.modal-body {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #6b6b6b, #d2d2d2);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.45rem;
  text-align: center;
  line-height: 1.04;
  padding: 16px;
  letter-spacing: -0.07em;
  position: relative;
}

.detail-cover span {
  position: relative;
  z-index: 1;
}

.detail-info h4 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.detail-info p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-meta {
  margin-top: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.dark {
  background: #111;
  color: white;
}

.btn.light {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.field-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.80);
  padding: 13px 14px;
  outline: none;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.upload-drop {
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  line-height: 1.45;
}

.page-shell,
.about-layout {
  padding-top: 18px;
}

.page-shell {
  padding-bottom: 30px;
}

.about-layout {
  padding-bottom: 40px;
}

.ai-shell {
  position: relative;
  width: min(1080px, 100%);
  min-height: 76vh;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(158, 91, 255, 0.45), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(0, 214, 255, 0.35), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(255, 79, 196, 0.25), transparent 28%),
    linear-gradient(135deg, #050816, #0c1636 55%, #140824);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.50);
  color: white;
  margin: 0 auto;
}

.ai-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 24%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px);
  opacity: 0.42;
  pointer-events: none;
}

.ai-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 0;
  position: relative;
  z-index: 1;
}

.ai-top__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.75;
  text-transform: uppercase;
}

.ai-top__title {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.back-btn:hover,
.back-btn:focus {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.38);
}

.back-btn-light {
  width: auto;
  min-width: 98px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 16px;
}

.about-hero {
  padding: 34px;
  border-radius: 28px;
  margin-bottom: 24px;
  overflow: hidden;
}

.about-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 650;
}

.about-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.about-hero p,
.about-copy {
  margin: 14px 0 0;
  max-width: 860px;
  line-height: 1.7;
  color: var(--muted);
}

.about-copy {
  margin: 0;
}

.panel+.panel {
  margin-top: 24px;
}

.panel-title {
  margin: 0 0 12px;
}

.panel-title-spacious {
  margin-bottom: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.team-card {
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.56);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.member-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: rgba(0, 0, 0, 0.05);
}

.member-portrait--placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  background:
    linear-gradient(140deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.team-card__body {
  display: grid;
  gap: 12px;
}

.team-card__header h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.team-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-card__bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  min-height: 6em;
}

.team-card__media {
  display: grid;
  gap: 8px;
}

.team-card__media-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.member-media-player {
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.member-media-link {
  justify-self: start;
}

.member-media-placeholder {
  margin: 0;
  min-height: 88px;
  display: grid;
  align-items: center;
}

/* Category Pages */
.category-shell {
  position: relative;
  width: min(1080px, 100%);
  min-height: 76vh;
  border-radius: 34px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.category-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 24%);
  opacity: 0.42;
  pointer-events: none;
}

.category-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 0;
  position: relative;
  z-index: 1;
}

.category-top__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.75;
  text-transform: uppercase;
  color: var(--muted);
}

.category-top__title {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.category-content {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.category-content .section {
  margin: 0;
  padding: 0;
}

.category-content .section-header {
  margin-bottom: 24px;
}

.category-content .carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.continue-card .cover {
  position: relative;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px 0 0 0;
}

.favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.64);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.85;
}


.favorite-btn:hover,
.favorite-btn:focus {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.favorite-btn.active {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.ai-content {
  position: relative;
  z-index: 1;
  min-height: calc(76vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ai-card {
  width: min(700px, 100%);
  text-align: center;
  padding: 24px;
}

.ai-kicker {
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.ai-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.ai-card p {
  margin: 14px auto 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.ai-form {
  margin: 28px auto 0;
  width: min(640px, 100%);
  display: grid;
  gap: 12px;
}

.ai-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.10);
  color: white;
  border-radius: 999px;
  padding: 18px 20px;
  outline: none;
  font-size: 1rem;
}

.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.60);
}

.ai-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ai-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}

.ai-btn.primary {
  background: linear-gradient(135deg, #8f5bff, #00d8ff);
  color: white;
}

.ai-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-output {
  margin: 20px auto 0;
  text-align: left;
  width: min(640px, 100%);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.55;
  min-height: 124px;
}

.ai-output__placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.ai-output-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-output-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.ai-output-tags {
  margin-top: 12px;
  margin-bottom: 2px;
}

.ai-output-script {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ai-output-script p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.ai-speaker {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
  color: white;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-row {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 240px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1000px);
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-action-btn {
    width: 100%;
    margin-top: 0;
  }

  .hero-row {
    grid-template-columns: 1fr;
  }

  .dock {
    width: min(100% - 12px, 1000px);
    bottom: 8px;
  }

  .dock-bar {
    min-height: 64px;
    padding: 10px;
  }

  .dock-btn {
    width: 48px;
    height: 48px;
  }

  .dock-input-wrap {
    padding: 12px 14px;
  }

  .mini-player {
    border-radius: 22px;
    grid-template-columns: auto 1fr;
  }

  .mini-controls {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 8px;
  }

  .mini-extra-controls {
    margin-left: 8px;
    gap: 8px;
  }

  .speed-select {
    min-width: 50px;
    font-size: 11px;
  }

  .volume-slider {
    width: 50px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .card-surface {
    min-height: 300px;
  }

  .about-hero {
    padding: 26px;
  }

  .back-btn-light {
    min-width: 112px;
  }
}

/* Dark Mode */
body.dark-mode {
  --bg: #0f0f0f;
  --panel: rgba(30, 30, 30, 0.85);
  --panel-strong: rgba(40, 40, 40, 0.95);
  --text: #ffffff;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.60);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
}

body.dark-mode .category-shell {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.dark-mode .category-shell::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 24%);
}

/* Portrait Mode Adjustments */
@media (orientation: portrait) and (max-width: 720px) {
  .dock {
    bottom: 4px;
  }

  .dock-bar {
    min-height: 56px;
    padding: 8px 12px;
  }

  .dock-input-wrap {
    padding: 10px 14px;
  }

  .mini-player {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-controls {
    justify-content: space-around;
    gap: 4px;
  }

  .mini-extra-controls {
    margin-left: 0;
    gap: 4px;
  }
}

body.dark-mode .dock-input-wrap {
  background: rgba(40, 40, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-suggestions {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .search-suggestion-item {
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .search-suggestion-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .card-surface {
  background: var(--panel);
  border-color: var(--border);
}

body.dark-mode .hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.dark-mode .panel {
  background: var(--panel);
  border-color: var(--border);
}

body.dark-mode .team-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .member-portrait--placeholder {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
}

body.dark-mode .modal-box {
  background: var(--panel);
  border-color: var(--border);
}

body.dark-mode .btn.light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

body.dark-mode .btn.dark {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

body.dark-mode .chip {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.dark-mode .nav-action-btn {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

body.dark-mode .nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dock-btn {
  background: var(--panel);
  border-color: var(--border);
}

body.dark-mode .dock-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

body.dark-mode .back-btn-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

body.dark-mode .favorite-btn {
  background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .favorite-btn:hover,
body.dark-mode .favorite-btn:focus {
  background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .favorite-btn.active {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

body.dark-mode .progress-bar {
  background: rgba(255, 255, 255, 0.6);
}

/* Micro-animations */
.card-surface {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.nav-action-btn {
  transition: all 0.2s ease;
}

.nav-action-btn:hover {
  transform: scale(1.05);
}

.favorite-btn {
  transition: all 0.2s ease;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.chip {
  transition: all 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-suggestion-item {
  transition: background-color 0.2s ease;
}

.progress-bar {
  transition: width 0.3s ease;
}

.modal-box {
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Audio Player Upgrades */
.mini-extra-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.speed-select {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 4px 8px;
  font-size: 12px;
  min-width: 60px;
}

.speed-select:focus {
  outline: none;
  border-color: var(--accent);
}

.volume-slider {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.member-portrait {
  display: none !important;
}

.member-portrait--placeholder {
  display: none !important;
}

.team-card {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

background: radial-gradient(circle at 50
