:root {
    --pl-surface: rgba(255, 255, 255, 0.96);
    --pl-surface-strong: #ffffff;
    --pl-surface-muted: rgba(148, 163, 184, 0.12);
    --pl-border: rgba(148, 163, 184, 0.22);
    --pl-text: #0a1e4c;
    --pl-text-muted: #334155;
    --pl-accent: #0c2e6e;
    --pl-accent-strong: #103a86;
    --pl-success: #0f9d58;
    --pl-warning: #c08b00;
    --pl-danger: #be123c;
    --pl-radius-card: 16px;
    --pl-radius-pill: 999px;
    --pl-shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.08);
    --pl-shadow-card: 0 10px 24px rgba(15, 23, 42, 0.08);
    --pl-gradient-topbar: linear-gradient(92deg, #071a3d 0%, #0c2e6e 54%, #173f8f 100%);
    --pl-gradient-hero: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10), transparent 45%), radial-gradient(circle at 85% 10%, rgba(12, 46, 110, 0.20), transparent 35%), linear-gradient(130deg, #f6f9ff 0%, #ffffff 52%, #eef4ff 100%);
}

[data-theme="dark"] {
    --pl-surface: rgba(15, 23, 42, 0.88);
    --pl-surface-strong: #111b31;
    --pl-surface-muted: rgba(148, 163, 184, 0.16);
    --pl-border: rgba(148, 163, 184, 0.28);
    --pl-text: #e2e8f0;
    --pl-text-muted: #9fb0c9;
    --pl-accent: #ffd447;
    --pl-accent-strong: #e5b800;
    --pl-shadow-soft: 0 14px 36px rgba(2, 6, 23, 0.42);
    --pl-shadow-card: 0 12px 26px rgba(2, 6, 23, 0.34);
    --pl-gradient-topbar: linear-gradient(92deg, #071a3d 0%, #0c2e6e 56%, #173f8f 100%);
    --pl-gradient-hero: radial-gradient(circle at 16% 18%, rgba(255, 212, 71, 0.16), transparent 48%), radial-gradient(circle at 85% 10%, rgba(255, 212, 71, 0.12), transparent 38%), linear-gradient(130deg, #061228 0%, #0b2458 48%, #123579 100%);
}

main {
    background:
        radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.08), transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(14, 116, 144, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(226, 232, 240, 0.28) 0%, rgba(248, 250, 252, 0) 28%);
}

.pl-topbar .navbar-collapse {
    min-width: 0;
}

.pl-topbar .navbar-nav {
    flex-wrap: wrap;
}

.pl-topbar {
    background: var(--pl-gradient-topbar);
    border-bottom: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.28);
}

.pl-brand {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    max-width: min(50vw, 260px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px;
}

.pl-nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.74rem;
    padding: 0.85rem 0.62rem !important;
    border-bottom: 2px solid transparent;
}

.pl-nav-link.active,
.pl-nav-link:hover {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.pl-context-chip {
    border-radius: var(--pl-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.28);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.34rem 0.72rem;
}

.pl-theme-toggle {
    white-space: nowrap;
}

.pl-theme-icon-light {
    display: none;
}

[data-theme="sunny"] .pl-theme-icon-light {
    display: inline-block;
}

[data-theme="sunny"] .pl-theme-icon-dark {
    display: none;
}

.pl-page-shell {
    max-width: 1240px;
    width: 100%;
}

.pl-section-label {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.72rem;
    color: var(--pl-text-muted);
    font-weight: 700;
}

.pl-card {
    border-radius: var(--pl-radius-card);
    border: 1px solid var(--pl-border);
    background: var(--pl-surface);
    color: var(--pl-text);
    box-shadow: var(--pl-shadow-card);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pl-card-header {
    padding: 0.9rem 1.1rem 0;
}

.pl-card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.pl-card-title {
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0;
}

.pl-hero {
    border-radius: 22px;
    background: var(--pl-gradient-hero);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.pl-hero .pl-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pl-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.pl-team {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.pl-team--away {
    justify-content: flex-end;
    text-align: right;
}

.pl-team-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.14);
    padding: 4px;
}

.pl-team-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-score-pill {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(2, 6, 23, 0.28);
    min-width: 78px;
    text-align: center;
    padding: 0.45rem 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pl-fixture-strip {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.pl-mini-match {
    border-radius: 14px;
    border: 1px solid var(--pl-border);
    background: var(--pl-surface-strong);
    padding: 0.8rem;
}

.pl-mini-meta {
    color: var(--pl-text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pl-countdown-big {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pl-accent);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
}

.pl-countdown-big::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.pl-table-widget .table {
    margin-bottom: 0;
}

.pl-table-widget .table > :not(caption) > * > * {
    padding: 0.52rem 0.45rem;
    border-color: rgba(148, 163, 184, 0.24);
}

.pl-table-widget .table thead th {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--pl-text-muted);
}

.pl-ticker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.34);
}

.pl-ticker-row:last-child {
    border-bottom: 0;
}

.pl-news-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}

.pl-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pl-news-card__media {
    width: 100%;
    height: 158px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.22);
}

