/* ============================================================
   Hob Nob Anyone? — Reading FC fan site
   Blue + white + gold. Gradients, glass, motion.
   ============================================================ */

:root {
    --blue-900: #03132e;
    --blue-800: #051d44;
    --blue-700: #0a2d6e;
    --blue-600: #0e3f97;
    --blue-500: #1457c4;
    --blue-400: #2f7ae6;
    --sky:      #5aa9ff;

    --gold:     #f6c945;
    --gold-deep:#d9a516;

    --white:    #ffffff;
    --ink:      #0a1830;
    --muted:    #6b7a93;
    --line:     rgba(10, 45, 110, 0.10);

    --win:  #1f9d57;
    --draw: #b9921b;
    --loss: #d2453b;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px -22px rgba(5, 29, 68, 0.55);
    --shadow-lg: 0 30px 70px -30px rgba(5, 29, 68, 0.6);
    --grad-blue: linear-gradient(135deg, var(--blue-700), var(--blue-500) 55%, var(--blue-400));
    --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-deep));

    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display: 'Oswald', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: #f4f8fd;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(47, 122, 230, 0.13), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(246, 201, 69, 0.09), transparent 55%);
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* Soft, irregular horizontal blue stripes --------------------- */
.bg-stripes {
    position: fixed; inset: -25%; z-index: -1; pointer-events: none;
    /* Three overlapping soft bands at different sizes — each fades smoothly
       from transparent to light blue and back, so there are no hard edges.
       The mismatched periods give an irregular, non-repetitive look. */
    background:
        repeating-linear-gradient(to bottom,
            rgba(90, 169, 255, 0)    0,
            rgba(90, 169, 255, 0.13) 110px,
            rgba(90, 169, 255, 0)    220px),
        repeating-linear-gradient(to bottom,
            rgba(120, 190, 255, 0)   40px,
            rgba(120, 190, 255, 0.10) 210px,
            rgba(120, 190, 255, 0)   340px),
        repeating-linear-gradient(to bottom,
            rgba(60, 140, 230, 0)    0,
            rgba(60, 140, 230, 0.08) 250px,
            rgba(60, 140, 230, 0)    480px);
    /* shifted on scroll from JS */
    transform: translateY(var(--stripe-shift, 0px));
    animation: stripeDrift 24s linear infinite;
    will-change: background-position, transform;
}
@keyframes stripeDrift {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 0 440px, 0 680px, 0 960px; }  /* two periods per layer for more visible drift */
}

/* ============================ HEADER ======================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue-500) 55%, var(--blue-600) 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 8px 24px -6px rgba(5, 29, 68, 0.55);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.8rem; color: #fff; }
.brand__logo {
    height: 60px; width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}
.brand:hover .brand__logo { transform: scale(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--display); font-weight: 700; font-size: 1.4rem;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #fff, var(--sky));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__tag { font-size: 0.72rem; color: rgba(255,255,255,0.65); }

.nav__list { display: flex; align-items: center; gap: 0.12rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav a, .has-drop__btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.95); font-weight: 600; font-size: 0.9rem;
    padding: 0.5rem 0.75rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav a:hover, .has-drop__btn:hover, .has-drop:hover .has-drop__btn {
    color: var(--blue-700); background: #fff;
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; }
.caret {
    width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor;
    border-bottom: 0; margin-left: 0.15rem; transition: transform 0.2s;
}
.has-drop:hover .caret, .has-drop.open .caret { transform: rotate(180deg); }

/* Dropdown menus */
.dropdown {
    list-style: none; margin: 0; padding: 0.4rem; min-width: 244px;
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-drop:hover .dropdown, .has-drop.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
    display: block; color: var(--ink); font-weight: 500; font-size: 0.87rem;
    padding: 0.5rem 0.7rem; border-radius: 8px; white-space: nowrap;
}
.dropdown li a:hover { background: rgba(20,87,196,0.08); color: var(--blue-700); }
.dropdown li a strong { color: var(--blue-700); }
.dropdown__divider { height: 1px; background: var(--line); margin: 0.35rem 0.3rem; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s; }

/* ============================= HERO ========================= */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--grad-blue);
    padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(700px 350px at 85% 0%, rgba(246,201,69,0.22), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(90,169,255,0.28), transparent 60%);
}
/* Very faint horizontal stripes fading in from the right */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 52px,
        rgba(255, 255, 255, 0) 52px, rgba(255, 255, 255, 0) 104px);
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 70%);
    mask-image: linear-gradient(to left, #000 0%, transparent 70%);
}
.hero__inner {
    position: relative; display: grid; gap: 2.5rem;
    grid-template-columns: 1.15fr 0.85fr; align-items: stretch;
}
.eyebrow {
    display: inline-block; font-family: var(--display); letter-spacing: 2px;
    text-transform: uppercase; font-size: 0.78rem; color: var(--gold);
    padding: 0.35rem 0.8rem; border: 1px solid rgba(246,201,69,0.4);
    border-radius: 999px; margin-bottom: 1.2rem;
}
.hero__title {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 1rem;
}
.grad-text {
    background: linear-gradient(100deg,
        var(--gold-deep) 0%, var(--gold) 30%, #fff6d6 50%, var(--gold) 70%, var(--gold-deep) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .grad-text { animation: none; background-size: 100% 100%; }
}
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,0.85); max-width: 34ch; margin: 0 0 1.8rem; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.6rem; }

