@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #7c3aed;
  --secondary: #ec4899;
  --bg: #08060e;
  --bg-soft: #100b19;
  --panel: rgba(21, 15, 31, 0.88);
  --panel-solid: #15101f;
  --text: #fbf8ff;
  --muted: #bcb1c9;
  --line: rgba(255,255,255,.09);
  --success: #65e6aa;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 32%, transparent) 0, transparent 33%),
    radial-gradient(circle at 92% 9%, color-mix(in srgb, var(--secondary) 28%, transparent) 0, transparent 31%),
    linear-gradient(180deg, #090611 0%, var(--bg) 38%, #0d0813 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; width: 360px; height: 360px; border-radius: 50%; filter: blur(105px); opacity: .15; pointer-events: none; }
.ambient-one { background: var(--primary); top: 24%; left: -180px; }
.ambient-two { background: var(--secondary); top: 56%; right: -180px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 6, 14, .74);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent), inset 0 1px rgba(255,255,255,.28);
}
.brand-mark.small { width: 40px; height: 40px; font-size: 20px; border-radius: 13px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { letter-spacing: 1.6px; font-size: 20px; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
.live-clock { display: flex; align-items: center; gap: 11px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.live-clock > div { display: flex; flex-direction: column; line-height: 1.1; }
.live-clock small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.live-clock strong { margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(101,230,170,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(101,230,170,0); } 100% { box-shadow: 0 0 0 0 rgba(101,230,170,0); } }

.ticker { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--secondary) 14%, transparent)); }
.ticker-inner { min-height: 42px; display: flex; align-items: center; gap: 12px; }
.ticker-label { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; color: white; font-size: 10px; font-weight: 900; letter-spacing: 1px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.ticker p { margin: 0; color: #ddd3e8; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero { padding: 76px 0 62px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.eyebrow { display: inline-block; color: #d9c9ff; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.hero h1 { margin: 16px 0 18px; max-width: 780px; font-size: clamp(43px, 6vw, 78px); line-height: .98; letter-spacing: -4px; }
.hero h1 span { background: linear-gradient(90deg, #c4b5fd, #f9a8d4 68%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 660px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border-radius: 13px; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(100deg, var(--primary), var(--secondary)); box-shadow: 0 15px 35px color-mix(in srgb, var(--primary) 25%, transparent); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #eee8f5; }
.button-ghost:hover { border-color: color-mix(in srgb, var(--secondary) 50%, white 10%); }

.hero-panel { position: relative; min-height: 430px; border-radius: 34px; border: 1px solid rgba(255,255,255,.12); overflow: hidden; background: linear-gradient(145deg, rgba(124,58,237,.25), rgba(236,72,153,.13) 48%, rgba(10,7,15,.94)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.13) 0 1px, transparent 2px); background-size: 26px 26px; opacity: .35; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); }
.orb-a { width: 220px; height: 220px; background: color-mix(in srgb, var(--primary) 55%, transparent); top: -75px; right: -50px; }
.orb-b { width: 170px; height: 170px; background: color-mix(in srgb, var(--secondary) 45%, transparent); bottom: -60px; left: -30px; }
.hero-logo { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo > span { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 34px; margin-bottom: 20px; font-size: 62px; font-weight: 900; background: linear-gradient(145deg, var(--primary), var(--secondary)); box-shadow: 0 20px 65px color-mix(in srgb, var(--secondary) 28%, transparent), inset 0 1px rgba(255,255,255,.35); transform: rotate(-4deg); }
.hero-brand-image {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 18px 35px rgba(236, 72, 153, 0.35));
}
.hero-logo strong { font-size: clamp(27px, 3vw, 38px); letter-spacing: 3px; }
.hero-logo small { margin-top: 8px; color: #d6cbe0; letter-spacing: 3px; font-size: 9px; }
.mini-stats { position: relative; z-index: 2; width: 100%; margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mini-stats div { padding: 13px 8px; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(7,5,12,.38); backdrop-filter: blur(8px); }
.mini-stats strong { display: block; font-size: 18px; }
.mini-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.schedule-section { padding: 54px 0 78px; scroll-margin-top: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.section-heading h2 { margin: 9px 0 8px; font-size: clamp(29px,4vw,45px); letter-spacing: -1.5px; }
.section-heading p { margin: 0; color: var(--muted); }
.result-count { min-width: 140px; display: flex; flex-direction: column; align-items: flex-end; }
.result-count strong { font-size: 32px; background: linear-gradient(90deg,#c4b5fd,#f9a8d4); -webkit-background-clip:text; color: transparent; }
.result-count span { color: var(--muted); font-size: 11px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 15px; }
.search-box { flex: 1; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.search-box span { color: #cfbfff; font-size: 24px; transform: rotate(-15deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box input::placeholder { color: #8e819b; }
.clear-button { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; color: #ddd4e7; background: rgba(255,255,255,.04); cursor: pointer; }
.schedule-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(14,10,21,.82); box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.schedule-table th { position: sticky; top: 0; z-index: 2; padding: 16px 14px; color: #d9cfe3; text-align: left; text-transform: uppercase; letter-spacing: .9px; font-size: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 30%, #171020), color-mix(in srgb, var(--secondary) 23%, #171020)); border-bottom: 1px solid rgba(255,255,255,.12); }
.schedule-table th:first-child, .schedule-table td:first-child { width: 65px; text-align: center; }
.schedule-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: #e8e1ef; font-size: 13px; vertical-align: middle; }
.schedule-table tbody tr { transition: background .18s ease, transform .18s ease; }
.schedule-table tbody tr:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 9%, transparent), color-mix(in srgb, var(--secondary) 7%, transparent)); }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.row-number { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #c9b9da; background: rgba(255,255,255,.05); font-size: 11px; }
.market-name { color: #fff; letter-spacing: .2px; }
.day-text { color: #c8bdcf; }
.time-badge { display: inline-flex; justify-content: center; min-width: 72px; padding: 7px 10px; border-radius: 9px; font-weight: 800; font-size: 11px; font-variant-numeric: tabular-nums; }
.time-close { color: #e5d9ff; background: color-mix(in srgb, var(--primary) 17%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent); }
.time-result { color: #ffd9eb; background: color-mix(in srgb, var(--secondary) 15%, transparent); border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent); }
.source-link { display: inline-flex; padding: 7px 10px; border-radius: 9px; color: #f7efff; text-decoration: none; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); }
.source-link:hover { border-color: color-mix(in srgb, var(--secondary) 50%, transparent); background: color-mix(in srgb, var(--secondary) 10%, transparent); }
.muted { color: #75697f; }
.empty-state { padding: 55px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-state strong { font-size: 20px; }
.empty-state span { margin-top: 8px; color: var(--muted); }

.guide-section { padding: 10px 0 88px; scroll-margin-top: 110px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.guide-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.018)); }
.guide-grid article > span { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-size: 11px; font-weight: 900; background: linear-gradient(145deg,var(--primary),var(--secondary)); }
.guide-grid h3 { margin: 18px 0 8px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); background: rgba(6,4,10,.55); }
.footer-inner { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { letter-spacing: 1.2px; }
.footer-brand p, .footer-inner > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; color: white; background: linear-gradient(145deg,var(--primary),var(--secondary)); box-shadow: 0 14px 35px rgba(0,0,0,.35); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-panel { min-height: 385px; max-width: 640px; width: 100%; margin-inline: auto; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 22px, 1180px); }
  .header-inner { height: 68px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 17px; }
  .brand-mark { width: 41px; height: 41px; border-radius: 13px; }
  .live-clock { padding: 8px 10px; }
  .live-clock small { display: none; }
  .live-clock strong { margin: 0; font-size: 13px; }
  .ticker-inner { min-height: 38px; }
  .ticker p { font-size: 11px; }
  .hero { padding: 45px 0 38px; }
  .hero h1 { font-size: 44px; letter-spacing: -2.7px; }
  .hero-copy > p { font-size: 14px; }
  .hero-panel { min-height: 335px; border-radius: 25px; padding: 22px; }
  .hero-logo > span { width: 88px; height: 88px; font-size: 49px; border-radius: 27px; }
  .hero-logo strong { font-size: 25px; }
  .mini-stats { margin-top: 28px; }
  .mini-stats div { padding: 10px 5px; }
  .mini-stats strong { font-size: 15px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 32px; }
  .result-count { min-width: 78px; }
  .result-count strong { font-size: 26px; }
  .result-count span { text-align: right; font-size: 9px; }
  .toolbar { flex-direction: column; }
  .clear-button { min-height: 44px; }
  .schedule-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .table-scroll { overflow: visible; }
  .schedule-table, .schedule-table tbody { display: block; min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table tbody { display: grid; gap: 12px; }
  .schedule-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20,14,29,.9); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
  .schedule-table td, .schedule-table td:first-child { width: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; border: 0; text-align: left; }
  .schedule-table td::before { content: attr(data-label); color: #8f829c; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
  .schedule-table td:nth-child(2) { grid-column: 1 / -1; order: -2; }
  .schedule-table td:first-child { position: absolute; opacity: 0; pointer-events: none; }
  .schedule-table td:nth-child(3) { grid-column: 1 / -1; }
  .schedule-table td:nth-child(6) { grid-column: 1 / -1; }
  .market-name { font-size: 16px; }
  .time-badge { min-width: 90px; }
  .footer-inner { padding: 25px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  @media (max-width: 768px) {
    .hero-brand-image {
        width: 110px;
        height: 110px;
        margin-bottom: 14px;
    }
}
}
