/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0d1117;
    --bg-darker: #060a10;
    --bg-card: #161b22;
    --bg-alt: #11161d;
    --primary-blue: #1e88e5;
    --primary-blue-dark: #1565c0;
    --light-blue: #64b5f6;
    --white: #ffffff;
    --text-muted: #b0bac5;
    --border: #21262d;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

* { min-width: 0; }  /* spriječi grid/flex djecu da rastu beskonačno na uskim ekranima */

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

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 10, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-blue);
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid var(--white);
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    /* nema više bijele pozadine — grb ima prozirnu pozadinu sada */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.3s;
    filter: drop-shadow(0 2px 6px rgba(30, 136, 229, 0.4));
}

.nav-logo:hover .logo-img {
    transform: rotate(-8deg) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(30, 136, 229, 0.7));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--light-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-fb {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1877f2;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-fb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.5);
}

.nav-fb::after { display: none !important; }

.social-fb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 16px;
    transition: background 0.2s, transform 0.2s;
}

.social-fb:hover {
    background: #1565d8;
    transform: translateY(-2px);
}

.social-fb.large {
    font-size: 1.05rem;
    padding: 14px 24px;
}

.contact-social {
    text-align: center;
    margin-bottom: 30px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(13, 17, 23, 0.7) 0%, rgba(21, 101, 192, 0.5) 100%),
        repeating-linear-gradient(45deg, #1a2230 0px, #1a2230 40px, #131922 40px, #131922 80px);
    overflow: hidden;
}

/* Kad admin uploada fotku — postaje hero pozadina, s tamnim overlay-om za čitljivost */
.hero.hero-with-image {
    background: var(--bg-darker);  /* fallback prije nego se slika učita */
    overflow: hidden;
    position: relative;
}

/* Blurred pozadinski sloj — popunjava prazno područje slike "razlivenim" tonom */
.hero-bg-blur {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(70px) brightness(0.8) saturate(1.5);
    transform: scale(1.25);  /* maskira blur rubove */
    z-index: 0;
    display: none;  /* default: sakrij na desktopu (cover popunjava sve) */
}

/* Sharp sloj — prava slika s odabranim sizing-om */
.hero-bg-sharp {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero.hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 17, 23, 0.4) 0%, rgba(13, 17, 23, 0.85) 100%),
        radial-gradient(circle at 50% 50%, rgba(21, 101, 192, 0.2), transparent 60%);
    z-index: 2;
}

.hero.hero-with-image .hero-overlay { z-index: 3; }
.hero.hero-with-image .hero-content { position: relative; z-index: 4; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(30, 136, 229, 0.3), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(100, 181, 246, 0.2), transparent 60%);
}

.hero.hero-with-image .hero-overlay {
    display: none;  /* gradijent pattern se gasi kad ima fotka */
}

.hero.hero-with-image .hero-content {
    position: relative;
    z-index: 2;  /* iznad overlay-a */
}

