/* KY Sports — kysports.live */
:root {
  --brand: #0a4d8c;
  --brand-deep: #063a6b;
  --accent: #e8a317;
  --accent-soft: #fff3d6;
  --ink: #15202b;
  --muted: #5a6a7a;
  --line: #d8e0e8;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --ok: #1a7f4b;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(10, 77, 140, 0.12);
  --header-h: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Oswald", "Noto Sans SC", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 77, 140, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #1a1400;
}

.btn-accent:hover {
  background: #d4930f;
  color: #1a1400;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #06284a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 40, 74, 0.35) 0%, rgba(6, 40, 74, 0.78) 55%, rgba(6, 40, 74, 0.95) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(232, 163, 23, 0.25), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 38rem;
  line-height: 1.4;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  color: var(--brand-deep);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: #2a3642;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--ink);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  font-weight: 500;
}

/* Feature / grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  padding: 0.25rem 0 1rem;
  border-top: 3px solid var(--accent);
}

.feature-item h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shot-row figure {
  margin: 0;
}

.shot-row img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.shot-row img:hover {
  transform: translateY(-4px);
}

.shot-row figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}

.partner-strip img {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem;
  filter: grayscale(0.15);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.partner-strip img:hover {
  filter: none;
  transform: scale(1.03);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 180px;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.cat-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(6, 40, 74, 0.9));
  color: #fff;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.cta-banner {
  background:
    linear-gradient(120deg, var(--brand-deep), var(--brand)),
    var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  animation: fadeUp 0.8s ease both;
}

.cta-banner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.cta-banner p {
  margin: 0;
  opacity: 0.92;
  max-width: 34rem;
}

.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--brand-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}

.auth-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid rgba(10, 77, 140, 0.25);
  border-color: var(--brand);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.related-links a {
  padding: 0.4rem 0.75rem;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.related-links a:hover {
  background: #ffe7ad;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  color: var(--brand);
}

.error-page p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0.75rem auto 1.5rem;
}

/* Footer */
.site-footer {
  background: #0b1c2d;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin-bottom: 0.45rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: var(--shadow);
  }

  .nav-wrap.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    flex-direction: column;
  }

  .feature-grid,
  .shot-row,
  .cat-grid,
  .partner-strip,
  .auth-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

/* Top ads bar */
.ads-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
