/* Philly Arsenals - Navy/Gold theme */
:root{
  --navy:#061a2b;
  --gold:#c9a227;
  --white:#ffffff;
  --muted:#9fb0c0;
  --card:#0b2338;
  --bg:#041321;
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width:100%; height:auto; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, #0b2c49 0%, var(--bg) 55%) fixed;
  color:var(--white);
}

a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:0 18px}

.topbar{
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index: 20;
  backdrop-filter: blur(10px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap: 18px;
}

.brand img{
  width: 96px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.55));
}

.brand .title{ line-height:1.05; }
.brand .title strong{display:block; font-size:20px; letter-spacing:.5px}
.brand .title span{font-size:13px; color:var(--muted)}

.menu{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu a{
  padding:9px 10px;
  border-radius:10px;
  color:rgba(255,255,255,.9);
  font-size:14px;
  white-space: nowrap;
  border:1px solid transparent;
}
.menu a:hover{background: rgba(255,255,255,.06)}
.menu a.active{background: rgba(201,162,39,.16); border:1px solid rgba(201,162,39,.25)}

/* Hamburger button */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}
.nav-toggle:active{ transform: translateY(1px); }

.nav-toggle .bars{
  width:18px;
  height:14px;
  position:relative;
}
.nav-toggle .bars span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: rgba(255,255,255,.9);
  border-radius:2px;
}
.nav-toggle .bars span:nth-child(1){ top:0; }
.nav-toggle .bars span:nth-child(2){ top:6px; }
.nav-toggle .bars span:nth-child(3){ top:12px; }

/* Mobile menu */
@media (max-width: 820px){
  .brand img{ width: 74px; }
  .brand .title strong{ font-size: 17px; }
  .brand .title span{ font-size: 12px; }

  .nav-toggle{ display:inline-flex; }

  .menu{
    width:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px 0 2px;
    justify-content:flex-start;
  }
  .menu.open{ display:flex; }

  .menu a{
    width:100%;
    padding:12px 12px;
    background: rgba(255,255,255,.04);
    border:1px solid var(--border);
  }
  .menu a.active{
    background: rgba(201,162,39,.14);
    border:1px solid rgba(201,162,39,.25);
  }
}

.hero{ padding:52px 0 20px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width:900px){
  .hero{ padding: 28px 0 10px; }
  .hero-grid{grid-template-columns:1fr}
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  border: 1px solid rgba(201,162,39,.25);
  background: rgba(201,162,39,.10);
  padding:8px 12px;
  border-radius:999px;
  color:rgba(255,255,255,.92);
  font-size:12px;
}
.kicker .dot{width:8px; height:8px; border-radius:50%; background:var(--gold)}
.h1{
  margin:14px 0 12px;
  font-size:38px;
  line-height:1.07;
  letter-spacing:-.6px;
}
.p{
  color:rgba(255,255,255,.85);
  line-height:1.55;
  font-size:15px;
}
@media (max-width: 720px){
  .h1{ font-size: 28px; }
}
@media (max-width: 420px){
  .h1{ font-size: 24px; }
}

.btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:rgba(255,255,255,.95);
  font-weight:600;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(201,162,39,.95), rgba(201,162,39,.65));
  color:#1b1300;
  border: none;
}
.btn:hover{transform: translateY(-1px)}
@media (max-width: 720px){
  .btn{ width: 100%; }
}

