/* =========================================================
   KOTF King of the Fist — 前台樣式
   ========================================================= */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --panel: #17171a;
  --panel-2: #1f1f23;
  --line: #2a2a30;
  --text: #f2efe8;
  --muted: #9a968d;
  --gold: #d9a940;
  --gold-hi: #f6dc8c;
  --gold-lo: #8c6519;
  --gold-grad: linear-gradient(135deg, #fbe7a1 0%, #e0b14c 35%, #b98a2b 60%, #f1cf73 100%);
  --red: #c8102e;
  --red-hi: #ff3048;
  --blue: #1d4ed8;
  --blue-hi: #3b82f6;
  --radius: 4px;
  --display: 'Oswald', 'Noto Sans TC', sans-serif;
  --body: 'Noto Sans TC', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 32px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- 按鈕與標籤 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .06em; text-transform: uppercase; border: 0; border-radius: var(--radius);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .15s, filter .15s, background .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-gold { background: var(--gold-grad); color: #1a1205; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(217,169,64,.5); clip-path: none; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.tag {
  display: inline-block; padding: 3px 12px; font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; background: var(--panel-2); color: var(--muted); border-radius: 2px;
  transform: skewX(-12deg);
}
.tag-gold { background: var(--gold-grad); color: #1a1205; }
.tag-red { background: var(--red); color: #fff; }

/* ---------- 直播橫條 ---------- */
.live-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px;
  background: var(--red); color: #fff; font-weight: 700; letter-spacing: .05em; font-size: 14px;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,169,64,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) {
  position: relative; padding: 8px 14px; font-weight: 500; font-size: 15px; color: #d8d4cb; transition: color .15s;
}
.site-nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.site-nav > a:not(.btn):hover, .site-nav > a.active { color: var(--gold-hi); }
.site-nav > a:not(.btn):hover::after, .site-nav > a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 5px 0; transition: .2s; }

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; padding: 60px 0 110px; }
.hero-bg {
  position: absolute; inset: 0; background-color: #0b0b0c;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(217,169,64,.22), transparent 60%), url('../img/hero-texture.svg');
  background-size: cover; background-position: center;
}
.hero-bg[style] { background-size: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.7) 60%, var(--bg) 100%); }
.hero-video { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%,-50%); border: 0; pointer-events: none; opacity: .45; }
.hero-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 35%, rgba(255,220,140,.12), transparent 45%); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-logo { width: min(640px, 88%); height: auto; margin: 0 auto 12px; filter: drop-shadow(0 10px 40px rgba(217,169,64,.35)); animation: rise .9s ease-out both; }
.hero-title { font-size: clamp(30px, 5vw, 56px); font-weight: 900; letter-spacing: .08em; animation: rise .9s .15s ease-out both; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: #cfc8b6; margin-top: 8px; animation: rise .9s .25s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.next-event {
  margin: 40px auto 0; max-width: 780px; padding: 28px 28px 32px; position: relative;
  background: linear-gradient(180deg, rgba(23,23,26,.92), rgba(15,15,17,.92));
  border: 1px solid rgba(217,169,64,.35); animation: rise .9s .35s ease-out both;
}
.next-event::before { content: ''; position: absolute; top: -1px; left: 30px; right: 30px; height: 3px; background: var(--gold-grad); }
.next-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 12px 0 4px; }
.next-head p { color: var(--muted); margin: 0; }
.countdown { display: flex; justify-content: center; gap: 12px; margin: 24px 0 4px; }
.countdown > div { min-width: 86px; padding: 12px 8px; background: #0c0c0d; border: 1px solid var(--line); position: relative; }
.countdown b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.countdown.sm { justify-content: flex-start; }
.countdown.sm > div { min-width: 64px; padding: 8px 6px; text-align: center; }
.countdown.sm b { font-size: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-actions.left { justify-content: flex-start; }
.hero-slash { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--bg); clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%); z-index: 1; }
.hero-slash::before { content: ''; }

