/* ===== Design Tokens ===== */
:root {
  --pop-pink: #FF5E89;
  --pop-yellow: #FFB020;
  --pop-blue: #45D8FF;
  --pop-green: #3CE1A1;
  --pop-purple: #A27BFF;
  --bg: #FFFDF0;
  --surface: #ffffff;
  --text: #2D3142;
  --muted: #525C77;
  --accent: #FF5E89;
  --border: #e0d8cc;
  --pop-border: 4px solid var(--text);
  --pop-shadow: 6px 6px 0px rgba(45, 49, 66, 0.15);
  --radius: 24px;
  --radius-sm: 14px;
  --font: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-heading: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -19px -19px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Floating Pill Header ===== */
.site-header {
  position: fixed;
  top: 20px;
  left: 5%;
  width: 90%;
  z-index: 1000;
  background: white;
  border: var(--pop-border);
  border-radius: 50px;
  box-shadow: 4px 4px 0px var(--text);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--pop-pink);
  border-radius: 50%;
  border: 3px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px var(--text);
  flex-shrink: 0;
}
.logo-icon svg { width: 17px; height: 17px; fill: white; }
.logo-name { font-size: 14px; font-weight: 900; color: var(--text); line-height: 1.3; font-family: var(--font-heading); }
.logo-sub { font-size: 9px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--pop-yellow); color: var(--text); }
.nav-btn {
  font-size: 13px;
  font-weight: 800;
  color: white;
  background: var(--pop-pink);
  padding: 8px 20px;
  border-radius: 20px;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0px var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  pointer-events: none;
}
.hero-blob-1 {
  width: 380px; height: 380px;
  background: var(--pop-pink);
  opacity: 0.12;
  top: -60px; right: -80px;
  animation: morph 8s ease-in-out infinite;
}
.hero-blob-2 {
  width: 260px; height: 260px;
  background: var(--pop-yellow);
  opacity: 0.18;
  bottom: -50px; left: 5%;
  animation: morph 10s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: 180px; height: 180px;
  background: var(--pop-blue);
  opacity: 0.2;
  top: 30%; left: 55%;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(10deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pop-blue);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0px var(--text);
  transform: rotate(-1.5deg);
}
.hero-title {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0px var(--pop-yellow);
}
.hero-title .highlight {
  color: var(--pop-pink);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 12px;
  background: var(--pop-yellow);
  border-radius: 6px;
  z-index: -1;
  transform: rotate(1deg);
}
.hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 780px;
  margin-bottom: 36px;
  font-weight: 700;
}
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  font-family: var(--font-heading);
  text-shadow: 3px 3px 0px var(--pop-pink);
}
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.07em; font-weight: 700; }

/* ===== Wave Divider ===== */
.wave-divider { display: none; }

