:root {
      --bg: #020617;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --border: #1f2937;
      --highlight: rgba(56,189,248,0.25);
      --accent: #22c55e;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #020617;
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    /* ⭐⭐⭐ ANIMATED SPORTS REPLAY BACKGROUND ⭐⭐⭐ */
    #sports-bg {
      position: fixed;
      inset: 0;
      overflow: hidden;
      z-index: -1;
      pointer-events: none;
      opacity: 0.28;
      filter: blur(22px);
    }

    .replay-light {
      position: absolute;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      opacity: 0.6;
      mix-blend-mode: screen;
      animation: drift 16s linear infinite;
    }

    .replay1 {
      background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 70%);
      left: -20%;
      top: 20%;
      animation-duration: 20s;
      animation-delay: -3s;
    }

    .replay2 {
      background: radial-gradient(circle, rgba(249,115,22,0.35), transparent 70%);
      right: -25%;
      top: 50%;
      animation-duration: 24s;
      animation-delay: -6s;
    }

    .replay3 {
      background: radial-gradient(circle, rgba(34,197,94,0.45), transparent 70%);
      left: 40%;
      bottom: -25%;
      animation-duration: 28s;
      animation-delay: -10s;
    }

    @keyframes drift {
      0% { transform: translateY(0) translateX(0) scale(1); }
      50% { transform: translateY(-20%) translateX(10%) scale(1.2); }
      100% { transform: translateY(0) translateX(0) scale(1); }
    }

    /* FADE-IN ANIMATIONS */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-in { opacity: 0; animation: fadeUp 0.7s ease-out forwards; }
    .fade-in.delay-1 { animation-delay: 0.12s; }
    .fade-in.delay-2 { animation-delay: 0.22s; }
    .fade-in.delay-3 { animation-delay: 0.32s; }

    /* PAGE */
    .page {
      max-width: 1080px;
      margin: 0 auto;
      padding: 20px 16px 40px;
      position: relative;
      z-index: 5;
    }

    /* HEADER */
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 20px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
      border: 1px solid rgba(148,163,184,0.4);
      position: relative;
      overflow: hidden;
    }

    header::after {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 0 0, rgba(56,189,248,0.22), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(239,68,68,0.18), transparent 55%);
      opacity: 0.45;
      mix-blend-mode: screen;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      z-index: 1;
    }

    .avatar {
      width: 56px;
      height: 56px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 20%, #facc15, #ef4444);
      border: 3px solid rgba(15,23,42,0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 22px;
      color: #f9fafb;
      text-shadow: 0 2px 6px rgba(15,23,42,0.8);
      box-shadow: 0 14px 30px rgba(0,0,0,0.85);
    }

    .titles h1 { margin: 0; font-size: 1.7rem; }
    .titles p { margin: 4px 0 0; color: var(--muted); }

    nav { display: flex; gap: 10px; z-index: 1; }
    .nav-pill {
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.4);
      background: rgba(15,23,42,0.85);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transition: 0.16s;
    }
    .nav-pill:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
    }

    /* HERO */
    .hero {
      margin-top: 26px;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
      gap: 22px;
    }

    .hero-main {
      padding: 20px;
      border-radius: 22px;
      background: rgba(15,23,42,0.96);
      border: 1px solid var(--border);
    }

    .hero-title { margin: 0 0 6px; font-size: 1.9rem; }
    .hero-subtitle { margin: 0; color: var(--muted); }

    .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

    .hero-tag {
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      border: 1px solid var(--border);
      color: var(--muted);
      font-size: 0.78rem;
    }

    .hero-note {
      margin-top: 14px;
      padding: 10px;
      border-radius: 12px;
      border: 1px dashed var(--border);
      color: var(--muted);
      font-size: 0.86rem;
    }

    /* MINI CARDS */
    .mini-column { display: flex; flex-direction: column; gap: 12px; }
    .mini-card {
      padding: 13px;
      border-radius: 18px;
      background: rgba(15,23,42,0.98);
      border: 1px solid var(--border);
      color: var(--muted);
      box-shadow: 0 12px 26px rgba(0,0,0,0.85);
    }
    .mini-card h3 { margin: 0 0 4px; color: var(--text); }

    /* SCORES SECTION */
    .scores-section {
      margin-top: 28px;
      padding: 20px;
      border-radius: 22px;
      background: radial-gradient(circle at top left, rgba(15,23,42,0.98), #020617);
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }
    .scores-section::before {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 10% 0, rgba(56,189,248,0.25), transparent 55%),
        radial-gradient(circle at 80% 0, rgba(96,165,250,0.22), transparent 55%);
      opacity: 0.5;
      mix-blend-mode: screen;
    }

    .scores-inner { position: relative; z-index: 5; }
    .scores-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
      margin-top: 10px;
    }

    /* TICKET CARD */
    .ticket {
      padding: 16px;
      border-radius: 18px;
      background: radial-gradient(circle at 0 0, var(--highlight), transparent 55%), rgba(15,23,42,0.96);
      border: 1px solid var(--border);
      box-shadow: 0 14px 30px rgba(0,0,0,0.95);
      transition: 0.18s ease-out;
      transform-style: preserve-3d;
    }

    /* The tilt effect gets applied here */
    .ticket.tilt {
      transform: perspective(700px) rotateX(3deg) translateY(-4px);
      box-shadow: 0 22px 50px rgba(0,0,0,1);
      border-color: rgba(148,163,184,0.8);
    }

    .ticket-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .team-badge {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      background: #f9fafb;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      overflow: hidden;
      box-shadow: 0 12px 28px rgba(0,0,0,0.85);
    }

    .team-badge img {
      width: 85%;
      height: 85%;
      object-fit: contain;
    }

    .ticket-team-name { font-size: 1rem; font-weight: 600; }
    .ticket-league { font-size: 0.8rem; color: var(--muted); }

    /* LIVE VIEW BUTTON */
    .ticket-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(248,250,252,0.9);
      background: radial-gradient(circle at 0 0, rgba(59,130,246,0.35), transparent 55%), rgba(15,23,42,0.96);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      cursor: pointer;
      transition: 0.15s;
      white-space: nowrap;
    }

    .ticket-btn:hover {
      border-color: #38bdf8;
      color: #e0f2fe;
      transform: translateY(-2px);
    }

    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 10px rgba(34,197,94,0.9);
      animation: livePulse 1.3s ease-out infinite;
    }

    .live-label { font-size: 0.78rem; }

    @keyframes livePulse {
      0%   { transform: scale(1); opacity: 1; }
      60%  { transform: scale(1.6); opacity: 0.2; }
      100% { transform: scale(1); opacity: 1; }
    }

    footer {
      margin-top: 30px;
      text-align: center;
      font-size: 0.8rem;
      color: var(--muted);
    }

    @media (max-width: 768px) {
      header { flex-direction: column; align-items: flex-start; }
      .hero { grid-template-columns: 1fr; }
      nav { flex-wrap: wrap; }
    }