/* Self-hosted fonts — avoids render-blocking Google Fonts CSS chain */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/material-icons.woff2') format('woff2');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  width: 1em;
  height: 1em;
}

/* Podty modern — aligned with /ai/ (dark teal) */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --primary-color: #2ea896;
  --primary-dark: #1f8f7f;
  --secondary-color: #e89148;
  --accent-color: #3bc4ae;
  --text-primary: #e8f1f0;
  --text-secondary: #8aa3a0;
  --bg-primary: #0b1a1f;
  --bg-secondary: #143038;
  --bg-dark: #0a1619;
  --border-color: rgba(232, 241, 240, 0.12);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
  --gradient-primary: linear-gradient(135deg, #3bc4ae, #1f8f7f);
  --gradient-secondary: linear-gradient(135deg, #e89148, #c45b4a);
  --gradient-accent: linear-gradient(135deg, #2ea896, #1a7a6d);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: #0b1a1f;
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(46, 168, 150, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(232, 145, 72, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(20, 60, 80, 0.45), transparent 55%),
    linear-gradient(180deg, #0b1a1f 0%, #12262c 45%, #0e1c22 100%);
}

/* Navigation Styles */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, #0b1a1f 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1.1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.35rem;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--gradient-primary);
  font-size: 0.95rem;
  line-height: 1;
  color: #041014;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  -webkit-text-fill-color: unset;
  background: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
  position: relative;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.nav-link::after {
  display: none;
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
}

.auth-nav .nav-link,
.auth-nav .nav-logout-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.auth-nav .nav-link:hover,
.auth-nav .nav-link.is-active,
.auth-nav .nav-logout-btn:hover {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.nav-logout-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  margin: 0;
}

.nav-user-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.nav-user-label:hover {
  color: var(--text-primary);
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* .btn { display: inline-flex } overrides the HTML hidden attribute */
.auth-guest[hidden],
.auth-user[hidden],
.auth-guest.is-hidden,
.auth-user.is-hidden {
  display: none !important;
}

/* 로그인 상태면 Firebase 복원 전에 Login/Sign up이 깜빡이지 않게 */
html.podty-signed-in .auth-guest {
  display: none !important;
}

html.podty-signed-in .mobile-tabbar .nav-logout-btn.auth-user {
  display: flex !important;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  line-height: 1;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.nav-backdrop {
  display: none;
}

/* Header Styles */
.hero-header {
  background: transparent;
  color: var(--text-primary);
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 73px;
}

#radio,
#inlive-section,
#about {
  scroll-margin-top: 100px;
}

.hero-header::before {
  content: '';
  position: absolute;
  inset: -10% -5% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(46, 168, 150, 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(232, 145, 72, 0.2), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, #e8f6f3 10%, var(--accent-color) 55%, #f0b27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, opacity 0.2s, filter 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #041014;
  box-shadow: 0 8px 24px rgba(46, 168, 150, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: var(--gradient-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--primary-color) 50%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.talk-promo.section {
  padding: 2.5rem 1.5rem 1rem;
}

.feature-promo--radio .talk-promo__inner {
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(46, 168, 150, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(60, 120, 160, 0.14), transparent 50%),
    var(--bg-secondary);
}

.feature-promo--inlive .talk-promo__inner {
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(232, 145, 72, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(46, 168, 150, 0.14), transparent 50%),
    var(--bg-secondary);
}

.talk-promo__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(46, 168, 150, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(232, 145, 72, 0.12), transparent 50%),
    var(--bg-secondary);
  display: grid;
  gap: 1.75rem;
}

.talk-promo__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.talk-promo__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
}

.talk-promo__lead {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.talk-promo__cta {
  display: inline-flex;
}

.talk-promo__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.talk-promo__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-primary) 55%, transparent);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.talk-promo__features .material-icons {
  color: var(--accent-color);
  font-size: 1.25rem;
}

@media (max-width: 720px) {
  .talk-promo__features {
    grid-template-columns: 1fr;
  }

  .talk-promo__cta {
    width: 100%;
    justify-content: center;
  }
}

#talk,
#radio,
#inlive-section,
#inlive,
#about {
  scroll-margin-top: 100px;
}

/* Subpage hero */
.page-hero {
  padding: 7.5rem 1.5rem 1.5rem;
  text-align: center;
}

.page-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.page-hero__lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-section {
  padding-top: 1rem;
}

.about-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
}

.about-panel__text {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-panel__text:last-of-type {
  margin-bottom: 1.5rem;
}

.about-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-section {
  padding-top: 0.5rem;
  padding-bottom: 4rem;
}

.contact-form {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
}

.contact-form fieldset {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg-secondary) 85%, transparent);
  display: grid;
  gap: 0.75rem;
}

.contact-form legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.contact-form__choice {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.contact-form__choice-btn {
  appearance: none;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.55rem 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-form__choice-btn:hover {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent-color) 45%, var(--border-color));
}

.contact-form__choice-btn.is-active {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-color) 18%, var(--bg-secondary));
  border-color: color-mix(in srgb, var(--accent-color) 55%, var(--border-color));
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__field span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
  font: inherit;
  color: var(--text-primary);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.45;
}

