:root {
  color-scheme: dark;
  --background: #100f0d;
  --surface: #171512;
  --surface-soft: #201d18;
  --text: #f4f0e8;
  --muted: #a6a096;
  --accent: #c5a574;
  --pink: #c5a574;
  font-family: "DM Sans", "Noto Sans Thai", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  height: 78px;
  padding: 0 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #100f0d;
  position: relative;
  z-index: 2;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 185px; height: 72px; object-fit: contain; }
.main-nav { display: flex; height: 100%; align-items: center; gap: 38px; }
.nav-link { height: 100%; display: grid; place-items: center; color: #aaa9af; font-size: 13px; position: relative; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: 17px; background: var(--accent); }
.topbar-cta { border: 1px solid #494238; border-radius: 30px; padding: 10px 17px; display: flex; gap: 9px; align-items: center; font-size: 12px; transition: border-color .2s; }
.topbar-cta:hover { border-color: var(--accent); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px #ff5b8380; flex: 0 0 auto; }

.hero { position: relative; min-height: 550px; overflow: hidden; display: flex; align-items: center; padding: 60px 10.1%; }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, #100f0df5 0%, #100f0dc9 39%, #100f0d54 76%, #100f0d7a 100%), linear-gradient(0deg, #100f0d 0%, transparent 24%), url("https://images.unsplash.com/photo-1506157786151-b8491531f063?auto=format&fit=crop&w=2200&q=85"); background-size: cover; background-position: center 46%; filter: grayscale(.82) sepia(.24) brightness(.82); transform: scale(1.015); }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.19'/%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 590px; padding-bottom: 5px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: 1.65px; font-size: 10px; color: var(--accent); font-weight: 700; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 21px; }
.hero h1 { font-family: "Noto Sans Thai", sans-serif; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.34; letter-spacing: -1.5px; margin: 0; font-weight: 600; }
.hero-content > p { color: #c1c0c5; line-height: 1.9; font-size: 14px; margin: 17px 0 26px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: var(--accent); color: #17130d; border: 0; border-radius: 30px; padding: 13px 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.primary-button:hover { background: #d7bc91; transform: translateY(-1px); }
.hero-caption { position: absolute; z-index: 1; left: 10.1%; bottom: 33px; display: flex; gap: 10px; align-items: center; color: #b6b5ba; font-size: 9px; letter-spacing: 1.5px; }
.caption-line { width: 23px; height: 1px; background: var(--accent); }
.hero-index { position: absolute; z-index: 1; right: 7.2%; bottom: 31px; font-size: 13px; color: var(--accent); letter-spacing: 1px; }
.hero-index span { color: #85848b; }

.concert-section { max-width: 1210px; margin: 0 auto; padding: 62px 38px 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; }
.section-kicker { margin: 0 0 7px; font-size: 9px; }
.section-heading h2, .about-strip h2 { font-family: "Noto Sans Thai", sans-serif; font-size: 27px; letter-spacing: -.7px; margin: 0; }
.text-link { font-size: 12px; color: #c4c3c8; padding-bottom: 5px; }
.text-link span { color: var(--accent); margin-left: 7px; font-size: 16px; }
.toolbar { margin: 27px 0 19px; padding-bottom: 17px; border-bottom: 1px solid #242429; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filters { display: flex; gap: 7px; }
.filter-chip { background: transparent; color: #aaa9af; border: 1px solid transparent; border-radius: 20px; padding: 8px 14px; font-size: 11px; cursor: pointer; transition: .2s; }
.filter-chip:hover { color: var(--text); }
.filter-chip.selected { background: #24242a; border-color: #37373d; color: var(--text); }
.search-box { width: 218px; padding: 9px 10px; display: flex; gap: 8px; align-items: center; border: 1px solid #303036; border-radius: 4px; color: #77767d; }
.search-icon { font-size: 20px; line-height: 14px; transform: rotate(-20deg); }
.search-box input { min-width: 0; width: 100%; background: transparent; outline: 0; border: 0; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #77767d; }
.search-box kbd { border: 1px solid #414148; padding: 1px 5px; border-radius: 3px; font-family: inherit; font-size: 10px; }
.concert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.concert-card { min-width: 0; cursor: pointer; }
.poster { position: relative; aspect-ratio: .78 / 1; overflow: hidden; border-radius: 5px; background: #222; }
.poster img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.concert-card:hover .poster img { transform: scale(1.055); }
.poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #09090caa); pointer-events: none; }
.poster-status { position: absolute; left: 11px; top: 11px; z-index: 1; border-radius: 3px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; background: #101013d9; font-size: 9px; letter-spacing: .45px; font-weight: 700; }
.poster-status.upcoming { color: #e0dfdf; }
.poster-status.upcoming .live-dot { background: var(--accent); box-shadow: none; }
.poster-date { position: absolute; z-index: 1; right: 11px; top: 11px; border: 1px solid #ffffff55; padding: 5px 7px; border-radius: 3px; background: #10101388; font-size: 9px; }
.poster-play { position: absolute; z-index: 1; left: 13px; bottom: 13px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #101013; background: var(--accent); padding-left: 2px; font-size: 12px; opacity: 0; transform: translateY(5px); transition: .2s; }
.concert-card:hover .poster-play, .concert-card:focus-visible .poster-play { opacity: 1; transform: translateY(0); }
.card-meta { padding: 13px 2px 0; }
.card-category { color: #99989e; font-size: 9px; letter-spacing: .9px; text-transform: uppercase; }
.card-title { font-family: "Noto Sans Thai", sans-serif; font-size: 15px; font-weight: 700; margin: 5px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #232328; }
.card-venue { font-size: 9px; color: #a1a0a5; }
.empty-state { color: var(--muted); text-align: center; padding: 45px 0; font-size: 13px; }

.about-strip { max-width: 1210px; margin: 0 auto 65px; padding: 29px 35px; border: 1px solid #302b23; border-radius: 6px; display: grid; grid-template-columns: 55px 1fr 1fr; gap: 20px; align-items: center; background: radial-gradient(ellipse at 10% 100%, #c5a5740b, transparent 56%), #14120f; }
.about-mark { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #424642; color: var(--accent); border-radius: 50%; font-size: 23px; }
.about-strip .section-kicker { font-size: 8px; }
.about-strip h2 { font-size: 19px; }
.about-copy { margin: 0; color: #a4a3a9; font-size: 11px; line-height: 1.9; }
.footer { min-height: 75px; padding: 17px 7.1%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #222227; color: #89888e; font-size: 10px; }
.footer-brand .brand-logo { width: 150px; height: 58px; }

.order-dialog { padding: 0; width: min(540px, calc(100vw - 32px)); max-width: none; border: 1px solid #33333a; border-radius: 8px; background: #111114; color: var(--text); box-shadow: 0 25px 100px #000b; }
.order-dialog::backdrop { background: #050507d9; backdrop-filter: blur(7px); }
.order-shell { padding: 25px; }
.order-topbar { display: flex; justify-content: space-between; align-items: start; padding: 1px 1px 20px; }
.order-kicker { margin: 0 0 5px; color: var(--accent); font-size: 10px; }
.order-topbar h2 { margin: 0; font: 700 18px "Noto Sans Thai", sans-serif; }
.close-button { width: 34px; height: 34px; border: 1px solid #35353b; border-radius: 50%; background: transparent; color: #ddd; font-size: 24px; line-height: 1; cursor: pointer; }
.close-button:hover { border-color: var(--accent); color: var(--accent); }
.slip-upload-area { display: grid; gap: 13px; }
.slip-upload { min-height: 190px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #55555d; border-radius: 5px; background: #17171b; color: #f0eff3; cursor: pointer; text-align: center; }
.slip-upload:hover, .slip-upload:focus-within { border-color: var(--accent); }
.slip-upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #48484f; border-radius: 50%; color: var(--accent); font-size: 22px; }
.slip-upload strong { font-size: 13px; }
.slip-upload > span:last-of-type { color: #99989e; font-size: 10px; }
.slip-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.slip-preview { display: grid; grid-template-columns: 90px 1fr; gap: 13px; align-items: center; padding: 10px; border: 1px solid #34343b; border-radius: 5px; }
.slip-preview[hidden] { display: none; }
.slip-preview img { width: 90px; height: 90px; object-fit: cover; border-radius: 3px; background: #08080a; }
.slip-file-info { min-width: 0; display: grid; gap: 8px; }
.slip-file-info > span { overflow-wrap: anywhere; color: #e4e3e7; font-size: 11px; }
.remove-slip { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; cursor: pointer; }
.slip-status, .slip-note { margin: 0; color: #a5a4aa; font-size: 10px; }
.slip-status.error { color: #ff829d; }
.slip-note { padding-top: 16px; color: #77767d; }

@media (max-width: 850px) {
  .topbar { padding: 0 5%; }
  .hero { min-height: 510px; padding-left: 7%; }
  .hero-caption { left: 7%; }
  .concert-section { padding: 52px 5% 62px; }
  .concert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 17px; }
  .about-strip { margin: 0 5% 48px; }
}
@media (max-width: 560px) {
  .topbar { height: 65px; }
  .main-nav { gap: 17px; }
  .nav-link { font-size: 11px; }
  .brand-logo { width: 150px; height: 61px; }
  .topbar-cta { padding: 9px 11px; font-size: 0; }
  .topbar-cta .live-dot { width: 8px; height: 8px; }
  .hero { min-height: 490px; align-items: end; padding: 40px 7% 75px; }
  .hero-image { background-position: 58% center; background-image: linear-gradient(90deg, #100f0de8, #100f0d7a), linear-gradient(0deg, #100f0d 0%, transparent 65%), url("https://images.unsplash.com/photo-1506157786151-b8491531f063?auto=format&fit=crop&w=1000&q=80"); }
  .hero h1 { font-size: 43px; }
  .hero-content > p { font-size: 12px; }
  .hero-caption { bottom: 26px; font-size: 8px; }
  .hero-index { bottom: 23px; right: 7%; }
  .concert-section { padding-top: 42px; }
  .section-heading h2 { font-size: 23px; }
  .toolbar { align-items: stretch; flex-direction: column-reverse; gap: 13px; margin-top: 20px; }
  .search-box { width: 100%; }
  .filters { overflow-x: auto; }
  .filter-chip { white-space: nowrap; }
  .concert-grid { gap: 23px 12px; }
  .poster { aspect-ratio: .78 / 1; }
  .poster-status { left: 7px; top: 7px; padding: 5px 6px; font-size: 8px; }
  .poster-date { right: 7px; top: 7px; padding: 4px 5px; font-size: 8px; }
  .card-title { font-size: 13px; }
  .card-venue { font-size: 8px; }
  .about-strip { padding: 22px; grid-template-columns: 45px 1fr; gap: 13px; }
  .about-mark { width: 40px; height: 40px; }
  .about-strip h2 { font-size: 17px; }
  .about-copy { grid-column: 2; font-size: 10px; }
  .footer { padding: 15px 5%; }
  .footer > span:nth-child(2) { display: none; }
  .order-shell { padding: 17px; }
  .slip-upload { min-height: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
