
/* ==================================================
   LIVESC​ORETV - MAIN STYLESHEET
   Compatible with index.html and match-centre.js
   ================================================== */

* {
    box-sizing: border-box;
}

:root {
    --bg: #0b1220;
    --panel: #121d2e;
    --panel2: #172438;
    --text: #f3f6fb;
    --muted: #91a0b5;
    --accent: #20c77a;
    --line: #26354a;
    --danger: #ff6666;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* ==================================================
   LAYOUT
   ================================================== */

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding-top: 38px;
    padding-bottom: 15px;
}

/* ==================================================
   HEADER AND NAVIGATION
   ================================================== */

.site-header {
    background: #0e1828;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand > span:last-child > span {
    color: var(--accent);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #07150e;
    border-radius: 9px;
    font-size: 16px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px 17px;
}

.main-nav a {
    color: #c3cedd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

/* ==================================================
   HERO
   ================================================== */

.hero {
    padding: 35px 0 15px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(115deg, #122a3b, #173d37);
    border: 1px solid #245346;
    border-radius: 18px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1000px;
    margin: 12px 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
}

.hero p {
    max-width: 850px;
    margin: 0;
    color: #c2d0dd;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ==================================================
   BUTTONS
   ================================================== */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 19px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #07150e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn:hover {
    background: #32df91;
    transform: translateY(-1px);
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border-color: #54766c;
}

.btn.secondary:hover {
    background: rgba(255,255,255,.08);
}

/* ==================================================
   SECTION HEADINGS
   ================================================== */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 8px 0 5px;
    font-size: 25px;
    line-height: 1.3;
}

.section-lead {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pill {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(32,199,122,.12);
    border: 1px solid rgba(32,199,122,.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ==================================================
   MATCH CENTRE APPLICATION
   ================================================== */

.app-shell {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.app-top h2 {
    margin: 0;
    font-size: 19px;
}

.app-status {
    color: var(--muted);
    font-size: 12px;
}

.app-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.app-controls select,
.app-controls input {
    min-height: 43px;
    padding: 10px 13px;
    background: #0c1727;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.app-controls select {
    min-width: 190px;
}

.app-controls input {
    flex: 1;
    min-width: 180px;
}

.app-controls select:focus,
.app-controls input:focus {
    border-color: var(--accent);
}

.app-controls input::placeholder {
    color: #78879c;
}

.app-controls .btn {
    min-height: 43px;
}

.match-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Match cards generated by match-centre.js */

.match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px 14px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 11px;
    transition: border-color .2s ease, transform .2s ease;
}

.match:hover {
    border-color: #3c6658;
    transform: translateY(-2px);
}

.team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.team span {
    overflow-wrap: anywhere;
}

.team img {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    object-fit: contain;
}

.team.away {
    justify-content: flex-end;
    text-align: right;
}

.score {
    min-width: 76px;
    text-align: center;
}

.score strong {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.score small {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.score small.live {
    color: var(--danger);
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    50% {
        opacity: .45;
    }
}

/* Empty and loading states */

.empty {
    grid-column: 1 / -1;
    padding: 30px 20px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.app-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

/* ==================================================
   CONTENT CARDS AND GRIDS
   ================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.card .icon {
    margin-bottom: 9px;
    font-size: 25px;
}

.card h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==================================================
   ARTICLE CONTENT
   ================================================== */

.article {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.article h2 {
    margin: 22px 0 10px;
    color: #fff;
    font-size: 21px;
}

.article h2:first-child {
    margin-top: 0;
}

.article p,
.article li {
    color: #c1ccda;
    line-height: 1.8;
}

.article a {
    color: var(--accent);
}

.notice {
    margin: 20px 0;
    padding: 15px 17px;
    background: #3b2b13;
    border: 1px solid #795a21;
    border-radius: 10px;
    color: #ffe2a4;
    font-size: 13px;
}

/* ==================================================
   FAQ
   ================================================== */

.faq {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.faq details {
    padding: 15px 17px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.faq summary {
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.faq details p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
    margin-top: 55px;
    padding: 30px 0;
    background: #0e1828;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-inner strong {
    color: #fff;
    font-size: 16px;
}

.footer-inner small {
    display: inline-block;
    margin-top: 7px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #c3cedd;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.site-footer .wrap:last-child {
    margin-top: 18px;
}

/* ==================================================
   RESPONSIVE - TABLETS
   ================================================== */

@media (max-width: 900px) {

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 10px 15px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ==================================================
   RESPONSIVE - MOBILE
   ================================================== */

@media (max-width: 600px) {

    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section {
        padding-top: 28px;
    }

    .header-inner {
        gap: 12px;
    }

    .brand {
        font-size: 20px;
    }

    .main-nav {
        width: 100%;
        gap: 9px 13px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-panel {
        min-height: auto;
        padding: 25px 20px;
        border-radius: 13px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-head h2 {
        font-size: 21px;
    }

    .app-shell {
        padding: 14px;
    }

    .app-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-controls {
        flex-direction: column;
    }

    .app-controls select,
    .app-controls input,
    .app-controls .btn {
        width: 100%;
        min-width: 0;
    }

    .match-list {
        grid-template-columns: 1fr;
    }

    .match {
        gap: 7px;
        padding: 13px 9px;
    }

    .team {
        gap: 5px;
        font-size: 11px;
    }

    .team img {
        width: 23px;
        height: 23px;
    }

    .score {
        min-width: 65px;
    }

    .score strong {
        font-size: 17px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card {
        padding: 14px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card p {
        font-size: 12px;
    }

    .article {
        padding: 19px;
    }

    .footer-inner {
        flex-direction: column;
    }

}

/* ==================================================
   RESPONSIVE - SMALL MOBILE
   ================================================== */

@media (max-width: 360px) {

    .hero h1 {
        font-size: 26px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 8px 10px;
    }

    .main-nav a {
        font-size: 11px;
    }

}
