/* ==========================================================
   บ้านสนุกเกอร์ — 7-day schedule & prices
   ========================================================== */
.snk-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.snk-head { display: flex; justify-content: flex-end; padding: 12px 16px 0; }
.snk-hint { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.snk-days { display: flex; gap: 8px; padding: 18px 16px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.snk-days::-webkit-scrollbar { display: none; }
.snk-day {
  position: relative; flex: 1 0 96px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 12px; min-height: 58px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-raised); color: var(--muted); font: inherit; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.snk-day:hover { color: var(--gold-light); border-color: #d9b66f55; }
.snk-day:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.snk-day.is-active { border-color: var(--gold); color: var(--gold-light); background: linear-gradient(180deg, #d9b66f1f, #d9b66f08); }
.snk-day-name { font-size: 14px; font-weight: 700; color: inherit; }
.snk-day-date { font-size: 12px; opacity: .8; }
.snk-day-count { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-gradient); color: #211a0c; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.snk-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px 52px; text-align: center; }
.snk-soon { padding: 4px 14px; border: 1px solid #d9b66f66; border-radius: 999px; color: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.snk-empty p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.snk-empty strong { color: var(--text); font-weight: 600; }

.snk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.snk-table { --c-time: 86px; --c-event: minmax(220px, 1fr); min-width: 760px; font-variant-numeric: tabular-nums; }
.snk-row { display: grid; grid-template-columns: var(--c-time) var(--c-event) 92px 150px 150px 118px; border-bottom: 1px solid var(--line); }
.snk-c { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; min-width: 0; }
.snk-c + .snk-c { border-left: 1px solid #ffffff0a; }
.snk-thead { background: #0e0f11; }
.snk-thead .snk-c { padding-block: 11px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.snk-thead .snk-ml, .snk-thead .snk-hdp, .snk-thead .snk-ou, .snk-thead .snk-oe { text-align: center; align-items: center; }

.snk-league { padding: 10px 16px; background: #17150f; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--gold); color: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.snk-row:not(.snk-thead) { background: var(--surface); transition: background-color .15s; }
.snk-row:not(.snk-thead):hover { background: #17181b; }
.snk-row.is-live { background: linear-gradient(90deg, #ff979a10, transparent 40%), var(--surface); }

.snk-time { align-items: flex-start; }
.snk-hour { font-size: 15px; font-weight: 700; color: var(--text); }
.snk-score { font-size: 15px; font-weight: 700; color: var(--text); }
.snk-live { display: inline-block; padding: 1px 6px; border: 1px solid #ff979a66; border-radius: 4px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.snk-player { display: block; min-height: 24px; font-size: 15px; color: var(--text); line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snk-player.is-fav { color: var(--red); font-weight: 600; }

.snk-line { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 24px; }
.snk-ml .snk-line { justify-content: center; }
.snk-hcp { flex: 1; color: var(--muted); font-size: 13px; text-align: left; }
.snk-price { min-width: 46px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: right; cursor: pointer; transition: color .15s; }
.snk-price.is-neg { color: var(--red); }
.snk-price:not(.is-empty):hover, .snk-price:not(.is-empty):focus-visible { color: var(--gold-light) !important; outline: none; }
.snk-price.is-empty { cursor: default; }

@media (max-width: 800px) {
  .snk-head { padding: 10px 12px 0; justify-content: flex-start; }
  .snk-days { padding: 16px 12px 12px; gap: 8px; }
  .snk-day { flex: 0 0 84px; min-height: 54px; padding: 8px; }
  .snk-table { --c-time: 64px; --c-event: 150px; min-width: 0; width: max-content; }
  .snk-row { grid-template-columns: var(--c-time) var(--c-event) 72px 124px 124px 100px; }
  .snk-c { padding: 10px; }
  .snk-time, .snk-event { position: sticky; z-index: 1; background: inherit; }
  .snk-time { left: 0; }
  .snk-event { left: var(--c-time); box-shadow: 6px 0 10px -6px #000c; }
  .snk-row:not(.snk-thead) .snk-time, .snk-row:not(.snk-thead) .snk-event { background: var(--surface); }
  .snk-thead .snk-time, .snk-thead .snk-event { background: #0e0f11; }
  .snk-league { position: sticky; left: 0; }
  .snk-player, .snk-price, .snk-hour, .snk-score { font-size: 14px; }
  .snk-empty { padding: 36px 16px 40px; }
}

/* Hero: lamps above the table */
.hero-ray.l1 { left: 12%; top: 11%; --a1: -16deg; --am: -6deg;  --a2: 4deg;   --t: 5.2s; --dl: -1.1s; }
.hero-ray.l2 { left: 22%; top: 11%; --a1: -2deg;  --am: -12deg; --a2: -22deg; --t: 6.1s; --dl: -3.2s; }
.hero-ray.l3 { left: 32%; top: 11%; --a1: -20deg; --am: -10deg; --a2: 2deg;   --t: 4.6s; --dl: -2.0s; }
.hero-ray.r1 { left: 88%; top: 11%; --a1: 16deg;  --am: 6deg;   --a2: -4deg;  --t: 5.6s; --dl: -2.6s; }
.hero-ray.r2 { left: 78%; top: 11%; --a1: 2deg;   --am: 12deg;  --a2: 22deg;  --t: 6.4s; --dl: -0.4s; }
.hero-ray.r3 { left: 68%; top: 11%; --a1: 20deg;  --am: 10deg;  --a2: -2deg;  --t: 4.9s; --dl: -3.9s; }
.hero-art img { opacity: 1; }

/* Members popup */
html.odds-gate-open { overflow: hidden; }
.odds-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.odds-gate[hidden] { display: none; }
.odds-gate-backdrop { position: absolute; inset: 0; background: #050506cc; backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.18s; }
.odds-gate-dialog {
    position: relative; width: min(420px, 100%); padding: 30px 28px 26px; text-align: center;
    border: 1px solid transparent; border-radius: 14px; color: #f3f1ec;
    background:
        radial-gradient(ellipse at 50% 0%, #d9b66f1f, transparent 65%) padding-box,
        linear-gradient(#141517, #101113) padding-box,
        linear-gradient(135deg, #d9b66fb3, #3a3220 45%, #d9b66f80) border-box;
    box-shadow: 0 24px 60px #000c;
    opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.18s, transform 0.18s;
    outline: none;
}
.odds-gate.is-open .odds-gate-backdrop { opacity: 1; }
.odds-gate.is-open .odds-gate-dialog { opacity: 1; transform: none; }
.odds-gate-close {
    position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 8px;
    background: transparent; color: #a8a7a4; font-size: 26px; line-height: 1; cursor: pointer;
}
.odds-gate-close:hover { color: #f6dfaa; background: #ffffff0d; }
.odds-gate-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: #d9b66f; }
.odds-gate-title {
    margin: 0 0 16px; font-size: 22px; line-height: 1.35;
    background: linear-gradient(110deg, #ae7e32 0%, #f8e4b4 35%, #d5ae61 63%, #f3d99c 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f6dfaa;
}
.odds-gate-pick {
    display: grid; gap: 4px; margin: 0 0 16px; padding: 12px 14px; border-radius: 8px;
    background: #0c0d0f; border: 1px solid #2a2b2e; text-align: left;
}
.odds-gate-pick[hidden] { display: none; }
.odds-gate-match { font-size: 13px; color: #d7d4cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-gate-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #a8a7a4; min-width: 0; }
.odds-gate-market { font-size: 11px; font-weight: 700; color: #d9b66f; flex-shrink: 0; }
.odds-gate-sel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.odds-gate-price { margin-left: auto; font-size: 17px; color: #f6dfaa; flex-shrink: 0; }
.odds-gate-text { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: #b8b7b1; }
.odds-gate-actions { display: grid; gap: 10px; }
.odds-gate-actions .button { width: 100%; min-height: 48px; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
    .odds-gate-backdrop, .odds-gate-dialog { transition: none; }
}

/* ==========================================================
   Full-width hero (video-ready) + quick odds card
   ========================================================== */
.snk-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(560px, 84vh, 820px); overflow: hidden; border-bottom: 1px solid var(--line); background: #070708; }
.snk-hero-media { position: absolute; inset: 0; z-index: -1; container-type: size; overflow: hidden; }
.snk-hero-img, .snk-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.snk-hero-media .hero-fx { border-radius: 0; }
.snk-hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 50% 46%, #07070866, #070708d9 78%),
  linear-gradient(180deg, #070708cc 0%, #07070826 24%, #07070833 60%, #0b0c0e 100%); }
.snk-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 72px 96px; }
.snk-hero-copy { max-width: 760px; text-align: center; }
.snk-hero-eyebrow { justify-content: center; }
.snk-hero h1 { margin: 0 0 16px; font-size: clamp(36px, 6vw, 68px); line-height: 1.18; text-shadow: 0 4px 28px #000c; }
.snk-hero .lede { max-width: 56ch; margin: 0 auto 28px; color: #d8d2c4; text-shadow: 0 2px 14px #000c; }
.snk-hero .hero-actions { justify-content: center; }
.snk-hero .button-outline { background: #0b0c0e8c; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.snk-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.snk-chips li { display: inline-flex; align-items: center; gap: 8px; color: #bdb3a0; font-size: 13px; text-shadow: 0 1px 8px #000a; }
.snk-chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px #d9b66f99; }

.snk-quick { position: absolute; right: max(20px, calc((100vw - 1240px) / 2)); bottom: 32px; width: 330px; padding: 14px 16px 10px; border: 1px solid #d9b66f40; border-radius: 12px; background: #0e0f11d9; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px #0009; }
.snk-quick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.snk-quick-title { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-light); font-size: 14px; font-weight: 700; }
.snk-pulse { width: 7px; height: 7px; border-radius: 50%; background: #e0453d; box-shadow: 0 0 0 0 #e0453d99; animation: snk-pulse 1.7s infinite; }
@keyframes snk-pulse { 0% { box-shadow: 0 0 0 0 #e0453d99; } 70% { box-shadow: 0 0 0 8px #e0453d00; } 100% { box-shadow: 0 0 0 0 #e0453d00; } }
.snk-quick-all { color: var(--muted); font-size: 12px; text-decoration: none; }
.snk-quick-all:hover { color: var(--gold-light); }
.snk-quick-item { padding: 9px 0; border-top: 1px solid #ffffff12; }
.snk-quick-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 11px; }
.snk-quick-league { color: var(--gold); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snk-quick-when { flex-shrink: 0; color: var(--muted); }
.snk-quick-item.is-live .snk-quick-when { color: var(--red); font-weight: 700; }
.snk-quick-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.snk-quick-line .snk-player { font-size: 14px; min-height: 24px; line-height: 24px; }
.snk-quick-empty { display: grid; justify-items: start; gap: 8px; padding: 10px 0 8px; border-top: 1px solid #ffffff12; }
.snk-quick-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .snk-pulse { animation: none; } }

@media (max-width: 1100px) {
  .snk-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .snk-hero-inner { padding-block: 56px 28px; gap: 28px; }
  .snk-quick { position: relative; right: auto; bottom: auto; width: min(100%, 460px); justify-self: center; }
}
@media (max-width: 600px) {
  .snk-hero-inner { padding-block: 44px 24px; }
  .snk-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .snk-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .snk-hero .hero-actions .button { justify-content: center; }
  .snk-chips { gap: 6px 16px; }
  .snk-chips li { font-size: 12px; }
}

/* Desktop: keep the hero copy clear of the quick-odds card */
@media (min-width: 1101px) {
  .snk-hero { min-height: clamp(640px, 86vh, 840px); }
  .snk-hero-inner { padding-block: 56px 250px; }
  .snk-quick { bottom: 36px; width: 320px; }
}

/* Quick odds pinned to the hero's bottom-right corner (2026-11-30) */
@media (min-width: 1101px) {
  .snk-hero-inner { position: static; }
  .snk-quick { right: 24px; bottom: 24px; }
}
