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

* {
  box-sizing: border-box;
}

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

body {
  line-height: 1.35;
}

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

.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: 30;
}

.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;
  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-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-bottom: 8px;
}

.mobile-search-input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.mobile-search-button {
  min-width: 58px;
  height: 42px;
  background: #111214;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.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);
}

.hero {
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 583 / 390;
  background: #eceff2;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.02) 0%, rgba(17, 18, 20, 0.22) 48%, rgba(17, 18, 20, 0.84) 100%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-1 { background-image: url("/new/home-redesign/img/MO_here_1.png"); }
.hero-slide-2 { background-image: url("/new/home-redesign/img/hero_banner_2.png"); }
.hero-slide-3 { background-image: url("/new/home-redesign/img/hero_banner_3.png"); }

.hero-copy {
  display: none;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 22px;
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 22px 42px;
  color: #fff;
}

.section {
  padding: 30px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.today-strip,
.program-strip,
.vod-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 48px);
  gap: 12px;
  overflow-x: auto;
  margin: 0;
  padding: 0 20px 6px;
  scroll-snap-type: x mandatory;
}

.today-strip::-webkit-scrollbar,
.program-strip::-webkit-scrollbar,
.vod-strip::-webkit-scrollbar,
.channel-grid::-webkit-scrollbar {
  display: none;
}

.today-card,
.program-card,
.vod-card {
  scroll-snap-align: start;
}

.today-card {
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.today-card-inner {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 16px;
  min-height: 96px;
  background: linear-gradient(180deg, #f4f5f7 0%, #eceef2 100%);
}

.today-card.live .today-card-inner {
  background: linear-gradient(110deg, #1f2027 0%, #151820 60%, #23252f 100%);
}

.today-time {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.today-card:not(.live) .today-time {
  color: #111214;
  background: rgba(255, 255, 255, 0.7);
}

.today-body {
  min-width: 0;
}

.today-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff6b78;
}

.today-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
}

.today-card:not(.live) .today-title {
  color: #111214;
}

.today-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.today-card:not(.live) .today-meta {
  color: rgba(17, 18, 20, 0.72);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px;
}

.channel-card {
  min-height: 82px;
  padding: 12px 4px 10px;
  background: var(--panel);
  border: 1px solid rgba(17, 18, 20, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.channel-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.channel-name {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--muted);
}

.live-block {
  padding: 0 20px;
}

.live-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111214;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.live-player {
  width: 100%;
  height: 100%;
  border: 0;
}

.live-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.live-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid rgba(17, 18, 20, 0.04);
  font-size: 14px;
  font-weight: 600;
}

.program-card,
.vod-card {
  width: calc(100% - 8px);
  max-width: calc(100% - 8px);
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.program-thumb,
.vod-thumb {
  display: block;
  width: 100%;
  background: #e9ebef;
  object-fit: cover;
}

.program-thumb {
  aspect-ratio: 16 / 9;
}

.vod-thumb {
  aspect-ratio: 16 / 9;
}

.program-body,
.vod-body {
  padding: 14px 12px 15px;
}

.program-title,
.vod-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.program-meta,
.program-desc,
.vod-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.ad-space {
  padding-top: 22px;
  padding-bottom: 30px;
}

.ad-space-inner {
  height: 58px;
  margin: 0 20px;
  background: linear-gradient(90deg, #f3f4f6 0%, #eceef2 100%);
  border: 1px dashed rgba(17, 18, 20, 0.12);
}

.program-strip .program-card,
.vod-strip .vod-card,
.today-strip .today-card {
  min-width: 0;
}

.site-footer {
  padding: 32px 20px 44px;
  background: #000;
}

.footer-line {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(230, 230, 230, 0.88);
}

.footer-copy {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(230, 230, 230, 0.72);
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .live-links {
    grid-template-columns: 1fr;
  }

  .today-strip,
  .program-strip,
  .vod-strip {
    grid-auto-columns: calc(100% - 36px);
  }
}
