/*
Theme Name: SSI FANZINE
Author: SSI FANZINE
Description: Lightweight custom sports news and magazine theme.
Version: 1.2.0
Text Domain: ssi-fanzine
*/

:root {
    --text: #111111;
    --muted: #656b74;
    --border: #e6e6e6;
    --background: #ffffff;
    --surface: #f7f7f7;
    --card: #ffffff;
    --header-bg: #ffffff;
    --header-icon: #111111;
    --accent: #ef2333;
    --dark: #050505;
    --shadow: rgba(0, 0, 0, 0.05);
    --max-width: 1200px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --text: #f4f4f5;
    --muted: #a5adba;
    --border: #292d33;
    --background: #0d0f12;
    --surface: #181b20;
    --card: #12151a;
    --header-bg: #101216;
    --header-icon: #ffffff;
    --shadow: rgba(0, 0, 0, 0.38);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

.site-container {
    width: min(var(--max-width), calc(100% - 72px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

body.admin-bar .site-header { top: 32px; }

@media screen and (max-width:782px) {
    body.admin-bar .site-header { top: 46px; }
}

.header-top {
    background: var(--dark);
    color: #ffffff;
    font-size: 12px;
}

.header-top-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.utility-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-main {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.logo-rule {
    height: 2px;
    flex: 1;
    background: var(--text);
}

.logo-ssi {
    color: var(--accent);
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
}

.logo-title {
    display: block;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-transform: uppercase;
}

.site-logo small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    text-align: center;
}
.site-footer .logo-title { color:#fff; }
.site-footer .logo-rule { background:#fff; }

.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    flex: 0 0 34px;
}

.header-search .search-icon {
    width: 20px;
    height: 20px;
    color: var(--header-icon);
    display: block;
}

.nav-shell {
    border-top: 1px solid var(--border);
}

.site-ticker {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--background);
    overflow: hidden;
}

.ticker-label {
    position: relative;
    flex: 0 0 auto;
    margin-left: 20px;
    padding: 4px 10px;
    border-radius: 3px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticker-viewport {
    display: flex;
    overflow: hidden;
    min-width: 0;
}

.ticker-track {
    display: flex;
    gap: 30px;
    align-items: center;
    padding-left: 20px;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ticker-item:hover {
    color: var(--accent);
}

.ticker-item::before {
    content: "•";
    margin-right: 10px;
    color: var(--accent);
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.theme-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
}

.theme-toggle-icon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.toggle-icon {
    width: 13px;
    height: 13px;
}

.icon-moon {
    display: none;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon {
    transform: translateX(20px);
    background: #2a2f36;
    color: #ffffff;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon .icon-sun {
    display: none;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon .icon-moon {
    display: block;
}

.nav-row {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.main-navigation {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
}

.main-navigation a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 17px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.main-navigation a:first-child {
    color: var(--accent);
}

.main-navigation a:first-child::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 0;
    left: 17px;
    height: 2px;
    background: var(--accent);
}

.main-navigation .special-nav-link {
    color: var(--accent);
}

.main-navigation .special-nav-link::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(239, 35, 51, 0.12);
}

.mobile-menu-button,
.mobile-navigation,
.bottom-tab-bar,
.live-score-fab {
    display: none;
}

.site-main {
    padding: 24px 0 0;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
}

.featured-story {
    position: relative;
    min-height: 360px;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 4px;
    background: #111111;
}

.featured-image,
.featured-image img {
    width: 100%;
    height: 100%;
}

.featured-image {
    position: absolute;
    inset: 0;
}

.featured-image img {
    object-fit: cover;
}

.featured-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.22) 62%, rgba(0, 0, 0, 0.55));
}

.featured-content {
    position: relative;
    z-index: 1;
    width: min(620px, 80%);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px 28px;
    color: #ffffff;
}

.post-category {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.featured-content .post-category {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
}

.featured-content h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

.featured-content h1 a,
.featured-content h1 a:hover {
    color: #ffffff;
}

.featured-content .post-excerpt {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
}

.post-meta {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.featured-content .post-meta {
    display: flex;
    gap: 16px;
    color: #ffffff;
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.section-title h2 {
    position: relative;
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.section-title a {
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    min-width: 0;
    background: transparent;
}

.article-image {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.04);
}

.article-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.22;
    font-weight: 900;
}

.home-sidebar {
    min-width: 0;
}

.sidebar-section {
    margin-bottom: 28px;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.news-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--surface);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.topic-list {
    display: grid;
    gap: 2px;
}

.topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 12px;
    padding: 3px 0;
    font-size: 14px;
    font-weight: 700;
}

.topic-item::before {
    content: "";
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.topic-item span {
    margin-right: auto;
}

.topic-item em {
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-style: normal;
    text-align: center;
}

.featured-categories {
    margin-top: 34px;
    margin-bottom: 20px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-tile {
    position: relative;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 4px;
    padding: 14px;
    background: #111111;
    color: #ffffff;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-tile small {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-footer {
    margin-top: 0;
    padding: 28px 0 18px;
    background: var(--dark);
    color: #ffffff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.footer-description {
    margin: 10px 0 0;
    color: #b8bcc4;
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 8px 22px;
    color: #c9cbd0;
    font-size: 13px;
}

.footer-links .menu-item {
    list-style: none;
}

.footer-right {
    text-align: left;
}

.single-article,
.commerce-shell {
    max-width: 940px;
    margin: 0 auto 60px;
}

.single-header,
.archive-header,
.author-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-header h1,
.archive-header h1,
.author-info h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.single-meta,
.archive-description,
.author-info p {
    color: var(--muted);
    font-size: 14px;
}

.single-featured-image {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 4px;
}

.single-featured-image img {
    width: 100%;
}

.single-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.6;
}

.single-content p {
    margin: 0 0 24px;
}

.single-content h2,
.single-content h3 {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
}

.single-footer {
    max-width: 720px;
    margin: 45px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.article-categories a,
.nav-links a,
.nav-links span {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
}

.error-page {
    max-width: 680px;
    margin: 70px auto;
    text-align: center;
}

.error-page h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
    font-weight: 900;
}

.error-home-link,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
}

input,
textarea,
select {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}

input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

.woocommerce table.shop_table,
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-cart-form,
.woocommerce-checkout {
    border-color: var(--border);
    background: var(--card);
    color: var(--text);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--surface);
    color: var(--text);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.woocommerce ul.products li.product .price {
    color: var(--accent);
    font-weight: 900;
}

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

    .home-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .category-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    body {
        padding-bottom: 90px;
    }

    .site-container {
        width: calc(100% - 32px);
    }

    .site-header {
        position: static;
        z-index: 25;
        border-radius: 0 0 28px 28px;
    }

    .header-top-inner {
        justify-content: center;
        min-height: 48px;
    }

    .utility-navigation {
        display: none;
    }

    .header-main {
        min-height: 110px;
    }

    .site-logo {
        align-items: center;
        margin-inline: auto;
        font-size: 36px;
    }

    .site-logo small {
        font-size: 13px;
        text-align: center;
    }

    .mobile-menu-button {
        position: relative;
        display: block;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-button::before,
    .mobile-menu-button::after,
    .mobile-menu-button span {
        content: "";
        position: absolute;
        left: 7px;
        width: 28px;
        height: 2px;
        background: var(--header-icon);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-button::before {
        top: 12px;
    }

    .mobile-menu-button span {
        top: 20px;
    }

    .mobile-menu-button::after {
        top: 28px;
    }

    .mobile-menu-button[aria-expanded="true"]::before {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-button[aria-expanded="true"] span {
        opacity: 0;
    }

    .mobile-menu-button[aria-expanded="true"]::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-shell {
        overflow-x: auto;
    }

    .nav-row {
        width: 100%;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation a {
        min-height: 68px;
        padding-inline: 17px;
        font-size: 16px;
    }

    .mobile-navigation.is-open {
        display: block;
        border-top: 1px solid var(--border);
    }

    .mobile-navigation .site-container {
        display: grid;
        gap: 0;
        padding: 8px 0 16px;
    }

    .mobile-navigation a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-weight: 800;
    }

    .mobile-navigation .special-nav-link {
        color: var(--accent);
    }

    .bottom-tab-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 76px;
        padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        background: #050505;
        color: #ffffff;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.22);
    }

    .bottom-tab {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 58px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #ffffff;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-transform: none;
        cursor: pointer;
    }

    .bottom-tab:hover,
    .bottom-tab.is-active,
    .bottom-menu-toggle[aria-expanded="true"] {
        color: var(--accent);
    }

    .bottom-tab-icon {
        position: relative;
        display: block;
        width: 27px;
        height: 27px;
        color: currentColor;
    }

    .bottom-tab-home::before {
        content: "";
        position: absolute;
        top: 5px;
        left: 4px;
        width: 17px;
        height: 17px;
        border: 2px solid currentColor;
        border-top: 0;
    }

    .bottom-tab-home::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 5px;
        width: 16px;
        height: 16px;
        border-top: 2px solid currentColor;
        border-left: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .bottom-tab-magazine::before {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 18px;
        height: 19px;
        border: 2px solid currentColor;
        border-radius: 2px;
    }

    .bottom-tab-magazine::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 13px;
        width: 2px;
        height: 13px;
        background: currentColor;
        box-shadow: -5px 0 0 transparent, 5px 0 0 transparent;
    }

    .bottom-tab-authors::before,
    .bottom-tab-authors::after {
        content: "";
        position: absolute;
        border: 2px solid currentColor;
        border-radius: 999px;
    }

    .bottom-tab-authors::before {
        top: 4px;
        left: 10px;
        width: 7px;
        height: 7px;
    }

    .bottom-tab-authors::after {
        top: 15px;
        left: 6px;
        width: 15px;
        height: 8px;
        border-bottom: 0;
    }

    .bottom-tab-authors {
        box-shadow: inset -7px 2px 0 -5px currentColor, inset 7px 2px 0 -5px currentColor;
    }

    .bottom-tab-search::before {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 15px;
        height: 15px;
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    .bottom-tab-search::after {
        content: "";
        position: absolute;
        right: 4px;
        bottom: 5px;
        width: 10px;
        height: 2px;
        background: currentColor;
        transform: rotate(45deg);
    }

    .bottom-tab-menu::before,
    .bottom-tab-menu::after {
        content: "";
        position: absolute;
        left: 4px;
        width: 19px;
        height: 2px;
        background: currentColor;
    }

    .bottom-tab-menu::before {
        top: 7px;
        box-shadow: 0 7px 0 currentColor;
    }

    .bottom-tab-menu::after {
        top: 21px;
    }

    .live-score-fab {
        position: fixed;
        right: 14px;
        bottom: 86px;
        z-index: 31;
        display: flex;
        width: 62px;
        height: 62px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        border-radius: 50%;
        background: var(--accent);
        color: #ffffff;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
        text-align: center;
        text-transform: uppercase;
    }

    .live-score-fab span {
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
    }

    .live-score-fab strong {
        margin-top: 2px;
        font-size: 12px;
        line-height: 1;
    }

    .site-main {
        padding-top: 22px;
    }

    .featured-story {
        min-height: 520px;
        border-radius: 6px;
    }

    .featured-content {
        width: 100%;
        min-height: 520px;
        padding: 28px;
    }

    .featured-content h1 {
        font-size: 34px;
    }

    .article-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .article-card {
        flex: 0 0 254px;
        scroll-snap-align: start;
        border: 1px solid var(--border);
        border-radius: 6px;
        overflow: hidden;
        background: var(--card);
    }

    .article-card .post-category,
    .article-card h3,
    .article-card .post-meta {
        margin-right: 14px;
        margin-left: 14px;
    }

    .article-card .post-meta {
        margin-bottom: 14px;
    }

    .article-image {
        border-radius: 0;
        margin-bottom: 12px;
    }

    .home-sidebar {
        display: block;
    }

    .news-list {
        gap: 18px;
    }

    .news-item {
        grid-template-columns: 38% minmax(0, 1fr);
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border);
    }

    .news-item h3 {
        font-size: 18px;
    }

    .topic-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .topic-item {
        min-height: 92px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        border-right: 1px solid var(--border);
        text-align: center;
    }

    .topic-item span {
        margin: 0;
    }

    .category-strip {
        display: flex;
        overflow-x: auto;
    }

    .category-tile {
        flex: 0 0 220px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-right {
        text-align: left;
    }

    .single-header h1,
    .archive-header h1,
    .author-info h1 {
        font-size: 38px;
    }
}

@media (max-width: 520px) {
    .site-container {
        width: calc(100% - 24px);
    }

    .site-logo {
        font-size: 30px;
    }

    .site-logo small {
        font-size: 11px;
    }

    .main-navigation a {
        font-size: 14px;
        padding-inline: 14px;
    }

    .featured-story {
        min-height: 448px;
    }

    .featured-content {
        min-height: 448px;
        padding: 22px;
    }

    .featured-content h1 {
        font-size: 30px;
    }

    .featured-content .post-excerpt {
        font-size: 15px;
    }

    .topic-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-item {
        grid-template-columns: 1fr;
    }
}

/* Reference layout refinements */
.social-links { display:flex; align-items:center; gap:12px; }
.social-links a { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border:1px solid rgba(255,255,255,.55); border-radius:50%; color:#fff; font-size:10px; font-weight:900; text-transform:uppercase; }
.social-links .social-svg { display:block; width:13px; height:13px; }
.header-banner-wrap { padding:12px 0; }
.header-banner { min-height:64px; width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 24px; border-radius:4px; background:linear-gradient(100deg,#08121d,#050505); color:#fff; font-size:16px; font-weight:900; line-height:1.05; text-transform:uppercase; }
.header-main > .header-banner { width:min(700px,62%); flex:1 1 auto; }
.header-banner strong { color:var(--accent); }
.header-banner > span { white-space:nowrap; }
.header-banner b { padding:12px 16px; border-radius:4px; background:var(--accent); font-size:11px; white-space:nowrap; }
.header-banner:hover, .header-banner:hover span { color:#fff; }
.header-banner:hover strong { color:var(--accent); }
.header-banner:hover b { color:#fff; }
.header-search { margin-left:auto; }
.mobile-header-search { display:flex; align-items:center; justify-content:center; }
.main-navigation .header-search { display:none; }
.article-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.featured-author { display:inline-flex; align-items:center; gap:8px; }
.featured-author img { width:28px; height:28px; border-radius:50%; }
.news-view-all { display:block; margin-top:14px; padding:7px; border:1px solid var(--border); border-radius:3px; color:var(--accent); font-size:11px; font-weight:900; text-align:center; text-transform:uppercase; }
.footer-inner { grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; }
.footer-links, .footer-categories { display:grid; grid-template-columns:1fr 1fr; gap:5px 20px; color:#c9cbd0; font-size:13px; }
.footer-categories { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); }
.footer-links strong, .footer-categories strong, .footer-right strong { grid-column:1/-1; color:#fff; font-size:12px; text-transform:uppercase; }
.footer-right .social-links { margin-top:12px; }
.footer-bottom { padding:9px 0; background:#050505; border-top:1px solid #333; color:#aaa; font-size:11px; }
.footer-bottom .site-container { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; }
.footer-credit { text-align:center; color:#fff; }
.footer-legal { justify-self:end; }
.footer-bottom a { margin-left:28px; color:#fff; }

@media (max-width:800px) {
    html, body { max-width:100%; overflow-x:clip; }
    .site-header { border-radius:0 0 28px 28px; }
    .site-container { width:calc(100% - 40px); }
    .header-top-inner { justify-content:space-between; gap:8px; font-size:11px; }
    .header-top-inner > span { min-width:0; white-space:nowrap; }
    .header-top-inner .social-links { display:flex; flex:0 0 auto; }
    .header-main { position:relative; width:100%; min-width:0; overflow:hidden; display:grid !important; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; }
    .header-main .header-banner { display:none !important; }
    .header-main .mobile-menu-button { grid-column:1; flex:0 0 38px; }
    .header-main .site-logo { grid-column:2; justify-self:center; width:fit-content; min-width:0; }
    .header-main .header-actions { grid-column:3; display:flex; align-items:center; gap:8px; padding-right:4px; }
    .header-main .theme-toggle { width:44px; height:25px; }
    .site-ticker { margin-right:20px; margin-left:20px; }
    .header-main .mobile-header-search { display:block; }
    .site-logo span { white-space:nowrap; }
    .logo-ssi { font-size:30px; }
    .logo-title { font-size:20px; }
    .nav-shell { max-width:100%; overflow:hidden; }
    .nav-row { width:100%; min-width:0; }
    .main-navigation { max-width:100%; overflow-x:auto; overflow-y:hidden; }
    .home-layout { display:grid; grid-template-columns:1fr; gap:0; }
    .home-primary, .home-sidebar { display:contents; }
    .featured-story { order:1; width:calc(100% - 32px) !important; min-width:0; max-width:calc(100% - 32px); min-height:448px; margin:22px 16px 0; border-radius:7px; }
    .featured-content { width:100%; min-width:0; max-width:100%; min-height:448px; padding:28px; }
    .featured-content h1 { font-size:34px; }
    .featured-content h1, .featured-content .post-excerpt { overflow-wrap:anywhere; }
    .latest-news-section { order:2; margin-top:26px; }
    .latest-articles-section { order:3; margin-top:26px; }
    .popular-topics-section { order:4; margin-top:26px; }
    .article-grid { grid-template-columns:none; }
    .article-grid { width:100%; min-width:0; max-width:100%; }
    .article-card { min-width:0; }
    .news-item { min-width:0; max-width:100%; }
    .main-navigation .header-search { display:none; }
    .section-title a { color:var(--accent); font-size:12px; }
    .footer-inner { grid-template-columns:1fr; }
    .footer-categories { display:none; }
    .footer-bottom .site-container { display:block; text-align:center; }
    .footer-credit { display:block; margin:7px 0; }
    .footer-legal { display:block; }
    .footer-bottom .site-container > span { display:block; margin-top:4px; }
    .footer-bottom a { margin:0 18px 0 0; }
    .footer-bottom { padding-bottom:96px; }
    .footer-bottom .site-container { padding-right:12px; padding-left:12px; }
    .footer-legal { display:flex !important; justify-content:center; flex-wrap:wrap; gap:8px 16px; }
    .footer-legal a { margin:0; }
}

/* Compact category article grids */
.editorial-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.editorial-list { display:contents; }
.editorial-lead { grid-column:auto; grid-row:auto; }
.editorial-lead-image { aspect-ratio:16/9; max-height:none; }
.editorial-lead h3 { font-size:15px; line-height:1.22; }
.editorial-excerpt { display:none; }
.editorial-item { grid-column:auto; display:block; padding:0; border:0; }
.editorial-item-thumb { display:block; width:100%; aspect-ratio:16/9; margin-bottom:9px; }
.editorial-item-body h4 { font-size:15px; }
.editorial-item .post-meta { margin-top:8px; }

@media (max-width:800px) {
    .editorial-grid { display:flex; gap:16px; overflow-x:auto; }
    .editorial-item { flex:0 0 240px; }
    .editorial-item { display:block; }
}

@media screen and (min-width:801px) {
    .archive-header + .article-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}

@media screen and (max-width:800px) {
    .archive-layout { display:flex; flex-direction:column; gap:28px; }
    .archive-main-column { order:1; width:100%; }
    .archive-dont-miss { order:2; width:100%; }
    .archive-popular-news { order:3; width:100%; }
    .archive-main-column .article-grid { display:flex; grid-template-columns:none; overflow-x:auto; }
    .archive-main-column .archive-card { flex:0 0 270px; }
}

@media screen and (max-width:800px) {
    .archive-layout { display:flex !important; flex-direction:column !important; width:100% !important; min-width:0; }
    .archive-main-column, .archive-dont-miss, .archive-popular-news { width:100% !important; min-width:0; }
    .archive-main-column { order:1; }
    .archive-dont-miss { order:2; }
    .archive-popular-news { order:3; }
    .archive-main-column .article-grid { display:grid !important; grid-template-columns:1fr !important; width:100%; overflow:visible; }
    .archive-main-column .archive-card { width:100%; min-width:0; }
    .site-search-form { width:100%; }
    .site-search-form button { padding:0 14px; }
    .article-card > .post-excerpt,
    .article-card > .editorial-excerpt,
    .editorial-lead > .editorial-excerpt { margin-right:14px; margin-left:14px; }
    .index-grid { grid-template-columns:1fr; }
}

@media (max-width:520px) {
    .logo-ssi { font-size:26px; }
    .logo-title { font-size:17px; }
    .header-top-inner .social-links a { width:20px; height:20px; }
    .social-links { gap:7px; }
}

@media screen and (max-width:800px) {
    .site-main { width:100%; max-width:100vw; overflow:hidden; }
    .home-layout { display:grid; grid-template-columns:minmax(0,1fr) !important; width:100%; min-width:0; max-width:100%; overflow:hidden; }
    .home-primary, .home-sidebar { min-width:0; max-width:100%; }
    .featured-slider { order:1; margin:22px 22px 0; }
    .featured-story { box-sizing:border-box; width:100% !important; max-width:100% !important; margin:0 !important; }
    .featured-content { box-sizing:border-box; width:100% !important; max-width:100% !important; }
    .featured-content h1 { width:100%; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
    .article-grid { width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; }
    .latest-news-section, .latest-articles-section, .popular-topics-section { margin-right:22px; margin-left:22px; }
    .latest-news-section > .section-title > a { width:72px; overflow:hidden; font-size:0; white-space:nowrap; }
    .latest-news-section > .section-title > a::after { content:"View All  >"; font-size:11px; }
    .popular-topics-section .topic-list { display:flex; gap:0; width:100%; overflow-x:auto; padding:4px 0 10px; }
    .popular-topics-section .topic-item { flex:0 0 84px; min-height:86px; flex-direction:column; justify-content:center; gap:7px; padding:8px 4px; border-right:1px solid var(--border); text-align:center; }
    .popular-topics-section .topic-icon { width:31px; height:31px; flex:0 0 31px; border-width:2px; }
    .popular-topics-section .topic-icon-more { border:0; }
    .popular-topics-section .topic-icon-more i { width:4px; height:4px; }
    .popular-topics-section .topic-name { margin:0; font-size:12px; text-align:center; }
    .popular-topics-section .topic-item em { min-width:28px; padding:2px 5px; font-size:10px; }
    .video-section { margin:0 22px 26px; }
    .video-grid { display:flex; gap:16px; overflow-x:auto; width:100%; min-width:0; max-width:100%; }
    .video-card { flex:0 0 254px; scroll-snap-align:start; }
    .video-play { width:40px; height:40px; }
}

/* Featured story slider */
.featured-slider { position:relative; margin-bottom:28px; overflow:hidden; border-radius:4px; }
.featured-track { display:flex; transition:transform 0.55s ease; }
.featured-slider .featured-story { flex:0 0 100%; min-width:100%; margin:0; border-radius:4px; }
.featured-dots { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:6px; z-index:3; }
.featured-dot { width:22px; height:5px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,0.45); cursor:pointer; transition:background 0.2s ease; }
.featured-dot.is-active { background:var(--accent); }

/* Popular topics: sport icons */
.topic-item::before { content:none; }
.topic-item { position:relative; display:flex; align-items:center; gap:12px; min-height:36px; padding:4px 0; }
.topic-icon { width:27px; height:27px; flex:0 0 27px; display:flex; align-items:center; justify-content:center; border:2px solid var(--accent); border-radius:50%; color:var(--accent); }
.topic-svg { width:15px; height:15px; }
.topic-name { margin-right:auto; }
.topic-item .topic-icon { margin-right:0; }
.topic-icon-more { border:0; gap:2px; }
.topic-icon-more i { width:4px; height:4px; border-radius:50%; background:var(--accent); display:block; }

/* Clock icon beside dates */
.meta-date { display:inline-flex; align-items:center; }
.meta-date-inner { display:inline-flex; align-items:center; gap:5px; }
.meta-icon { width:12px; height:12px; color:currentColor; flex:0 0 12px; }

/* Latest Videos */
.video-section { margin-bottom:34px; }
.video-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.video-card { min-width:0; }
.video-thumb { position:relative; display:block; aspect-ratio:16/9; margin-bottom:12px; overflow:hidden; border-radius:4px; background:var(--surface); background-size:cover; background-position:center; }
.video-thumb .video-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.video-thumb::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,0.22); border-radius:4px; }
.video-play { position:absolute; top:50%; left:50%; z-index:2; width:44px; height:44px; transform:translate(-50%,-50%); border-radius:50%; background:var(--accent); }
.video-play::before { content:""; position:absolute; top:50%; left:52%; width:0; height:0; transform:translate(-50%,-50%); border-left:13px solid #fff; border-top:8px solid transparent; border-bottom:8px solid transparent; }
.video-card h3 { margin:0; font-size:16px; line-height:1.22; font-weight:900; }

/* Newsletter box */
.newsletter-section { margin-bottom:28px; }
.newsletter-box { padding:20px; border-radius:6px; background:var(--dark); color:#fff; }
.newsletter-text { margin:0 0 14px; color:#c9cbd0; font-size:13px; }
.newsletter-form { position:relative; display:flex; flex-direction:column; gap:10px; }
.newsletter-input { width:100%; padding:12px 14px; border:1px solid #444; border-radius:4px; background:#111; color:#fff; font:inherit; font-size:14px; }
.newsletter-input::placeholder { color:#8b8f96; }
.newsletter-button { padding:12px 16px; border:0; border-radius:4px; background:var(--accent); color:#fff; font-weight:900; text-transform:uppercase; font-size:13px; cursor:pointer; }
.newsletter-button:hover { background:#d31f2e; }
.newsletter-msg { margin:0 0 12px; padding:9px 12px; border-radius:4px; font-size:13px; }
.newsletter-msg-success { background:rgba(46,204,113,0.16); color:#7ee2a8; }
.newsletter-msg-error { background:rgba(239,35,51,0.16); color:#ff8b95; }

/* Premium sports typography */
body { font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif; }

/* Premium fallback gradients (used when a post has no featured image) */
.featured-story { background: radial-gradient(120% 110% at 18% 0%, #2a3947 0%, #131a22 48%, #07090c 100%); }
.article-image, .news-image { background: linear-gradient(135deg,#25303a,#11161b); }
.editorial-lead-image, .editorial-item-thumb, .video-thumb { background: linear-gradient(135deg,#25303a,#11161b); }
.category-tile { background: linear-gradient(135deg,#2a3947,#0c1116); }
.featured-story::after { background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.12) 100%); }
.section-title h2 { letter-spacing:0.02em; }
.section-title a { color:var(--accent); transition:opacity 0.15s ease; }
.section-title a:hover { opacity:0.75; }

/* Card meta (byline / time / read) */
.card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:10px 0 0; color:var(--muted); font-size:12px; }
.entry-author { display:inline-flex; align-items:center; gap:7px; font-weight:700; color:var(--text); }
.entry-avatar img { width:22px; height:22px; border-radius:50%; object-fit:cover; }
.card-date, .card-read { color:var(--muted); }

/* Archive card body spacing */
.archive-card { overflow:hidden; border:1px solid var(--border); border-radius:6px; background:var(--card); }
.archive-card { transition:transform 0.2s ease, box-shadow 0.2s ease; }
.archive-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,0.10); }
.archive-card:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.archive-card > :not(.article-image) { margin-right:16px; margin-left:16px; }
.archive-card > .post-category { margin-top:12px; }
.archive-card > h3 { margin-top:4px; }
.archive-card > .post-meta { margin-top:10px; }
.archive-card > .post-excerpt { margin-bottom:16px; color:var(--muted); font-size:14px; line-height:1.45; }
.site-search-form { display:flex; max-width:720px; margin:0 auto 28px; gap:10px; }
.site-search-form input { min-width:0; flex:1; padding:13px 15px; border:1px solid var(--border); border-radius:4px; background:var(--card); color:var(--text); font:inherit; }
.site-search-form button { padding:0 20px; border:0; border-radius:4px; background:var(--accent); color:#fff; font-weight:900; text-transform:uppercase; cursor:pointer; }
.archive-layout { display:grid; grid-template-columns:220px minmax(0,1fr) 220px; gap:26px; align-items:start; }
.index-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.archive-main-column { min-width:0; }
.archive-main-column .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.archive-side { min-width:0; }
.archive-side-title { position:relative; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid var(--border); font-size:16px; font-weight:900; text-transform:uppercase; }
.archive-side-title::after { content:""; position:absolute; bottom:-1px; left:0; width:26px; height:2px; background:var(--accent); }
.archive-side-card { margin-bottom:20px; }
.archive-side-image { display:block; aspect-ratio:16/10; margin-bottom:9px; overflow:hidden; border-radius:4px; background:linear-gradient(135deg,#25303a,#11161b); }
.archive-side-image img { width:100%; height:100%; object-fit:cover; }
.archive-side-card h3 { margin:0; font-size:14px; line-height:1.25; font-weight:900; }
.archive-side-card .post-category { margin-bottom:5px; }
.archive-side-card .post-meta { margin-top:6px; }
.sidebar-topic-list { display:grid; gap:0; }
.sidebar-topic-card { display:grid; grid-template-columns:128px minmax(0,1fr); gap:14px; align-items:start; padding:12px 0; border-bottom:1px solid var(--border); }
.sidebar-topic-card:first-child { padding-top:0; }
.sidebar-topic-image { aspect-ratio:16/10; overflow:hidden; border-radius:4px; background:linear-gradient(135deg,#25303a,#11161b); }
.sidebar-topic-image img { width:100%; height:100%; object-fit:cover; }
.sidebar-topic-card h3 { margin:0; font-size:14px; line-height:1.25; font-weight:900; }
.sidebar-topic-card .post-category { margin-bottom:5px; }
.sidebar-topic-card .post-meta { margin-top:6px; }
.sidebar-topic-section .section-title { margin-bottom:10px; }
.sidebar-topic-card { min-height:82px; }
.sidebar-topic-card > div { min-width:0; }
@media screen and (min-width:801px) {
    .archive-side { position:sticky; top:150px; align-self:start; }
}
.archive-card + .archive-card { margin-top:0; }
.archive-header + .article-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.nav-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin:28px 0 36px; }
.nav-links a, .nav-links span { margin:0; min-width:36px; padding:9px 12px; border:1px solid var(--border); border-radius:4px; text-align:center; }
.nav-links .current { border-color:var(--accent); background:var(--accent); color:#fff; font-weight:900; }

/* Article card hover elevation */
.article-card { background:transparent; transition:transform 0.2s ease; }
.article-card h3 { transition:color 0.15s ease; }
.article-card:hover h3 { color:var(--accent); }
.post-categories { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0 0; }
.post-categories a { color:var(--accent); font-size:10px; font-weight:800; text-transform:uppercase; }
.post-categories a + a::before { content:"/"; margin-right:5px; color:var(--muted); }
.recommended-section { margin:42px auto 36px; }
.recommended-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }

/* Trending strip */
.trending-strip { display:flex; align-items:center; gap:16px; margin-top:26px; padding:12px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trending-label { flex:0 0 auto; padding:5px 12px; border-radius:4px; background:var(--accent); color:#fff; font-size:11px; font-weight:900; text-transform:uppercase; }
.trending-list { display:flex; flex-wrap:wrap; gap:8px 14px; }
.trending-tag { color:var(--text); font-size:13px; font-weight:800; }
.trending-tag::before { content:"#"; color:var(--accent); margin-right:3px; }
.trending-tag:hover { color:var(--accent); }

/* Editorial category sections */
.editorial-section { margin:38px auto 0; padding-bottom:28px; border-bottom:1px solid var(--border); }
.editorial-section .section-title h2 { text-transform:none; font-size:22px; }
.editorial-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:26px; align-items:start; }
.editorial-lead { grid-column:1; grid-row:1; min-width:0; }
.editorial-list { grid-column:2; display:grid; gap:0; min-width:0; }
.editorial-lead-image { display:block; aspect-ratio:16/10; max-height:300px; margin-bottom:12px; overflow:hidden; border-radius:6px; background:var(--surface); }
.editorial-lead-image img { width:100%; height:100%; object-fit:cover; transition:transform 0.35s ease; }
.editorial-lead:hover .editorial-lead-image img { transform:scale(1.05); }
.editorial-lead h3 { margin:0; font-size:clamp(20px,2.2vw,25px); line-height:1.15; font-weight:900; }
.editorial-lead h3 a:hover { color:var(--accent); }
.editorial-excerpt { margin:10px 0 0; color:var(--muted); font-size:15px; }
.editorial-item { display:grid; grid-template-columns:96px minmax(0,1fr); gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--border); }
.editorial-item:first-of-type { padding-top:0; }
.editorial-item.no-thumb { grid-template-columns:1fr; }
.editorial-item-thumb { aspect-ratio:16/10; overflow:hidden; border-radius:4px; background:var(--surface); }
.editorial-item-thumb img { width:100%; height:100%; object-fit:cover; }
.editorial-item-body h4 { margin:2px 0 0; font-size:15px; line-height:1.25; font-weight:800; }
.editorial-item-body h4 a:hover { color:var(--accent); }
.editorial-item .post-meta { margin-top:5px; }
.editorial-item .post-category { margin-bottom:0; }
.editorial-list { padding-left:0; }
.editorial-item:hover h4 a { color:var(--accent); }
.editorial-carousel { position:relative; }
.section-title-actions { display:flex; align-items:center; gap:14px; }
.editorial-controls { display:flex; align-items:center; gap:6px; }
.editorial-nav { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; background:transparent; color:var(--text); font-size:18px; line-height:1; cursor:pointer; transition:opacity .2s ease, background .2s ease, color .2s ease; }
.editorial-nav:hover { background:var(--accent); border-color:var(--accent); color:#fff; }
.editorial-nav[disabled] { opacity:0.3; pointer-events:none; }
.editorial-grid { scroll-behavior:smooth; }

/* Compact editorial fillers for the main column */
.spotlight-section, .briefs-section { margin-top:30px; }
.spotlight-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.spotlight-card { min-width:0; }
.spotlight-thumb { display:block; aspect-ratio:16/9; margin-bottom:9px; overflow:hidden; border-radius:5px; background:linear-gradient(135deg,#25303a,#11161b); }
.spotlight-thumb img { width:100%; height:100%; object-fit:cover; }
.spotlight-card h3 { margin:0; font-size:15px; line-height:1.2; font-weight:900; }
.briefs-list { border-top:1px solid var(--border); }
.brief-item { display:grid; grid-template-columns:100px minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); }
.brief-category { color:var(--accent); font-size:10px; font-weight:900; text-transform:uppercase; }
.brief-item strong { font-size:14px; line-height:1.2; }
.brief-item small { color:var(--muted); font-size:11px; white-space:nowrap; }
.radar-section { margin-top:30px; }
.radar-list { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; border-top:1px solid var(--border); }
.radar-item { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; align-items:start; padding:12px 0; border-bottom:1px solid var(--border); }
.radar-number { color:var(--accent); font-size:18px; font-weight:900; }
.radar-item small { display:block; margin-bottom:3px; color:var(--accent); font-size:9px; font-weight:900; text-transform:uppercase; }
.radar-item strong { display:block; font-size:13px; line-height:1.2; }
.spotlight-section, .briefs-section, .radar-section { display:none; }
.more-stories-section { margin-top:34px; }
.more-stories-list { display:grid; gap:14px; }
.more-story-item { display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--border); }
.more-story-item:last-child { border-bottom:0; }
.more-story-thumb { aspect-ratio:16/10; overflow:hidden; border-radius:5px; background:linear-gradient(135deg,#25303a,#11161b); }
.more-story-thumb img { width:100%; height:100%; object-fit:cover; }
.more-story-body h3 { margin:0 0 5px; font-size:15px; line-height:1.22; font-weight:900; }
.more-story-body .post-meta { margin-top:0; }
.more-stories-intro { margin:-4px 0 16px; color:var(--muted); font-family:"PT Serif",Georgia,serif; font-size:14px; line-height:1.45; }
.channel-videos-section { margin-bottom:38px; }
.video-tabs { display:flex; gap:8px; margin:-4px 0 18px; }
.video-tabs button { padding:8px 14px; border:0; border-radius:6px; background:var(--surface); color:var(--text); font-size:12px; font-weight:800; cursor:pointer; }
.video-tabs button.is-active, .video-tabs button:hover { background:var(--accent); color:#fff; }
.channel-video-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }

/* Force dark container fallbacks even before the placeholder img loads */
.article-image, .news-image, .editorial-lead-image, .editorial-item-thumb, .video-thumb {
    background: linear-gradient(135deg,#25303a,#11161b);
}

/* Final mobile overrides (kept last so they win over later base rules) */
@media (max-width:800px) {
    .site-main { padding:22px 20px 0; }
    .site-main > .site-container { width:100%; max-width:100%; margin-right:0; margin-left:0; }
    .home-layout { width:100%; max-width:100%; }
    .featured-slider { margin-right:0; margin-left:0; }
    .latest-news-section, .latest-articles-section, .popular-topics-section { margin-right:0; margin-left:0; }
    .video-section, .editorial-section, .trending-strip, .featured-categories { margin-right:0; margin-left:0; }
    .video-section { margin:0 22px 26px; }
    .video-grid { display:flex !important; gap:16px; width:100%; min-width:0; max-width:100%; overflow-x:auto; scroll-snap-type:x mandatory; }
    .video-card { flex:0 0 262px; min-width:262px; scroll-snap-align:start; }
    .trending-strip { margin:0 22px; }
    .trending-list { flex-wrap:nowrap; overflow-x:auto; width:100%; min-width:0; }
    .trending-tag { white-space:nowrap; }
    .editorial-section { margin:26px 16px 0; }
    .editorial-grid { grid-template-columns:1fr; gap:18px; }
    .editorial-lead { grid-column:1; grid-row:auto; }
    .editorial-list { grid-column:1; }
    .editorial-item { grid-column:1; grid-row:auto; grid-template-columns:110px minmax(0,1fr); }
    .article-card .card-meta { margin-left:14px; margin-right:14px; margin-bottom:14px; }
    .card-meta { gap:7px; font-size:11px; }
    .recommended-grid { display:flex; overflow-x:auto; gap:16px; }
    .recommended-grid .article-card { flex:0 0 254px; }
    .spotlight-grid { display:flex; overflow-x:auto; gap:16px; }
    .spotlight-card { flex:0 0 220px; }
    .brief-item { grid-template-columns:72px minmax(0,1fr); gap:8px; }
    .brief-item small { grid-column:2; }
    .radar-list { grid-template-columns:1fr; }
    .more-story-item { grid-template-columns:110px minmax(0,1fr); }
    .channel-video-grid { display:flex; overflow-x:auto; gap:16px; }
    .channel-video-grid .video-card { flex:0 0 250px; }
}

@media (max-width:800px) {
    .site-main { padding-right:20px; padding-left:20px; }
    .site-main > .site-container,
    .home-layout,
    .featured-slider,
    .video-section,
    .trending-strip,
    .featured-categories,
    .editorial-section,
    .latest-news-section,
    .latest-articles-section,
    .popular-topics-section { width:100%; max-width:100%; margin-right:0; margin-left:0; }
    .archive-header + .article-grid { grid-template-columns:none; }
    .site-logo small { display:block; width:max-content; max-width:none; white-space:nowrap; font-size:9px; letter-spacing:1px; }
    .header-main { display:flex !important; justify-content:space-between; }
    .header-main .site-logo { position:absolute; top:50%; left:50%; z-index:1; width:max-content; transform:translate(-50%,-50%); }
    .header-main .mobile-menu-button { position:relative; z-index:2; }
    .header-main .header-actions { position:relative; z-index:2; margin-left:auto; }
}

/* Minimal editorial type scale */
body { font-family:Roboto, Arial, sans-serif; font-size:15px; }
h1, h2, h3, h4, h5, h6, .main-navigation a, .post-category, .section-title a, button { font-family:"Roboto Condensed", Arial, sans-serif; letter-spacing:-0.01em; }
.main-navigation a { font-size:12px; letter-spacing:0.02em; }
.section-title h2 { font-size:16px; letter-spacing:0.04em; }
.featured-content h1 { font-size:clamp(28px,3.4vw,42px); line-height:1.08; }
.featured-content .post-excerpt { font-size:14px; line-height:1.5; }
.article-card h3, .video-card h3 { font-size:15px; line-height:1.25; }
.news-item h3 { font-size:14px; }
.post-category { font-size:10px; letter-spacing:0.06em; }
.card-meta, .post-meta { font-size:11px; }
.editorial-section .section-title h2 { font-size:18px; }
.editorial-lead h3 { font-size:clamp(19px,2vw,23px); }
.post-excerpt, .editorial-excerpt, .single-content { font-family:"PT Serif", Georgia, serif; }
.editorial-item-body h4 { font-size:14px; }
.trending-tag { font-size:12px; }

@media (max-width:800px) {
    .featured-content h1 { font-size:clamp(26px,7vw,34px); }
    .section-title h2 { font-size:15px; }
    .main-navigation a { font-size:12px; }
    .article-card h3, .video-card h3 { font-size:14px; }
    .news-item h3 { font-size:16px; }
    .sidebar-topic-card { grid-template-columns:38% minmax(0,1fr); }
    .sidebar-topic-section { margin-bottom:22px; }
    .sidebar-topic-card { gap:12px; padding:10px 0; }
    .sidebar-topic-card h3 { font-size:14px; line-height:1.2; }
    .sidebar-topic-section { padding-top:14px; }
    .sidebar-topic-section .section-title { padding-bottom:10px; }
    .sidebar-topic-card { padding:14px 0; }
}

/* Compact title scale */
.featured-content h1 { font-size:clamp(26px,3vw,38px); }
.article-card h3, .video-card h3 { font-size:14px; }
.archive-card h3 { font-size:15px; line-height:1.2; }
.archive-side-card h3 { font-size:13px; }
.editorial-lead h3 { font-size:clamp(18px,1.8vw,22px); }
.editorial-item-body h4 { font-size:13px; }
.single-header h1, .archive-header h1, .author-info h1 { font-size:clamp(32px,4vw,46px); }

@media (max-width:800px) {
    .featured-content h1 { font-size:clamp(24px,6.5vw,30px); }
    .archive-card h3 { font-size:14px; }
    .single-header h1, .archive-header h1, .author-info h1 { font-size:32px; }
}

/* Compact four-card category carousel */
.editorial-grid { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:4px 2px; }
.editorial-grid::-webkit-scrollbar { display:none; }
.editorial-grid > * { flex:0 0 calc((100% - 80px)/6); scroll-snap-align:start; }
.editorial-item { display:block; padding:0; border:0; min-width:0; }
.editorial-item-thumb { display:block; width:100%; aspect-ratio:16/10; margin-bottom:8px; }
.editorial-item-body h4 { font-size:13px; line-height:1.25; }

@media (max-width:800px) {
    .editorial-grid { gap:14px; }
    .editorial-grid > * { flex:0 0 200px; }
}

@media (max-width:800px) {
    .footer-bottom .site-container { display:flex; flex-direction:column; align-items:center; gap:6px; padding-right:16px; padding-left:16px; }
    .footer-bottom .site-container > span,
    .footer-credit,
    .footer-legal { text-align:center; display:block; }
    .footer-legal { display:flex !important; justify-content:center; flex-wrap:wrap; gap:8px 16px; }
    .footer-bottom a { margin:0; }
}

@media screen and (max-width:800px) {
    .header-main { width:100% !important; max-width:none !important; margin-right:0 !important; margin-left:0 !important; }
    .header-main .site-logo { left:50% !important; transform:translate(-50%,-50%) !important; }
}

@media (max-width:800px) {
    .featured-slider { order:1; }
    .latest-articles-section { order:2; }
    .sidebar-topic-1 { order:3; }
    .latest-news-section { order:4; }
    .sidebar-topic-0 { order:5; }
    .more-stories-section { order:6; }
    .popular-topics-section { order:7; }
    .newsletter-section { order:8; }
}



/* SSI FANZINE FINAL SMART HEADER
   Same header design at all times:
   visible at top -> hide on downward scroll -> show on upward scroll. */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: transform 320ms ease, box-shadow 320ms ease !important;
    will-change: transform;
}

.site-header.is-hidden {
    transform: translate3d(0, -105%, 0) !important;
    box-shadow: none !important;
}

@media screen and (max-width: 800px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
    }

    .site-header.is-hidden {
        transform: translate3d(0, -105%, 0) !important;
    }

    /* Do not change the fixed bottom mobile navigation. */
    .bottom-tab-bar {
        position: fixed;
    }
}

@media screen and (min-width: 801px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
    }
}


/* SSI FANZINE — FINAL MOBILE MENU
   The mobile menu lives inside .site-header. Because the smart header uses
   transform for the slide animation, a fixed child can become trapped inside
   the transformed header. Use an absolute overlay below the header instead. */
@media screen and (max-width: 800px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }

    .site-header.is-hidden {
        transform: translate3d(0, -105%, 0) !important;
    }

    .mobile-navigation {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 170px) !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        background: var(--header-bg, #fff) !important;
        border-top: 1px solid var(--border) !important;
        box-shadow: 0 18px 35px rgba(0,0,0,.16) !important;
        z-index: 1100 !important;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-navigation.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-navigation .site-container {
        display: grid !important;
        gap: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 16px 20px !important;
        box-sizing: border-box !important;
    }

    .mobile-navigation a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 48px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--border) !important;
        font-weight: 800 !important;
        color: var(--text) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    /* Keep the mobile quick-navigation above the expanded menu. */
    .bottom-tab-bar {
        position: fixed !important;
        z-index: 1200 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
        touch-action: none !important;
    }
}


/* WooCommerce cart navigation */
.nav-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.nav-cart-icon, .bottom-tab-cart-icon {
    font-size: 17px;
    line-height: 1;
}
.nav-cart-count, .bottom-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ed1c2e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
@media screen and (max-width: 800px) {
    .main-navigation .nav-cart-link { display: none !important; }
    .mobile-navigation .mobile-nav-cart-link {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 14px 0;
    }
    .bottom-tab-cart { position: relative; }
    .bottom-tab-cart .bottom-cart-count {
        position: absolute;
        top: 4px;
        right: 10px;
        min-width: 15px;
        height: 15px;
        font-size: 9px;
    }
}


/* SSI FANZINE DESKTOP CART ONLY */
@media screen and (min-width: 801px) {
    .main-navigation .nav-cart-link {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    .main-navigation .nav-cart-icon {
        font-size: 17px;
        line-height: 1;
    }
    .main-navigation .nav-cart-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ed1c2e;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }
}