.contact-form__error {
  margin: 0;
  color: #f0b27a;
  font-size: 0.92rem;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.contact-form__email {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-form__email:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Listen page modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 300px;
}

.modal .close button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.modal .close button:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Podcast Section */
.podcast-section {
  background: var(--bg-secondary);
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.podcast-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.podcast-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.podcast-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-thumbnail img {
  transform: scale(1.05);
}

.podcast-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(46, 168, 150, 0.85), rgba(26, 122, 109, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.podcast-card:hover .podcast-overlay {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041014;
  font-size: 1.5rem;
}

.podcast-content {
  padding: 1.25rem;
}

.podcast-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.podcast-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.podcast-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.podcast-link.podbbang {
  background: #ff6b35;
  color: white;
}

.podcast-link.podbbang:hover {
  background: #e55a2b;
  transform: translateY(-1px);
}

.podcast-link.apple {
  background: #000;
  color: white;
}

.podcast-link.apple:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Podcast Filters */
.podcast-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Podcast Badge */
.podcast-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.podcast-category {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.podcast-rating {
  background: rgba(255,193,7,0.9);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(4px);
}

.podcast-rating .material-icons {
  font-size: 0.75rem;
  color: #ffc107;
}

/* Podcast Meta */
.podcast-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.podcast-category-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.podcast-rating-small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.podcast-rating-small .material-icons {
  font-size: 0.75rem;
  color: #ffc107;
}

/* Podcast More Button */
.podcast-more {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.load-more-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Radio Section */
.radio-section {
  background: transparent;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.radio-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.radio-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radio-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0;
}

.radio-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #041014;
  flex-shrink: 0;
}

.radio-icon.mbc { background: linear-gradient(135deg, #4a8fd4, #2563a8); color: #041014; }
.radio-icon.sbs { background: linear-gradient(135deg, #9b6bff, #6b3fa0); color: #f5f0ff; }
.radio-icon.kbs { background: linear-gradient(135deg, #3dba7a, #1f8f5a); color: #041014; }
.radio-icon.ebs { background: linear-gradient(135deg, #2dbd6e, #0f8a4a); color: #041014; }
.radio-icon.ytn { background: linear-gradient(135deg, #e23b3b, #a91c1c); color: #fff5f5; }
.radio-icon.cbs { background: linear-gradient(135deg, #3d7ad6, #1a4fa0); color: #f4f8ff; }
.radio-icon.village { background: linear-gradient(135deg, #f0b429, #c47b0a); color: #2a1a04; }
.radio-icon.bbs { background: linear-gradient(135deg, #e07a2f, #b34e12); color: #fff8f0; }
.radio-icon.febc { background: linear-gradient(135deg, #3d6fd9, #1e3f8f); color: #f3f7ff; }
.radio-icon.tbs { background: linear-gradient(135deg, #2bb3a8, #0f7a72); color: #041414; }
.radio-icon.public { background: linear-gradient(135deg, #c4a35a, #8a6b2e); color: #1c1406; }
.radio-icon.regional { background: linear-gradient(135deg, #ef6b6b, #b63b3b); color: #fff5f5; }
.radio-icon.inlive { background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%); }

.inlive-section {
  background: transparent;
}

.inlive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.inlive-list .radio-program {
  height: 100%;
}

.inlive-list .loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.radio-info {
  flex: 1;
  min-width: 0;
}

.radio-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.radio-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.radio-content {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Radio Program Styles */
.radio-program {
  background: color-mix(in srgb, var(--bg-primary) 72%, var(--bg-secondary));
  border-radius: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: default;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-card .radio-program {
  background: color-mix(in srgb, #0b1a1f 55%, transparent);
}

.inlive-list .radio-program {
  background: var(--bg-secondary);
}

.radio-program:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
}

.radio-program-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  min-width: 0;
}

/* 썸네일: 높이는 고정, 가로는 원본 비율 */
.radio-program-thumb {
  height: 56px;
  width: auto;
  max-width: 100px;
  flex-shrink: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-primary) 80%, #fff 5%);
}

.radio-program-image {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100px;
  max-height: 56px;
  border-radius: 0.65rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.radio-program-thumb .radio-program-image {
  width: auto;
  height: 100%;
  max-width: 100px;
  max-height: none;
  border-radius: 0;
}

.radio-program-thumb--logo {
  width: 88px;
  min-width: 88px;
  max-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.4rem;
  background: #f3f5f6;
}
.radio-program-thumb--logo .radio-program-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: transparent;
}

.radio-program-thumb--mark {
  width: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.radio-program-thumb--mark.ebs { background: linear-gradient(135deg, #2dbd6e, #0f8a4a); color: #041014; }
.radio-program-thumb--mark.ytn { background: linear-gradient(135deg, #e23b3b, #a91c1c); color: #fff5f5; }
.radio-program-thumb--mark.cbs { background: linear-gradient(135deg, #3d7ad6, #1a4fa0); color: #f4f8ff; }
.radio-program-thumb--mark.village { background: linear-gradient(135deg, #f0b429, #c47b0a); color: #2a1a04; }
.radio-program-thumb--mark.bbs { background: linear-gradient(135deg, #e07a2f, #b34e12); color: #fff8f0; }
.radio-program-thumb--mark.febc { background: linear-gradient(135deg, #3d6fd9, #1e3f8f); color: #f3f7ff; }
.radio-program-thumb--mark.tbs { background: linear-gradient(135deg, #2bb3a8, #0f7a72); color: #041414; }
.radio-program-thumb--mark.public { background: linear-gradient(135deg, #c4a35a, #8a6b2e); color: #1c1406; }
.radio-program-thumb--mark.regional { background: linear-gradient(135deg, #ef6b6b, #b63b3b); color: #fff5f5; }
.radio-program-thumb--mark.mbc { background: linear-gradient(135deg, #4a8fd4, #2563a8); color: #041014; }
.radio-program-thumb--mark.sbs { background: linear-gradient(135deg, #9b6bff, #6b3fa0); color: #f5f0ff; }
.radio-program-thumb--mark.kbs { background: linear-gradient(135deg, #3dba7a, #1f8f5a); color: #041014; }
.radio-program-thumb--mark.inlive { background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%); color: #2a1208; }

.radio-program.is-skeleton {
  pointer-events: none;
  min-height: 7.25rem;
}

.radio-program.is-skeleton .radio-program-thumb {
  width: 80px;
  height: 56px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg-primary) 70%, transparent) 0%,
    color-mix(in srgb, var(--text-secondary) 18%, transparent) 50%,
    color-mix(in srgb, var(--bg-primary) 70%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: radio-skeleton-shine 1.2s ease-in-out infinite;
}

.radio-program.is-skeleton .sk-line {
  display: block;
  height: 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  background: color-mix(in srgb, var(--text-secondary) 16%, transparent);
}

.radio-program.is-skeleton .sk-line:last-child {
  margin-bottom: 0;
  width: 40%;
}

.radio-program.is-skeleton .sk-line.w80 { width: 80%; }
.radio-program.is-skeleton .sk-line.w55 { width: 55%; }

.radio-program.is-skeleton .radio-program-actions {
  opacity: 0.35;
}

.radio-program.is-skeleton .radio-program-btn {
  min-height: 2rem;
  background: color-mix(in srgb, var(--text-secondary) 14%, transparent);
  color: transparent;
  border-color: transparent;
}

@keyframes radio-skeleton-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.radio-program-info {
  flex: 1;
  min-width: 0;
}

.radio-program-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.radio-program-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-program-channel {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-program-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0;
  width: 100%;
}

.radio-program-btn.request {
  background: color-mix(in srgb, var(--secondary-color) 22%, transparent);
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--secondary-color) 45%, var(--border-color));
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  font-size: 0.75rem;
}

.radio-program-btn.request:hover {
  background: color-mix(in srgb, var(--secondary-color) 34%, transparent);
  border-color: var(--secondary-color);
}

.radio-program-btn.request .material-icons {
  color: var(--secondary-color);
}

.radio-program-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.radio-program-btn.primary {
  background: var(--gradient-primary);
  color: #041014;
}

/* 「청취하기」: 기본 숨김, LISTEN_ALLOWLIST 회원(body.listen-allowed)만 노출 */
.radio-program-btn.listen-play-btn {
  display: none !important;
}

body.listen-allowed .radio-program-btn.listen-play-btn {
  display: inline-flex !important;
}

.radio-program-btn.primary:hover {
  filter: brightness(1.06);
  transform: none;
}

.radio-program-btn.is-listening {
  background: linear-gradient(135deg, #e89148, #c45b4a);
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, #e89148 55%, transparent),
              0 8px 20px rgba(232, 145, 72, 0.35);
  animation: listening-pulse 1.6s ease-in-out infinite;
}

.radio-program-btn.is-listening .material-icons {
  color: #fff;
}

.radio-program.is-listening {
  border-color: color-mix(in srgb, #e89148 55%, var(--border-color));
  box-shadow: 0 0 0 1px color-mix(in srgb, #e89148 25%, transparent);
}

@keyframes listening-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.radio-program-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.radio-program-btn.secondary:hover {
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
}

.radio-program-btn .material-icons {
  font-size: 1rem;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer Styles */
.main-footer {
  background: color-mix(in srgb, #0a1619 88%, #000);
  color: var(--text-primary);
  padding: 2rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

body.player-visible .main-footer {
  padding-bottom: 5.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.footer-tagline {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-slogan {
  margin: 0;
  color: color-mix(in srgb, var(--text-secondary) 85%, transparent);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a.is-active {
  color: var(--text-primary);
}

.footer-support {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.footer-support a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-support a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 0.35rem;
  color: color-mix(in srgb, var(--text-secondary) 80%, transparent);
  font-size: 0.8rem;
}

/* Audio Player — hidden until playback starts */
.mobile-tabbar {
  display: none;
}

.audio-player {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, #0b1a1f 88%, transparent);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.35);
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
}

.audio-player.is-active {
  display: block;
}

/* LISTEN_ALLOWLIST 회원만 하단 플레이어 노출 */
body:not(.listen-allowed) .audio-player {
  display: none !important;
}

.player-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.player-controls .material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  overflow: visible;
  cursor: pointer;
  color: var(--accent-color);
  transition: background 0.2s ease;
}

/* play_arrow 글리프가 pause보다 작아 보이는 보정 */
.player-controls .material-icons#playPauseBtn {
  font-size: 1.9rem;
}

.player-controls .material-icons:hover {
  background: color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.player-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.track-container,
#trackTitleContainer {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

#trackTitle,
.player-title {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 긴 제목: 왼쪽 정렬로 보여준 뒤 넘치는 만큼만 왼쪽으로 스크롤 */
#trackTitle.is-marquee {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  padding-left: 0;
  animation-name: marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0%,
  8% {
    transform: translateX(0);
  }
  70%,
  100% {
    transform: translateX(var(--marquee-shift, 0px));
  }
}

.player-station,
#trackStation {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
  min-height: 1em;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.player-volume .material-icons {
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.volume-slider {
  width: 72px;
  height: 4px;
  background: rgba(232, 241, 240, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1100px) {
  .radio-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .inlive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    display: none;
    width: 16.5rem;
    max-width: calc(100vw - 2rem);
    padding: 0;
    border: none;
    background: transparent;
    z-index: 1001;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: color-mix(in srgb, #10262c 94%, #000);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
  }

  .nav-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-menu-links .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
  }

  .nav-menu-links .nav-link.is-active,
  .nav-menu-links .nav-link:hover {
    background: color-mix(in srgb, var(--primary-color) 22%, transparent);
    color: #fff;
  }

  .auth-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin-left: 0;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
  }

  .auth-nav > .nav-link.auth-guest,
  .auth-nav .nav-link,
  .auth-nav .nav-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.7rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
  }

  .auth-user {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
  }

  .auth-user .nav-user-label {
    max-width: none;
    white-space: normal;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(4, 12, 14, 0.45);
    backdrop-filter: blur(2px);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .podcast-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .radio-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
  }

  .radio-card {
    padding: 1rem;
  }

  .inlive-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .radio-program {
    padding: 0.85rem;
  }

  .radio-program-thumb,
  .radio-program-image {
    height: 48px;
    max-height: 48px;
    max-width: 86px;
  }

  .radio-program-thumb .radio-program-image {
    height: 100%;
    max-width: 86px;
    max-height: none;
  }

  .radio-program-actions {
    flex-wrap: nowrap;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
    width: 100%;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    align-items: stretch;
    gap: 0;
    min-height: 3.35rem;
    padding: 0.3rem 0.15rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, #0b1a1f 92%, #000);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar__main {
    display: contents;
  }

  .mobile-tabbar__auth {
    display: none;
    grid-column: 1 / 6;
    align-items: stretch;
    min-width: 0;
  }

  .mobile-tabbar.is-auth-open .mobile-tabbar__main {
    display: none;
  }

  .mobile-tabbar.is-auth-open .mobile-tabbar__auth {
    display: flex;
  }

  .mobile-tab-more {
    grid-column: 6;
  }

  .mobile-tab {
    appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
    width: 100%;
    padding: 0.2rem 0.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .mobile-tabbar__auth .mobile-tab {
    flex: 1;
    font-size: 0.72rem;
  }

  .mobile-tabbar__auth .mobile-tab .material-icons {
    font-size: 1.4rem;
  }

  .mobile-tabbar .mobile-tab.auth-user {
    display: flex;
  }

  .mobile-tab .material-icons {
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-tab.is-active,
  .mobile-tab:hover {
    color: var(--text-primary);
  }

  .mobile-tab.is-active .material-icons {
    color: var(--accent-color);
  }

  .main-footer {
    padding-bottom: calc(2rem + 3.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.player-visible .main-footer {
    padding-bottom: calc(2rem + 3.75rem + 4.35rem + env(safe-area-inset-bottom, 0px));
  }

  .audio-player {
    bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0.75rem;
    z-index: 1002;
  }

  .player-content {
    flex-direction: row;
    gap: 0.5rem;
  }

  .player-controls .material-icons {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    padding: 0;
  }

  .player-controls .material-icons#playPauseBtn {
    font-size: 1.75rem;
  }

  .volume-slider {
    width: 48px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-nav {
    gap: 0.35rem;
  }

  .podcast-filters {
    gap: 0.25rem;
  }

  .filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .podcast-grid {
    grid-template-columns: 1fr;
  }
  
  .podcast-card {
    margin: 0;
  }
  
  .podcast-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-program-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.3rem;
    gap: 0.15rem;
  }

  .radio-program-btn .material-icons {
    font-size: 0.85rem;
  }

  .volume-slider {
    display: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Auth pages */
.auth-section {
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 6rem;
  background: transparent;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
}

.auth-card--wide {
  max-width: 480px;
}

.auth-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.75rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: color-mix(in srgb, var(--text-secondary) 80%, transparent);
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 168, 150, 0.25);
}

.auth-input--readonly,
.auth-input:read-only {
  color: var(--text-primary);
  opacity: 1;
  -webkit-text-fill-color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-secondary) 70%, var(--bg-primary));
  cursor: default;
}

.auth-submit {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

.auth-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.auth-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, #c45b4a 22%, transparent);
  color: #f5c4bc;
  font-size: 0.875rem;
}

.auth-success {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, #2ea896 22%, transparent);
  color: #b8efe4;
  font-size: 0.875rem;
}

.auth-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--text-secondary, #64748b);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-forgot-link {
  margin: 0.5rem 0 0;
  text-align: right;
  font-size: 0.875rem;
}

.auth-forgot-link a {
  color: var(--text-secondary, #64748b);
  text-decoration: none;
}

.auth-forgot-link a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-secondary, #64748b);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, #e2e8f0);
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.auth-social-btn {
  width: 100%;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
  font-weight: 600;
}

.auth-social-btn:hover {
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-primary));
  transform: none;
  box-shadow: none;
}

.auth-social-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-google {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.auth-apple {
  background: #000;
  color: #fff;
  border-color: #333;
}

.auth-apple:hover {
  background: #111;
  color: #fff;
}

.auth-social-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Subscription pricing */
.subscribe-section {
  align-items: flex-start;
}

.subscribe-wrap {
  width: 100%;
  max-width: 1100px;
}

.subscribe-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-badge {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 18%, transparent);
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.08));
}

.pricing-card.is-featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(46, 168, 150, 0.22);
  transform: translateY(-4px);
}

.pricing-card.is-current {
  outline: 2px solid var(--primary-color, #6366f1);
}

.pricing-ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--primary-color, #6366f1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.pricing-name {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.pricing-price {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.pricing-period {
  color: var(--text-secondary, #64748b);
  font-size: 0.95rem;
}

.pricing-desc {
  margin: 0 0 1rem;
  color: var(--text-secondary, #64748b);
  font-size: 0.9rem;
}

.pricing-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 0.92rem;
  color: var(--text-primary, #0f172a);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

.pricing-cta.btn-secondary {
  background: var(--bg-secondary, #f1f5f9);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-color, #e2e8f0);
}

.pricing-cta:disabled {
  opacity: 0.7;
  cursor: default;
}

.subscribe-manage {
  margin-top: 2rem;
  text-align: center;
}

.subscribe-hint {
  margin: 0.75rem 0 0;
  color: var(--text-secondary, #64748b);
  font-size: 0.85rem;
}

#subscribeNotice.auth-success {
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.is-featured {
    transform: none;
  }
}

body:has(.auth-section) .audio-player {
  display: none !important;
}
