/* ========================================
   SUMPAN CUP 2026 - Main Stylesheet
   Theme: Dark purple/navy + Gold accent
   Created by POISE (poise.se)
   ======================================== */

:root {
    --primary: #120e2b;
    --primary-light: #1e1745;
    --primary-lighter: #2a2060;
    --accent: #F5A623;
    --accent-hover: #e09510;
    --accent-glow: rgba(245, 166, 35, 0.3);
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --text: #f0edf7;
    --text-muted: #a09bb5;
    --text-dark: #1a1a1a;
    --bg-card: rgba(30, 23, 69, 0.8);
    --bg-card-solid: #1e1745;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --nav-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(46, 204, 113, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(18, 14, 43, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-brand:hover { color: var(--accent); }

.nav-logo {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

.nav-admin {
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(180deg, var(--primary) 0%, transparent 30%, transparent 70%, var(--primary) 100%),
        radial-gradient(circle at 50% 40%, rgba(245, 166, 35, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 24px;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
    50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(245, 166, 35, 0.1); }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.hero-info-item i { color: var(--accent); font-size: 1.2rem; }

/* Countdown */
.countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 90px;
    text-align: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header h2 span { color: var(--accent); }

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page hero (inner pages) */
.page-hero {
    padding: calc(var(--nav-height) + 50px) 20px 50px;
    text-align: center;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.08) 0%, transparent 100%);
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ========================================
   SPONSOR BAR
   ======================================== */
.sponsor-bar {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(245, 166, 35, 0.03);
}

.sponsor-bar p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sponsor-logo {
    height: 40px;
    opacity: 0.9;
    transition: opacity 0.2s;
    filter: invert(1) brightness(2);
}

.sponsor-logo:hover { opacity: 1; }

/* ========================================
   TEAMS GRID (Homepage)
   ======================================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
}

.team-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--border);
    background: var(--primary-lighter);
}

.team-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 2px solid var(--border);
}

.team-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   MATCH LIST
   ======================================== */
.match-list { max-width: 800px; margin: 0 auto; }

.match-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.match-item:hover { border-color: rgba(245, 166, 35, 0.3); }

.match-item.live {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.2); }
    50% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.4); }
}

.match-home {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.match-away {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-team-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-center {
    text-align: center;
    min-width: 100px;
}

.match-time {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-score {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.match-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.status-live { color: var(--danger); font-weight: 700; }
.status-finished { color: var(--text-muted); }
.status-upcoming { color: var(--info); }

.match-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent);
    color: var(--text-dark);
    margin-top: 4px;
}

.match-logo-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary-lighter);
    flex-shrink: 0;
}

.match-logo-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* ========================================
   TABLE / STANDINGS
   ======================================== */
.standings-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.standings-table thead {
    background: var(--primary-lighter);
}

.standings-table th {
    padding: 14px 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

.standings-table th:first-child,
.standings-table td:first-child { text-align: left; padding-left: 20px; }

.standings-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.standings-table tr:last-child td { border-bottom: none; }

.standings-table tr:hover { background: rgba(245, 166, 35, 0.05); }

.standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-pos {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
}

.standings-points {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

/* ========================================
   LIVE FEED
   ======================================== */
.live-feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.feed-item {
    padding: 16px 20px;
    border-left: 3px solid var(--border);
    margin-bottom: 8px;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: border-color 0.2s;
}

.feed-item.feed-goal { border-left-color: var(--success); }
.feed-item.feed-card { border-left-color: var(--warning); }
.feed-item.feed-highlight { border-left-color: var(--accent); }
.feed-item.feed-info { border-left-color: var(--info); }

.feed-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.feed-type-icon { margin-right: 8px; }

/* ========================================
   KNOCKOUT BRACKET
   ======================================== */
.bracket-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.bracket-match {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bracket-match h3 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
}

.bracket-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.bracket-team.winner { border-color: var(--accent); background: rgba(245, 166, 35, 0.1); }

.bracket-team-name { font-family: var(--font-display); font-weight: 600; }
.bracket-team-score { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.bracket-vs { text-align: center; font-size: 0.8rem; color: var(--text-muted); padding: 2px 0; }

/* ========================================
   SKYTTELIGA (Top Scorers)
   ======================================== */
.scorers-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.scorers-table th {
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--primary-lighter);
    text-align: left;
    border-bottom: 2px solid var(--accent);
}

.scorers-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.scorers-table tr:hover { background: rgba(245, 166, 35, 0.05); }

.scorer-rank {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    width: 40px;
}

.scorer-goals {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

/* ========================================
   RULES PAGE
   ======================================== */
.rules-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.rules-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
}

.rules-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
    color: var(--accent);
}

.rules-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.rules-content ol {
    margin: 12px 0 12px 24px;
}

.rules-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 4px;
}

.rules-highlight {
    background: rgba(245, 166, 35, 0.1);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 16px 0;
}

/* ========================================
   GALLERY PAGE
   ======================================== */
.gallery-placeholder {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-placeholder i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ========================================
   TEAMS PAGE
   ======================================== */
.team-detail {
    max-width: 800px;
    margin: 0 auto;
}

.team-header-card {
    text-align: center;
    padding: 40px;
    margin-bottom: 30px;
}

.team-players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.player-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 36px;
    text-align: center;
}

.player-info { flex: 1; }
.player-name { font-weight: 600; }
.player-pos { font-size: 0.8rem; color: var(--text-muted); }

