/* ───────────────────────────────────────────────
   老闆 OK BOOM — 全站設計系統
   配色繼承自老劉品牌 palette
   ─────────────────────────────────────────────── */

:root {
  --bg:            #FFF8F3;
  --bg-2:          #FFF0E6;
  --bg-card:       #FFFFFF;
  --bg-dim:        #F5EDE4;
  --text:          #1A1A1A;
  --text-2:        #57534E;
  --text-muted:    #9CA3AF;
  --accent:        #F97316;
  --accent-light:  #FB923C;
  --accent-soft:   #FED7AA;
  --border:        #F0E8E0;
  --border-strong: #E5D8C8;
  --shadow-sm:     0 1px 3px rgba(26,26,26,0.06);
  --shadow-md:     0 8px 24px rgba(26,26,26,0.08);
  --shadow-lg:     0 20px 48px rgba(26,26,26,0.10);
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --container:     1160px;
  --nav-h:         72px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

/* ── Typography ───────────────────────────────── */
h1, h2, h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead { font-size: 1.125rem; color: var(--text-2); }
.muted { color: var(--text-muted); }

/* ── Layout primitives ────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section.alt { background: var(--bg-2); }
section.dim { background: var(--bg-dim); }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: 640px; margin: 0 auto; color: var(--text-2); }

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  background: transparent;
  transition: background 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 40px; width: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 28px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}
.nav-link:hover { color: var(--accent); }
.nav-group { position: relative; }
.nav-group > .nav-link::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.6;
}
.nav-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, transform 200ms, visibility 200ms;
}
.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop,
.nav-group.open .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}
.nav-drop a:hover { background: var(--bg-2); color: var(--accent); }
.nav-drop a small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 180ms, transform 180ms;
}
.nav-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; padding: 8px; font-size: 1.4rem; }

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background:
    radial-gradient(60% 80% at 90% 0%, var(--bg-2) 0%, transparent 70%),
    var(--bg);
}

/* tim.blog 風格 HERO：左半主持人大圖 + 右半文案/player */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-dim);
  width: 100%;
}
.hero-photo::before {
  content: "";
  display: block;
  padding-top: 125%; /* 4:5 直版 */
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(26,26,26,0.45) 100%);
  pointer-events: none;
}
.hero-photo .quote {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-photo .quote cite {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 6px;
}

.hero-content {
  display: flex; flex-direction: column;
  justify-content: center;
}
.hero-content h1 { margin-bottom: 18px; }
.hero-content .lead { margin-bottom: 28px; max-width: 540px; }
.hero-content .player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: transparent;
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-content .player iframe { height: 152px; }

/* ── Platform subscribe row ──────────────────── */
.platforms {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.platform-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 180ms, transform 180ms, color 180ms;
}
.platform-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.platform-btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 180ms, background 180ms, border-color 180ms;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--text); color: #fff; transform: translateY(-2px); }