.btn {
    display: inline-flex; align-items: center; font-weight: 600;
    padding: 0.8rem 1.5rem; border-radius: 999px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s, background 0.25s; border: 0;
}
.btn--gold { background: var(--grad-gold); color: var(--blue-900);
    box-shadow: 0 12px 28px -12px rgba(246,201,69,0.8); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(246,201,69,0.95); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }

/* Hero left column: copy + latest-match box stacked.
   space-between pushes the match box to the column's bottom so it lines up
   with the bottom of the Top discussion card on the right. */
.hero__left { display: flex; flex-direction: column; gap: 1.4rem; justify-content: space-between; }

.hero__match {
    position: relative; display: block; color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius); padding: 1.1rem 1.3rem;
    backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
    transition: transform 0.3s, border-color 0.3s; overflow: hidden;
}
.hero__match::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 1;
    background: linear-gradient(180deg, var(--sky), var(--blue-700));
    transform: scaleY(0); transform-origin: top; transition: transform 0.35s;
}
.hero__match:hover::before { transform: scaleY(1); }
.hero__match--win::before  { background: linear-gradient(180deg, #28d27d, var(--win)); }
.hero__match--loss::before { background: linear-gradient(180deg, #ff6a5e, var(--loss)); }
.hero__match--draw::before { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
/* Thick horizontal blue & white stripes fading in from Reading's side */
.hero__match::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 28px,
        rgba(255, 255, 255, 0) 28px, rgba(255, 255, 255, 0) 56px);
}
.hero__match--reading-left::after {
    -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
    mask-image: linear-gradient(to right, #000 0%, transparent 60%);
}
.hero__match--reading-right::after {
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 60%);
    mask-image: linear-gradient(to left, #000 0%, transparent 60%);
}
.hero__match > * { position: relative; z-index: 1; }
.hero__match:hover { transform: translateY(-4px); border-color: rgba(246,201,69,0.5); }

.hero__match-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.6rem; }
.hero__match-label {
    font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 0.7rem; color: var(--blue-900); background: var(--gold);
    padding: 0.2rem 0.6rem; border-radius: 999px;
}
.hero__match-comp { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-align: right; }
.hero__match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; }
.hero__match-team { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.hero__match-row .hero__match-team:first-child { text-align: right; }
.hero__match-score {
    font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: 1px;
    background: rgba(0,0,0,0.28); padding: 0.15rem 0.7rem; border-radius: 10px; color: var(--gold);
}
.hero__match-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.7rem; }
.hero__match-att { font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.hero__match-more { color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-left: auto; }

/* Hero feature cards (top story + top discussion) */
.hero__features { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; }
.hero__feature {
    position: relative; display: block; color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius); padding: 1.4rem 1.5rem 1.2rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.hero__feature::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #ffe089, var(--gold-deep));
    transform: scaleY(0); transform-origin: top; transition: transform 0.35s;
}
.hero__feature:hover::before { transform: scaleY(1); }
.hero__feature--talk::before { background: linear-gradient(180deg, var(--sky), var(--blue-500)); }
.hero__feature:hover { transform: translateY(-6px); border-color: rgba(246,201,69,0.5); }
.hero__feature--talk:hover { border-color: rgba(90,169,255,0.6); }
.hero__feature-badge {
    display: inline-block; font-family: var(--display); text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 0.7rem; color: var(--blue-900);
    background: var(--gold); padding: 0.25rem 0.7rem; border-radius: 999px;
}
.hero__feature-badge--talk { background: linear-gradient(135deg, var(--sky), var(--blue-400)); color: #fff; }
.hero__feature-date { float: right; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.hero__feature-title { font-family: var(--display); font-size: 1.4rem; line-height: 1.15; margin: 0.8rem 0 0.5rem; }
.hero__feature-excerpt { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin: 0 0 0.7rem; font-style: italic; }
.hero__feature-meta { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.7rem; }
.hero__feature-more { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.hero__feature-more--talk { color: var(--sky); }

/* Bouncing arrow on "more" style links */
.arrow { display: inline-block; animation: arrowBounce 1.1s ease-in-out infinite; }
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}
/* a livelier bounce when the card is hovered */
.hero__feature:hover .arrow,
.hero__match:hover .arrow { animation-duration: 0.6s; }
@media (prefers-reduced-motion: reduce) {
    .arrow { animation: none; }
}

/* ============================ BLOCKS ======================== */
.block { margin: clamp(2.6rem, 6vw, 4.5rem) 0; }
#news { margin-top: clamp(1.8rem, 4vw, 3rem); }
.block__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.4rem;
}
.block__title {
    font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin: 0; display: flex; align-items: center; gap: 0.6rem; color: var(--blue-800);
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--grad-blue); box-shadow: 0 0 0 4px rgba(20,87,196,0.15);
    animation: pulse 2.4s ease-in-out infinite;
}
.dot--gold { background: var(--grad-gold); box-shadow: 0 0 0 4px rgba(246,201,69,0.2); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.block__all { color: var(--blue-500); font-weight: 600; font-size: 0.92rem; }
.block__all:hover { color: var(--blue-700); }
.block__sub { color: var(--muted); font-size: 0.9rem; }

/* ---------------------------- NEWS ------------------------- */
.news-grid {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.news-card {
    display: flex; flex-direction: column; justify-content: space-between;
    background: #fff; border-radius: var(--radius); padding: 1.3rem;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--grad-blue); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s; z-index: 2;
}
/* Wide horizontal stripes — light blue on the left fading to white on the
   right — that slide in from the left on hover */
.news-card::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(to right, rgba(90, 169, 255, 0.15) 0%, rgba(255, 255, 255, 1) 100%),
        repeating-linear-gradient(
            to bottom,
            rgba(20, 87, 196, 0.07) 0, rgba(20, 87, 196, 0.07) 40px,
            rgba(255, 255, 255, 0) 40px, rgba(255, 255, 255, 0) 80px);
    transform: translateX(-100%); opacity: 0;
    transition: transform 0.55s cubic-bezier(.2,.7,.3,1), opacity 0.4s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card:hover::before { transform: scaleX(1); }
.news-card:hover::after { transform: translateX(0); opacity: 1; }
/* keep text above the stripes */
.news-card__body, .news-card__author { position: relative; z-index: 1; }
.news-card__date { font-size: 0.78rem; color: var(--blue-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card__title { font-family: var(--display); font-size: 1.18rem; line-height: 1.2; margin: 0.5rem 0 0.5rem; color: var(--ink); }
.news-card__excerpt { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.news-card__author { font-size: 0.78rem; color: var(--blue-400); font-weight: 600; }

/* --------------------------- SPLIT ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.split .block { margin: 0; }

/* ----------------------- MATCH REPORTS --------------------- */
.report-list { display: flex; flex-direction: column; gap: 1rem; }
.report {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.report:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Result across the top: Reading 0-1 Blackpool */
.report__result {
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f7faff, #eef3fb);
    font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
    text-align: center;
}
.report__team { flex: 1 1 0; min-width: 0; }
.report__result > .report__team:first-child { text-align: right; }
.report__result > .report__team:last-child  { text-align: left; }
.report__scorebox {
    flex: 0 0 auto; color: #fff; font-weight: 700; letter-spacing: 1px;
    padding: 0.25rem 0.75rem; border-radius: 9px; font-size: 1.05rem;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,0.5);
}
.report__result--win  .report__scorebox { background: var(--win); }
.report__result--loss .report__scorebox { background: var(--loss); }
.report__result--draw .report__scorebox { background: #f2c01d; color: #3a2c00; }

/* Body: small info box on the left, summary on the right */
.report__body { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 0.85rem 0.9rem; }
.report__info {
    align-self: start; min-width: 92px; text-align: center;
    background: rgba(20, 87, 196, 0.08); border-radius: 10px; padding: 0.55rem 0.6rem;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.report__comp { font-size: 0.72rem; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.5px; }
.report__date { font-size: 0.82rem; font-weight: 600; color: var(--blue-500); }
.report__summary { display: flex; flex-direction: column; min-width: 0; }
.report__excerpt { font-size: 0.88rem; color: var(--ink); margin: 0; }
.report__src { font-size: 0.74rem; font-weight: 600; color: var(--blue-400); margin-top: 0.35rem; display: inline-block; }

/* ----------------------- FORUM TOPICS ---------------------- */
.topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.topic {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem; box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.topic:hover { transform: translateY(-3px); border-color: rgba(246,201,69,0.4); box-shadow: var(--shadow-lg); }
.topic__avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; color: #fff; font-size: 0.9rem; letter-spacing: 0.5px;
    background: linear-gradient(135deg, hsl(var(--h), 70%, 55%), hsl(calc(var(--h) + 40), 75%, 42%));
}
.topic__main { display: flex; flex-direction: column; min-width: 0; }
.topic__title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic:hover .topic__title { color: var(--blue-600); }
.topic__sub { font-size: 0.78rem; color: var(--muted); }
.topic__forum { color: var(--blue-400); font-weight: 600; }
.topic__stats { text-align: right; font-size: 0.72rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.1rem; }
.topic__stats strong { color: var(--blue-600); }

/* ------------------------ ON THIS DAY ---------------------- */
.block--otd {
    background: var(--grad-blue); border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.6rem); color: #fff; position: relative; overflow: hidden;
}
.block--otd::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(500px 300px at 90% 0%, rgba(246,201,69,0.18), transparent 60%);
}
.block--otd .block__title { color: #fff; }
.block--otd .block__sub { color: rgba(255,255,255,0.7); }
.otd-note { position: relative; color: rgba(255,255,255,0.82); font-style: italic;
    margin: 0 0 1.2rem; font-size: 0.95rem; }
.otd-track {
    position: relative; display: flex; gap: 1rem; overflow-x: auto;
    padding-bottom: 0.6rem; scroll-snap-type: x mandatory;
}
.otd-track::-webkit-scrollbar { height: 8px; }
.otd-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 99px; }
.otd-card {
    scroll-snap-align: start; flex: 0 0 280px; color: #fff;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-sm); padding: 1.1rem; backdrop-filter: blur(6px);
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.otd-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); border-color: rgba(246,201,69,0.5); }
.otd-card--noreport { cursor: default; }
.otd-card--noreport:hover { transform: none; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
.otd-card__year { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--gold); }
.otd-card__comp { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.7); }
.otd-card__fixture { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; font-size: 0.9rem; }
.otd-card__score { flex: 0 0 auto; white-space: nowrap; font-family: var(--display); font-size: 1.2rem; background: rgba(0,0,0,0.25); padding: 0.1rem 0.55rem; border-radius: 8px; }
.otd-card__tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.2rem 0.6rem; border-radius: 999px; }
.otd-card__tag--win  { background: rgba(31,157,87,0.9); }
.otd-card__tag--loss { background: rgba(210,69,59,0.9); }
.otd-card__tag--draw { background: rgba(185,146,27,0.95); color: #1a1300; }

/* -------------------- FROM AROUND THE WEB ------------------ */
.web-grid {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.web-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem; box-shadow: var(--shadow); overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.web-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--sky), var(--blue-600));
    transform: scaleY(0); transform-origin: top; transition: transform 0.35s;
}
.web-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(20,87,196,0.2); }
.web-card:hover::before { transform: scaleY(1); }
.web-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.web-card__source {
    font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px;
    font-size: 0.68rem; font-weight: 600; color: var(--blue-700);
    background: rgba(20,87,196,0.10); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.web-card__time { font-size: 0.74rem; color: var(--muted); }
.web-card__title { font-family: var(--display); font-size: 1.08rem; line-height: 1.22; margin: 0 0 0.5rem; color: var(--ink); }
.web-card:hover .web-card__title { color: var(--blue-600); }
.web-card__excerpt { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.9rem; flex: 1; }
.web-card__link { font-size: 0.8rem; font-weight: 600; color: var(--blue-400); }

/* ----------------------------- MISC ------------------------ */
.empty { color: var(--muted); background: #fff; border: 1px dashed var(--line);
    border-radius: var(--radius-sm); padding: 1.4rem; text-align: center; }

/* ======================= MATCH REPORT PAGE ================= */
.mr { padding: 1.8rem 0 1rem; }
.mr-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--blue-500); font-weight: 600; margin-bottom: 1.1rem; }
.mr-back:hover { color: var(--blue-700); }
.mr-back__arrow { animation: none; transition: transform 0.2s; }
.mr-back:hover .mr-back__arrow { transform: translateX(-4px); }

/* Result banner */
.mr-head {
    position: relative; overflow: hidden; color: #fff; text-align: center;
    background: var(--grad-blue); border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 2.4rem); margin-bottom: 1.4rem; box-shadow: var(--shadow-lg);
}
.mr-head::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(600px 300px at 85% 0%, rgba(246,201,69,0.18), transparent 60%);
}
/* Thick blue & white stripes fading in from the side Reading played on */
.mr-head::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 30px,
        rgba(255, 255, 255, 0) 30px, rgba(255, 255, 255, 0) 60px);
}
.mr-head--reading-left::before {
    -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
    mask-image: linear-gradient(to right, #000 0%, transparent 60%);
    animation: mrStripesLeft 0.9s ease-out both;
}
.mr-head--reading-right::before {
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 60%);
    mask-image: linear-gradient(to left, #000 0%, transparent 60%);
    animation: mrStripesRight 0.9s ease-out both;
}
@keyframes mrStripesLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes mrStripesRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mr-head--reading-left::before,
    .mr-head--reading-right::before { animation: none; opacity: 1; transform: none; }
}
.mr-head > * { position: relative; z-index: 1; }
.mr-head__comp { font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.95rem; color: var(--gold); }
.mr-head__result { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.7rem 0 0.6rem; flex-wrap: wrap; }
.mr-head__team { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.mr-head__score {
    font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.3rem);
    letter-spacing: 2px; color: #fff; padding: 0.2rem 1rem; border-radius: 12px;
    background: rgba(0,0,0,0.28); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.6);
}
.mr-head__score--win  { background: var(--win); }
.mr-head__score--loss { background: var(--loss); }
.mr-head__score--draw { background: #f2c01d; color: #3a2c00; }
.mr-head__meta { display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.mr-head__venue { background: rgba(255,255,255,0.12); padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; }

/* Two-column layout */
.mr-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.4rem; align-items: start; }
.mr-main, .mr-side { display: flex; flex-direction: column; gap: 1.2rem; }

/* Generic card panel */
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.panel__head { padding: 0.7rem 1.1rem; background: linear-gradient(180deg, #f7faff, #eef3fb); border-bottom: 1px solid var(--line); }
.panel__head h2 { font-family: var(--display); font-size: 1.1rem; margin: 0; color: var(--blue-800); }
.panel__body { padding: 1.1rem; }

/* Inline team tags */
.tag { display: inline-block; font-weight: 600; font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; color: #fff; }
.tag--blue { background: var(--blue-600); }
.tag--burgundy { background: #7a1f3d; }

/* Goalscorers block */
.mr-goals {
    display: flex; flex-direction: column; gap: 0.55rem; margin: 0 0 1.4rem;
    padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #f7faff, #eef3fb);
}
.mr-goals__row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.mr-goals__row + .mr-goals__row { border-top: 1px dashed var(--line); padding-top: 0.55rem; }
.mr-goals__team { flex: 0 0 auto; }
.mr-goals__scorers { display: flex; flex-wrap: wrap; gap: 0.3rem 0.95rem; align-items: center; }
.mr-goal { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.goal-ball { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-500); }
.mr-goals__row--opp .goal-ball { color: #7a1f3d; }
.mr-goals__none { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.mr-prose { color: var(--ink); line-height: 1.7; }
.mr-prose p { margin: 0 0 0.9rem; }
.mr-prose a { color: var(--blue-500); font-weight: 600; }
.mr-prose a:hover { color: var(--blue-700); }

.mr-stats { list-style: none; margin: 0 0 1rem; padding: 0; }
.mr-stats li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.mr-stats li:last-child { border-bottom: 0; }
.mr-stats span { color: var(--muted); font-size: 0.88rem; }
.mr-stats strong { color: var(--ink); }

.mr-mom { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.mr-mom__title { font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--muted); }
.mr-mom__winner {
    display: flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, rgba(246,201,69,0.20), rgba(246,201,69,0.06));
    border: 1px solid rgba(246,201,69,0.45); border-radius: 12px; padding: 0.55rem 0.8rem;
}
.mom-trophy { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-deep); }
.mr-mom__name { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; color: var(--blue-800); }
.mr-vote { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; width: 100%; }
.mr-poll { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mr-select {
    flex: 1 1 auto; min-width: 140px; padding: 0.5rem 0.7rem; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; font-family: var(--font); color: var(--ink);
}
.mr-link { color: var(--blue-500); font-weight: 600; font-size: 0.85rem; }
.mr-muted { color: var(--muted); font-size: 0.85rem; }

/* Post-match fans' opinion feed */
.fan-posts { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.fan-post { background: #f6f9fe; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; }
.fan-post__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.fan-post__avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; color: #fff; font-size: 0.78rem; letter-spacing: 0.5px; flex-shrink: 0;
    background: linear-gradient(135deg, hsl(var(--h), 70%, 55%), hsl(calc(var(--h) + 40), 75%, 42%));
}
.fan-post__who { font-weight: 600; color: var(--blue-700); font-size: 0.9rem; }
.fan-post__time { margin-left: auto; font-size: 0.76rem; color: var(--muted); }
.fan-post__text { margin: 0; font-size: 0.9rem; color: var(--ink); line-height: 1.55; }
.mr-discuss { margin-top: 1rem; }

.mr-teams p { margin: 0 0 0.9rem; line-height: 1.7; }
.mr-teams p:last-child { margin-bottom: 0; }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.88rem; }

.mr-graph .panel__body { overflow-x: auto; }
.mr-graph .panel__body > div { margin: 0 auto; min-width: 560px; }
.mr-ad { text-align: center; }
.mr-footnote { color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; text-align: center; }

@media (max-width: 880px) {
    .mr-grid { grid-template-columns: 1fr; }
}

/* ========================= NEWS PAGES ===================== */
.news-single, .news-archive { padding: 1.8rem 0 1rem; }
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.6rem; align-items: start; }

.news-article {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2.2rem);
}
.news-article__head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.3rem; }
.news-article__date { color: var(--blue-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.8rem; }
.news-article__title { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; margin: 0.4rem 0 0.5rem; color: var(--blue-900); }
.news-article__author { color: var(--muted); font-size: 0.88rem; }
.news-article__discuss { margin-top: 1.3rem; }
.news-discussion { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.news-discussion__title { font-family: var(--display); font-size: 1.3rem; color: var(--blue-800); margin: 0 0 0.9rem; }

.news-share {
    margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.news-share__label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; color: var(--blue-800); }
.news-share__btn { color: #fff; font-weight: 600; font-size: 0.82rem; padding: 0.45rem 0.9rem; border-radius: 999px; transition: transform 0.2s, filter 0.2s; }
.news-share__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.news-share__btn--x  { background: #111; }
.news-share__btn--fb { background: #1877f2; }
.news-share__btn--wa { background: #25d366; }
.news-share__btn--em { background: var(--blue-600); }

/* Share bar on the match report (flex child of .mr-main, no divider) */
.mr-share { margin: 0; padding-top: 0; border-top: 0; }

/* Sidebar */
.news-side { display: flex; flex-direction: column; gap: 1.2rem; }
.news-side__list { list-style: none; margin: 0; padding: 0; }
.news-side__list li { border-bottom: 1px dashed var(--line); }
.news-side__list li:last-child { border-bottom: 0; }
.news-side__list a { display: block; padding: 0.6rem 0; }
.news-side__list a:hover .news-side__headline { color: var(--blue-600); }
.news-side__date { display: block; font-size: 0.72rem; color: var(--blue-400); font-weight: 600; }
.news-side__headline { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.news-side__sub { font-family: var(--display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 0.6rem; }
.news-side__sub + .news-side__chips { margin-bottom: 1.1rem; }
.news-side__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.news-side__chips a { display: inline-block; padding: 0.32rem 0.7rem; border-radius: 999px; background: rgba(20,87,196,0.08); color: var(--blue-700); font-size: 0.8rem; font-weight: 600; transition: background 0.2s, color 0.2s; }
.news-side__chips a:hover { background: var(--blue-600); color: #fff; }

/* Archive (month / year) card grid */
.article-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem;
    position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.article-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card:hover::before { transform: scaleX(1); }
.article-card__date { font-size: 0.78rem; color: var(--blue-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card__title { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; margin: 0.5rem 0; color: var(--ink); }
.article-card:hover .article-card__title { color: var(--blue-600); }
.article-card__excerpt { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.article-card__more { color: var(--blue-500); font-weight: 600; font-size: 0.88rem; }

.year-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.year-nav__label { font-weight: 600; color: var(--muted); font-size: 0.88rem; margin-right: 0.3rem; }
.year-nav__item { padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(20,87,196,0.08); color: var(--blue-700); font-weight: 600; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.year-nav__item:hover { background: var(--blue-600); color: #fff; }
.year-nav__item.is-active { background: var(--gold); color: var(--blue-900); }

@media (max-width: 880px) {
    .news-layout { grid-template-columns: 1fr; }
}

/* ========================= MATCHES PAGE =================== */
.matches { padding: 1.8rem 0 1rem; }
.matches-intro { color: var(--muted); margin: 0 0 1rem; }
.matches-mode { font-family: var(--display); font-size: 1.3rem; color: var(--blue-800); margin: 1.2rem 0 0.8rem; }
.matches-mode small { color: var(--muted); font-weight: 400; font-size: 0.7em; }

.matches-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; }
.matches-tabs a { padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(20,87,196,0.08); color: var(--blue-700); font-weight: 600; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.matches-tabs a:hover { background: var(--blue-600); color: #fff; }
.matches-tabs a.is-active { background: var(--gold); color: var(--blue-900); }

/* Results table */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-table th {
    text-align: left; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px;
    font-size: 0.72rem; color: var(--blue-800); background: linear-gradient(180deg, #f7faff, #eef3fb);
    padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.results-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results-table tbody tr:hover td { background: rgba(20,87,196,0.04); }
.results-table tr.is-home td { background: rgba(20,87,196,0.05); }
.results-table tr.is-home:hover td { background: rgba(20,87,196,0.09); }
.results-table a { color: var(--blue-600); font-weight: 600; }
.results-table a:hover { color: var(--blue-800); }
.rt-date, .rt-comp { white-space: nowrap; }
.rt-venue { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.rt-noreport, .rt-pos { color: var(--muted); }
.rt-spacer td { padding: 0; height: 8px; border-bottom: 0; background: transparent !important; }

.res-pill { display: inline-block; font-weight: 700; font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 7px; color: #fff; white-space: nowrap; }
.res-pill--win  { background: var(--win); }
.res-pill--loss { background: var(--loss); }
.res-pill--draw { background: #f2c01d; color: #3a2c00; }

/* Head-to-head */
.h2h { margin-top: 1.4rem; }
.h2h__list { list-style: none; margin: 0; padding: 0; }
.h2h__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.h2h__list li:last-child { border-bottom: 0; }
.h2h__list strong { font-family: var(--display); font-size: 1.15rem; color: var(--blue-800); }

/* Selection panels */
.matches-select { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.matches-select__hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.matches-select__sub { font-family: var(--display); font-size: 1.05rem; color: var(--blue-800); margin: 1.3rem 0 0.6rem; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill-list a { display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(20,87,196,0.08); color: var(--blue-700); font-size: 0.8rem; font-weight: 600; transition: background 0.2s, color 0.2s; }
.pill-list a:hover { background: var(--blue-600); color: #fff; }
.season-list { columns: 2; column-gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.season-list li { break-inside: avoid; margin-bottom: 0.35rem; }
.season-list a { color: var(--blue-600); font-size: 0.86rem; font-weight: 500; }
.season-list a:hover { color: var(--blue-800); }
.season-list__div { color: var(--muted); font-weight: 400; font-size: 0.85em; }

@media (max-width: 880px) {
    .matches-select { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .season-list { columns: 1; }
}

/* ===================== LEGACY / STATS PAGES =============== */
.legacy { padding: 1.8rem 0 1rem; }
.legacy-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.4rem; align-items: start; }
.legacy-main { min-width: 0; }
.legacy-side { display: flex; flex-direction: column; gap: 1.2rem; }
.legacy h3 { font-family: var(--display); color: var(--blue-800); margin: 1.2rem 0 0.6rem; }

/* Themed wrapper for generated data tables (table_a/_b/_1.. and .table-striped) */
.legacy-table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.legacy-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.legacy-table td, .legacy-table th { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.legacy-table a { color: var(--blue-600); font-weight: 600; }
.legacy-table a:hover { color: var(--blue-800); }
/* Title bar cell */
.legacy-table .table_a {
    font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff;
    background: var(--grad-blue); letter-spacing: 0.3px;
}
/* Column header cells */
.legacy-table .table_b {
    font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.72rem;
    color: var(--blue-800); background: linear-gradient(180deg, #f7faff, #eef3fb);
}
/* maintable.html zones: 1 = auto promotion, 2 = play-offs, 3 = mid-table/generic, 4 = relegation */
.legacy-table .table_1 { background: rgba(31,157,87,0.16); }
.legacy-table .table_2 { background: rgba(31,157,87,0.07); }
.legacy-table .table_3 { background: #fff; }
.legacy-table .table_4 { background: rgba(210,69,59,0.10); }
.legacy-table tr:hover .table_1,
.legacy-table tr:hover .table_2,
.legacy-table tr:hover .table_3,
.legacy-table tr:hover .table_4 { background: rgba(20,87,196,0.10); }

/* Highlight Reading's row (the only data row wrapped in <strong>) */
.legacy-table tr:has(td strong) td { background: rgba(20,87,196,0.16) !important; }
.legacy-table td strong { color: var(--blue-800); font-weight: 700; }

/* Numeric columns centred, team-name column (2nd) left, points/total bold */
.legacy-table td, .legacy-table th { text-align: center; }
.legacy-table td:nth-child(2), .legacy-table th:nth-child(2) { text-align: left; }
.legacy-table .table_a { text-align: left; }
.legacy-table tr td:last-child { font-weight: 700; color: var(--blue-800); }

.legacy-table .table.table-striped { margin-bottom: 1.2rem; }

/* Fixtures list (fixtures.html: fixturesh = home game, fixtures = away game) */
.legacy-table .fixturesh { background: rgba(20,87,196,0.07); }
.legacy-table .fixtures  { background: #fff; }
.legacy-table tr:hover .fixturesh,
.legacy-table tr:hover .fixtures { background: rgba(20,87,196,0.11); }

/* Smooth touch scrolling for wide tables */
.legacy-table, .table-wrap { -webkit-overflow-scrolling: touch; }

/* Mobile: stack the table/sidebar layout, tighten the tables */
@media (max-width: 880px) {
    .legacy-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .legacy-table table, .results-table { font-size: 0.82rem; }
    .legacy-table td, .legacy-table th { padding: 0.4rem 0.5rem; }
    .results-table td, .results-table th { padding: 0.45rem 0.55rem; }
    .legacy-table .table_a, .legacy-table .table_b { font-size: 0.78rem; }
}

/* News search box */
.news-search { display: flex; gap: 0.5rem; }
.news-search input[type="text"] { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font); color: var(--ink); }

/* Season history grid (previous_seasons) */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.season-grid .col-md-6 { margin: 0; }
.season-grid .newspanel { margin: 0; height: 100%; }
.legacy blockquote { margin: 0 0 0.5rem; padding: 0; color: var(--muted); font-style: italic; }
.legacy .newspanel ul { margin: 0.5rem 0 0; padding-left: 1.1rem; line-height: 1.6; }

/* Old "newspanel" blocks -> cards */
.newspanel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin: 0 0 1.1rem;
}
.newspanel h3 { font-family: var(--display); color: var(--blue-800); margin: 0 0 0.5rem; }
.legacy-main .newspanel a, .legacy .newspanel a { color: var(--blue-600); font-weight: 600; }

/* Multi-column themed link list */
.link-cols { columns: 2; column-gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.link-cols li { break-inside: avoid; margin-bottom: 0.35rem; }
.link-cols a { color: var(--blue-600); font-weight: 500; font-size: 0.9rem; }
.link-cols a:hover { color: var(--blue-800); }
@media (max-width: 560px) { .link-cols { columns: 1; } }

/* Man of the Match page */
.mom-player { color: var(--blue-600); }
.mom-player:hover { color: var(--blue-800); }
.mom-breakdown { margin-top: 0.45rem; padding-left: 0.8rem; border-left: 2px solid var(--line); font-size: 0.84rem; color: var(--muted); line-height: 1.7; text-align: left; }
.mom-breakdown a { color: var(--blue-500); font-weight: 600; }
.mom-breakdown a:hover { color: var(--blue-700); }
.mom-pie { height: 300px; width: 100%; max-width: 340px; margin: 0 auto; }

/* Site map — card grid */
.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
@media (min-width: 900px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
.sitemap-card .panel__head h2 { display: flex; align-items: center; gap: 0.5rem; }
.sitemap-card .panel__head .nav-ico { width: 18px; height: 18px; color: var(--blue-600); }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { border-bottom: 1px dashed var(--line); }
.sitemap-list li:last-child { border-bottom: 0; }
.sitemap-list a { display: block; padding: 0.45rem 0; color: var(--ink); font-size: 0.9rem; }
.sitemap-list a:hover { color: var(--blue-700); }
.sitemap-list a strong { color: var(--blue-700); }
.sitemap-date { display: inline-block; color: var(--blue-400); font-weight: 600; font-size: 0.76rem; margin-right: 0.45rem; }
.sitemap-sub { font-family: var(--display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 1.1rem 0 0.55rem; }
.sitemap-foot { margin: 1rem 0 0; }
.sitemap-foot a { color: var(--blue-500); font-weight: 600; font-size: 0.88rem; }

/* Simple themed link lists used by sitemap / archive pages */
.legacy ul { line-height: 1.7; }
.legacy-main > ul a, .legacy .link-cols a { color: var(--blue-600); font-weight: 500; }
.legacy-main > ul a:hover { color: var(--blue-800); }

/* ========================= ARTICLES PAGE ================== */
.articles { padding: 1.8rem 0 1rem; }
.articles table {
    width: 100% !important; border-collapse: collapse; margin: 0 0 0.9rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; box-shadow: var(--shadow);
}
.articles td {
    padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem;
}
.articles tr:last-child td { border-bottom: 0; }
.articles tbody tr:hover td { background: rgba(20,87,196,0.03); }
.articles a { color: var(--blue-600); font-weight: 600; }
.articles a:hover { color: var(--blue-800); }

/* Season header rows (colspan=3) -> blue section bars */
.articles td[colspan="3"] {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500)) !important;
    color: #fff !important; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.3px;
    padding: 0.6rem 0.9rem;
}
.articles td[colspan="3"] b { font-weight: 700; }
.articles tr:hover td[colspan="3"] { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)) !important; }

/* Hide the legacy "Article Title / Last Updated" column-header row */
.articles td[bgcolor="#CCCCFF"] { display: none; }

/* Date column (right-aligned, muted) */
.articles td:last-child { text-align: right; white-space: nowrap; color: var(--muted); font-size: 0.82rem; }
.articles td:last-child div { text-align: right !important; }

.articles-submit { margin-top: 1.4rem; }

/* ============================ FOOTER ======================= */
.site-footer { margin-top: 4rem; background: var(--blue-900); color: rgba(255,255,255,0.75); }
.site-footer__inner { display: grid; gap: 1.4rem; padding: 2.6rem 0 2rem;
    grid-template-columns: 1.2fr 1fr; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__logo { height: 56px; padding-right: 0.9rem; }
.site-footer__brand p { margin: 0; color: #fff; }
.site-footer__brand strong { font-family: var(--display); font-size: 1.2rem; }
.site-footer__motto { color: var(--gold); font-style: italic; font-size: 0.92rem; }
.site-footer__links { display: flex; gap: 1.2rem; justify-content: flex-end; flex-wrap: wrap; }
.site-footer__links a { color: rgba(255,255,255,0.8); font-weight: 500; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.2rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ====================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .bg-stripes { animation: none; transform: none; }
    html { scroll-behavior: auto; }
}

/* ========================= RESPONSIVE ===================== */
@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; padding: 2.2rem 0 1.8rem; }
    .site-footer__brand { flex-direction: column; text-align: center; gap: 0.7rem; }
    .site-footer__logo { padding-right: 0; }
    .site-footer__links { justify-content: center; gap: 1rem 1.4rem; }
    .site-footer__legal { padding-top: 1.4rem; }
}
/* Collapse the (now larger) nav into a slide-down panel earlier */
@media (max-width: 1024px) {
    .nav {
        position: fixed; inset: 84px 0 auto 0; max-height: calc(100vh - 84px); overflow-y: auto;
        background: var(--blue-800); padding: 0.4rem 6vw 1.4rem;
        transform: translateY(-130%); transition: transform 0.35s;
        box-shadow: 0 22px 32px -12px rgba(0,0,0,0.55);
    }
    .nav.open { transform: translateY(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav a, .has-drop__btn {
        border-radius: 0; padding: 0.9rem 0.4rem; width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08); justify-content: flex-start;
    }
    .nav a:hover, .has-drop__btn:hover, .has-drop:hover .has-drop__btn { background: transparent; color: var(--gold); }
    .has-drop__btn { justify-content: space-between; }
    .has-drop__btn .caret { margin-left: auto; }

    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: rgba(255,255,255,0.05); border: 0; border-radius: 0; box-shadow: none;
        min-width: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    }
    .has-drop:hover .dropdown { max-height: 0; }
    .has-drop.open .dropdown { max-height: 640px; }
    .dropdown li a { color: rgba(255,255,255,0.85); padding-left: 1.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff; }
    .dropdown__divider { background: rgba(255,255,255,0.12); margin: 0; }

    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {
    .report { grid-template-columns: 110px 1fr; }
    .topic__stats { display: none; }
}