/* ========================================
   MATCH DETAIL / PROTOCOL
   ======================================== */
.match-detail {
    max-width: 800px;
    margin: 0 auto;
}

.match-detail-header {
    text-align: center;
    padding: 40px;
    margin-bottom: 30px;
}

.match-detail-score {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 16px 0;
}

.match-detail-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
}

.event-list { max-width: 600px; margin: 0 auto; }

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.event-minute {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    min-width: 36px;
}

.event-icon {
    width: 24px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: rgba(10, 8, 24, 0.9);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul { list-style: none; }
.footer-col ul a { color: var(--text-muted); }
.footer-col ul a:hover { color: var(--accent); }

.sponsor-logo-footer {
    height: 35px;
    margin-bottom: 12px;
    filter: invert(1) brightness(2);
}

.sponsor-text { font-size: 0.85rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   ADMIN STYLES
   ======================================== */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 30px) 20px 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a09bb5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control { min-height: 100px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success { background: rgba(46, 204, 113, 0.15); border: 1px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(231, 76, 60, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.alert-info { background: rgba(52, 152, 219, 0.15); border: 1px solid var(--info); color: var(--info); }

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 80px) 20px 60px;
}

.login-card { padding: 40px; text-align: center; }
.login-card h1 { margin-bottom: 30px; font-size: 1.6rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th {
    padding: 12px 14px;
    background: var(--primary-lighter);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table tr:hover { background: rgba(245, 166, 35, 0.05); }

.admin-actions {
    display: flex;
    gap: 6px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .main-nav, .site-footer, .btn, .nav-admin { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .match-item { border: 1px solid #ccc; background: #fff; }
    .standings-table, .scorers-table { border: 1px solid #000; }
    .standings-table th, .scorers-table th { background: #eee; color: #000; }
    .match-score, .standings-points, .scorer-goals { color: #000; }
    main { padding-top: 0; }
    .print-header { display: block !important; text-align: center; margin-bottom: 20px; }
}

.print-header { display: none; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Fix 6: All images responsive */
img {
    max-width: 100%;
    height: auto;
}

.content-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Fix 4: Sticky match header on live page */
.live-score-sticky {
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    background: rgba(18, 14, 43, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    margin: -24px -24px 20px -24px;
    padding: 16px 24px;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Fix 4: Larger live feed text for mobile */
.feed-item {
    padding: 16px 20px;
    border-left: 3px solid var(--border);
    margin-bottom: 8px;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: border-color 0.2s;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Fix 5: Scrollable tables on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(18, 14, 43, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.open { display: flex; }
    
    /* Fix 5: Bigger touch targets for nav */
    .nav-links a { padding: 14px 16px; font-size: 1rem; }
    
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 2.2rem; }
    
    .match-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
        padding: 14px;
    }
    
    .match-home, .match-away { justify-content: center; }
    
    .hero-info { flex-direction: column; align-items: center; gap: 12px; }
    .countdown { gap: 8px; }
    .countdown-item { min-width: 70px; padding: 12px; }
    .countdown-number { font-size: 1.8rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer-bottom { flex-direction: column; text-align: center; }
    
    /* Fix 5: Responsive tables */
    .standings-table, .scorers-table, .admin-table {
        font-size: 0.85rem;
    }
    
    .standings-table th, .standings-table td,
    .scorers-table th, .scorers-table td,
    .admin-table th, .admin-table td {
        padding: 8px 6px;
    }
    
    /* Fix 4: Live feed mobile optimization */
    .feed-item {
        padding: 14px 16px;
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .feed-type-icon {
        font-size: 1.2rem;
    }
    
    .feed-meta {
        font-size: 0.8rem;
    }
    
    /* Fix 5: Bigger buttons for touch */
    .btn {
        padding: 14px 24px;
        min-height: 44px;
    }
    
    .btn-sm {
        padding: 10px 16px;
        min-height: 40px;
    }
    
    /* Fix 4: Match score larger on mobile live */
    .match-detail-score {
        font-size: 3.5rem;
    }
    
    .live-score-sticky {
        margin: -14px -14px 16px -14px;
        padding: 12px 14px;
    }
    
    /* Fix 6: Contained images */
    .text-center img,
    .section img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix 5: Team players grid */
    .team-players-list {
        grid-template-columns: 1fr;
    }
    
    /* Fix 5: Page hero smaller on mobile */
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero { padding: calc(var(--nav-height) + 30px) 16px 30px; }
    .section { padding: 50px 16px; }
    
    /* Fix 5: Admin actions responsive */
    .admin-actions { flex-wrap: wrap; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
    .admin-nav a { white-space: nowrap; }
    
    /* Fix 5: Card padding on mobile */
    .card { padding: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .match-team-name { font-size: 0.85rem; }
    .match-score { font-size: 1.3rem; }
    .section { padding: 40px 12px; }
    
    /* Fix 4: Even larger feed text on small screens */
    .feed-item { font-size: 1.05rem; padding: 12px 14px; }
    
    /* Fix 5: Rules content readable */
    .rules-content { padding: 0 4px; }
    .rules-content ol { margin-left: 16px; }
    
    /* Fix 5: Bracket on mobile */
    .bracket-match { padding: 14px; }
    .bracket-team-name { font-size: 0.9rem; }
}

/* ========================================
   UTILITY
   ======================================== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-data i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-live { background: var(--danger); color: #fff; }
.badge-finished { background: var(--text-muted); color: var(--primary); }
.badge-upcoming { background: var(--info); color: #fff; }
