* {
    box-sizing: border-box;
}

:root {
    --ink: #18232c;
    --muted: #657682;
    --paper: #edf2f4;
    --panel: #ffffff;
    --line: #d2dde2;
    --storm: #0d5774;
    --storm-dark: #071e2c;
    --accent: #f7cf38;
    --ice: #dceef4;
    --danger: #b94a48;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.site-header {
    background: linear-gradient(135deg, #061a27 0%, #0b3448 100%);
    border-bottom: 3px solid var(--accent);
    color: #fff;
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-brand,
.main-nav a,
.account-link {
    color: inherit;
    text-decoration: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--accent);
    border-radius: 2px;
    color: var(--storm-dark);
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
}

.main-nav,
.nav-account {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav {
    flex: 1;
}

.main-nav a,
.account-link {
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active,
.account-link:hover,
.account-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--storm-dark);
}

.welcome-text {
    color: #c7d5db;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    white-space: nowrap;
}

.container {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 132px);
    margin: 0 auto;
    padding: 46px 0 72px;
}

h1,
h2,
h3 {
    color: var(--storm-dark);
    line-height: 1.15;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    text-transform: uppercase;
}

button,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    border-radius: 2px;
    background: var(--storm);
    color: #fff;
    cursor: pointer;
    padding: 9px 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

button:hover:not(:disabled) {
    background: var(--storm-dark);
}

.account-form {
    display: grid;
    width: min(100%, 460px);
    gap: 7px;
    margin: 24px 0 14px;
}

.account-form label {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
}

.account-form input {
    width: 100%;
    height: 42px;
    margin-bottom: 8px;
    border: 1px solid #b8c7cd;
    border-radius: 4px;
    padding: 9px 11px;
    background: #fff;
}

.account-form input:focus,
.comment-form textarea:focus {
    outline: 3px solid rgba(242, 201, 76, 0.4);
    border-color: var(--storm);
}

.account-form button {
    justify-self: start;
    margin-top: 4px;
}

.live-page-header {
    border-left: 6px solid var(--accent);
    background: linear-gradient(90deg, var(--ice), rgba(220, 238, 244, 0));
    margin-bottom: 26px;
    padding: 18px 20px;
}

.live-page-header p {
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.commentary-panel,
.pending-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(7, 30, 44, 0.08);
    padding: clamp(20px, 4vw, 34px);
}

.commentary-panel > h2 {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.reporting-guidance {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.comment-form {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--ice);
    border: 1px solid var(--line);
    border-radius: 2px;
}

.comment-form label {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #b8c7cd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.comment-filter {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.comment-filter input {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: var(--storm);
}

.admin-danger-zone {
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid #e5b7b7;
    border-radius: 4px;
    background: #fff5f5;
}

.admin-delete-all-btn {
    background: var(--danger);
}

.admin-delete-all-btn:hover:not(:disabled) {
    background: #8f3030;
}

.comment-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--storm);
    border-radius: 2px;
    background: #fff;
}

.comment-item.pending-own {
    font-style: italic;
    border-left-color: var(--accent);
    background: #fffdf3;
}

.pending-label {
    display: inline-block;
    margin: 0 8px 4px 0;
    color: #806b18;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.04em;
}

.comment-meta {
    margin-bottom: 4px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.comment-meta strong {
    color: var(--ink);
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.vote-count {
    min-width: 1.5em;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    text-align: center;
}

.vote-btn,
.flag-btn {
    display: inline-grid;
    width: 34px;
    height: 32px;
    place-items: center;
    padding: 6px;
}

.flag-btn {
    margin-left: 8px;
    background: #667780;
}

.pending-panel {
    margin-top: 28px;
    border-top: 4px solid var(--accent);
    background: #fffef7;
}

.pending-panel h3 {
    margin-top: 0;
}

.site-footer {
    padding: 18px 16px;
    background: linear-gradient(135deg, #103f57 0%, #1b536c 100%);
    color: #eef7fa;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.footer-heart {
    width: 1em;
    height: 1em;
    margin: 0 0.15em;
    vertical-align: -0.15em;
    color: #b58be8;
    filter: drop-shadow(0 0 3px rgba(181, 139, 232, 0.45));
}

.flash {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-left: 4px solid;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.flash.success {
    border-color: #2f855a;
    background: #e6f4ec;
    color: #22543d;
}

.flash.error {
    border-color: var(--danger);
    background: #fbeaea;
    color: #7b2d2d;
}

.fixture-banners {
    display: flex;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
    justify-content: center;
}

.fixture-banner {
    padding: 18px;
    border-radius: 2px;
    background: linear-gradient(135deg, #0b4963, #062231);
    color: #fff;
    min-width: 260px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.fixture-banner .when {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.fixture-banner .teams {
    font-size: 16px;
}

.home-banner {
    flex: 1 1 60%;
    border: 3px solid var(--accent);
}

.away-banner {
    flex: 1 1 35%;
    background: linear-gradient(135deg, #1d5360, #0e3039);
}

.vote-btn:disabled {
    background-color: #b8b8b8;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.vote-btn.vote-selected {
    font-weight: 700;
}

.comment-highlight {
    font-size: 1.08em;
    font-weight: 700;
}

.vote-btn img,
.flag-btn img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

@media (max-width: 760px) {
    .nav-shell {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-account {
        margin-left: auto;
    }

    .container {
        width: min(100% - 20px, 680px);
        padding-top: 28px;
    }

    .fixture-banners {
        flex-direction: column;
        gap: 12px;
    }

    .fixture-banner {
        min-width: 0;
    }

    .commentary-panel {
        padding: 18px 12px;
    }

    .comment-item {
        padding: 14px;
    }
}
