/* ===========================================================
   Nobel Highlights — Editorial Magazine Style
   White base + Nobel green accent + 大量留白
   =========================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --bg-elevated: #ffffff;
  --accent: #00923a;
  --accent-dark: #00521f;
  --accent-soft: rgba(0, 146, 58, 0.08);
  --text: #141a16;
  --text-mid: #4a554f;
  --text-soft: #8a948f;
  --border: rgba(20, 26, 22, 0.08);
  --border-strong: rgba(20, 26, 22, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.75; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ========================================================
   HERO — full-bleed KV with dark gradient overlay
   ======================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 640px;
  max-height: 880px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  color: #fff;
  isolation: isolate;
  background: #143828;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 45% at center,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.6) 35%,
      rgba(0, 0, 0, 0.2) 70%,
      rgba(0, 0, 0, 0.0) 100%);
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  color: rgba(255, 255, 255, 0.85);
}

.hero-tyc-logo {
  width: 84px;
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

@media (max-width: 640px) {
  .hero-tyc-logo { width: 68px; }
}

.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  font-family: "Archivo Black", "Inter", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-meta strong {
  font-family: "Archivo Black", "Inter", system-ui, sans-serif;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-meta-sep {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-credit {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero { height: auto; min-height: 560px; padding: 40px 20px 56px; }
  .hero-logo { height: 44px; }
}

/* ========================================================
   BRAND STRIP — logo + eyebrow on white between hero and intro
   ======================================================== */
.brand-strip {
  padding: 56px 0 24px;
  background: var(--bg);
  text-align: center;
}

.brand-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.brand-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

@media (max-width: 640px) {
  .brand-strip { padding: 40px 0 16px; }
  .brand-logo { height: 52px; }
}

/* ========================================================
   INTRO — clean white section
   ======================================================== */
.intro {
  padding: 48px 0 80px;
  text-align: center;
  background: var(--bg);
}

.intro-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.intro-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.intro-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
}

.intro-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 32px auto 0;
}

@media (max-width: 640px) {
  .intro { padding: 72px 0 56px; }
}

/* ========================================================
   FILTER section
   ======================================================== */
.filter-section {
  padding: 40px 0 60px;
  background: var(--bg);
}

.filter-step {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-step-num {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.company-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}

.company-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.company-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 146, 58, 0.25);
}

.company-chip-count {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.player-selector-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.player-select {
  width: 100%;
  padding: 16px 48px 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.player-select:hover { border-color: var(--accent); }
.player-select:focus { outline: none; border-color: var(--accent); }

.player-select-label { color: var(--text-soft); font-weight: 500; }
.player-select.has-value .player-select-label { color: var(--text); font-weight: 600; }

.player-select-caret {
  color: var(--accent);
  margin-left: 12px;
  transition: transform 0.2s;
}
.player-select[aria-expanded="true"] .player-select-caret { transform: rotate(180deg); }

.player-select-box { position: relative; }

.player-select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
}
.player-select-list[hidden] { display: none; }

.player-select-option {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.player-select-option:hover { background: var(--accent-soft); color: var(--accent); }
.player-select-option.selected { background: var(--accent); color: #fff; }

.player-select-option .opt-count {
  float: right;
  font-size: 12px;
  opacity: 0.65;
  font-weight: 500;
}
.player-select-option.selected .opt-count { opacity: 0.9; }

/* Step 02 與企業 dropdown 之間留空間 */
#step2 { margin-top: 32px; }

/* ========================================================
   CLIPS section
   ======================================================== */
.clips-section {
  padding: 24px 0 120px;
  background: var(--bg);
}

.player-header {
  text-align: center;
  margin: 48px 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.player-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 146, 58, 0.2);
}

.player-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 600;
}

.player-tag-pill {
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.clips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.clip-card {
  flex: 1 1 420px;
  max-width: 560px;
}

@media (max-width: 640px) {
  .clips-grid { gap: 16px; }
  .clip-card { flex: 1 1 100%; max-width: 100%; }
}

.clip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.clip-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.clip-body {
  padding: 18px 22px 22px;
}

.clip-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.clip-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-icon { width: 14px; height: 14px; }

.clip-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-tagline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-tagline-en {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--border-strong);
  margin: 0 auto 28px;
}

.footer-credit {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 600;
}

/* ========================================================
   utility / state
   ======================================================== */
[hidden] { display: none !important; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
