body {
    margin: 0;
    background: #050505;
    color: #f6c744;
    font-family: 'Orbitron', sans-serif;
}

.site-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(37, 199, 255, 0.18), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(57, 255, 136, 0.14), transparent 28%),
        linear-gradient(180deg, #050914 0%, #08111d 52%, #04070d 100%);
    color: #f8fbff;
    overflow-x: hidden;
}

.site-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(16px, 3.2vw, 46px) 0 clamp(32px, 6vw, 84px);
}

.site-topbar {
    display: flex;
    justify-content: flex-end;
    min-height: 44px;
    margin-bottom: clamp(4px, 0.9vw, 12px);
}

.topbar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 199, 255, 0.4);
    color: #39ff88;
    text-decoration: none;
    background: rgba(8, 14, 24, 0.5);
    box-shadow: 0 0 18px rgba(57, 255, 136, 0.08);
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topbar-social-icon {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.topbar-social-link:hover {
    border-color: #25c7ff;
    color: #25c7ff;
    box-shadow: 0 0 22px rgba(37, 199, 255, 0.18);
    transform: translateY(-1px);
}

.site-hero {
    min-height: clamp(390px, 58vh, 620px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.hero-copy {
    min-width: 0;
}

.hero-kicker {
    margin: 0 0 14px;
    color: #39ff88;
    font-size: clamp(12px, 1.1vw, 18px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.site-hero h1 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(48px, 8vw, 132px);
    line-height: 0.94;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(37, 199, 255, 0.18);
}

.hero-subtitle {
    max-width: 760px;
    margin: clamp(14px, 1.8vw, 24px) 0 0;
    color: #c7d2df;
    font-family: Arial, sans-serif;
    font-size: clamp(17px, 1.8vw, 25px);
    line-height: 1.35;
}

.hero-subtitle span {
    display: block;
}

.hero-subtitle span + span {
    margin-top: 6px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(20px, 2.6vw, 34px);
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid #25c7ff;
    color: #f8fbff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-link {
    background: #39ff88;
    border-color: #39ff88;
    color: #04100a;
    box-shadow: 0 0 24px rgba(57, 255, 136, 0.22);
}

.secondary-link {
    background: rgba(37, 199, 255, 0.08);
}

.hero-brand {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-brand img {
    width: min(100%, 340px);
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 38px rgba(57, 255, 136, 0.22));
}

.dashboard-section {
    padding-top: clamp(16px, 3.5vw, 52px);
}

.section-heading {
    margin-bottom: clamp(18px, 2.8vw, 34px);
}

.section-heading h2 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1;
    text-transform: uppercase;
}

.section-heading p:last-child {
    margin: 10px 0 0;
    color: #c7d2df;
    font-family: Arial, sans-serif;
    font-size: clamp(15px, 1.4vw, 20px);
}

.dashboard-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid #1f6f95;
    background: #050914;
    box-shadow: 0 0 36px rgba(37, 199, 255, 0.12);
    overflow: hidden;
}

.dashboard-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050914;
}

.site-footer {
    margin-top: clamp(32px, 5vw, 72px);
    padding: clamp(22px, 3vw, 34px) 0 0;
    border-top: 1px solid rgba(37, 199, 255, 0.32);
    color: #c7d2df;
    font-family: Arial, sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.5;
}

.site-footer p {
    max-width: 980px;
    margin: 0 0 10px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.site-footer a,
.legal-content a {
    color: #39ff88;
    text-decoration: none;
}

.site-footer a:hover,
.legal-content a:hover {
    color: #f8fbff;
}

.legal-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 6vw, 82px) 0;
}

.legal-header {
    margin-bottom: clamp(26px, 4vw, 48px);
}

.legal-header h1 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(38px, 6vw, 86px);
    line-height: 0.96;
    text-transform: uppercase;
}

.legal-content {
    color: #d8e1ea;
    font-family: Arial, sans-serif;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
}

.legal-content section {
    padding: 22px 0;
    border-top: 1px solid rgba(37, 199, 255, 0.2);
}

