/* PattayaStream. One stylesheet. Black and white, one typeface (Geist); red only marks "live". */
@font-face { font-family: Geist; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --night: #0b0b0c; --panel: #151516; --raise: #1d1d1f; --line: #2e2c2a; --stone: #8a8580; --mist: #bdb8b3; --bone: #f4f1ec; --white: #fff;
  --live: #ff4136;
  --gut: 16px; --frame: 1180px; --r: 10px;
  --f: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gut: 32px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 17px/1.55 var(--f); font-feature-settings: "tnum" 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--stone); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bone); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.tn { font-feature-settings: "tnum" 1; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--night); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--frame); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
h1, h2, h3 { color: var(--white); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 7.4vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 4.4vw, 34px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--mist); }
.small { font-size: 15px; }

/* Header: the mark and five places to go. On a phone the nav is one scrolling row, no menu button. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,12,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; min-height: 56px; }
.mark { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
.mark svg { height: 15px; width: auto; }
@media (min-width: 760px) { .mark svg { height: 18px; } }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 8px; width: calc(100% + var(--gut) * 2); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--bone); }
.nav a[aria-current="page"] { background: var(--bone); color: var(--night); border-color: var(--bone); }
.nav a:hover { border-color: var(--stone); }
@media (min-width: 900px) { .nav { width: auto; margin: 0 0 0 auto; padding: 0; overflow: visible; } .nav a { border-color: transparent; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.dot.pulse { box-shadow: 0 0 0 0 rgba(255,65,54,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,65,54,0); } 100% { box-shadow: 0 0 0 0 rgba(255,65,54,0); } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } }

.crumbs { font-size: 14px; color: var(--mist); padding-top: 20px; }
.crumbs a { color: var(--mist); }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--stone); }

/* Page opening */
.open { padding-top: 28px; padding-bottom: 8px; }
.open .lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--bone); max-width: 40ch; margin-top: 14px; }
.open .th { font-size: 16px; color: var(--mist); margin: 8px 0 0; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mist); margin-top: 14px; }
section { padding: 52px 0 4px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.head p { margin: 6px 0 0; color: var(--mist); font-size: 15px; max-width: 60ch; }
.head > a { flex: none; font-size: 15px; white-space: nowrap; }

/* Search */
.find { position: relative; margin-top: 22px; max-width: 560px; }
.find input { width: 100%; min-height: 52px; padding: 0 16px 0 46px; font: 500 17px var(--f); color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.find input::placeholder { color: var(--stone); }
.find input:focus { outline: none; border-color: var(--mist); }
.find svg { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; color: var(--stone); }

/* Streamer rows: the tile is a square, like the square in the mark. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .rows.two { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.row { border-bottom: 1px solid var(--line); }
.row > a { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; min-height: 72px; text-decoration: none; }
.row > a:hover .nm { text-decoration: underline; text-decoration-color: var(--stone); }
.tile { position: relative; width: 48px; height: 48px; display: grid; place-items: center; background: var(--raise); color: var(--bone); font-weight: 650; font-size: 17px; letter-spacing: -0.02em; border-radius: 6px; }
.tile.big { width: 72px; height: 72px; font-size: 26px; border-radius: 8px; }
.tile .dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border: 2px solid var(--night); }
.nm { display: block; color: var(--white); font-weight: 600; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.sub { display: block; color: var(--mist); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.when { text-align: right; font-size: 14px; color: var(--mist); line-height: 1.3; }
.when b { display: block; color: var(--bone); font-weight: 500; }
.when .lv { color: var(--white); display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.tag { display: inline-block; font-size: 12px; line-height: 1; padding: 3px 5px; border: 1px solid var(--stone); color: var(--mist); border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

/* On air strip */
.onair { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 76%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: thin; }
@media (min-width: 760px) { .onair { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); overflow: visible; margin: 0; padding: 0; } }
.air { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; min-height: 150px; }
.air:hover { border-color: var(--stone); }
.air .top-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mist); }
.air .nm { font-size: 18px; }
.air .ttl { font-size: 14px; color: var(--mist); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.air .go { margin-top: auto; font-size: 14px; color: var(--bone); }
.note { font-size: 14px; color: var(--mist); margin-top: 12px; }

/* Tonight: the guide. Hours run along the top; each row starts where that channel usually starts. */
.guide { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.g-hours, .g-row { display: grid; grid-template-columns: 190px 1fr; }
.g-hours { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.g-hours .scale { position: relative; height: 34px; }
.g-hours .scale span { position: absolute; top: 9px; transform: translateX(-50%); }
.g-hours .scale span:first-child { transform: none; padding-left: 6px; }
.g-hours .scale span:last-child { transform: translateX(-100%); padding-right: 6px; }
.g-row { border-bottom: 1px solid var(--line); min-height: 48px; }
.g-row:last-child { border-bottom: 0; }
.g-row a.who { display: flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: 550; color: var(--white); text-decoration: none; border-right: 1px solid var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-row a.who:hover { text-decoration: underline; }
.g-row .track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; }
.g-row .bar { position: absolute; top: 19px; height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--white) 0 10px, rgba(244,241,236,.38) 10px); min-width: 10px; }
.g-row .bar.live { background: linear-gradient(to right, var(--live) 0 10px, rgba(255,65,54,.45) 10px); }
.guide-list { display: none; }
@media (max-width: 759px) {
  .guide { display: none; }
  .guide-list { display: block; }
  .slot { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .slot:first-child { border-top: 1px solid var(--line); }
  .slot time { font-size: 20px; font-weight: 650; color: var(--white); font-feature-settings: "tnum" 1; }
  .slot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .slot li a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--bone); }
}