/* ===== Speakers Section ===== */
.speakers-section { padding: 0 0 64px; }
.speakers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .speakers-grid { grid-template-columns: 1fr; } }
.speaker-card {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--pop-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
}
.speaker-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px rgba(45, 49, 66, 0.2);
}
.speaker-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--text);
  box-shadow: 3px 3px 0px var(--text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.speaker-avatar--reporter { background: var(--pop-yellow); }
.speaker-avatar--desk { background: var(--pop-blue); }
.speaker-avatar svg { width: 34px; height: 34px; fill: var(--text); }
.speaker-info { flex: 1; }
.speaker-role {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  background: var(--pop-pink); color: white;
  padding: 3px 12px; border-radius: 20px;
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0px var(--text);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  transform: rotate(-1.5deg);
}
.speaker-role--desk { background: var(--pop-purple); }
.speaker-name { font-size: 20px; font-weight: 900; margin-bottom: 8px; font-family: var(--font-heading); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.speaker-name-kana { font-size: 12px; font-weight: 700; color: var(--muted); font-family: var(--font); }
.speaker-bio { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 700; }
.speaker-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.speaker-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; font-family: var(--font-heading);
  padding: 4px 10px; border-radius: 6px; border: 2px solid var(--text);
  text-decoration: none; transition: var(--transition);
  box-shadow: 2px 2px 0px var(--text);
}
.speaker-link:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0px var(--text); }
.speaker-link--x { background: #000; color: #fff; border-color: #000; }
.speaker-link--x:hover { background: #333; }
.speaker-link--web { background: var(--pop-yellow); color: var(--text); }
.speaker-link--web:hover { background: #f0d000; }

/* ===== Episodes Section ===== */
.episodes-section { padding: 56px 0 80px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-heading);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 10px;
  background: var(--pop-yellow);
  border-radius: 5px;
  z-index: -1;
  transform: rotate(-1deg);
}
.section-title-bar { display: none; }
.section-count {
  font-size: 13px;
  color: var(--muted);
  background: white;
  border: 3px solid var(--text);
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 800;
  box-shadow: 3px 3px 0px var(--text);
  font-family: var(--font-heading);
}

/* ===== Episode Grid ===== */
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
@media (max-width: 680px) { .episodes-grid { grid-template-columns: 1fr; } }

/* ===== Episode Card ===== */
.episode-card {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  box-shadow: var(--pop-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
}
.episode-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--card-gradient, linear-gradient(90deg, var(--pop-pink), var(--pop-yellow)));
  border-radius: var(--radius) var(--radius) 0 0;
}
.episode-card-bg-num {
  position: absolute; right: 16px; bottom: -8px;
  font-size: 100px; font-weight: 900;
  color: var(--badge-color, var(--pop-pink));
  opacity: 0.07; line-height: 1;
  pointer-events: none; user-select: none;
  font-family: var(--font-heading);
}
.episode-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 10px 10px 0px rgba(45, 49, 66, 0.2);
}
.episode-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.episode-meta-right { display: flex; align-items: center; gap: 8px; }
.episode-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  background: var(--badge-color, var(--pop-pink));
  padding: 5px 13px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  border: 2.5px solid var(--text);
  box-shadow: 2px 2px 0px var(--text);
  transform: rotate(-2deg);
  font-family: var(--font-heading);
}
.episode-date { font-size: 13px; color: var(--muted); font-weight: 700; }
.episode-title {
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.55;
  position: relative;
  font-family: var(--font-heading);
}
.episode-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.episode-player { margin-top: 4px; }
audio { width: 100%; height: 38px; border-radius: 8px; accent-color: var(--pop-pink); }

/* ===== X Space Link Button ===== */
.space-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0px rgba(45, 49, 66, 0.25);
  transition: var(--transition);
  font-family: var(--font-heading);
  text-decoration: none;
}
.space-link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(45, 49, 66, 0.25);
}
.episode-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spotify-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1db954;
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 3px solid #158a3e;
  box-shadow: 4px 4px 0px rgba(21, 138, 62, 0.3);
  transition: var(--transition);
  font-family: var(--font-heading);
  text-decoration: none;
}
.spotify-link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(21, 138, 62, 0.3);
}

/* ===== Input Type Tabs ===== */
.input-type-tabs {
  display: flex;
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 3px 3px 0px var(--text);
  margin-bottom: 20px;
}
.input-type-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
  cursor: pointer;
  background: var(--bg);
  color: var(--muted);
  border: none;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.input-type-tab:first-child { border-right: 3px solid var(--text); }
.input-type-tab.active { background: var(--pop-pink); color: white; }

/* Edit button on card */
.episode-edit-btn {
  background: white;
  border: 2.5px solid var(--text);
  border-radius: 8px;
  width: 30px; height: 30px;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  box-shadow: 2px 2px 0px var(--text);
  transition: var(--transition);
}
.episode-edit-btn:hover {
  background: var(--pop-yellow);
  color: var(--text);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--text);
}
body.is-admin .episode-edit-btn { display: flex; }