/* Mobilne veličine se odnose na .hero-bg-sharp (gornji sloj), blur layer iza popunjava prazno */
@media (max-width: 768px) {
    .hero-bg-blur { display: block; }  /* aktiviraj blurred pozadinu na mobitelu */

    .hero-bg-sharp.hero-mobile-cover { background-size: cover; }
    .hero-bg-sharp.hero-mobile-large { background-size: 250% auto; }
    .hero-bg-sharp.hero-mobile-medium { background-size: 180% auto; }
    .hero-bg-sharp.hero-mobile-contain { background-size: contain; }

    /* Radial mask — slika je sharpno vidljiva u sredini, postupno se "rastapa"
       prema rubovima u blurranu pozadinu. Nema više pravokutnih rubova. */
    .hero-bg-sharp.hero-mobile-large {
        -webkit-mask-image: radial-gradient(ellipse 120% 80% at center,
            black 0%, black 35%, transparent 100%);
        mask-image: radial-gradient(ellipse 120% 80% at center,
            black 0%, black 35%, transparent 100%);
    }
    .hero-bg-sharp.hero-mobile-medium {
        -webkit-mask-image: radial-gradient(ellipse 110% 65% at center,
            black 0%, black 30%, transparent 100%);
        mask-image: radial-gradient(ellipse 110% 65% at center,
            black 0%, black 30%, transparent 100%);
    }
    .hero-bg-sharp.hero-mobile-contain {
        -webkit-mask-image: radial-gradient(ellipse 100% 55% at center,
            black 0%, black 25%, transparent 100%);
        mask-image: radial-gradient(ellipse 100% 55% at center,
            black 0%, black 25%, transparent 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    animation: fadeUp 1s ease;
}

.hero-grb {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 12px 30px rgba(30, 136, 229, 0.45)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
    animation: floatGrb 5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes floatGrb {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-slogan {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(30, 136, 229, 0.5);
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== BUTTONS ====== */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Shine sweep efekt — bijeli sjaj prolazi preko gumba */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 28px rgba(30, 136, 229, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

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

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 16px auto 0;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--light-blue);
    margin: 30px 0 18px;
    text-align: left;
}

/* ====== VIJESTI ====== */
/* ====== SLJEDEĆA UTAKMICA ====== */
.next-match-section {
    padding: 40px 0 0;
}

.next-match-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(30, 136, 229, 0.25), transparent 70%),
        linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 14px;
    padding: 30px 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.next-match-label {
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.next-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.next-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.next-match-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.next-match-logo.placeholder {
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    padding: 0;
}

.next-match-team-name {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 180px;
}

.next-match-team-name.highlight {
    color: var(--light-blue);
}

.next-match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.vs-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--light-blue);
    letter-spacing: 2px;
    line-height: 1;
}

.next-match-when {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.next-match-when .when-time {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.next-match-kolo {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown */
.countdown-wrap {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.countdown-unit {
    background: var(--bg-darker);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-unit .cd-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--light-blue);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.countdown-live {
    margin-top: 14px;
    color: #ef5350;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef5350;
    border-radius: 50%;
    animation: pulseLive 1s ease-in-out infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.match-time {
    color: var(--light-blue);
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 4px;
}

.competition-cell {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 700px) {
    /* Vertikalno slaganje: tim → VS → tim, sve centrirano */
    .next-match-teams {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }
    .next-match-team {
        width: 100%;
        text-align: center;
    }
    .next-match-vs {
        padding: 8px 0;
    }
    .vs-text {
        font-size: 1.4rem;
    }
    .next-match-logo {
        width: 78px;
        height: 78px;
        display: block;
        margin: 0 auto;
    }
    .next-match-team-name {
        font-size: 1rem;
        max-width: none;
    }
    /* Countdown — sve 4 kockice u jednom redu, jednake širine */
    .countdown-wrap {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .countdown-unit {
        min-width: 0;
        flex: 1;
        padding: 8px 4px;
    }
    .countdown-unit .cd-num {
        font-size: 1.4rem;
    }
    .countdown-unit small {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
}

/* ====== ISTAKNUTA VIJEST ====== */
.featured-news-wrap {
    margin-bottom: 60px;
}

.featured-news {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 1fr;
    gap: 0;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(30, 136, 229, 0.2);
    margin-bottom: 30px;
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(30, 136, 229, 0.2); }
    50% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 136, 229, 0.35); }
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.5);
}

.featured-image {
    background:
        radial-gradient(circle at center, rgba(30, 136, 229, 0.15), transparent 70%),
        var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 500px;
}

.featured-image img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
    transition: transform 0.3s;
}

.featured-image img:hover {
    transform: scale(1.02);
}

/* Lightbox za plakat */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 12px;
}

.lightbox-close:hover {
    color: var(--light-blue);
}

.featured-body {
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-date {
    color: var(--light-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-content,
.featured-news .news-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    .featured-image {
        min-height: 350px;
        padding: 20px;
    }
    .featured-image img {
        max-height: 450px;
    }
    .featured-body {
        padding: 30px 24px;
    }
    .featured-title {
        font-size: 1.6rem;
    }
    .featured-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        letter-spacing: 1px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s,
                box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--primary-blue);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(30, 136, 229, 0.25);
}

/* Modal za čitanje cijele vijesti */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
    animation: fadeIn 0.2s ease;
}

.news-modal {
    background: var(--bg-card);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    max-width: 820px;
    width: 100%;
    margin: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-close:hover { background: var(--primary-blue); }

.news-modal-image {
    width: 100%;
    max-height: 60vh;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-image img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-modal-body {
    padding: 30px 36px 36px;
}

.news-modal-date {
    color: var(--light-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.news-modal-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.25;
}

.news-modal-content {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.news-modal-video {
    margin-top: 24px;
}

.news-modal-video video {
    max-height: 500px;
}

@media (max-width: 768px) {
    .news-modal-overlay { padding: 12px; }
    .news-modal-body { padding: 22px; }
    .news-modal-title { font-size: 1.4rem; }
}

.news-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.news-image-placeholder img {
    height: 100%;
    object-fit: contain;
    opacity: 0.75;
}

.news-image {
    height: 220px;
    overflow: hidden;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s;
}

.news-image-cover:hover img {
    transform: scale(1.05);
}

.news-image-contain {
    padding: 8px;
}

/* Video u zaglavlju kartice (umjesto slike) */
.news-image.news-image-video {
    height: 220px;
    background: #000;
    padding: 0;
}

.news-image.news-image-video .news-video {
    margin: 0;
    width: 100%;
    height: 100%;
}

.news-image.news-image-video video,
.news-image.news-image-video .video-embed {
    width: 100%;
    height: 100%;
    max-height: none;
    padding-bottom: 0;
}

.news-image.news-image-video .video-embed iframe {
    height: 100%;
}

.featured-image.featured-image-video {
    padding: 0;
    background: #000;
}

.featured-image.featured-image-video .news-video,
.featured-image.featured-image-video video,
.featured-image.featured-image-video .video-embed {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 400px;
    padding-bottom: 0;
}

.featured-image.featured-image-video .video-embed iframe {
    height: 100%;
    min-height: 400px;
}

.news-text .news-content.full { display: none; }
.news-text.expanded .news-content.collapsed { display: none; }
.news-text.expanded .news-content.full { display: block; }

.read-more-btn {
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--light-blue);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}

.read-more-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Video unutar vijesti */
.news-video {
    margin-top: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-darker);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 omjer */
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    background: #000;
}

.featured-news .news-video video {
    max-height: 500px;
}

.video-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 8px 14px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 4px;
}

.video-link:hover { background: var(--primary-blue); color: white; }

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--light-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-body h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    color: var(--white);
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== TABLICA UTAKMICA ====== */
.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.matches-table th {
    background: var(--primary-blue-dark);
    color: var(--white);
    padding: 14px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.matches-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--white);
}

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

.matches-table tr:hover {
    background: rgba(30, 136, 229, 0.08);
}

.empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-home {
    background: var(--primary-blue);
    color: white;
}

.badge-away {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid var(--border);
}

.data-source {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -30px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.matches-table td.highlight {
    color: var(--light-blue);
    font-weight: 700;
}

.matches-table tr.row-highlight {
    background: rgba(30, 136, 229, 0.15) !important;
    border-left: 4px solid var(--primary-blue);
}

.matches-table tr.row-highlight td {
    color: var(--white);
}

.standings-table th,
.standings-table td {
    text-align: center;
    padding: 10px 8px;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
    min-width: 180px;
}

.result-cell {
    color: var(--light-blue);
    font-size: 1.05rem;
}

/* ====== AVATARI & GRBOVI (mali kružići) ====== */
.player-avatar,
.club-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-darker);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.player-avatar img,
.club-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.club-badge {
    background: white;
}

.club-badge img {
    object-fit: contain;
    padding: 2px;
}

.avatar-initials {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-avatar.small,
.club-badge.small {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}

.match-team-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 6px;
    display: block;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.match-team-logo:hover {
    transform: scale(1.08) rotate(-3deg);
}

@media (max-width: 768px) {
    .player-avatar,
    .club-badge {
        width: 26px;
        height: 26px;
        margin-right: 6px;
    }
    .match-team-logo {
        width: 50px;
        height: 50px;
    }
}

/* ====== STATISTIKA ====== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-block:last-child {
        grid-column: 1 / -1;
    }
}

.stats-block-title {
    color: var(--light-blue);
    font-size: 1.3rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 12px;
}

.stat-highlight {
    color: var(--light-blue);
    font-size: 1.1rem;
}

.sortable thead th.sort-handle {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 26px;
    transition: background 0.15s;
}

.sortable thead th.sort-handle:hover {
    background: var(--primary-blue);
}

.sortable thead th.sort-handle::after {
    content: "⇅";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.85rem;
}

.sortable thead th.active.asc::after {
    content: "↑";
    opacity: 1;
    color: var(--light-blue);
}

.sortable thead th.active.desc::after {
    content: "↓";
    opacity: 1;
    color: var(--light-blue);
}

.match-clickable {
    cursor: pointer;
}

.match-clickable:hover .report-link {
    color: var(--white);
}

.report-link {
    display: block;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand {
    text-align: left;
}

.footer-grb {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 12px rgba(30, 136, 229, 0.35));
}

.footer-slogan {
    color: var(--light-blue) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px !important;
}

/* ====== IGRAČI ====== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s,
                box-shadow 0.4s;
    display: block;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    will-change: transform;
}

.player-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--light-blue);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.4),
        0 0 26px rgba(30, 136, 229, 0.3);
}

.player-card:hover .player-photo {
    transform: scale(1.04);
    border-color: var(--light-blue);
}

.player-card.no-link {
    cursor: default;
}

.player-card.no-link:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

/* Moderna okrugla fotka igrača */
.player-card {
    padding: 26px 18px 20px;
    text-align: center;
}

/* Moderna portret fotka — zaobljeni kutovi, CIJELA fotka uključujući broj na dresu */
.player-photo {
    width: 180px;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto 18px;
    position: relative;
    background:
        radial-gradient(circle at 50% 30%, rgba(30, 136, 229, 0.22), transparent 70%),
        linear-gradient(180deg, var(--bg-darker) 0%, #0a1218 100%);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card:hover .player-photo {
    border-color: var(--light-blue);
    box-shadow: 0 14px 36px rgba(30, 136, 229, 0.4);
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Broj dresa kao mali plavi krug — UNUTAR kruga, donji desni kut, vidljiv */
.player-photo.has-photo .player-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    border: 3px solid white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    text-shadow: none;
    opacity: 1;
    z-index: 2;
}

/* Kad nema fotke — broj velik u sredini kruga */
.player-photo:not(.has-photo) .player-number {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    opacity: 0.7;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.player-info {
    padding: 18px;
}

.player-info h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.player-position {
    color: var(--light-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.player-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-stats span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.player-stats small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ====== SPONZORI ====== */
.sponsors-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sponsor-box {
    flex: 1 1 180px;
    max-width: 220px;
    height: 110px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    padding: 12px;
    text-align: center;
    overflow: hidden;
}

.sponsor-box:hover {
    border-color: var(--light-blue);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(30, 136, 229, 0.35);
}

/* Logo dobiva malu bijelu pozadinu samo OKO sebe, dok je box tamne boje */
.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
}

.sponsor-name {
    color: var(--white);
    font-weight: 700;
}

/* ====== KONTAKT FORMA ====== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-darker);
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-status {
    margin-top: 16px;
    padding: 0;
    font-weight: 500;
}

.form-status.success {
    color: #4caf50;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    color: #ef5350;
    padding: 12px;
    background: rgba(239, 83, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 83, 80, 0.3);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--bg-darker);
    padding: 50px 0 0;
    border-top: 3px solid var(--primary-blue);
}

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

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 14px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col li {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--light-blue);
}

.map-link,
.contact-link {
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.15s, border-color 0.15s;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.map-link:hover,
.contact-link:hover {
    color: var(--light-blue) !important;
    border-bottom-color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-credit {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.site-credit strong {
    color: var(--light-blue);
    font-weight: 600;
}

/* ====== MATCH DETAIL ====== */
.match-detail-page {
    padding: 110px 0 60px;
}

.back-link {
    display: inline-block;
    color: var(--light-blue);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
}

.back-link:hover { color: var(--white); }

.match-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.match-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.match-meta span:not(:last-child)::after {
    content: " • ";
    margin: 0 8px;
}

.match-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.match-team {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.match-team.home { text-align: right; }
.match-team.away { text-align: left; }

.match-team.highlight-team {
    color: var(--light-blue);
}

.match-result {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    padding: 0 20px;
    background: var(--bg-darker);
    border-radius: 8px;
    min-width: 140px;
}

.match-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.summary-col h3 {
    color: var(--light-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.event-list li:last-child { border-bottom: none; }

.event-list li.empty {
    color: var(--text-muted);
    font-style: italic;
    justify-content: center;
}

.minute {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
}

.card-marker {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-yellow {
    background: #ffc107;
    color: #5d4500;
}

.card-red {
    background: #d32f2f;
    color: white;
}

.lineup-title {
    color: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.lineup-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.lineup-side h3 {
    color: var(--light-blue);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.lineup-list {
    list-style: none;
    padding: 0;
}

.lineup-list li {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--white);
    align-items: center;
}

.lineup-list li:last-child { border-bottom: none; }

.lineup-jersey {
    display: inline-block;
    background: var(--bg-darker);
    color: var(--primary-blue);
    font-weight: 800;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 36px;
}

.lineup-pos {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.captain {
    color: var(--light-blue);
    font-style: normal;
    font-weight: 700;
}

.empty-detail {
    text-align: center;
    padding: 50px;
}

/* ====== PLAYER DETAIL STRANICA ====== */
.player-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: center;
}

.player-detail-photo {
    position: relative;
    width: 220px;
    height: 280px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(30, 136, 229, 0.28), transparent 70%),
        linear-gradient(180deg, var(--bg-darker) 0%, #0a1218 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.player-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.player-detail-photo .no-photo {
    font-size: 5rem;
    font-weight: 900;
    color: var(--light-blue);
    opacity: 0.6;
}

.player-detail-jersey {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    border: 4px solid white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.player-detail-info h1 {
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 18px;
}

.player-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 600;
}

.info-value.highlight {
    color: var(--light-blue);
}

.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.season-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.season-block-title {
    color: var(--light-blue);
    font-size: 1.4rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

.season-recap-row {
    background: rgba(30, 136, 229, 0.1);
    border-left: 3px solid var(--primary-blue);
}

.season-recap-row td {
    color: var(--white) !important;
    font-weight: 700;
}

/* Klikabilan player avatar i ime */
a.player-link,
a.player-link:visited,
a.player-link:active {
    color: var(--white) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

a.player-link:hover {
    color: var(--light-blue) !important;
}

a.player-link:hover .player-avatar {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    transition: all 0.15s;
}

/* Player card kao link — eksplicitno bijela boja na imenu i statistici */
a.player-card,
a.player-card:visited,
a.player-card:active {
    color: var(--white) !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

a.player-card h3,
a.player-card .player-info,
a.player-card .player-stats {
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .player-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .player-detail-photo {
        margin: 0 auto;
        width: 170px;
        height: 220px;
        border-radius: 18px;
    }
    .player-detail-jersey {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .player-detail-info h1 {
        font-size: 1.8rem;
    }
}

.ext-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}
.ext-link:hover { color: var(--white); }

@media (max-width: 768px) {
    .match-score {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .match-team.home, .match-team.away {
        text-align: center;
    }
    .match-result {
        font-size: 2.2rem;
        padding: 10px;
    }
    .match-summary, .lineup-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        border-bottom: 2px solid var(--primary-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-links.open {
        max-height: 400px;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .hero-slogan {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .hero-grb {
        width: 130px;
        height: 130px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Vijesti — kartice pune širine na mobitelu */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Tablice — omogući horizontalni scroll i smanji ćelije */
    .table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .matches-table {
        font-size: 0.85rem;
    }
    .matches-table th,
    .matches-table td {
        padding: 9px 7px;
        white-space: nowrap;
    }
    /* Stupac s nazivom kluba smije lomiti redove */
    .matches-table td.highlight,
    .matches-table td:has(.club-badge) {
        white-space: normal;
        min-width: 140px;
    }

    /* Ljestvica — uži stupac za naziv, manje paddinga */
    .standings-table th:nth-child(2),
    .standings-table td:nth-child(2) {
        min-width: 130px;
        max-width: 180px;
    }
    .standings-table th,
    .standings-table td {
        padding: 8px 5px;
        font-size: 0.78rem;
    }

    /* Manji grbovi u tablicama */
    .matches-table .club-badge {
        width: 22px;
        height: 22px;
        margin-right: 4px;
    }

    /* Statistika — vraćeno na default, već radi dobro */
    .stats-block .matches-table .player-avatar {
        width: 22px;
        height: 22px;
        margin-right: 4px;
    }

    /* Hero ostaje uredan unutar viewport-a */
    .hero {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .contact-form {
        padding: 20px;
    }

    .matches-table th,
    .matches-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}

/* ====== DODATNA MOBILNA OPTIMIZACIJA ====== */
@media (max-width: 768px) {
    /* Bolja čitljivost — osnovni font malo veći na mobilnoj */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    /* Tap targeti — svi gumbi/linkovi min 44px (iOS HIG smjernica) */
    .btn-primary,
    .nav-links a,
    .read-more-btn,
    .nav-fb,
    .social-fb {
        min-height: 44px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    /* Sekcije manje padding na mobilnoj */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
    }

    /* Container manje rubova na mobilnoj */
    .container {
        padding: 0 16px;
    }

    /* Sponzori — više stane u red */
    .sponsor-box {
        flex: 1 1 140px;
        height: 90px;
    }

    /* Footer kolone bolje slagaju */
    .footer-content {
        gap: 30px;
    }

    /* Modal vijesti — manji padding, više prostora */
    .news-modal-body {
        padding: 20px 18px 24px;
    }
    .news-modal-title {
        font-size: 1.35rem;
    }
    .news-modal-content {
        font-size: 1rem;
    }

    /* Statistika — možda preuzak; bolje spacing */
    .stats-block-title {
        font-size: 1.15rem;
    }

    /* Player avatari u stat tablicama — kompaktniji */
    .stats-block .matches-table td {
        padding: 8px 6px;
    }

    /* Lightbox — bolja kontrola na mobilnoj */
    .lightbox-overlay {
        padding: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    .hero-grb {
        width: 110px;
        height: 110px;
        margin-bottom: 18px;
    }

    .hero-slogan {
        font-size: 1.15rem;
    }

    /* Portret fotka igrača — manja ali jednako zaobljena na mobilnoj */
    .player-photo {
        width: 150px;
        height: 185px;
        border-radius: 18px;
    }

    /* Card padding manje */
    .news-card {
        padding: 0;
    }
    .news-body {
        padding: 16px;
    }

    /* Naslovi vijesti — manji */
    .news-body h3 {
        font-size: 1.1rem;
    }

    /* Sektija statistika prazna pravila — manji font */
    .stats-block .matches-table th,
    .stats-block .matches-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }

    /* Match detail header — manje veliki */
    .match-team {
        font-size: 1.2rem;
    }
    .match-result {
        font-size: 1.8rem;
    }
}
