/* Reset & Base */
:root{
    --bg:#f4f4f9;
    --card:#ffffff;
    --muted:#6b7280;
    --primary:#0d253f;
    --accent:#ff5a5f;
    --glass: rgba(13,37,63,0.06);
    --header-height:68px; /* compact header height with cropped logo */
}
*{box-sizing:border-box}
html,body{height:100%}
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: #111827;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.5;
    font-size:16px; /* restored to previous size */
    padding-top: var(--header-height); /* ensure content sits below fixed header */
}

a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.header{background:rgba(255,255,255,0.98);padding:0 20px;position:fixed;top:0;left:0;right:0;height:var(--header-height);z-index:999;backdrop-filter:blur(4px);box-shadow:0 2px 8px rgba(12,20,30,0.06)}
.header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:16px;justify-content:space-between;height:100%}
.brand{display:flex;align-items:center;gap:10px}
.logo-img{width:48px;height:48px;object-fit:contain;object-position:center;margin:0;padding:0;display:block}
.logo{font-weight:700;font-size:20px;color:var(--primary);line-height:1;margin:0;padding:0}

.search-wrap{flex:1;max-width:520px;margin-left:6px}
.search-wrap input[type=search]{width:100%;padding:12px 14px;border-radius:10px;border:1px solid #e6e9ee;background:white;font-size:16px}

.nav{display:flex;align-items:center;gap:12px}
.nav-toggle{display:none;background:none;border:0;font-size:20px;cursor:pointer}
.nav-links{list-style:none;margin:0;padding:0;display:flex;gap:24px;align-items:center}
.nav-links li a{color:var(--primary);font-weight:600;font-size:16px}
.nav-links.open{display:block}

/* Ticker */
.ticker{background:linear-gradient(90deg,var(--primary),#123a5b);color:white;padding:6px 0;margin-top:0} /* tightened ticker */
.ticker-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:0 12px} /* reduced horizontal padding */
.ticker .tag{background:#ff3b30;color:white;padding:4px 8px;border-radius:4px;font-weight:700;font-size:12px}
.ticker-items{display:flex;gap:24px;overflow:hidden;white-space:nowrap}
.ticker-items div{opacity:0.95}

/* Sections */
.section{max-width:1100px;margin:20px auto;padding:18px;background:transparent}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-header h2{margin:0;font-size:20px;color:var(--primary)}
.more-link{font-size:14px;color:var(--muted)}

/* Hero */
.hero{background:linear-gradient(180deg, rgba(13,37,63,0.04), transparent);padding:64px 20px;border-radius:12px;margin:20px auto;max-width:1100px}
.hero-content{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.hero-content h1{font-size:34px;margin:0;color:var(--primary);line-height:1.05} /* restored */
.hero-content p{margin:0;color:var(--muted);max-width:720px;font-size:16px} /* restored */
.hero-ctas{display:flex;gap:12px;margin-top:8px}
.hero-ctas .btn{padding:10px 16px}

/* Buttons */
.btn{display:inline-block;padding:8px 14px;border-radius:8px;border:1px solid var(--primary);background:white;color:var(--primary);font-weight:700}
.btn-primary{background:var(--primary);color:white;border-color:transparent}

/* Grid utilities */
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:1.6fr 1fr 1fr}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.grid-3{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid-4{grid-template-columns:1fr}.search-wrap{display:none}.nav-toggle{display:block}}

/* Cards */
.card{background:var(--card);padding:14px;border-radius:10px;box-shadow:0 6px 18px rgba(15,23,42,0.06);border:1px solid rgba(15,23,42,0.04)}
.card.large{display:flex;flex-direction:column;justify-content:flex-end;min-height:220px;overflow:hidden} /* restored */
.card .card-media{height:140px;background-size:cover;background-position:center;border-radius:8px 8px 0 0} /* restored */
.card-body{padding-top:10px}
.card h3{margin:6px 0 8px 0;font-size:20px}
.card p{margin:0;color:var(--muted)}
.read-more{display:inline-block;margin-top:10px;color:var(--accent);font-weight:700}

/* Transfer tracker */
.transfer-list{display:flex;flex-direction:column;gap:10px}
.transfer-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px;border-radius:10px;background:linear-gradient(90deg,#fff,#fbfdff);border:1px solid #eef3f7}
.transfer-item .player{font-weight:700}
.transfer-item .move{color:var(--muted);flex:1}
.transfer-item .fee{font-weight:700}

/* Match center */
.match-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.match-card{padding:14px;border-radius:10px;background:linear-gradient(90deg,#fff,#fbfdff);display:flex;justify-content:space-between;align-items:center}
.match-card .teams{font-weight:700}
.match-card .score{font-size:18px;color:var(--accent);font-weight:800}
.match-card .time{color:var(--muted)}
@media (max-width:800px){.match-grid{grid-template-columns:1fr}}

/* Profiles */
.profiles{display:grid;gap:12px}
.player-profile .profile-img, .team-profile .profile-img{width:64px;height:64px;object-fit:contain;border-radius:8px;margin-bottom:8px} /* restored */
.player-profile h3, .team-profile h3{margin:6px 0;font-size:18px}

/* Store */
.store-items{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:900px){.store-items{grid-template-columns:1fr}}

/* Newsletter */
.newsletter-inner{background:linear-gradient(90deg,rgba(13,37,63,0.06),transparent);padding:22px;border-radius:12px;text-align:left}
.newsletter-form{display:flex;gap:8px;margin-top:10px}
.newsletter-form input[type=email]{flex:1;padding:12px;border-radius:10px;border:1px solid #e6e9ee;font-size:16px}

/* Footer */
.footer{background:var(--primary);color:white;padding:28px 20px;margin-top:28px}
.footer-inner{max-width:1300px;margin:0 auto;display:flex;gap:20px;justify-content:space-between;align-items:flex-start}
.footer-col h4{margin:0 0 8px 0}
.footer-col p, .footer-col ul{color:rgba(255,255,255,0.85);margin:0}
.footer-col ul{list-style:none;padding:0}
.footer-col ul li{margin:6px 0}
.socials a{display:inline-block;margin-right:8px;color:white}
.copyright{text-align:center;margin-top:12px;opacity:0.9}

/* Small helpers */
.text-muted{color:var(--muted)}

/* Ensure images inside cards fit */
.card img{max-width:100%;display:block}