/* ===== Loading / Empty ===== */
.state-loading, .state-empty { grid-column: 1/-1; text-align: center; padding: 72px 24px; color: var(--muted); }
.state-loading .spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--pop-pink);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Voice Form Section ===== */
.voice-section { padding: 56px 0 80px; background: var(--bg); }
.voice-form-wrap { max-width: 600px; margin: 0 auto; }
.voice-form-lead { font-size: 15px; color: var(--text); font-weight: 700; margin-bottom: 24px; }
.voice-form { display: flex; flex-direction: column; gap: 16px; }
.voice-thanks { background: #e8f5e9; border: 2px solid #388e3c; border-radius: 12px; padding: 20px; text-align: center; font-weight: 700; font-size: 16px; }
.msg-contact { font-size: 13px; color: #555; font-weight: 700; margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.site-footer a:hover { color: var(--pop-yellow); }

/* ===== Login Page ===== */
.login-page {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -19px -19px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-blob-1 {
  position: absolute;
  width: 350px; height: 350px;
  background: var(--pop-pink);
  opacity: 0.12;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: -100px; right: -80px;
  pointer-events: none;
  animation: morph 8s ease-in-out infinite;
}
.login-blob-2 {
  position: absolute;
  width: 280px; height: 280px;
  background: var(--pop-blue);
  opacity: 0.15;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  bottom: -80px; left: -60px;
  pointer-events: none;
  animation: morph 10s ease-in-out infinite reverse;
}
.login-card {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 8px 8px 0px var(--text);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}
.login-logo-icon {
  width: 50px; height: 50px;
  background: var(--pop-pink);
  border-radius: 50%;
  border: 3px solid var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0px var(--text);
}
.login-logo-icon svg { width: 26px; height: 26px; fill: white; }
.login-logo-text { font-size: 16px; font-weight: 900; color: var(--text); font-family: var(--font-heading); }
.login-logo-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.login-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  text-shadow: 3px 3px 0px var(--pop-yellow);
}
.login-subtitle { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; font-weight: 700; }

.login-form-group { margin-bottom: 18px; }
.login-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.login-form-group input {
  width: 100%; padding: 13px 16px;
  background: var(--bg);
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--text); outline: none;
  box-shadow: 3px 3px 0px var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.login-form-group input::placeholder { color: var(--muted); }
.login-form-group input:focus {
  border-color: var(--pop-pink);
  box-shadow: 4px 4px 0px var(--pop-pink);
}
.login-error { font-size: 13px; color: var(--pop-pink); text-align: center; margin-bottom: 16px; min-height: 20px; font-weight: 700; }
.login-btn {
  width: 100%; padding: 14px;
  background: var(--pop-pink); color: white;
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 16px; font-weight: 900; cursor: pointer;
  box-shadow: 5px 5px 0px var(--text);
  transition: var(--transition);
}
.login-btn:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px var(--text); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-back { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); font-weight: 700; }
.login-back a { color: var(--text); text-decoration: underline; }
.login-back a:hover { color: var(--pop-pink); }

/* ===== Admin Page ===== */
.admin-main { padding: 100px 0 80px; }
.admin-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 36px; flex-wrap: wrap;
}
.admin-page-header h1 {
  font-size: 28px; font-weight: 900; margin-bottom: 6px;
  font-family: var(--font-heading);
  text-shadow: 3px 3px 0px var(--pop-yellow);
}
.admin-page-header p { color: var(--muted); font-size: 14px; font-weight: 700; }
.btn-logout {
  font-size: 13px; font-weight: 800; color: var(--text);
  background: white; border: 3px solid var(--text);
  padding: 8px 20px; border-radius: 20px;
  cursor: pointer; font-family: var(--font);
  box-shadow: 3px 3px 0px var(--text);
  transition: var(--transition); white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.btn-logout:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--text); background: var(--pop-yellow); }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 720px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-card {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--pop-shadow);
}
.admin-card h2 {
  font-size: 18px; font-weight: 900; margin-bottom: 28px;
  padding-bottom: 16px; border-bottom: 3px solid var(--text);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
}
.admin-card h2::before {
  content: '';
  display: inline-block; width: 5px; height: 22px;
  background: var(--pop-pink); border-radius: 3px;
  border: 2px solid var(--text); box-shadow: 2px 2px 0px var(--text);
}

/* ===== Form ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; font-family: var(--font-heading); }
.form-group label .required { color: var(--pop-pink); margin-left: 3px; }
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--bg); outline: none;
  box-shadow: 3px 3px 0px var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--pop-pink);
  box-shadow: 4px 4px 0px var(--pop-pink);
}
.form-group textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 700; }

/* ===== File Upload ===== */
.file-upload-area {
  border: 3px dashed var(--text);
  border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center; cursor: pointer; position: relative;
  background: var(--bg); transition: background 0.2s, border-color 0.2s;
}
.file-upload-area:hover, .file-upload-area.drag-over {
  background: #FFF2CD; border-style: solid; border-color: var(--pop-yellow);
}
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--muted); }
.upload-label { font-size: 14px; font-weight: 800; margin-bottom: 4px; font-family: var(--font-heading); }
.upload-sub { font-size: 12px; color: var(--muted); font-weight: 700; }
.file-selected {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #FFF2CD;
  border: 2px solid var(--text); border-radius: 10px;
  margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--text);
  box-shadow: 2px 2px 0px var(--text);
}