.legal-content h2 {
    margin: 0 0 10px;
    color: #f8fbff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.1;
    text-transform: uppercase;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul {
    margin: 0;
    padding-left: 20px;
}

.legal-content li + li {
    margin-top: 8px;
}

@media (max-width: 860px) {
    .site-shell {
        width: min(100% - 24px, 720px);
        padding-top: 12px;
    }

    .site-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 6px 0 22px;
    }

    .site-hero h1 {
        font-size: clamp(42px, 11.2vw, 58px);
    }

    .hero-brand {
        justify-content: flex-start;
        order: -1;
    }

    .hero-brand img {
        width: min(34vw, 128px);
    }

    .hero-subtitle {
        margin-top: 12px;
        font-size: clamp(16px, 4.1vw, 20px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
    }

    .primary-link,
    .secondary-link {
        justify-content: center;
    }

    .dashboard-frame-wrap {
        width: calc(100% + 24px);
        height: min(760px, 84vh);
        aspect-ratio: auto;
        margin-left: -12px;
        border-left: 0;
        border-right: 0;
    }

    .site-topbar {
        min-height: 34px;
        margin-bottom: 4px;
    }

    .topbar-social-link {
        width: 34px;
        height: 34px;
    }
}

.board {
    height: 100vh;
    display: flex;
    flex-direction: column;
    border: 6px solid #f6c744;
    box-sizing: border-box;
    background: radial-gradient(circle at center, #151515 0%, #050505 70%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 3px solid #f6c744;
}

.clock {
    color: #00ff66;
    font-size: 32px;
    font-weight: bold;
}

.title {
    font-size: 46px;
    font-weight: bold;
    letter-spacing: 5px;
}

.subtitle {
    color: white;
    font-size: 16px;
    letter-spacing: 4px;
}

.content {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    padding: 20px;
}

.live-card {
    border: 3px solid #f6c744;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 18px rgba(246, 199, 68, 0.35);
}

.label {
    color: white;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.teams {
    font-size: 54px;
    font-weight: bold;
}

.score {
    color: #00ff66;
    margin: 0 18px;
}

.minute {
    color: #00ff66;
    font-size: 36px;
    margin-top: 14px;
}

.box {
    flex: 1;
    border: 2px solid #333;
    padding: 18px;
    font-size: 28px;
}

.small-match {
    font-size: 34px;
    font-weight: bold;
}

.time {
    color: #00ff66;
    font-size: 26px;
}

.ticker-wrap {
    border-top: 3px solid #f6c744;
    overflow: hidden;
    padding: 14px 0;
}

.ticker {
    white-space: nowrap;
    font-size: 28px;
    color: #00ff66;
    animation: scrollTicker 24s linear infinite;
}

@keyframes scrollTicker {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.rotating-box {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.live-header {
    margin-bottom: 20px;
}

.live-badge {
    display: inline-block;
    color: white;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-size: 18px;
}

.live-badge.is-live {
    background: #d90429;
    box-shadow:
        0 0 10px #d90429,
        0 0 20px #d90429,
        0 0 30px rgba(217, 4, 41, 0.6);

    animation: pulseLive 2s infinite;
}

.live-badge.is-upcoming {
    background: #f6c744;
    color: #050505;
    box-shadow: 0 0 14px rgba(246, 199, 68, 0.45);
}

.live-badge.is-final,
.live-badge.is-neutral {
    background: #333;
    border: 1px solid #f6c744;
    color: #f6c744;
}

@keyframes pulseLive {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.panel-title {
    color: #f6c744;
    font-size: 15px;
    letter-spacing: 3px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    margin-bottom: -8px;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.countdown {
    color: #00ff66;
    font-size: 38px;
    font-weight: bold;
    margin-top: 10px;
    letter-spacing: 2px;
}

.flag-row {
    display: flex;
    justify-content: center;
    gap: 240px;
    margin-bottom: 16px;
}

.flag-image-wrap {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    line-height: 1;
}

.flag-icon {
    display: block;
    width: 92px;
    height: 62px;
    object-fit: contain;
}

.flag-fallback-text {
    display: none;
}

.flag-load-failed .flag-fallback-text {
    display: inline;
}

.other-team {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.other-team .flag-icon {
    width: 24px;
    height: 16px;
}

.clock-wrap {
    text-align: right;
}

.last-updated {
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.75;
}

.other-matches {
    margin-top: 28px;
    width: 85%;
    align-self: center;
    border-top: 2px solid #333;
    padding-top: 16px;
}

.other-title {
    color: white;
    font-size: 15px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.other-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.other-match {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.2fr 0.5fr;
    gap: 8px;
    align-items: center;
    font-size: 18px;
}

.other-status {
    color: #00ff66;
}