/* Area and topic tiles */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(4, 1fr); } }
.place { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 108px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--panel); }
.place:hover { border-color: var(--stone); }
.place strong { color: var(--white); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.place span { color: var(--mist); font-size: 14px; }

/* Streamer page */
.who-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-top: 22px; }
.who-head h1 { font-size: clamp(30px, 6.4vw, 54px); overflow-wrap: anywhere; }
.who-head .sub { font-size: 15px; margin-top: 8px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: 15px; }
.status strong { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.status .muted { font-size: 14px; }
.watch { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 600px) { .watch { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: var(--r); background: var(--bone); color: var(--night); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--white); }
.btn small { font-weight: 450; font-size: 13px; color: #55514d; }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn.ghost small { color: var(--mist); }
.btn.ghost:hover { border-color: var(--stone); }
.btn .ext { width: 16px; height: 16px; flex: none; }
.lede-about { font-size: 18px; max-width: 62ch; }
.cols { display: grid; gap: 36px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 15px; }
.facts dt { color: var(--mist); }
.facts dd { margin: 0; color: var(--bone); }
.week { display: grid; grid-template-columns: 34px 1fr; gap: 3px 10px; align-items: center; font-size: 13px; color: var(--mist); margin: 16px 0 0; }
.week .cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.week .cells i { display: block; height: 14px; border-radius: 2px; background: var(--raise); }
.week .axis-c b { font-weight: 400; font-size: 11px; color: var(--stone); text-align: left; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a, .list .item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; text-decoration: none; font-size: 15px; }
.list a:hover .t { text-decoration: underline; }
.list .t { color: var(--white); overflow-wrap: anywhere; }
.list .m { color: var(--mist); text-align: right; white-space: nowrap; font-feature-settings: "tnum" 1; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-weight: 600; color: var(--white); font-size: 17px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(-135deg); top: 27px; }
details.faq p { color: var(--bone); margin: 0 0 16px; max-width: 62ch; }
.sources { font-size: 14px; color: var(--mist); }
.sources li { margin-bottom: 8px; }
.prose { max-width: 66ch; }
.prose h2 { margin: 36px 0 12px; font-size: 24px; }
.prose ul { padding-left: 20px; }

/* Directory filter */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 4px; }
.filters::-webkit-scrollbar { display: none; }
.filters button, .filters a { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--bone); font: 500 15px var(--f); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.filters [aria-pressed="true"], .filters [aria-current="page"] { background: var(--bone); color: var(--night); border-color: var(--bone); }
.count { font-size: 14px; color: var(--mist); margin: 14px 0 10px; }
[hidden] { display: none !important; }

/* About */
.about-grid { display: grid; gap: 28px; padding-top: 28px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; } }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; border-radius: var(--r); background: var(--panel); }
.portrait figcaption { font-size: 14px; color: var(--mist); margin-top: 10px; }
.line-box { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.line-box .btn { display: inline-flex; margin-top: 8px; }

/* Footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--mist); }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot svg { height: 14px; width: auto; margin-bottom: 14px; }
.foot nav { display: grid; gap: 2px; }
.foot nav a { color: var(--bone); text-decoration: none; min-height: 36px; display: flex; align-items: center; }
.foot nav a:hover { text-decoration: underline; }
.foot .pub { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }
.foot .pub a { color: var(--bone); }
.lost { padding: 60px 0; }
@media (max-width: 1023px) { .portrait { max-width: 560px; } }

.tile svg { width: 26px; height: 26px; color: var(--bone); }
.tile.big svg { width: 38px; height: 38px; }
.tile.k-venue { background: #2a2826; } .tile.k-camera { background: #1f2224; } .tile.k-radio { background: #222; }
@media (max-width: 899px) { .top .wrap { position: relative; } .nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); } }
.swipe { display: block; } @media (min-width: 760px) { .swipe { display: none; } }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg { display: inline-block; width: 26px; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--white) 0 8px, rgba(244,241,236,.38) 8px); }
.lg.live { background: linear-gradient(to right, var(--live) 0 8px, rgba(255,65,54,.45) 8px); margin-left: 10px; }
@media (max-width: 759px) { .legend { display: none; } }
@media (max-width: 1023px) { .portrait img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; } }

/* Submission form */
.sub-form { display: grid; gap: 8px; max-width: 560px; margin: 24px 0 8px; }
.sub-form label { font-size: 15px; color: var(--bone); margin-top: 10px; }
.sub-form input[type=url], .sub-form input[type=text], .sub-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--f); color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.sub-form textarea { resize: vertical; }
.sub-form input:focus, .sub-form textarea:focus { outline: none; border-color: var(--mist); }
.sub-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.sub-form legend { font-size: 15px; margin-bottom: 4px; }
.sub-form .opt { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.sub-form .opt input { width: 20px; height: 20px; accent-color: #f4f1ec; }
.sub-form button { margin-top: 14px; justify-self: start; border: 0; cursor: pointer; font: 600 17px var(--f); }
.sub-msg { padding: 12px 14px; border: 1px solid var(--stone); border-radius: 10px; color: var(--white); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