/* ===== Progress ===== */
.progress-wrap { display: none; margin-top: 12px; }
.progress-wrap.visible { display: block; }
.progress-track {
  height: 10px; background: var(--border);
  border: 2px solid var(--text); border-radius: 5px; overflow: hidden; margin-bottom: 6px;
}
.progress-bar { height: 100%; background: var(--pop-pink); border-radius: 3px; transition: width 0.2s; width: 0; }
.progress-text { font-size: 12px; color: var(--muted); text-align: right; font-weight: 800; }

/* ===== Buttons ===== */
.btn-submit {
  width: 100%; padding: 14px;
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 15px; font-weight: 900; cursor: pointer;
  background: var(--pop-pink); color: white;
  box-shadow: 5px 5px 0px var(--text);
  transition: var(--transition); margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px var(--text); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-photo-upload {
  width: 100%; padding: 9px 14px;
  border: 2.5px solid var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 800; cursor: pointer;
  background: var(--pop-blue); color: var(--text);
  box-shadow: 3px 3px 0px var(--text);
  transition: var(--transition);
}
.btn-photo-upload:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--text); }
.btn-photo-upload:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-section-title {
  font-size: 20px; font-weight: 900; font-family: var(--font-heading);
  margin-bottom: 20px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.admin-section-title::before {
  content: ''; display: inline-block;
  width: 6px; height: 24px;
  background: var(--pop-pink);
  border-radius: 3px;
  border: 2px solid var(--text);
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  color: white; padding: 13px 26px; border-radius: 40px;
  font-size: 14px; font-weight: 800;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0px var(--text);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999; white-space: nowrap;
  font-family: var(--font-heading);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--pop-green); color: var(--text); }
.toast.error { background: var(--pop-pink); }