.card{
  background: rgba(11,35,56,.70);
  border: 1px solid var(--border);
  border-radius:16px;
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.col-4{grid-column: span 4}
.col-6{grid-column: span 6}
.col-12{grid-column: span 12}
@media (max-width:900px){
  .col-4,.col-6{grid-column: span 12}
  .grid{ gap:12px; }
  .card{ padding:14px; }
}

.card h3{margin:0 0 8px}
.meta{color:var(--muted); font-size:12px; margin-top:6px}
.hr{height:1px; background:var(--border); margin:14px 0}
.section{padding:18px 0 44px}
.section h2{margin:0 0 12px; font-size:22px}

.footer{
  border-top: 1px solid var(--border);
  padding:18px 0 28px;
  color:rgba(255,255,255,.75);
}
.small{font-size:12px; color:rgba(255,255,255,.7)}

.badge{
  display:inline-flex; gap:8px; align-items:center;
  font-size:12px; color:rgba(255,255,255,.86);
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:7px 10px;
  border-radius:999px;
}

.roster{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
@media (max-width:1000px){ .roster{grid-template-columns: repeat(2, 1fr);} }
@media (max-width:560px){ .roster{grid-template-columns: 1fr;} }

.player{
  display:flex; gap:12px; align-items:center;
}
.player img{
  width:64px; height:64px; border-radius:14px;
  border:1px solid var(--border);
  object-fit:cover;
}

.player .avatar{
  width:64px; height:64px; border-radius:14px;
  border:1px dashed var(--border);
  background: rgba(255,255,255,.04);
}
.player .avatar.blank{
  /* intentionally blank placeholder */
}

.player .name{font-weight:800}
.player .pos{color:var(--muted); font-size:12px}

input, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.22);
  color:rgba(255,255,255,.92);
  outline:none;
}
textarea{min-height:140px; resize:vertical}
label{font-size:12px; color:rgba(255,255,255,.80)}
.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width:800px){ .formgrid{grid-template-columns: 1fr;} }
.notice{
  border:1px solid rgba(201,162,39,.25);
  background: rgba(201,162,39,.10);
  color: rgba(255,255,255,.88);
  padding:12px;
  border-radius:12px;
  font-size:13px;
}


/* News images */
.news-img{width:100%;height:auto;object-fit:contain;border-radius:14px;display:block;background:rgba(255,255,255,0.03)}


/* Footer layout + social chips */
.footer-grid{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer-links{display:flex;gap:10px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#fff;text-decoration:none;font-weight:700}
.chip:hover{background:rgba(255,255,255,.10)}
@media (max-width:720px){.footer-social{width:100%}}


/* Roster */
.roster-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0 16px}
.roster-filter{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.18);cursor:pointer;font-size:13px}
.chip.active{border-color:rgba(201,162,39,.7);box-shadow:0 0 0 3px rgba(201,162,39,.15) inset}
.roster-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.roster-table th{font-size:12px;color:rgba(255,255,255,.7);text-align:left;padding:0 10px}
.roster-row{background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.12)}
.roster-row td{padding:12px 10px;vertical-align:middle}
.roster-photo{width:64px;height:64px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center}
.roster-photo img{width:100%;height:100%;object-fit:cover}
.roster-placeholder{font-size:11px;color:rgba(255,255,255,.55);text-align:center;line-height:1.2;padding:6px}
.stat{display:inline-block;min-width:54px}
@media (max-width: 720px){
  .news-img{width:100%;height:auto;object-fit:contain;border-radius:14px;display:block;background:rgba(255,255,255,0.03)}
  .roster-table thead{display:none}
  .roster-row{display:block}
  .roster-row td{display:flex;justify-content:space-between;gap:12px}
  .roster-row td:first-child{justify-content:flex-start}
  .roster-row td[data-label]::before{content:attr(data-label);color:rgba(255,255,255,.7);font-size:12px}
}


/* Arsenal-style news cards (lightweight, static) */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.section.alt{background: rgba(255,255,255,0.02)}
.link{color: var(--gold, #caa227); text-decoration:none; font-weight:600}
.link:hover{text-decoration:underline}

.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.news-card{display:block;border-radius:18px;overflow:hidden;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);text-decoration:none;color:inherit}
.news-card:hover{transform:translateY(-2px);transition:transform .15s ease}
.news-card.featured{grid-column:span 2}
.news-media{background:rgba(0,0,0,0.25)}
.news-media img{display:block;width:100%;height:260px;object-fit:contain;background:rgba(0,0,0,0.25)}
.news-media.placeholder{height:260px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.35)}
.news-media .ph{font-weight:800;letter-spacing:2px;opacity:.6}
.news-body{padding:14px}
.news-tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#0b1b3a;background:linear-gradient(90deg,#caa227,#f0d46a);padding:6px 10px;border-radius:999px}
.news-body h3{margin:10px 0 6px;font-size:18px;line-height:1.25}
.news-body p{margin:0;color:rgba(255,255,255,0.80);font-size:14px;line-height:1.45}