/* ---------- 區塊 ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--bg-2); position: relative; }
.section-dark::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,169,64,.35), transparent); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; letter-spacing: .06em; display: flex; flex-direction: column; }
.sec-title span { font-family: var(--display); font-size: .5em; letter-spacing: .3em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 2px; }
.section > .wrap > .sec-title { margin-bottom: 28px; }
.sec-title.sm { font-size: 22px; align-items: center; margin-bottom: 24px; }
.sub-title { font-size: 24px; margin: 0 0 22px; padding-left: 14px; border-left: 4px solid var(--gold); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sub-title small { font-size: 14px; color: var(--muted); font-weight: 400; }
.sub-title + .event-grid + .sub-title, .event-grid + .sub-title { margin-top: 56px; }
.more { color: var(--gold); font-weight: 500; white-space: nowrap; }
.more:hover { color: var(--gold-hi); }
.lead { color: #cfc8b6; font-size: 18px; max-width: 720px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.back:hover { color: var(--gold); }

.page-hero {
  padding: 64px 0 40px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 80% -20%, rgba(217,169,64,.18), transparent 55%), linear-gradient(180deg, #121214, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero::after { content: 'KOTF'; position: absolute; right: -20px; bottom: -40px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 200px; line-height: 1; color: rgba(217,169,64,.05); pointer-events: none; }
.page-hero .sec-title { font-size: clamp(32px, 5vw, 52px); }

/* ---------- 對戰卡 ---------- */
.fight-list { display: grid; gap: 22px; }
.fight { background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.fight-main { border-color: rgba(217,169,64,.55); box-shadow: 0 0 0 1px rgba(217,169,64,.2), 0 20px 60px -30px rgba(217,169,64,.5); }
.fight-label { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px 0; flex-wrap: wrap; }
.fight-meta { color: var(--muted); font-size: 14px; }
.fight-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.corner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; position: relative; min-width: 0; }
.corner-red { background: linear-gradient(90deg, rgba(200,16,46,.28), transparent 85%); }
.corner-blue { flex-direction: row-reverse; text-align: right; background: linear-gradient(270deg, rgba(29,78,216,.3), transparent 85%); }
.corner[href]:hover .corner-name { color: var(--gold-hi); }
.corner-photo { flex: none; width: 110px; height: 130px; overflow: hidden; background: #0d0d0e; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.fight-main .corner-photo { width: 150px; height: 180px; }
.corner-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.corner-info { display: flex; flex-direction: column; min-width: 0; }
.corner-tag { font-family: var(--display); font-size: 12px; letter-spacing: .2em; font-weight: 600; }
.corner-red .corner-tag { color: var(--red-hi); }
.corner-blue .corner-tag { color: var(--blue-hi); }
.corner-name { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; transition: color .15s; overflow-wrap: anywhere; }
.fight-main .corner-name { font-size: clamp(22px, 3vw, 34px); }
.corner-nick { color: var(--gold); font-style: normal; font-size: 14px; }
.corner-rec { font-family: var(--display); font-size: 18px; color: #cfc8b6; letter-spacing: .05em; }
.vs { padding: 0 6px; }
.vs span { display: grid; place-items: center; width: 64px; height: 64px; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 26px; color: #1a1205; background: var(--gold-grad); clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }
.win-badge { position: absolute; top: 12px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .15em; padding: 2px 10px; background: var(--gold-grad); color: #1a1205; }
.corner-red .win-badge { left: 16px; }
.corner-blue .win-badge { right: 16px; }
.has-result.result-red .corner-blue, .has-result.result-blue .corner-red { opacity: .5; filter: grayscale(.6); }
.fight-result { text-align: center; padding: 10px; background: rgba(217,169,64,.1); color: var(--gold-hi); font-weight: 700; border-top: 1px solid rgba(217,169,64,.2); }

/* 預測投票 */
.predict { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #131315; }
.predict-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pick { padding: 11px 12px; border: 0; font-weight: 700; color: #fff; border-radius: var(--radius); transition: transform .12s, filter .12s, opacity .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-red { background: var(--red); }
.pick-blue { background: var(--blue); }
.pick:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.15); }
.pick:disabled { opacity: .35; cursor: default; }
.pick.mine { opacity: 1; box-shadow: 0 0 0 2px var(--gold-hi); }
.pick.mine::before { content: '✓ '; }
.predict-bar { display: flex; height: 30px; background: #0b0b0c; overflow: hidden; border-radius: var(--radius); }
.predict-bar span { display: flex; align-items: center; transition: width .8s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.bar-red { background: linear-gradient(90deg, #7d0a1d, var(--red)); justify-content: flex-start; padding-left: 10px; }
.bar-blue { background: linear-gradient(90deg, var(--blue), #10307f); justify-content: flex-end; padding-right: 10px; }
.predict-bar b { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.predict:not(.show-pct) .predict-bar span { width: 50% !important; }
.predict:not(.show-pct) .predict-bar b { visibility: hidden; }
.predict-note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

/* 擊倒文化聯名區 */
.kc-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 30px 34px;
  background: linear-gradient(110deg, rgba(200,16,46,.22), rgba(23,23,26,.9) 40%, rgba(29,78,216,.18)), var(--panel);
  border: 1px solid rgba(217,169,64,.4); position: relative; overflow: hidden;
}
.kc-banner::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255,255,255,.018) 22px 44px); pointer-events: none; }
.kc-logos { display: flex; align-items: center; gap: 14px; }
.kc-kotf { height: 46px; width: auto; }
.kc-logo { height: 54px; width: auto; max-width: 160px; object-fit: contain; }
.kc-x { font-family: var(--display); font-size: 28px; color: var(--gold); }
.kc-name { font-size: 24px; font-weight: 900; letter-spacing: .1em; padding: 4px 14px; border: 2px solid #fff; }
.kc-text h3 { font-size: 22px; margin-bottom: 6px; }
.kc-text p { color: #cfc8b6; margin: 0; }
.kc-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.kc-embed { position: relative; background: #fff; border: 1px solid var(--line); }
.kc-embed iframe { width: 100%; height: 760px; border: 0; display: block; }

/* ---------- 影片 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.video-card { background: var(--panel); border: 1px solid var(--line); height: 100%; transition: border-color .2s; }
.video-card:hover { border-color: rgba(217,169,64,.5); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; opacity: .85; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 14px 16px 18px; }
.video-info h3 { font-size: 16px; margin-top: 8px; font-weight: 700; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.feature { border-color: rgba(217,169,64,.4); }
.feature-title { font-size: 22px; margin: 16px 0 36px; }

/* ---------- 篩選 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter button { padding: 7px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: #cfc8b6; }
.filter button.active, .filter button:hover { background: var(--gold-grad); color: #1a1205; border-color: transparent; font-weight: 700; }
.is-hidden { display: none !important; }

/* ---------- 選手 ---------- */
.fighter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.fighter-card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; position: relative; }
.fighter-card:hover { transform: translateY(-4px); border-color: rgba(217,169,64,.55); }
.fighter-photo { aspect-ratio: 4/5; overflow: hidden; background: #0d0d0e; }
.fighter-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.fighter-card:hover .fighter-photo img { transform: scale(1.05); }
.fighter-info { padding: 14px 16px 18px; display: flex; flex-direction: column; position: relative; }
.fighter-info::before { content: ''; position: absolute; top: 0; left: 16px; width: 40px; height: 3px; background: var(--gold-grad); }
.fighter-wc { font-size: 12px; color: var(--gold); letter-spacing: .1em; margin-top: 4px; }
.fighter-info strong { font-size: 22px; font-weight: 900; }
.fighter-info em { font-style: normal; color: var(--muted); font-size: 14px; }
.fighter-rec { font-family: var(--display); font-size: 18px; margin-top: 6px; color: #e6e0d2; }

.fighter-hero { padding: 56px 0; background: radial-gradient(ellipse at 20% 0%, rgba(217,169,64,.18), transparent 50%), linear-gradient(180deg, #121214, var(--bg)); border-bottom: 1px solid var(--line); }
.fighter-hero-grid { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 48px; align-items: center; }
.fighter-hero-photo { aspect-ratio: 4/5; overflow: hidden; border: 1px solid rgba(217,169,64,.4); background: #0d0d0e; }
.fighter-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fighter-name { font-size: clamp(40px, 6vw, 72px); font-weight: 900; margin-top: 14px; }
.fighter-en { font-family: var(--display); font-size: 22px; letter-spacing: .12em; color: var(--muted); margin: 0; text-transform: uppercase; }
.fighter-nick { font-size: 22px; color: var(--gold); margin: 4px 0 0; }
.record-big { display: flex; gap: 10px; margin: 28px 0; flex-wrap: wrap; }
.record-big div { min-width: 84px; padding: 12px; text-align: center; background: var(--panel); border: 1px solid var(--line); }
.record-big b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; }
.record-big span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.record-big .ko b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tape { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 24px; margin: 0 0 24px; }
.tape div { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.tape dt { font-size: 12px; color: var(--muted); }
.tape dd { margin: 0; font-weight: 700; }
.history { width: 100%; border-collapse: collapse; }
.history th, .history td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.history th { font-size: 13px; color: var(--muted); font-weight: 500; }
.history td small { display: block; color: var(--muted); font-size: 12px; }
.history a:hover { color: var(--gold); }
.history .w { color: var(--gold-hi); }
.history .l { color: #ff6b6b; }

/* ---------- 賽事 ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event-card { background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.event-card:hover { transform: translateY(-4px); border-color: rgba(217,169,64,.55); }
.event-poster { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0d0d0e; }
.event-poster > img { width: 100%; height: 100%; object-fit: cover; }
.event-poster .tag { position: absolute; top: 14px; left: 14px; }
.status-finished .event-poster > img { filter: grayscale(.4); }
.poster-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle, #1d1a14, #0d0d0e 70%); }
.poster-ph img { width: 60%; opacity: .7; }
.poster-ph.tall { aspect-ratio: 4/5; }
.event-body { padding: 18px 20px 22px; }
.event-body time { font-family: var(--display); color: var(--gold); letter-spacing: .05em; }
.event-body h3 { font-size: 21px; margin: 4px 0 6px; }
.event-sub { color: #cfc8b6; margin: 0 0 4px; }
.event-sub.lg { font-size: 18px; }
.event-venue { color: var(--muted); font-size: 14px; margin: 0; }
.event-hero { padding: 56px 0; background: radial-gradient(ellipse at 80% 0%, rgba(217,169,64,.15), transparent 50%), linear-gradient(180deg, #121214, var(--bg)); border-bottom: 1px solid var(--line); }
.event-hero-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; align-items: start; }
.event-hero-poster img { width: 100%; border: 1px solid rgba(217,169,64,.35); }
.event-hero-info h1 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 900; margin: 14px 0 6px; }
.event-facts { display: grid; gap: 10px; margin: 22px 0; }
.event-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.event-facts dt { color: var(--muted); font-size: 14px; }
.event-facts dd { margin: 0; font-weight: 700; }
.event-facts a:hover { color: var(--gold); }
.event-hero-info .prose { margin-top: 28px; }

/* ---------- 相簿 ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-grid a { aspect-ratio: 1; overflow: hidden; background: #0d0d0e; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.photo-grid a:hover img { transform: scale(1.06); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.album-card h3 { font-size: 18px; margin-top: 12px; }
.album-card time { color: var(--muted); font-size: 14px; }
.album-cover { position: relative; aspect-ratio: 3/2; overflow: hidden; background: #0d0d0e; border: 1px solid var(--line); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-card:hover h3 { color: var(--gold-hi); }
.album-cover span { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; font-size: 13px; background: rgba(0,0,0,.75); }
.masonry { columns: 4 240px; column-gap: 10px; }
.masonry a { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; transition: transform .4s; }
.masonry a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: #cfc8b6; margin-top: 10px; font-size: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; font-size: 34px; line-height: 1; border-radius: 50%; }
.lightbox button:hover { background: var(--gold); color: #000; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- 消息 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(217,169,64,.55); }
.news-img { aspect-ratio: 16/9; overflow: hidden; background: #0d0d0e; }
.news-img > img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px 20px 20px; }
.news-body time { font-size: 13px; color: var(--gold); }
.news-body h3 { font-size: 19px; margin: 4px 0 8px; }
.news-body p { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article time { color: var(--gold); display: block; }
.article h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 24px; }
.article-cover { width: 100%; margin-bottom: 28px; border: 1px solid var(--line); }
.prose { color: #e3ddd0; font-size: 17px; line-height: 1.9; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; color: var(--gold-hi); }
.prose a { color: var(--gold); text-decoration: underline; }
.prose img { margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--gold); color: #cfc8b6; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); }
.pager a.active, .pager a:hover { background: var(--gold-grad); color: #1a1205; font-weight: 700; }

/* ---------- 贊助與頁尾 ---------- */
.sponsors { padding: 48px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.sponsor { display: grid; place-items: center; height: 64px; min-width: 120px; opacity: .75; transition: opacity .2s; }
.sponsor:hover { opacity: 1; }
.sponsor img { max-height: 56px; max-width: 160px; width: auto; object-fit: contain; }
.sponsor span { font-weight: 700; color: #cfc8b6; }
.site-footer { background: #070708; padding: 0 0 24px; position: relative; }
.rope { height: 10px; background: repeating-linear-gradient(90deg, var(--red) 0 60px, #f2efe8 60px 66px, var(--blue) 66px 126px, #f2efe8 126px 132px); opacity: .85; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 48px 20px 32px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-size: 16px; color: var(--gold); margin-bottom: 14px; letter-spacing: .1em; }
.site-footer p { font-size: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #cfc8b6; }
.footer-links a:hover { color: var(--gold-hi); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; color: #cfc8b6; transition: .2s; }
.social a:hover { background: var(--gold-grad); color: #1a1205; border-color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--gold); color: var(--text); padding: 12px 22px; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,12,.98); padding: 12px 20px 40px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; overflow-y: auto;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 20px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .kc-banner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .kc-logos { justify-content: center; }
  .event-hero-grid, .fighter-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .event-hero-poster, .fighter-hero-photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 62px; }
  .site-nav { top: 62px; }
  .brand img { height: 38px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 90px; min-height: auto; }
  .next-event { padding: 22px 16px 24px; }
  .countdown { gap: 6px; }
  .countdown > div { min-width: 0; flex: 1; }
  .countdown b { font-size: 32px; }
  .countdown span { font-size: 10px; letter-spacing: .04em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .fight-body { grid-template-columns: 1fr auto 1fr; }
  .corner { flex-direction: column; text-align: center; padding: 16px 8px; gap: 10px; }
  .corner-blue { flex-direction: column; text-align: center; }
  .corner-photo, .fight-main .corner-photo { width: 92px; height: 112px; }
  .corner-name, .fight-main .corner-name { font-size: 18px; }
  .corner-tag { font-size: 10px; letter-spacing: .1em; }
  .corner-rec { font-size: 15px; }
  .vs { padding: 0; }
  .vs span { width: 42px; height: 42px; font-size: 17px; }
  .predict { padding: 14px 12px 16px; }
  .predict-btns { gap: 8px; }
  .pick { font-size: 14px; padding: 10px 6px; }
  .win-badge { top: 6px; font-size: 11px; }
  .kc-banner { padding: 24px 18px; }
  .kc-actions .btn { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; }
  .scroller > * { flex: 0 0 62%; scroll-snap-align: start; }
  .page-hero::after { font-size: 120px; }
  .event-grid, .news-grid, .album-grid { grid-template-columns: 1fr; }
  .fighter-grid:not(.scroller) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fighter-info strong { font-size: 18px; }
  .history th:nth-child(4), .history td:nth-child(4) { display: none; }
  .kc-embed iframe { height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 主視覺後的第一個區塊縮短間距 */
.hero + .section { padding-top: 16px; }
.poster-ph.tall { height: auto; }
