:root {
  --bg: #ffffff;
  --panel: #f3f4f6;
  --line: rgba(17, 18, 20, 0.08);
  --text: #111214;
  --muted: rgba(17, 18, 20, 0.68);
  --dark: #1d1d22;
  --accent: #e60012;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #eef1f4 0, #eef1f4 132px, #f6f7f9 132px, #f6f7f9 100%);
  color: var(--text);
  font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  line-height: 1.35;
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(17, 18, 20, 0.04), 0 24px 60px rgba(17, 18, 20, 0.08);
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand img {
  display: block;
  height: 24px;
  width: auto;
}

.menu-button,
.menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.icon-menu {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 14px;
  background-image:
    linear-gradient(#23252a, #23252a),
    linear-gradient(#23252a, #23252a),
    linear-gradient(#23252a, #23252a);
  background-repeat: no-repeat;
  background-size: 22px 2px, 22px 2px, 22px 2px;
  background-position: 0 0, 0 6px, 0 12px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 18, 20, 0.42);
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(82vw, 320px);
  height: 100vh;
  padding: 20px 18px 24px;
  background: #ffffff;
  box-shadow: -14px 0 28px rgba(17, 18, 20, 0.14);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-head strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.menu-close {
  font-size: 20px;
  color: #23252a;
}

.mobile-nav-links {
  display: grid;
  gap: 6px;
  padding-top: 18px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 4px;
  color: #111214;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.date-rail-wrap::-webkit-scrollbar,
.date-rail::-webkit-scrollbar {
  display: none;
}

.date-rail-wrap {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: stretch;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rail-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.date-rail {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  min-height: 76px;
}

.date-chip {
  flex: 0 0 20%;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 2px;
  cursor: pointer;
  scroll-snap-align: center;
}

.date-chip-day {
  font-size: 11px;
  font-weight: 600;
}

.date-chip-day.is-today {
  color: var(--accent);
}

.date-chip-date {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.date-chip.is-selected {
  color: var(--text);
}

.date-chip.is-selected .date-chip-date-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
  background: #fff;
}

.schedule-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.live-button {
  flex: 0 0 auto;
  padding: 11px 14px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.date-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-list {
  padding: 0 10px;
  background: #fff;
}

.schedule-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  padding: 18px 14px;
  background: var(--panel);
  border: 1px solid rgba(17, 18, 20, 0.04);
}

.schedule-card.is-live {
  background: var(--dark);
  color: #fff;
}

.schedule-time {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.schedule-main {
  min-width: 0;
}

.schedule-onair {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.schedule-title,
.schedule-title a {
  color: inherit;
  text-decoration: none;
}

.schedule-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  word-break: keep-all;
}

.schedule-meta,
.schedule-meta a {
  margin-top: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  word-break: keep-all;
}

.schedule-card.is-live .schedule-meta,
.schedule-card.is-live .schedule-meta a {
  color: rgba(255, 255, 255, 0.76);
}

.schedule-empty {
  padding: 24px 18px 30px;
  font-size: 14px;
  color: rgba(17, 18, 20, 0.62);
}

.schedule-note {
  margin: 0;
  padding: 14px 20px 24px;
  font-size: 12px;
  color: rgba(17, 18, 20, 0.56);
  background: #fff;
}

@media (max-width: 390px) {
  .date-chip {
    flex-basis: 22%;
  }

  .schedule-head h1 {
    font-size: 22px;
  }

  .schedule-head {
    padding-left: 16px;
    padding-right: 16px;
  }

  .schedule-list {
    padding: 0 8px;
  }

  .schedule-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 12px;
  }
}