/* Video section */
.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.video-card{border-radius:18px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);padding:14px}
.video-title{font-weight:800;margin-bottom:10px}
.video-embed{position:relative;width:100%;padding-top:56.25%;border-radius:14px;overflow:hidden;background:rgba(0,0,0,0.25)}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Follow Us */
.follow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.follow-card{display:flex;align-items:center;gap:12px;border-radius:18px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);padding:14px;text-decoration:none;color:inherit}
.follow-card:hover{transform:translateY(-2px);transition:transform .15s ease}
.follow-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:900;background:rgba(202,162,39,0.15);border:1px solid rgba(202,162,39,0.45);color:#f0d46a}
.follow-label{font-weight:900}
.follow-cta{margin-left:auto;color:#f0d46a;font-weight:800}

/* Players grid like a club roster page */
.players-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.player-card{border-radius:18px;overflow:hidden;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06)}
.player-photo{position:relative;background:rgba(0,0,0,0.35)}
.player-photo img{display:block;width:100%;height:260px;object-fit:cover}
.player-ph{height:260px;display:flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:2px;opacity:.55}
.player-info{padding:12px}
.player-name{font-weight:900;font-size:16px}
.player-pos{color:rgba(255,255,255,0.78);font-size:13px;margin-top:2px}
.player-stats{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.player-stats div{background:rgba(0,0,0,0.22);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:8px;text-align:center}
.player-stats span{display:block;font-size:11px;color:rgba(255,255,255,0.7)}
.player-stats strong{display:block;font-size:16px;margin-top:2px}

/* Filters */
.filter-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 16px}
.btn-filter.active{background:linear-gradient(90deg,#caa227,#f0d46a);color:#0b1b3a;border-color:transparent}

/* Responsive */
@media (max-width: 980px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-card.featured{grid-column:span 2}
  .players-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 720px){
  .news-card.featured{grid-column:span 1}
  .news-grid{grid-template-columns:1fr}
  .news-media img,.news-media.placeholder{height:220px}
  .video-grid{grid-template-columns:1fr}
  .follow-grid{grid-template-columns:1fr}
  .players-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .player-photo img,.player-ph{height:220px}
}
@media (max-width: 420px){
  .players-grid{grid-template-columns:1fr}
}


/* ===== Teams page (tabs + player cards + honors) ===== */
.page-hero{
  padding: 42px 0 22px;
  background: linear-gradient(180deg, rgba(201,162,39,.12), rgba(4,19,33,0));
  border-bottom: 1px solid var(--border);
}
.tabs{
  margin-top: 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tab{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor:pointer;
}
.tab.active{
  border-color: rgba(201,162,39,.65);
  box-shadow: 0 0 0 2px rgba(201,162,39,.15) inset;
}
.tabpane{ display:none; }
.tabpane.active{ display:block; }

.players-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 1100px){
  .players-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px){
  .players-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .players-grid{ grid-template-columns: 1fr; }
}

.player-card{
  display:block;
  text-decoration:none;
  color: var(--white);
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, border-color .15s ease;
}
.player-card:hover{
  transform: translateY(-2px);
  border-color: rgba(201,162,39,.45);
}
.player-photo{
  position:relative;
  aspect-ratio: 4 / 5;
  background: rgba(0,0,0,.2);
}
.player-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.player-photo .placeholder{
  width:100%;
  height:100%;
}
.player-meta{
  padding: 12px 12px 14px;
}
.player-name{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 15px;
}
.player-pos{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.player-stats{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.player-stats .k{
  display:block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.player-stats .v{
  display:block;
  font-size: 13px;
  font-weight: 900;
}

.match-list{ display:flex; flex-direction:column; gap:10px; }
.match-row{
  display:grid;
  grid-template-columns: 120px 1fr 120px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px){
  .match-row{ grid-template-columns: 1fr 1fr; }
}
.match-date,.match-score{ font-weight:900; }
.match-opponent,.match-loc{ color: var(--muted); font-weight:700; }

.statcard{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.04);
}
.statcard .big{
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .6px;
}

.honors-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 900px){
  .honors-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .honors-grid{ grid-template-columns: 1fr; }
}
.honor-card{
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
}
.honor-photo{
  aspect-ratio: 16/9;
  background: rgba(0,0,0,.2);
}
.honor-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.honor-photo.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-weight:800;
  letter-spacing:.6px;
}
.honor-title{
  padding: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}
.footer-links{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  display:inline-block;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--white);
  text-decoration:none;
  font-weight:800;
  font-size: 12px;
}