.pl-footer {
    border-top: 1px solid var(--pl-border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0));
}

.pl-sponsors-strip {
    border-top: 1px solid var(--pl-border);
    border-bottom: 1px solid var(--pl-border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0));
}

.pl-sponsor-rail {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.pl-sponsor-card {
    border: 1px solid var(--pl-border);
    border-radius: 12px;
    background: var(--pl-surface-strong);
    min-height: 68px;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-sponsor-card img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .pl-countdown-big {
        font-size: 0.95rem;
    }
}

.pl-sponsor-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pl-text);
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.pl-sponsor-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pl-text-muted);
    text-align: center;
}

.pl-footer a {
    color: var(--pl-text-muted);
    text-decoration: none;
}

.pl-footer a:hover {
    color: var(--pl-accent);
}

.pl-status-pill {
    border-radius: var(--pl-radius-pill);
    border: 1px solid var(--pl-border);
    background: var(--pl-surface-muted);
    color: var(--pl-text);
    padding: 0.3rem 0.64rem;
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.pl-event-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 0.75rem;
    padding: 0.56rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.pl-event-item:last-child {
    border-bottom: 0;
}

.pl-event-minute {
    color: var(--pl-accent-strong);
    font-weight: 700;
}

.pl-subtle-empty {
    border: 1px dashed var(--pl-border);
    border-radius: 12px;
    color: var(--pl-text-muted);
    padding: 1.15rem;
    text-align: center;
}

#matchCentreTabs {
    border-bottom: 1px solid var(--pl-border);
}

#matchCentreTabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--pl-text-muted);
    font-weight: 600;
    padding: 0.62rem 0.9rem;
}

#matchCentreTabs .nav-link:hover {
    color: var(--pl-text);
}

#matchCentreTabs .nav-link.active {
    background: transparent;
    color: var(--pl-accent-strong);
    border-bottom-color: var(--pl-accent-strong);
}

.pl-skeleton {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 25%, rgba(148, 163, 184, 0.34) 40%, rgba(148, 163, 184, 0.18) 60%);
    background-size: 200% 100%;
    animation: pl-shimmer 1.2s ease-in-out infinite;
    border-radius: 10px;
    min-height: 16px;
}

@keyframes pl-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pl-score-pulse {
    animation: pl-scorePulse 0.65s ease;
}

@keyframes pl-scorePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
    45% { transform: scale(1.08); box-shadow: 0 0 0.5rem rgba(37, 99, 235, 0.45); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 991.98px) {
    .pl-topbar .navbar-collapse {
        margin-top: 0.6rem;
        border: 1px solid rgba(148, 163, 184, 0.3);
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.18);
        padding: 0.55rem;
    }

    .pl-topbar .navbar-nav {
        max-height: 46vh;
        overflow-y: auto;
        flex-wrap: nowrap;
    }

    .pl-topbar .d-flex.flex-column.flex-lg-row {
        width: 100%;
    }

    .pl-theme-toggle,
    .pl-topbar .dropdown,
    .pl-topbar .dropdown > .btn {
        width: 100%;
    }

    .pl-context-chip {
        text-align: center;
        width: 100%;
    }

    .pl-nav-link {
        border-bottom: 0;
        border-left: 2px solid transparent;
        padding: 0.75rem 0.6rem !important;
    }

    .pl-nav-link.active,
    .pl-nav-link:hover {
        border-left-color: rgba(255, 255, 255, 0.85);
    }

    .pl-scoreboard {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pl-team,
    .pl-team--away {
        justify-content: center;
        text-align: center;
    }

    .pl-score-pill {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .pl-page-shell {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .pl-hero {
        border-radius: 16px;
    }

    .pl-card-header {
        padding: 0.8rem 0.9rem 0;
    }

    .pl-card-body {
        padding: 0.85rem 0.9rem 0.9rem;
    }

    .pl-fixture-strip,
    .pl-news-grid,
    .pl-sponsor-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .pl-team-logo {
        width: 36px;
        height: 36px;
    }

    .pl-team-name {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .pl-skeleton,
    .pl-score-pulse {
        animation: none !important;
    }
}