/* ===== Recent Episodes sidebar ===== */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item {
  padding: 13px 16px;
  background: var(--bg);
  border: 3px solid var(--text);
  border-radius: var(--radius-sm);
  border-left: 6px solid var(--badge-color, var(--pop-pink));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  box-shadow: 3px 3px 0px var(--text);
  transition: var(--transition);
}
.recent-item:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--text); }
.recent-item-body { flex: 1; min-width: 0; }
.recent-item-date { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.recent-item-title { font-size: 13px; font-weight: 800; line-height: 1.45; font-family: var(--font-heading); }
.recent-item-edit {
  flex-shrink: 0; background: white; border: 2px solid var(--text); cursor: pointer;
  color: var(--muted); padding: 4px 8px; border-radius: 8px;
  font-size: 14px; transition: var(--transition); align-self: flex-start;
  box-shadow: 2px 2px 0px var(--text);
}
.recent-item-edit:hover { background: var(--pop-yellow); color: var(--text); transform: translate(-1px, -1px); box-shadow: 3px 3px 0px var(--text); }
.recent-item-delete {
  flex-shrink: 0; background: white; border: 2px solid var(--text); cursor: pointer;
  color: var(--muted); padding: 4px 8px; border-radius: 8px;
  font-size: 14px; transition: var(--transition); align-self: flex-start;
  box-shadow: 2px 2px 0px var(--text);
}
.recent-item-delete:hover { background: #ff4757; color: white; border-color: #ff4757; transform: translate(-1px, -1px); box-shadow: 3px 3px 0px var(--text); }

/* ===== Edit Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(45, 49, 66, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%; max-width: 480px;
  box-shadow: 8px 8px 0px var(--text);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal { transform: none; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 900; font-family: var(--font-heading); }
.modal-close {
  background: var(--bg); border: 2.5px solid var(--text); font-size: 18px; cursor: pointer;
  color: var(--text); line-height: 1; padding: 4px 8px; border-radius: 8px;
  box-shadow: 2px 2px 0px var(--text); transition: var(--transition);
}
.modal-close:hover { background: var(--pop-pink); color: white; transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--text); }
.modal-footer { display: flex; gap: 10px; margin-top: 24px; }
.btn-cancel {
  flex: 1; padding: 12px; background: var(--bg);
  border: 3px solid var(--text); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 800; cursor: pointer;
  color: var(--muted); transition: var(--transition);
  box-shadow: 3px 3px 0px var(--text);
}
.btn-cancel:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--text); color: var(--text); }
.btn-save {
  flex: 2; padding: 12px;
  background: var(--pop-pink); border: 3px solid var(--text); border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 14px; font-weight: 900; cursor: pointer;
  color: white; box-shadow: 5px 5px 0px var(--text); transition: var(--transition);
}
.btn-save:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px var(--text); }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .site-header { top: 10px; width: 94%; left: 3%; }
  .header-inner { height: 54px; padding: 0 12px; gap: 8px; }
  .logo { gap: 8px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon svg { width: 14px; height: 14px; }
  .logo-name { font-size: 12px; }
  .logo-sub { display: none; }
  .nav-link { display: none; }
  .nav-btn { font-size: 12px; padding: 7px 14px; white-space: nowrap; }
  .hero { padding: 100px 0 52px; }
  .episodes-section { padding: 40px 0 56px; }
  .admin-card { padding: 22px 18px; }
  .modal { padding: 24px 20px; }
}

/* ===== Voice Form (感想・テーマ募集) ===== */
.voice-section { padding: 60px 0 20px; }
.voice-form-wrap {
  background: white;
  border: var(--pop-border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0px var(--text);
  padding: 32px;
  max-width: 640px;
}
.voice-form-lead { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 20px; line-height: 1.7; }
.voice-thanks {
  font-size: 16px; font-weight: 800; color: var(--text);
  padding: 20px; text-align: center;
  background: var(--pop-yellow); border: var(--pop-border); border-radius: var(--radius-sm);
}

/* ===== Admin Messages ===== */
.msg-badge {
  font-size: 11px; font-weight: 800; background: var(--pop-pink); color: white;
  padding: 2px 8px; border-radius: 20px; border: 2px solid var(--text);
  vertical-align: middle; margin-left: 8px;
}
.msg-card {
  background: white; border: var(--pop-border); border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0px var(--text); padding: 18px 20px; margin-bottom: 12px;
}
.msg-card--read { opacity: 0.6; box-shadow: 2px 2px 0px var(--text); }
.msg-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-name { font-size: 14px; font-weight: 900; font-family: var(--font-heading); }
.msg-date { font-size: 12px; color: var(--muted); font-weight: 700; }
.msg-new {
  font-size: 10px; font-weight: 900; background: var(--pop-pink); color: white;
  padding: 2px 7px; border-radius: 20px; border: 2px solid var(--text);
}
.msg-body { font-size: 14px; color: var(--text); line-height: 1.75; font-weight: 700; white-space: pre-wrap; margin-bottom: 12px; }
.msg-actions { display: flex; gap: 8px; }
.btn-read {
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 6px;
  border: 2px solid var(--text); background: var(--pop-yellow); cursor: pointer;
  font-family: var(--font-heading); transition: var(--transition);
}
.btn-delete-msg {
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 6px;
  border: 2px solid var(--text); background: white; cursor: pointer;
  font-family: var(--font-heading); transition: var(--transition); color: #e03;
}
.btn-read:hover, .btn-delete-msg:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0px var(--text); }

/* ===== Messages page ===== */
.btn-messages {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; font-family: var(--font-heading);
  color: var(--text); background: var(--pop-yellow);
  padding: 8px 18px; border-radius: 20px;
  border: 3px solid var(--text); box-shadow: 3px 3px 0px var(--text);
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-messages:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0px var(--text); }
.btn-messages .msg-badge { font-size: 11px; padding: 1px 6px; margin-left: 2px; }
.msg-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.msg-filter-btn {
  font-size: 13px; font-weight: 800; font-family: var(--font-heading);
  padding: 6px 16px; border-radius: 20px;
  border: 2px solid var(--text); background: white; cursor: pointer;
  transition: var(--transition);
}
.msg-filter-btn.active { background: var(--text); color: white; }
.msg-filter-btn:hover:not(.active) { background: var(--bg); }
.msg-mark-all-btn {
  font-size: 12px; font-weight: 800; font-family: var(--font-heading);
  padding: 6px 14px; border-radius: 20px; margin-left: auto;
  border: 2px solid var(--text); background: var(--pop-pink); color: white;
  cursor: pointer; transition: var(--transition);
}
.msg-mark-all-btn:hover { transform: translate(-1px,-1px); box-shadow: 2px 2px 0px var(--text); }

/* ===== Admin nav tabs ===== */
.admin-nav-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.admin-nav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; font-family: var(--font-heading);
  padding: 8px 16px; border-radius: 8px;
  border: 2.5px solid var(--text); background: white; color: var(--text);
  text-decoration: none; transition: var(--transition);
  box-shadow: 3px 3px 0px var(--text);
}
.admin-nav-tab:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0px var(--text); }
.admin-nav-tab.active { background: var(--text); color: white; }
.admin-breadcrumb { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.admin-breadcrumb a { color: var(--muted); text-decoration: underline; }