/* ── Path cards (三條路徑分流) ───────────────── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 220ms, border-color 220ms, box-shadow 220ms;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 220ms;
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.path-card:hover::before { opacity: 1; }
.path-card .stage {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.path-card h3 { margin-bottom: 12px; }
.path-card p { color: var(--text-2); margin-bottom: 20px; }
.path-card .arrow {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ── Episode cards ───────────────────────────── */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ep-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
}
.ep-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.ep-card .cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-dim);
  position: relative;
  overflow: hidden;
}
.ep-card .cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.ep-card:hover .cover img { transform: scale(1.04); }
.ep-card .status-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(26,26,26,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.ep-card .status-tag.live { background: var(--accent); }
.ep-card .status-tag.scheduled { background: var(--text); }
.ep-card .meta {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.ep-card .meta .ep-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.ep-card .meta h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ep-card .meta .guest {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: auto;
  padding-bottom: 12px;
}
.ep-card .meta .date {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── Link cards (上節目 / 品牌合作) ──────────── */
.link-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 220ms, border-color 220ms, box-shadow 220ms;
  display: flex; flex-direction: column;
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.link-card h3 { margin-bottom: 12px; }
.link-card p { color: var(--text-2); margin-bottom: 24px; flex: 1; }
.link-card .arrow { color: var(--accent); font-weight: 700; }

/* ── Host short bio (首頁主持人簡介) ─────────── */
.host-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.host-block .photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dim);
  width: 100%;
}
.host-block .photo::before {
  content: "";
  display: block;
  padding-top: 100%; /* 1:1 方版 */
}
.host-block .photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.host-block .body h2 { margin-bottom: 16px; }
.host-block .body p { color: var(--text-2); margin-bottom: 24px; }

/* ── Single-episode page ─────────────────────── */
.ep-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
}
.ep-hero .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.ep-hero .cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-dim);
}
.ep-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.ep-hero .ep-num {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.ep-hero .ep-num.scheduled { background: var(--text); }
.ep-hero h1 { margin-bottom: 20px; }
.ep-hero .meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.ep-hero .meta span { display: inline-flex; gap: 6px; }

.ep-player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  max-width: 840px;
  box-shadow: var(--shadow-md);
  background: transparent;
}
.ep-player iframe { height: 152px; }

.video-embed {
  position: relative;
  margin: 0 auto;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-embed-head {
  max-width: 840px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-embed-head .eyebrow { margin: 0; }
.video-embed-head .muted { font-size: 0.92rem; color: var(--text-muted, #888); }
.scheduled-notice {
  background: var(--bg-card);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.scheduled-notice .date-big {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  margin: 12px 0 16px;
}
.scheduled-notice p { color: var(--text-2); margin-bottom: 24px; }

.guest-bio {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.guest-bio .avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dim);
}
.guest-bio .avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-bio h3 { margin-bottom: 6px; }
.guest-bio .title { color: var(--text-2); font-size: 0.92rem; margin-bottom: 14px; }
.guest-bio p { color: var(--text-2); }

.bullet-list {
  display: grid;
  gap: 14px;
}
.bullet-list li {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bullet-list li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 900;
}

.timestamp-list {
  display: grid;
  gap: 8px;
}
.timestamp-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.timestamp-list .t {
  font-weight: 700; color: var(--accent);
  font-feature-settings: "tnum";
}

.quote-block {
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 36px 40px;
  margin-bottom: 16px;
}
.quote-block p {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}
.quote-block cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--text);
  color: #E5DCD0;
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 18px;
}
.footer ul { display: grid; gap: 10px; }
.footer a { color: #C7BBA9; font-size: 0.92rem; transition: color 180ms; }
.footer a:hover { color: var(--accent-light); }
.footer .brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer .brand img { height: 44px; }
.footer .tagline { color: #C7BBA9; font-size: 0.92rem; max-width: 280px; }
.footer .bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  color: #8A8175;
}

/* ── Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-split,
  .hero-home,
  .ep-hero .grid,
  .host-block { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 5; max-height: 520px; }
  .path-grid,
  .ep-grid,
  .link-card-row { grid-template-columns: 1fr; }
  .guest-bio { grid-template-columns: 1fr; text-align: center; }
  .guest-bio .avatar { margin: 0 auto; }
  .footer .grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
              background: var(--bg-card); flex-direction: column; align-items: stretch;
              gap: 0; padding: 16px; border-top: 1px solid var(--border);
              box-shadow: var(--shadow-md); }
  .nav.open .nav-menu { display: flex; }
  .nav-menu .nav-link { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-menu .nav-drop { position: static; opacity: 1; visibility: visible;
                        transform: none; box-shadow: none; border: 0; background: var(--bg-2);
                        padding: 4px; margin-top: 6px; }
  .nav-group > .nav-link::after { content: ""; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav.open .nav-cta { display: inline-flex; margin: 12px 0 0; }
  .hero-home .player { order: -1; }
  .quote-block p { font-size: 1.1rem; }
}
