:root{
      --bg:#0f1724;
      --card:#0b1220;
      --muted:#9aa4b2;
      --accent:#4f46e5;
      --live:#e53935;
      --card-border: rgba(255,255,255,0.03);
      --glass: linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:Inter,Segoe UI,Roboto,Arial,system-ui;
      background:#000000;
      color:#e6eef6;
      min-height:100vh;
      padding:0;
    }

    .container{max-width:1300px;margin:0 auto;padding:0 16px;box-sizing:border-box}
    @media (max-width:560px){
      .container{padding:0 12px;}
    }
    header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
    /* ensure main content centers on small screens */
    main#main{width:100%;max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box}
    h1{font-size:20px;margin:0}
    .controls{display:flex;gap:8px}
    input[type="search"]{padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,0.05);background:rgba(255,255,255,0.02);color:inherit}

    .date-nav{display:flex;gap:10px;margin:12px 0 18px;padding:10px;background:#2b2945;border-radius:12px;align-items:center}
    .date-item{min-width:120px;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border:none;border-radius:10px;color:#cfd6e3;text-decoration:none;font-weight:800;letter-spacing:.3px;background:#3a355a;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background .12s ease,color .12s ease}
    .date-item:hover{background:#4a456b;color:#fff;transform:translateY(-1px)}
    .date-item.active{background:#ff6a00;color:#fff;box-shadow:0 10px 24px rgba(255,106,0,0.26)}

    /* grid */
    .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;align-items:stretch;grid-auto-rows:minmax(190px,auto)}

    /* base card */
    .card{
      background:var(--glass);
      border:1px solid var(--card-border);
      padding:12px;
      border-radius:10px;
      display:flex;
      flex-direction:column;
      gap:10px;
      transition:transform .12s ease,box-shadow .12s ease;
    }
    #list.grid > .card{width:100%;height:100%}
    .match-card{padding:12px 14px;height:100%}
    .card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(2,6,23,0.6)}

    /* legacy team helpers (kept for other parts) */
    .row{display:flex;align-items:center;gap:12px}
    .team{display:flex;align-items:center;gap:10px;flex:1}
    .team img{width:48px;height:48px;object-fit:cover;border-radius:6px;background:#0b1220;padding:4px}
    .team .title{font-weight:600}
    .meta{font-size:13px;color:var(--muted)}
    .league{font-size:13px;color:var(--muted);margin-bottom:6px}
    .actions{display:flex;gap:8px}
    .btn{padding:8px 10px;border-radius:8px;border:none;background:var(--accent);color:white;cursor:pointer;font-weight:600}
    .btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06)}
    .small{padding:6px 8px;font-size:13px}
    footer{margin-top:18px;color:var(--muted);font-size:13px}
    .no-data{padding:20px;text-align:center;color:var(--muted);background:rgba(255,255,255,0.01);border-radius:8px}


    /* responsiveness */
    @media (max-width:920px){
      .grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
      .team-name{max-width:28%}
      .logo.small{width:48px;height:48px}
    }
    @media (max-width:560px){
      /* mobile: single column for cards; compact spacing */
      .grid{grid-template-columns:1fr;width:100%}
      .card{width:100%;box-sizing:border-box;padding:8px}
      .match-card{padding:8px}
      .match-row{flex-direction:column;align-items:flex-start;gap:6px}
      .match-row-1{width:100%;display:flex;justify-content:space-between;align-items:center;gap:6px}
      .match-row-2{width:100%;display:flex;justify-content:space-between;align-items:center;gap:6px}
      .match-title{font-size:14px}
      .team-name{max-width:100%;font-size:12px}
      .logo.small{width:48px;height:48px}
      .match-card img{width:48px;height:48px}
      /* ensure player and main center and fit */
      main#main{padding:0;align-items:center}
      #player{margin:12px auto;width:100%;max-width:920px;box-sizing:border-box}

      /* date navigation: grid with 3 columns per row on mobile */
      .date-nav{
        display:grid;
        grid-template-columns:repeat(3, 1fr);
        gap:6px;
        align-items:stretch;
        width: 100%;
      }
      .date-item{
        min-width:0;
        box-sizing:border-box;
        width:100%;
        padding:6px 8px;
        font-size:12px;
        border-radius:10px;
        justify-content:center;
      }
    }
    @media (max-width:420px){
      .team img{width:40px;height:40px}
      .logo.small{width:40px;height:40px}
      .match-title{font-size:14px}
      .date-nav{flex-wrap:wrap;}
    }
    .hero-banner{background:#ff7a00;border-radius:12px;padding:14px;display:flex;align-items:center;gap:12px}
    .hero-title{margin:0;font-size:22px;font-weight:800;color:#fff;text-transform:uppercase}
    @media (max-width:992px){
      .hero-title{font-size:20px}
    }
    @media (max-width:768px){
      .hero-banner{padding:10px}
      .hero-title{font-size:16px}
    }
