/*
Theme Name: Play4Geek Theme
Description: ThÃ¨me personnalisÃ© optimisÃ© et responsive pour Play4Geek
Version: 1.1.1
Author: JÃ©rÃ©my MathÃ©ossian
Text Domain: play4geek
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
*/

:root {
    --bg-dark: #0e2038;
    --bg-blue: #1e73be;
    --bg-accent: #145982;
    --bg-light: #ebf2f8;
    --text-light: #f7f9fc;
    --text-dark: #111827;
    --border: rgba(255,255,255,0.08);
    --border-color: #d6e3f3;
    --surface-card: #ffffff;
    --surface-panel: #f6f9ff;
    --muted-text: #586b82;
    --link-color: var(--bg-accent);
    --link-hover-color: var(--bg-blue);
    --button-bg: #1e73be;
    --button-hover-bg: #145982;
    --badge-text: #145982;
    --theme-blue-light: color-mix(in srgb, var(--bg-blue) 62%, #ffffff);
    --theme-blue-soft: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    --theme-blue-muted: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    --theme-blue-deep: color-mix(in srgb, var(--bg-blue) 88%, var(--bg-dark));
    --theme-blue-shadow: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    --theme-accent-soft: color-mix(in srgb, var(--bg-accent) 18%, transparent);
    --theme-gradient-hero: linear-gradient(135deg, var(--bg-dark), var(--bg-blue));
    --theme-gradient-vertical: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-accent) 100%);
    --theme-gradient-btn: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-blue) 100%);
    --theme-gradient-progress: linear-gradient(90deg, var(--bg-blue), var(--theme-blue-light));
    --theme-surface-deep: color-mix(in srgb, var(--bg-dark) 82%, var(--bg-blue));
    --font-sans: var(--wp--preset--font-family--roboto, Roboto, Arial, sans-serif);
    --p4g-sticky-site-header-height: 8.5rem;
}

/* Tokens mode sombre : html.theme-dark (+ play4geek_get_theme_dark_css_block). Pas de vars sur body.theme-dark seul. */
html.theme-dark body {
    background: #07172b;
    color: #dbe8ff;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

/* STYLE-DIET site-header shell (global) — voir assets/css/play4geek-header-global.css */
a {
    color: inherit;
    text-decoration: none;
}

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

/* STYLE-DIET header layout + barre tendances + drawer (global) — voir assets/css/play4geek-header-global.css */
.site-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 4rem;
}

.error-404-page {
    max-width: 920px;
}

.error-404-card {
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    padding: 2rem 1.5rem;
    text-align: center;
}

.error-404-code {
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 4.4rem);
    line-height: 1;
    font-weight: 800;
    color: var(--bg-blue);
}

.error-404-card h1 {
    margin: 0.4rem 0 0.6rem;
}

.error-404-text {
    margin: 0 auto;
    max-width: 620px;
    color: rgba(14, 32, 56, 0.78);
}

.error-404-actions {
    margin-top: 1rem;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.error-404-btn {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #fff;
    color: #1f2937;
    font-weight: 700;
}

.error-404-btn.is-primary {
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: #0f3f76;
}

.error-404-search {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
}

.error-404-search h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.error-404-search form {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.single-article-page .article-layout,
.game-term-page .game-term-posts-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    min-width: 0;
    max-width: 100%;
}

.single-article-page .article-layout,
.single-article-page .single-article,
.single-article-page .single-article-content {
    min-width: 0;
    max-width: 100%;
}

.single-article-page {
    min-width: 0;
}

.single-article-page .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 1.7rem;
    align-items: start;
}

.single-article-page .article-sidebar {
    position: sticky;
    top: calc(var(--p4g-sticky-site-header-height, 8.5rem) + 0.75rem);
    align-self: start;
    min-width: 0;
    max-width: 400px;
    width: 100%;
}

.single-article-page .article-sidebar > * {
    min-width: 0;
    max-width: 100%;
}

.single-article-page .article-sidebar .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0;
}

.single-article-page .article-sidebar .newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.single-article-page .article-sidebar .newsletter-form button {
    width: 100%;
}

.single-article {
    background: var(--text-light);
    border-radius: 30px;
    box-shadow: 0 32px 100px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

.single-article-cover img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: block;
}

.featured-image-figure {
    margin: 0;
    position: relative;
}

.article-cover-platforms {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    max-width: min(72%, calc(100% - 8rem));
    pointer-events: none;
}

.article-cover-platforms .game-sheet-platform-icons {
    margin: 0;
    justify-content: flex-start;
}

.article-cover-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    max-width: calc(100% - 2rem);
}

.single-article-category-badge--cover {
    margin: 0;
    box-shadow: 0 4px 16px rgba(8, 20, 38, 0.28);
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--bg-accent) !important;
    border-color: var(--bg-accent) !important;
}

.article-cover-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1.8rem 1.2rem;
    background: linear-gradient(180deg, rgba(4, 10, 21, 0) 0%, rgba(4, 10, 21, 0.9) 80%);
}

.article-cover-overlay .single-article-title {
    margin: 0;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.single-article-header {
    padding: 2.2rem 2rem 1.8rem;
}

.single-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.article-game-label {
    display: inline-block;
    color: var(--bg-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.article-game-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(30, 115, 190, 0.08);
    color: var(--bg-blue);
    font-size: 0.88rem;
}

.single-article-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.single-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: rgba(15, 23, 42, 0.66);
    font-size: 0.95rem;
}

.single-article-content {
    padding: 0 2rem 2.5rem;
    line-height: 1.95;
    color: rgba(15, 23, 42, 0.88);
    font-size: 1rem;
}

/* Blocs Gutenberg : colonne de contenu (theme.json) sans casser les alignements. */
.single-article-content .entry-content,
.single-article-content .wp-block-post-content,
.single-review-content .entry-content,
.single-review-content .wp-block-post-content {
    max-width: var(--wp--style--global--content-size, 920px);
    margin-left: auto;
    margin-right: auto;
}

.single-article-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.single-review-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--content-size, 920px);
    margin-left: auto;
    margin-right: auto;
}

.single-article-content > .alignwide,
.single-review-content > .alignwide,
.single-article-content .alignwide,
.single-review-content .alignwide {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin-left: auto;
    margin-right: auto;
}

/* Images centrÃ©es (Gutenberg). */
.single-article-content .wp-block-image.aligncenter,
.single-review-content .wp-block-image.aligncenter,
.single-article-content figure.wp-block-image.aligncenter,
.single-review-content figure.wp-block-image.aligncenter {
    display: table;
    width: auto;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.single-article-content .wp-block-image.aligncenter img,
.single-review-content .wp-block-image.aligncenter img,
.single-article-content figure.wp-block-image.aligncenter img,
.single-review-content figure.wp-block-image.aligncenter img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.single-article-content .wp-block-image:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
.single-review-content .wp-block-image:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
    max-width: 100%;
}

.single-article-content p {
    margin-bottom: 1.3rem;
}

.related-articles {
    padding: 0 2rem 2rem;
}

.related-articles h2 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--bg-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.related-card-body {
    padding: 1rem;
}

.related-card-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.related-card-body p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-sidebar {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.single-article-page .article-sidebar {
    position: sticky;
    top: calc(var(--p4g-sticky-site-header-height, 8.5rem) + 0.75rem);
    align-self: start;
    min-width: 0;
    max-width: 400px;
    width: 100%;
}

.game-sidebar-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 1rem;
}

.game-sidebar-cover img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.game-sidebar-card {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.game-sidebar-card-header {
    margin-bottom: 1.25rem;
}

.game-sidebar-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.game-sidebar-card h2 {
    margin: 0.75rem 0 0;
    font-size: 1.6rem;
    line-height: 1.15;
}

.game-sidebar-description {
    margin: 0 0 1.4rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.85;
}

.game-sidebar-meta {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.game-sidebar-meta li {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.game-sidebar-meta li strong {
    font-weight: 700;
}

.game-sidebar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 999px;
    background: var(--bg-blue);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-sidebar-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.game-term-hero {
    background: var(--text-light);
    padding: 2.5rem 0;
}

.game-term-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.game-term-hero-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.game-term-hero-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-term-cover-featured {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.game-term-cover-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.game-term-hero-content {
    padding: 1rem;
}

.game-term-hero-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.game-term-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    opacity: 0.8;
}

.game-term-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.game-term-badge {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(30, 115, 190, 0.1);
    color: var(--bg-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-term-badge-hype {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(239, 68, 68, 0.16));
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.game-term-hero-description {
    margin-bottom: 1.5rem;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.85;
}

/* Info Cards Grid */
.game-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.95rem;
    background: rgba(30, 115, 190, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(30, 115, 190, 0.1);
}

.info-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.9);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, var(--text-light));
}

.btn-primary:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    color: var(--button-text, var(--text-light));
}

.btn-outline {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 35%, transparent);
    color: var(--bg-blue);
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    border-color: var(--bg-blue);
    color: var(--bg-blue);
}

@media (max-width: 1200px) {
    .game-term-hero-grid {
        grid-template-columns: 1fr;
    }
    .game-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .game-info-cards {
        grid-template-columns: 1fr;
    }
}

.game-term-posts {
    padding: 2.5rem 0;
}

.game-term-posts-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.game-term-posts h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.section-subtitle {
    color: rgba(15, 23, 42, 0.68);
    margin-bottom: 1.5rem;
}

.game-term-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-term-post-card {
    background: var(--surface-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-term-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 50px rgba(15, 23, 42, 0.12);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
    width: 100%;
    height: 200px;
}

.post-card-image img,
.post-card-image a {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.post-card-image img {
    max-height: 100%;
}

.post-card-meta-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: rgba(30, 115, 190, 0.9);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-term-post-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-term-post-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.game-term-post-body h3 a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.game-term-post-card .post-read-more.game-term-post-read-more {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--bg-accent);
}

.game-term-post-body h3 a:hover {
    color: var(--bg-blue);
}

.post-excerpt {
    margin: 0 0 1rem;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.85rem;
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

.post-author img {
    border-radius: 50%;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-blue);
    color: var(--text-light);
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.9;
}

.no-posts-message {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: var(--muted-text);
}

.game-term-gallery,
.game-term-videos {
    padding: 2rem 0 0;
}

.game-term-gallery-inner,
.game-term-videos-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Media Featured Section */
.game-term-media-featured {
    padding: 2.5rem 0;
    background: transparent;
}

.game-term-media-featured h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.game-gallery-grid,
.game-video-grid {
    display: grid;
    gap: 1rem;
}

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

.game-gallery-item {
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-card);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.game-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.game-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-video-card {
    border-radius: 20px;
    overflow: hidden;
    background: #141c2d;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    min-height: 260px;
}

/* Media collection styles */
.game-term-media-collection {
    padding: 2rem 0 0;
}
.media-gallery-grid,
.media-video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}
.media-thumb {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.media-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.media-thumb .video-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12));
    overflow: hidden;
}
.media-thumb .video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-thumb .video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(12, 18, 32, 0.9);
    text-shadow: 0 1px 4px rgba(255,255,255,0.35);
}
.media-thumb .video-url-label {
    display: block;
    font-size: 0.75rem;
    text-align: center;
    color: var(--muted-text);
    padding: 0.35rem 0 0.25rem;
}

/* Lightbox modal */
.p4g-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 20, 0.78);
    z-index: 99999;
}
.p4g-lightbox.is-open { display: flex; }
.p4g-lightbox .lb-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: transparent;
}
.p4g-lightbox img,
.p4g-lightbox iframe {
    width: 100%;
    max-height: 80vh;
    display: block;
}
.p4g-lightbox img {
    height: auto;
}
.p4g-lightbox iframe {
    aspect-ratio: 16 / 9;
    height: min(72vh, calc(92vw * 0.5625));
}
.p4g-lightbox .lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
}

.p4g-lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.p4g-lightbox .lb-nav:hover,
.p4g-lightbox .lb-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.p4g-lightbox .lb-prev {
    left: max(12px, env(safe-area-inset-left, 0px));
}

.p4g-lightbox .lb-next {
    right: max(12px, env(safe-area-inset-right, 0px));
}

.p4g-lightbox .lb-counter {
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
}

.p4g-lightbox .lb-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .p4g-lightbox .lb-nav {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}

@media (max-width: 900px) {
    .media-gallery-grid, .media-video-grid { grid-template-columns: repeat(3, 1fr); }
}

.game-video-card iframe,
.game-video-card embed,
.game-video-card object {
    width: 100%;
    height: 100%;
}

@media (max-width: 1080px) {
    .game-gallery-grid,
    .game-video-grid {
        grid-template-columns: 1fr;
    }
}

.game-module-section {
    width: 100%;
    background: var(--bg-light);
    padding: 2rem 0 1.5rem;
}

.game-module-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.game-card {
    background: var(--text-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.game-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.game-card-body {
    padding: 1.2rem 1.25rem 1.5rem;
}

.game-card-meta {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--bg-blue);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.game-card-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.35;
}

.game-card-body p {
    margin: 0;
    color: #526675;
    line-height: 1.7;
    font-size: 0.95rem;
}

.hero-fullpage {
    width: 100%;
    background: var(--bg-light);
    padding: 1.5rem 0 1.5rem;
}

.hero-fullpage-inner {
    max-width: 1600px;
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-intro-bar {
    text-align: center;
    margin: 0 auto 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.home-footer-quote {
    padding: 0.8rem 1rem 1.25rem;
}

.home-footer-quote .hero-intro-bar {
    margin-bottom: 0;
}

.footer-quote-share-form {
    margin-top: 0.7rem;
}

.footer-quote-share-btn {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.24);
    background: rgba(20, 89, 130, 0.08);
    color: #1f2937;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    cursor: pointer;
}

.footer-quote-share-btn:hover {
    background: rgba(20, 89, 130, 0.16);
}

.hero-quote {
    display: inline-grid;
    flex-direction: column;
    gap: 0.4rem;
    max-width: min(980px, 95vw);
    padding: 1.05rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(255,255,255,0.72));
    border: 1px solid rgba(20, 89, 130, 0.15);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    position: relative;
    justify-items: center;
}

.hero-quote-text {
    margin: 0;
    color: var(--bg-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0 2rem;
    position: relative;
    text-align: center;
    max-width: 60ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-quote-author {
    color: #355477;
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
    position: relative;
    padding-top: 0.55rem;
}

.hero-quote-author::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20, 89, 130, 0), rgba(20, 89, 130, 0.65), rgba(20, 89, 130, 0));
}

.hero-quote-text::before,
.hero-quote-text::after {
    position: absolute;
    top: -0.15rem;
    color: rgba(20, 89, 130, 0.3);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    line-height: 1;
}

.hero-quote-text::before {
    content: "“";
    left: 0;
}

.hero-quote-text::after {
    content: "”";
    right: 0;
}

.hero-article-module {
    --hero-main-height: 620px;
    --hero-side-row-height: 290px;
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 2.4rem;
    width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
    align-items: stretch;
}

.hero-main-card,
.hero-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-dark);
    color: var(--text-light);
    isolation: isolate;
}

.hero-main-card {
    width: 100%;
    height: var(--hero-main-height, 620px);
    min-height: var(--hero-main-height, 620px);
    max-height: var(--hero-main-height, 620px);
    flex-shrink: 0;
}

.hero-main-card > a {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    margin: 0;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    height: var(--hero-main-height, 620px);
    min-height: var(--hero-main-height, 620px);
    max-height: var(--hero-main-height, 620px);
    padding: 0.75rem 0 0.25rem;
    box-sizing: border-box;
    align-self: stretch;
}

.hero-side-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    display: block;
    padding: 0;
}

.hero-side-card > a {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    margin: 0;
}

.hero-main-card .hero-main-image,
.hero-side-card .hero-side-image,
.hero-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-side-card .hero-side-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.hero-main-meta,
.hero-side-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7,21,35,0.95) 85%);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding: 0.45em 0.9em;
    min-height: 2rem;
    background: var(--bg-blue);
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    box-sizing: border-box;
}

.hero-main-meta h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 2vw, 2.5rem);
    line-height: 1.08;
}

.hero-main-meta p {
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,0.88);
}

.hero-side-meta > span:not(.post-category) {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-side-meta .hero-side-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.08;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading span {
    display: block;
    font-size: 0.8rem;
    color: var(--bg-blue);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.news-grid {
    display: grid;
    grid-template-columns: 2.2fr 0.9fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.news-main {
    display: grid;
    gap: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-section .post-card {
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.22);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    max-width: 100%;
}

.post-card-body {
    padding: 1.5rem;
}

.post-category,
.post-card .post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    background: var(--badge-bg, #eef5ff);
    color: var(--badge-text);
    border: 1px solid color-mix(in srgb, var(--badge-text) 62%, transparent);
    border-radius: 999px;
    padding: 0.45em 0.95em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
    line-height: 1;
    box-shadow: none;
    min-height: 2rem;
    box-sizing: border-box;
    vertical-align: middle;
}

.post-category.has-platform i {
    font-size: 0.95em;
    opacity: 0.95;
}

.post-category-label,
.post-category a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.15;
    letter-spacing: inherit;
}

.post-category a:hover {
    text-decoration: underline;
}

.category-mag-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
}

.category-mag-hero-badge {
    font-size: 0.82rem;
}

.hero-label.post-category,
.hero-side-label.post-category {
    margin-bottom: 0.55rem;
}

.hero-main-meta .post-category.hero-label,
.hero-main-meta .hero-label,
.hero-side-meta .post-category.hero-side-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-blue) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow: none !important;
    min-height: 2rem;
    padding: 0.45em 0.95em !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.55rem !important;
}

.hero-main-meta .post-category .post-category-label,
.hero-main-meta .post-category a,
.hero-side-meta .post-category .post-category-label,
.hero-side-meta .post-category a {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    letter-spacing: inherit !important;
    opacity: 1 !important;
    font-size: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
}

.related-card-category.post-category,
.game-sheet-news-category {
    margin-bottom: 0.45rem;
}

.single-article-category-badge {
    margin-bottom: 0.65rem;
}

.single-article-header .single-article-category-badge {
    margin-bottom: 0.65rem;
}

.post-promo-code {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    margin: 0 0 0.7rem;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 88, 12, 0.26);
    background: rgba(251, 146, 60, 0.14);
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 700;
}

.post-game-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    color: var(--bg-blue);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.post-card h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.post-card p {
    margin: 0.9rem 0 1.2rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.post-meta i {
    margin-right: 0.32rem;
    opacity: 0.85;
}

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-weight: 400;
    color: inherit;
}

.post-views i {
    margin-right: 0;
    color: currentColor;
    opacity: 0.88;
    font-size: 1em;
    text-shadow: none;
    filter: none;
}

.news-sidebar {
    display: grid;
    gap: 1rem;
}

.post-card {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.post-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.25rem;
}

.post-card .post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg, #eef5ff);
    color: var(--badge-text);
    border: 1px solid color-mix(in srgb, var(--badge-text) 62%, transparent);
    border-radius: 999px;
    padding: 0.45em 0.95em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    line-height: 1;
    min-height: 2rem;
    box-shadow: none;
    box-sizing: border-box;
}

.post-card-body > .post-category .post-category-label,
.post-card-body > .post-category a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.15;
    color: inherit;
}

.post-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-card p {
    margin: 0.8rem 0 1rem;
    color: rgba(255,255,255,0.75);
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.meta-separator {
    color: rgba(255,255,255,0.3);
}

.blog-sidebar {
    display: grid;
    gap: 1rem;
}

.sidebar-panel {
    background: var(--bg-blue);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 24px;
}

.sidebar-live {
    background: var(--theme-gradient-vertical);
}

.sidebar-live h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.streamer-live-player {
    margin-bottom: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.streamer-inline-details {
    margin-top: 0.35rem;
}

.streamer-player-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.streamer-inline-player.is-collapsed {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.streamer-inline-player:not(.is-collapsed) {
    display: block;
    margin-top: 0.55rem;
}

.streamer-inline-player:not(.is-collapsed) .member-twitch-embed--player {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}

.sidebar-live .streamer-inline-player {
    margin-top: 0.55rem;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-live .streamer-inline-player:not(.is-collapsed) {
    display: block !important;
    height: auto !important;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-live .streamer-inline-player .member-twitch-embed--player {
    position: relative;
    width: 100%;
    min-height: 180px;
    aspect-ratio: 16 / 9;
    border-color: rgba(255, 255, 255, 0.14);
    background: #0e0e10;
}

.sidebar-live .streamer-inline-player .member-twitch-embed--player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.sidebar-live label.streamer-play-button,
.sidebar-live button.streamer-play-button {
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.streamer-inline-details > summary {
    list-style: none;
    cursor: pointer;
}

.streamer-inline-details > summary::-webkit-details-marker {
    display: none;
}

.streamer-inline-details:not([open]) .streamer-inline-player {
    display: none;
}

.streamer-inline-details[open] > summary {
    margin-bottom: 0.45rem;
}

.streamer-inline-details[open] .streamer-inline-player {
    display: block;
}

.streamer-inline-player {
    margin-top: 0.2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.streamer-inline-player.is-collapsed {
    border: 0;
}

.streamer-inline-player:not(.is-collapsed) .streamer-live-embed {
    min-height: 180px;
}

.streamer-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.streamer-card-aside {
    flex: 0 0 auto;
    text-align: right;
    max-width: 42%;
}

.streamer-metric {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.streamer-metric--viewers {
    color: var(--bg-blue);
}

.streamer-metric--followers {
    color: rgba(255, 255, 255, 0.88);
}

.streamer-item.is-offline .streamer-status.is-offline {
    color: rgba(255, 255, 255, 0.62);
}

.streamer-item.is-live .streamer-status.is-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ef4444;
    font-weight: 700;
}

.streamer-status.is-live .streamer-live-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    color: #ef4444;
    flex-shrink: 0;
    animation: streamer-live-pulse 1.4s ease-in-out infinite;
}

@keyframes streamer-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.78);
    }
}

.streamer-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.streamer-game {
    flex: 1 1 auto;
    min-width: 0;
}

.play4geek-ad-slot {
    margin: 1rem auto;
    display: block;
    max-width: 100%;
    text-align: center;
}

.play4geek-ad-label {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #374151;
}

.play4geek-ad-inner {
    display: inline-block;
    max-width: 100%;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 0.4rem;
    background: var(--surface-panel);
    width: min(100%, 100%);
    overflow: hidden;
}

.play4geek-ad-slot iframe,
.play4geek-ad-slot img,
.play4geek-ad-slot ins {
    max-width: 100%;
}

.play4geek-ad-slot iframe,
.play4geek-ad-slot img {
    width: 100%;
    height: auto;
}

.play4geek-ad-slot ins {
    display: block;
    margin: 0 auto;
}

.play4geek-ad-slot-video_slider {
    margin: 0;
    padding: 0;
    height: 0;
    overflow: visible;
}

.play4geek-ad-slot-video_slider .play4geek-ad-inner-video-slider {
    border: 0;
    padding: 0;
    background: transparent;
    display: block;
    width: auto;
    max-width: none;
    overflow: visible;
}

.play4geek-ad-inner-combined .play4geek-adcash-stack {
    margin-top: 0.75rem;
}

.play4geek-adcash-banner {
    display: block;
    width: 100%;
    min-height: 90px;
    margin: 0 auto;
}

.play4geek-ad-slot-sidebar .play4geek-adcash-banner {
    min-height: 250px;
}

@media (max-width: 900px) {
    .play4geek-ad-slot {
        margin: 0.85rem auto;
        width: min(100%, calc(100% - 1rem));
    }

    .play4geek-ad-inner {
        padding: 0.3rem;
        border-radius: 8px;
    }
}

@media (max-width: 560px) {
    .play4geek-ad-label {
        font-size: 0.62rem;
        letter-spacing: 0.09em;
    }

    .play4geek-ad-slot {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .ad-slot-under-header,
    .ad-slot-above-footer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: clip;
    }

    .ad-slot-under-header .play4geek-ad-inner,
    .ad-slot-above-footer .play4geek-ad-inner {
        width: 100%;
        max-width: 100%;
        min-height: 90px;
        height: auto;
    }

    .ad-slot-under-header .play4geek-ad-inner iframe,
    .ad-slot-under-header .play4geek-ad-inner img,
    .ad-slot-under-header .play4geek-ad-inner ins,
    .ad-slot-above-footer .play4geek-ad-inner iframe,
    .ad-slot-above-footer .play4geek-ad-inner img,
    .ad-slot-above-footer .play4geek-ad-inner ins,
    .play4geek-ad-slot-header_below .play4geek-ad-inner ins,
    .play4geek-ad-slot-footer_above .play4geek-ad-inner ins {
        width: 100% !important;
        max-width: 100%;
        min-width: 280px;
        min-height: 50px;
        height: auto !important;
        max-height: none;
    }

    .ad-slot-under-header .play4geek-ad-inner .play4geek-adcash-mount,
    .ad-slot-above-footer .play4geek-ad-inner .play4geek-adcash-mount,
    .play4geek-ad-slot-header_below .play4geek-ad-inner .play4geek-adcash-mount,
    .play4geek-ad-slot-footer_above .play4geek-ad-inner .play4geek-adcash-mount {
        width: 100%;
        min-height: 50px;
        display: block;
    }
}

/* Bannières sous le header et au-dessus du footer : leaderboard 728×90 (desktop/tablette) */
@media (min-width: 561px) {
    .ad-slot-under-header,
.ad-slot-above-footer,
.play4geek-ad-slot-header_below.ad-slot-under-header,
.play4geek-ad-slot-footer_above.ad-slot-above-footer {
    width: min(728px, calc(100% - 2rem));
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot-under-header .play4geek-ad-inner,
.ad-slot-above-footer .play4geek-ad-inner,
.play4geek-ad-slot-header_below .play4geek-ad-inner,
.play4geek-ad-slot-footer_above .play4geek-ad-inner {
    width: min(728px, calc(100% - 2rem));
    max-width: 728px;
    min-height: 90px;
    height: 90px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-slot-under-header .play4geek-ad-inner iframe,
.ad-slot-under-header .play4geek-ad-inner img,
.ad-slot-under-header .play4geek-ad-inner ins,
.ad-slot-under-header .play4geek-ad-inner .play4geek-adcash-banner,
.ad-slot-under-header .play4geek-ad-inner .play4geek-adcash-mount,
.ad-slot-above-footer .play4geek-ad-inner iframe,
.ad-slot-above-footer .play4geek-ad-inner img,
.ad-slot-above-footer .play4geek-ad-inner ins,
.ad-slot-above-footer .play4geek-ad-inner .play4geek-adcash-banner,
.ad-slot-above-footer .play4geek-ad-inner .play4geek-adcash-mount,
.play4geek-ad-slot-header_below .play4geek-ad-inner iframe,
.play4geek-ad-slot-header_below .play4geek-ad-inner img,
.play4geek-ad-slot-header_below .play4geek-ad-inner ins,
.play4geek-ad-slot-header_below .play4geek-ad-inner .play4geek-adcash-banner,
.play4geek-ad-slot-footer_above .play4geek-ad-inner iframe,
.play4geek-ad-slot-footer_above .play4geek-ad-inner img,
.play4geek-ad-slot-footer_above .play4geek-ad-inner ins,
.play4geek-ad-slot-footer_above .play4geek-ad-inner .play4geek-adcash-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    max-height: 90px;
    object-fit: contain;
}

.ad-slot-under-header .play4geek-adcash-banner,
    .play4geek-ad-slot-header_below .play4geek-adcash-banner {
        min-height: 90px;
        max-height: 90px;
    }
}

/* Taboola (extension officielle) â€” alignement avec les rÃ©glages below / mid / read-more */
.single-article-cover,
.single-article-cover .featured-image-figure,
.single-review-cover {
    overflow: hidden;
}

.play4geek-taboola-zone {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1.75rem 0 0;
    padding: 0;
    clear: both;
    box-sizing: border-box;
    overflow-x: clip;
}

.play4geek-taboola-zone--below {
    margin: 0 2.5rem 1.5rem;
    padding: 1.35rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.single-article-comments {
    margin-top: 0;
}

.play4geek-taboola-zone--mid {
    margin: 2rem 0;
    padding: 0.35rem 0;
}

.single-article-content .wp-block-embed + .play4geek-taboola-zone--mid,
.single-article-content .wp-block-video + .play4geek-taboola-zone--mid,
.single-review-content .wp-block-embed + .play4geek-taboola-zone--mid,
.single-review-content .wp-block-video + .play4geek-taboola-zone--mid {
    clear: both;
}

/* Repli si le widget reste encore dans une colonne Gutenberg */
.single-article-content .wp-block-columns .play4geek-taboola-zone--mid,
.single-review-content .wp-block-columns .play4geek-taboola-zone--mid,
.single-article-content .wp-block-columns [id^="taboola-mid-article"],
.single-review-content .wp-block-columns [id^="taboola-mid-article"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 100;
}

.single-article-content .wp-block-columns:has(> .wp-block-column .play4geek-taboola-zone--mid),
.single-review-content .wp-block-columns:has(> .wp-block-column .play4geek-taboola-zone--mid),
.single-article-content .wp-block-columns:has(> .wp-block-column [id^="taboola-mid-article"]),
.single-review-content .wp-block-columns:has(> .wp-block-column [id^="taboola-mid-article"]) {
    display: flex !important;
    flex-wrap: wrap !important;
}

.single-article-content .wp-block-columns:has(> .wp-block-column .play4geek-taboola-zone--mid) > .wp-block-column:has(.play4geek-taboola-zone--mid),
.single-review-content .wp-block-columns:has(> .wp-block-column .play4geek-taboola-zone--mid) > .wp-block-column:has(.play4geek-taboola-zone--mid),
.single-article-content .wp-block-columns:has(> .wp-block-column [id^="taboola-mid-article"]) > .wp-block-column:has([id^="taboola-mid-article"]),
.single-review-content .wp-block-columns:has(> .wp-block-column [id^="taboola-mid-article"]) > .wp-block-column:has([id^="taboola-mid-article"]) {
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    order: 99;
}

/* Conteneur d’injection uniquement — ne pas écraser le layout carrousel Taboola (floats / slider). */
.play4geek-taboola-zone [id^="taboola-"],
.single-article-content [id^="taboola-mid-article"],
.single-review-content [id^="taboola-mid-article"] {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.play4geek-taboola-zone--mid .trc_rbox,
.play4geek-taboola-zone--mid .trc_rbox_container,
.play4geek-taboola-zone--mid .trc_rbox_div,
.single-article-content .play4geek-taboola-zone--mid .trc_rbox,
.single-review-content .play4geek-taboola-zone--mid .trc_rbox,
.single-article-content .play4geek-taboola-zone--mid .trc_rbox_div,
.single-review-content .play4geek-taboola-zone--mid .trc_rbox_div {
    max-width: 100% !important;
    overflow-x: clip;
}

.play4geek-taboola-zone iframe,
.single-article-content .play4geek-taboola-zone--mid iframe,
.single-review-content .play4geek-taboola-zone--mid iframe {
    max-width: 100%;
}

.single-article-content .play4geek-taboola-zone--mid,
.single-review-content .play4geek-taboola-zone--mid {
    margin-left: 0;
    margin-right: 0;
}

/* Largeur utile pour le carrousel horizontal (thumbnails mid-article). */
.single-article-content > .play4geek-taboola-zone--carousel,
.single-review-content > .play4geek-taboola-zone--carousel {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin-left: auto;
    margin-right: auto;
}

/* Ne pas appliquer le style éditorial des images aux vignettes Taboola. */
.play4geek-taboola-zone img {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Galeries Gutenberg (carrousel / grille) — contenues dans la colonne article. */
.single-article-content .wp-block-gallery,
.single-review-content .wp-block-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.single-article-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.single-review-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    min-width: 0;
    max-width: 100%;
}

.single-article-content .wp-block-gallery img,
.single-review-content .wp-block-gallery img,
.single-article-content figure.wp-block-gallery img,
.single-review-content figure.wp-block-gallery img {
    margin: 0;
    border-radius: 8px;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.single-article-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img,
.single-review-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

body.theme-dark .play4geek-taboola-zone--below {
    border-top-color: rgba(148, 163, 184, 0.22);
}

.single-review-page .play4geek-taboola-zone--below {
    margin: 0 0 1.2rem;
    padding-top: 1.1rem;
}

.ad-slot-sidebar {
    margin-top: 0.9rem;
}

.streamer-live-player.is-collapsed .streamer-live-embed,
.streamer-live-player.is-collapsed .streamer-live-stats {
    display: none;
}

.streamer-live-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
}

.streamer-live-select {
    width: 100%;
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    padding: 0.4rem 0.55rem;
    font-size: 0.86rem;
}

.streamer-live-toggle {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.streamer-live-player-head strong {
    color: #fff;
}

.streamer-live-channel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.streamer-live-channel img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.streamer-live-platform {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.streamer-live-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060d18;
}

.streamer-live-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.streamer-live-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem 0.7rem;
}

.streamer-live-stats .streamer-status.is-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ef4444;
    font-weight: 700;
}

.streamer-viewers,
.streamer-viewers-inline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.86);
}

.streamer-item {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.streamer-item:last-child {
    border-bottom: none;
}

.streamer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.streamer-meta-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.streamer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.streamer-meta strong {
    font-size: 1rem;
}

.streamer-meta span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.streamer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.streamer-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 1rem 1rem 1.2rem;
    display: grid;
    gap: 0.85rem;
}

.streamer-item.is-live {
    border-color: rgba(30, 115, 190, 0.3);
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-blue) 12%, transparent), rgba(255,255,255,0.04));
}

.streamer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.streamer-meta strong {
    color: #ffffff;
    font-size: 1rem;
}

.streamer-status {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.streamer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.sidebar-live .streamer-info {
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar-live .streamer-game {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-live .streamer-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.sidebar-live .streamer-card-head {
    flex-wrap: nowrap;
    align-items: center;
}

.sidebar-live .streamer-meta-main > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
}

.sidebar-live .streamer-meta-main .streamer-status {
    display: inline-flex;
    align-items: center;
}

.sidebar-live .streamer-card-aside {
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
}

.sidebar-live .streamer-play-button,
.sidebar-live .streamer-button {
    white-space: nowrap;
    flex-shrink: 0;
}

.streamer-info span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
}

.sidebar-live .streamer-button,
.sidebar-live .streamer-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: var(--bg-blue);
    color: var(--button-text, #ffffff);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 72%, transparent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--bg-blue) 28%, transparent);
}

.sidebar-live .streamer-play-button {
    padding: 0.5rem 0.82rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.sidebar-live .streamer-button:hover,
.sidebar-live .streamer-play-button:hover,
.sidebar-live .streamer-button:focus-visible,
.sidebar-live .streamer-play-button:focus-visible {
    background: var(--bg-accent);
    color: var(--button-text, #ffffff);
    border-color: color-mix(in srgb, var(--bg-accent) 72%, transparent);
}

.sidebar-live .streamer-item.is-live .streamer-status.is-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ef4444;
    font-weight: 700;
}

.sidebar-live .streamer-status.is-live .streamer-live-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    color: #ef4444;
    flex-shrink: 0;
    animation: streamer-live-pulse 1.4s ease-in-out infinite;
}

.sidebar-live .streamer-metric--viewers {
    color: var(--bg-blue);
}

.streamer-offline {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
}

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

.live-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.live-list li:last-child {
    border-bottom: none;
}

.live-list strong {
    font-size: 1rem;
}

.live-list span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.sidebar-newsletter h3 {
    margin-top: 0;
}

.sidebar-newsletter p {
    color: rgba(255,255,255,0.92);
}

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

    .game-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .game-cards-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-highlight {
    background: var(--theme-gradient-btn);
}

.sidebar-panel h3 {
    margin-top: 0;
}

.sidebar-panel ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sidebar-panel li {
    margin-bottom: 0.85rem;
}

.sidebar-panel:not(.sidebar-poll):not(.sidebar-hype-widget) li a:not(.streamer-button) {
    color: #ffffff;
    opacity: 0.95;
}

@media (max-width: 1080px) {
    .hero-article-module,
    .home-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .header-topbar,
    .site-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-secondary-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 720px) {
    .header-topbar {
        flex-direction: row;
        align-items: center;
    }

    .header-left,
    .header-right {
        justify-content: flex-start;
    }

    .header-right {
        justify-content: flex-end;
    }

    .hero-main-meta h1 {
        font-size: 1.6rem;
    }

    .hero-article-module {
        --hero-main-height: 460px;
        --hero-side-row-height: 220px;
    }

    .hero-side-grid {
        height: auto;
        min-height: 0;
        max-height: none;
        grid-template-rows: repeat(2, minmax(0, var(--hero-side-row-height, 220px)));
    }
}

.hero-intro {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.hero-intro .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--bg-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-intro h2 {
    font-size: clamp(2rem, 2.4vw, 3.2rem);
    margin: 0 0 1rem;
    line-height: 1.05;
}

.hero-intro p {
    margin: 0;
    color: #4b5563;
}

.hero-highlights {
    display: grid;
    gap: 1rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    background: #111827;
    color: var(--text-light);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85));
}

.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-content {
    position: relative;
    padding: 1.5rem;
    z-index: 1;
}

.hero-card-content span {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card-content h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

.home-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.post-card,
.card-panel {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-card:hover,
.card-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.22);
}

.post-card img,
.card-panel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card h2,
.post-card h3,
.card-panel h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--text-light);
}

.post-card h3 a {
    color: var(--text-light);
}

.post-card p {
    margin: 0 0 1.1rem;
    color: rgba(255,255,255,0.82);
}

.post-card-body {
    padding: 1.5rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2.2fr 0.9fr;
    gap: 1.5rem;
}

.blog-sidebar {
    display: grid;
    gap: 1rem;
}

.sidebar-panel {
    background: var(--bg-blue);
    color: var(--text-light);
    padding: 1.5rem;
}

.sidebar-panel h3,
.sidebar-panel h4 {
    margin-top: 0;
}

.sidebar-panel ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sidebar-panel li {
    margin-bottom: 0.85rem;
}

.sidebar-panel:not(.sidebar-poll):not(.sidebar-hype-widget) li a:not(.streamer-button) {
    color: var(--text-light);
}

.sidebar-highlight {
    background: var(--theme-gradient-btn);
}

.promo-section {
    margin-top: 2rem;
}

.promo-section h2 {
    margin-bottom: 1rem;
}

.promo-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.promo-card {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 20px;
    padding: 1.5rem;
}

.promo-card h3 {
    margin-bottom: 0.75rem;
}

/* STYLE-DIET site-footer visiteur (global) — voir assets/css/play4geek-header-global.css */

.legal-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1rem 2.6rem;
}

.legal-page.legal-page-no-sidebar {
    display: block;
}

.legal-page-hero {
    margin-bottom: 1.2rem;
}

.legal-page-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(30, 115, 190, 0.1);
    color: var(--bg-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.legal-page-content {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1rem, 2.2vw, 1.6rem);
    color: var(--text-dark);
    line-height: 1.75;
}

.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}

.legal-page-content p,
.legal-page-content ul,
.legal-page-content ol {
    margin: 0.8rem 0;
}

.legal-page-content a {
    color: var(--bg-blue);
}

/* Pages sans template assignÃ© (voir page.php) â€” Ã©vite le fallback index Â« ActualitÃ©s Â» */
.page-standard {
    padding: 1rem 1rem 3rem;
}

.page-standard-article {
    max-width: 1100px;
    margin: 0 auto;
}

.page-standard-header {
    margin-bottom: 1.25rem;
}

.page-standard-title {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
}

.page-standard-content {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1rem, 2.2vw, 1.75rem);
    color: var(--text-dark);
    line-height: 1.7;
}

.page-standard-content > *:first-child {
    margin-top: 0;
}

body.theme-dark .page-standard-title {
    color: var(--text-light);
}

body.theme-dark .page-standard-content {
    background: rgba(16, 35, 63, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
}

/* STYLE-DIET page adhésion — voir assets/css/play4geek-style-page-adhesion.css */
body.theme-dark .p4g-helloasso-embed-footnote {
    color: rgba(219, 232, 255, 0.55);
}

/* STYLE-DIET annuaire jeux — voir assets/css/play4geek-style-game-directory.css */
.post-card h3 a,
.hero-main-meta h1 a,
.hero-side-meta .hero-side-title a {
    color: var(--text-light);
}

.post-card p,
.hero-main-meta p,
.hero-side-meta > span:not(.post-category),
.hero-side-meta .hero-side-title {
    color: rgba(255,255,255,0.8);
}

.hero-side-meta .post-category,
.hero-main-meta .post-category {
    color: #ffffff;
}

.game-term-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.game-term-details {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
    color: rgba(255,255,255,0.82);
}

.game-term-details span {
    display: block;
}

.game-sidebar-meta li span {
    color: rgba(255,255,255,0.85);
}

.game-image-preview img {
    max-width: 100%;
    border-radius: 14px;
    margin-top: 0.75rem;
}

.game-term-cover img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin-top: 1rem;
}

/* STYLE-DIET single article (post) — voir assets/css/play4geek-style-single-article.css */
@media (max-width: 1080px) {
    .hero-section,
    .home-layout,
    .blog-layout,
    .promo-cards,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .promo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .topbar,
    .main-navigation,
    .site-main {
        padding: 1rem;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu {
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .search-form-wrapper {
        min-width: auto;
    }
}

/* STYLE-DIET fiche jeu (taxonomy game) — voir assets/css/play4geek-style-game-sheet.css */
/* STYLE-DIET assets/css/play4geek-home-tests-critical.css (accueil) — voir assets/css/play4geek-home-tests-critical.css (accueil) */
/* STYLE-DIET navigation pro (submenu, mega-menu, drawer) (global) — voir assets/css/play4geek-header-global.css */

/* STYLE-DIET pages tests pro / avis pro — voir assets/css/play4geek-style-pro-reviews.css */
/* Recent articles header aligned with review hero */
.editorial-hero-heading {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.12rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(128deg, var(--theme-surface-deep) 0%, var(--bg-dark) 45%, var(--bg-blue) 100%);
    color: #fff;
    min-height: 132px;
}

.editorial-hero-heading::before {
    content: "";
    position: absolute;
    inset: -70% auto auto -18%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.recent-heading-main {
    position: relative;
    z-index: 1;
}

.recent-heading-main > span,
.recent-heading-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    margin: 0 0 0.3rem;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.recent-heading-main h2 {
    margin: 0 0 0.32rem;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.editorial-hero-heading h1 {
    margin: 0 0 0.32rem;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.recent-heading-main p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 56ch;
}

.recent-heading-cta {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.recent-heading-cta:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Front recent articles line header */
.recent-articles-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-main > .recent-articles-heading {
    margin-bottom: 0;
}

.recent-articles-heading h2 {
    margin: 0;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(14, 32, 56, 0.82);
    white-space: nowrap;
    min-width: 0;
}

.recent-articles-head-line {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: var(--bg-blue);
    opacity: 0.9;
}

.recent-articles-heading .recent-heading-cta {
    border: 0;
    background: transparent;
    color: rgba(14, 32, 56, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
    white-space: nowrap;
}

.recent-articles-heading .recent-heading-cta:hover {
    color: var(--bg-dark);
    background: transparent;
}

.search-page-header {
    margin-bottom: 1rem;
}

.category-mag-hero {
    margin-bottom: 1rem;
}

/* Rubrique (catÃ©gories articles) : description sur toute la largeur du bandeau si pas de 2e colonne (onglets / filtres). */
.category-mag-hero.editorial-hero-heading .recent-heading-main {
    min-width: 0;
}

.category-mag-hero.editorial-hero-heading .recent-heading-main:only-child {
    flex: 1 1 100%;
    max-width: none;
}

.category-mag-hero.editorial-hero-heading .recent-heading-main:only-child p {
    max-width: none;
}

.category-mag-hero.editorial-hero-heading .recent-heading-main:not(:only-child) {
    flex: 1 1 0;
}

.category-mag-hero.editorial-hero-heading > :not(.recent-heading-main) {
    flex-shrink: 0;
}

/* Jaquette + anneau de note (archives tests, auteur, accueil) */
.home-critique-thumb {
    position: relative;
    width: 112px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 14, 29, 0.8);
    display: block;
}

.home-critique-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(
            farthest-side ellipse at 50% 42%,
            rgba(8, 14, 29, 0) 28%,
            rgba(8, 14, 29, 0.38) 62%,
            rgba(8, 14, 29, 0.72) 100%
        ),
        linear-gradient(to top, rgba(8, 14, 29, 0.5) 0%, transparent 52%);
}

.home-critique-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.home-critique-score-ring {
    --score: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
}

.home-critique-score-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        var(--reviews-score-bg, #ff4d00) calc(var(--score) * 1%),
        color-mix(in srgb, var(--border-color, #e5e7eb) 58%, #ffffff) 0
    );
    -webkit-mask-image: radial-gradient(farthest-side, transparent calc(78% - 1px), #000 78%);
    mask-image: radial-gradient(farthest-side, transparent calc(78% - 1px), #000 78%);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    z-index: 0;
}

.home-critique-score-ring strong {
    position: relative;
    z-index: 1;
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
    paint-order: stroke fill;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 1),
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 10px rgba(0, 0, 0, 0.85),
        0 0 18px rgba(0, 0, 0, 0.75),
        0 0 28px rgba(0, 0, 0, 0.55);
}

.pro-review-featured {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.1rem;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(15, 25, 43, 0.08);
    position: relative;
}

.pro-review-featured-media {
    position: relative;
    padding: 0.85rem 0 0.85rem 0.85rem;
}

.pro-review-featured-thumb.home-critique-thumb {
    width: 148px;
    height: 186px;
    display: block;
}

.pro-review-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.pro-review-featured-body {
    padding: 0.95rem 1rem;
    padding-right: 2.75rem;
    display: grid;
    align-content: start;
}

.pro-review-featured-label {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(30, 115, 190, 0.14);
    color: #123865;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pro-review-featured-body h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 1.9vw, 1.7rem);
}

.pro-review-featured-body p {
    margin: 0 0 0.72rem;
    color: #51647c;
}

.pro-review-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.pro-review-featured .pro-review-featured-meta > .game-sheet-platform-icons,
.pro-review-featured .pro-review-featured-meta > .pro-review-platform {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    margin: 0;
    justify-content: flex-end;
}

.pro-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

/* Cartes liste archive : mÃªme logique que le bloc Critiques (jaquette + note) */
.pro-review-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 6px 16px rgba(15, 25, 43, 0.06);
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.75rem;
    position: relative;
}

.pro-review-media {
    position: relative;
}

.pro-review-thumb-link.home-critique-thumb {
    display: block;
}

.pro-review-thumb-link .pro-review-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 14, 29, 0.85);
    color: rgba(232, 241, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0.35rem;
}

/* Pages dÃ©diÃ©es (tests jeux / matÃ©riel / avis pro) : ancienne mise en page banniÃ¨re */
.pro-review-thumb {
    display: block;
    aspect-ratio: 21 / 10;
    background: #dce6f0;
    position: relative;
    overflow: hidden;
}

.pro-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-review-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #4f5f73;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pro-review-body {
    padding: 0.78rem 0.82rem 0.85rem;
}

.pro-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.pro-review-card .pro-review-top {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 4;
    margin: 0;
    justify-content: flex-end;
}

.pro-review-card .pro-review-body {
    padding-right: 2.65rem;
}

.pro-review-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6a3d, #f9b233);
    color: #171b25;
    font-weight: 700;
}

.pro-review-image-score {
    position: absolute;
    right: 0.62rem;
    bottom: 0.62rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.pro-review-image-score.is-high {
    background: #1faa5c;
}

.pro-review-image-score.is-mid {
    background: #f5a623;
}

.pro-review-image-score.is-low {
    background: #dd4b39;
}

.pro-review-platform {
    opacity: 0.9;
    font-size: 0.8rem;
    color: #49586d;
}

.pro-review-body h2 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    line-height: 1.35;
}

.pro-review-body p {
    margin: 0 0 0.52rem;
    color: #586b82;
}

.pro-review-meta {
    margin-bottom: 0.5rem;
    color: #677b92;
    font-size: 0.82rem;
}

.pro-review-link {
    font-weight: 600;
    color: var(--bg-blue);
}

/* Cartes liste (fond clair) : titres toujours lisibles, y compris en theme-dark */
.pro-review-card .pro-review-body h2 a,
.pro-review-card .pro-review-body h3 a {
    color: #0f172a;
    text-decoration: none;
}

.pro-review-card .pro-review-body h2 a:hover,
.pro-review-card .pro-review-body h3 a:hover {
    color: var(--bg-blue);
}

body.theme-dark .pro-review-card .pro-review-body h2 a,
body.theme-dark .pro-review-card .pro-review-body h3 a {
    color: #0f172a;
}

body.theme-dark .pro-review-card .pro-review-body h2 a:hover,
body.theme-dark .pro-review-card .pro-review-body h3 a:hover {
    color: var(--bg-blue);
}

.pro-reviews-pagination {
    margin-top: 1.1rem;
}

.pro-reviews-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pro-reviews-pagination a,
.pro-reviews-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.18);
    background: #fff;
    color: var(--bg-accent);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pro-reviews-pagination a:hover,
.pro-reviews-pagination a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 10px 22px rgba(30, 115, 190, 0.2);
    outline: none;
}

.pro-reviews-pagination .current {
    background: linear-gradient(135deg, var(--bg-blue), var(--bg-accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(16, 86, 156, 0.28);
}

@media (max-width: 980px) {
    .pro-reviews-hero {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: 0;
    }

    .recent-articles-heading,
    .editorial-hero-heading {
        min-height: 0;
    }

    .pro-reviews-filters {
        justify-content: flex-start;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.7rem;
    }

    .pro-review-featured {
        grid-template-columns: 1fr;
    }

    .pro-review-featured-media {
        display: flex;
        justify-content: center;
        padding: 0.85rem 0.85rem 0;
    }

    .pro-review-featured-thumb.home-critique-thumb {
        width: min(148px, 42vw);
        height: calc(min(148px, 42vw) * (140 / 112));
    }

    .pro-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .pro-reviews-grid {
        grid-template-columns: 1fr;
    }

    .pro-review-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.65rem;
    }
}

/* Global responsive pass */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1280px) {
    .hero-fullpage-inner,
    .news-grid,
    .home-critiques-inner,
    .home-releases-inner,
    .releases-page-grid,
    .single-review-page {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    /*
     * overflow-x: hidden sur body casse position:sticky du header (Safari / Chrome mobile).
     * clip supprime le scroll horizontal sans crÃ©er le mÃªme conteneur de dÃ©filement.
     */
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .header-topbar {
        gap: 0.5rem;
    }

    .site-header .header-topbar .social-links,
    .site-header .header-right .social-links {
        display: none !important;
    }

    .category-menu > li > .sub-menu,
    .category-menu > li.mega-menu > .sub-menu {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
        transform: translateY(0);
    }

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

    .hero-article-module {
        grid-template-columns: 1fr !important;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Accueil : une carte par ligne (pas 2 colonnes de cartes étroites). */
    .news-section .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .home-critiques-inner {
        padding: 0.85rem;
    }
}

@media (max-width: 680px) {
    .header-brand .custom-logo,
    .header-brand .site-logo-link--dual .site-logo-image,
    .header-brand .site-logo-link--switchable .site-logo-image--switchable {
        max-height: 34px;
        width: auto;
    }

    .header-brand .site-logo-link--switchable {
        height: 34px;
    }

    .cards-grid,
    .home-critique-grid,
    .releases-page-grid {
        grid-template-columns: 1fr;
    }

    .post-card,
    .home-critique-card,
    .release-page-card {
        border-radius: 10px;
    }

    .single-review-page,
    .releases-page,
    .home-critiques-section,
    .home-releases-section {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .site-main {
        overflow-x: clip;
    }

    /* Home hero mobile: avoid text clipping/overlap */
    .hero-article-module {
        gap: 0.9rem;
    }

    .hero-article-module {
        --hero-main-height: 360px;
        --hero-side-row-height: 155px;
    }

    .hero-main-card {
        height: var(--hero-main-height, 360px);
        min-height: var(--hero-main-height, 360px);
        max-height: var(--hero-main-height, 360px);
        border-radius: 18px;
    }

    .hero-side-grid {
        gap: 0.7rem;
        padding: 0;
        height: auto;
        min-height: 0;
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, var(--hero-side-row-height, 155px)));
    }

    .hero-side-card {
        width: 100%;
        height: 100%;
        min-height: var(--hero-side-row-height, 155px);
        border-radius: 14px;
    }

    .hero-main-meta,
    .hero-side-meta {
        z-index: 2;
        padding: 0.75rem;
    }

    .hero-main-meta h1 {
        font-size: 1.02rem;
        line-height: 1.18;
        margin: 0 0 0.45rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-main-meta p {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.34;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-side-meta .hero-side-title {
        font-size: 0.88rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* STYLE-DIET panneau recherche header (global) — voir assets/css/play4geek-header-global.css */

/* STYLE-DIET résultats recherche — voir assets/css/play4geek-style-search.css */
/* STYLE-DIET rubrique catégorie — voir assets/css/play4geek-style-category-mag.css */
    color: var(--text-dark);
}

body.theme-dark .editorial-hero-heading .post-category.category-mag-hero-badge,
body.theme-dark .editorial-hero-heading .post-category.hero-label,
body.theme-dark .editorial-hero-heading .post-category.hero-side-label {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow: none !important;
}

body.theme-dark .editorial-hero-heading .post-category .post-category-label,
body.theme-dark .editorial-hero-heading .post-category a {
    color: #ffffff !important;
}

body.theme-dark .post-card .post-category,
body.theme-dark .category-mag-card-body .post-category {
    background: color-mix(in srgb, var(--bg-blue) 16%, var(--surface-panel));
    color: var(--text-dark);
    border-color: color-mix(in srgb, var(--bg-blue) 32%, transparent);
}

/* Newsletter block refinements */
.sidebar-newsletter {
    background: var(--theme-gradient-hero) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-discord {
    background: linear-gradient(145deg, #5865f2, #3a45b7) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eef2ff;
}

.sidebar-discord h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sidebar-discord-server {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.sidebar-discord-subtitle {
    margin: 0 0 0.55rem;
    font-size: 0.83rem;
    color: rgba(235, 240, 255, 0.9);
}

.sidebar-discord-meta {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    color: rgba(235, 240, 255, 0.92);
}

.sidebar-discord-meta .is-online {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.sidebar-discord-meta .is-online::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.sidebar-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
}

.sidebar-discord-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-discord-embed {
    margin-top: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 12, 24, 0.36);
}

.sidebar-discord-embed iframe {
    display: block;
    border: 0;
}

.sidebar-panel.sidebar-poll.sidebar-recent-comments {
    color: var(--text-dark);
}

.sidebar-panel.sidebar-poll.sidebar-recent-comments ul.sidebar-recent-comments-list {
    margin-top: 0;
}

.sidebar-panel.sidebar-poll.sidebar-recent-comments li.sidebar-recent-comments-item {
    margin-bottom: 0;
}

.sidebar-panel.sidebar-poll.sidebar-recent-comments .sidebar-recent-comments-link {
    color: var(--text-dark);
}

.sidebar-recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.sidebar-recent-comments-link {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem;
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.16s ease;
}

.sidebar-recent-comments-link:hover {
    background: rgba(20, 89, 130, 0.08);
    color: var(--text-dark);
}

.sidebar-recent-comments-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    line-height: 0;
}

.sidebar-recent-comments-avatar-img,
.sidebar-recent-comments-avatar .avatar {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.sidebar-recent-comments-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.sidebar-recent-comments-author {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-recent-comments-text {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-dark);
}

.sidebar-recent-comments-post {
    font-size: 0.72rem;
    color: var(--muted-text);
}

.sidebar-recent-comments-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.sidebar-poll {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.sidebar-poll h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sidebar-poll-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
}

.sidebar-poll-nav-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0a4d7a;
    text-decoration: none;
}

.sidebar-poll-nav-btn:hover {
    text-decoration: underline;
}

.sidebar-poll-nav-current {
    font-size: 0.78rem;
    color: #374151;
}

.sidebar-poll-nav-select-wrap {
    margin: 0 0 0.7rem;
}

.sidebar-poll-select-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-poll-nav-select {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-panel);
    color: var(--text-dark);
    font-size: 0.84rem;
    padding: 0.3rem 0.55rem;
}

.sidebar-poll-question {
    margin: 0 0 0.75rem;
    color: var(--muted-text);
    font-size: 0.94rem;
}

.sidebar-poll-form {
    display: grid;
    gap: 0.6rem;
}

.sidebar-poll-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.sidebar-poll-form button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--button-bg);
    color: var(--button-text);
    font-weight: 700;
}

.sidebar-poll-meta {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-poll-results-link,
.sidebar-poll-back-to-vote-btn {
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    color: #0a4d7a;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sidebar-poll-results-link:hover,
.sidebar-poll-back-to-vote-btn:hover {
    text-decoration: underline;
}

.sidebar-poll-form-wrap.is-hidden,
.sidebar-poll-results-wrap.is-hidden {
    display: none;
}

.sidebar-poll-results {
    display: grid;
    gap: 0.55rem;
}

.sidebar-poll-result-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.sidebar-poll-result-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.15);
    overflow: hidden;
}

.sidebar-poll-result-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-blue), var(--bg-accent));
}

.sidebar-poll-total {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--muted-text);
}

.sidebar-poll-back-to-vote {
    margin: 0.2rem 0 0;
}

/* Sondages publications membre (fil profil / communauté) */
.member-feed-poll {
    margin: 0.75rem 0 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-panel, #f8fafc);
}

.member-feed-poll-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.member-feed-poll-head i {
    color: #0a4d7a;
    margin-top: 0.15rem;
}

.member-feed-poll-question {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.98rem;
    line-height: 1.35;
}

.member-feed-poll-vote,
.member-feed-poll-results {
    display: grid;
    gap: 0.45rem;
}

.member-feed-poll-vote.is-hidden,
.member-feed-poll-results.is-hidden {
    display: none;
}

.member-feed-poll-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-card, #fff);
    color: var(--text-dark);
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.member-feed-poll-option-btn:hover:not(:disabled) {
    border-color: #0a4d7a;
    background: rgba(10, 77, 122, 0.06);
}

.member-feed-poll-option-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.member-feed-poll-meta {
    margin: 0.35rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.member-feed-poll-toggle-results,
.member-feed-poll-toggle-vote {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0a4d7a;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.member-feed-poll-toggle-results:hover,
.member-feed-poll-toggle-vote:hover {
    text-decoration: underline;
}

.member-feed-poll-total {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted-text);
}

.member-feed-poll-result-item.is-user-choice .member-feed-poll-result-head span {
    font-weight: 700;
}

.member-feed-poll-result-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.member-feed-poll-result-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(10, 77, 122, 0.12);
    overflow: hidden;
}

.member-feed-poll-result-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a4d7a, #1d7ab8);
}

.member-feed-poll-login-hint,
.member-feed-poll-back {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--muted-text);
}

.member-feed-poll.is-voting {
    opacity: 0.85;
    pointer-events: none;
}

.member-poll-tool-slot {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.member-poll-preview--composer.member-feed-poll {
    margin: 0.65rem 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.member-composer-toolbar-cluster .member-poll-preview--composer.member-feed-poll,
.member-post-edit-toolbar-cluster .member-poll-preview--composer.member-feed-poll {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.member-poll-preview--composer .member-feed-poll-vote {
    width: 100%;
}

.member-poll-preview--composer[hidden] {
    display: none !important;
}

.member-poll-preview--composer .member-feed-poll-head {
    align-items: flex-start;
}

.member-poll-preview--composer .member-feed-poll-question {
    flex: 1 1 auto;
    min-width: 0;
}

.member-poll-preview--composer .member-feed-poll-option-btn:disabled {
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

.member-feed-poll-preview-hint {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted-text);
}

.member-poll-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    min-height: 1.65rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.member-poll-clear[hidden] {
    display: none !important;
}

.member-poll-clear--preview:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.member-poll-dialog .member-poll-label,
.member-poll-dialog .member-poll-lead {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
}

.member-poll-question-input {
    width: 100%;
    min-height: 42px;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.65rem;
    font-size: 0.95rem;
}

.member-poll-options-list {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.member-poll-option-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.member-poll-option-input {
    flex: 1;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.65rem;
    font-size: 0.92rem;
}

.member-poll-option-remove {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.member-poll-add-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    border: 0;
    background: transparent;
    color: #0a4d7a;
    font-weight: 700;
    cursor: pointer;
}

.member-poll-locked-note {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    font-size: 0.86rem;
}

.member-poll-dialog.member-life-event-dialog--fb {
    max-width: min(360px, calc(100vw - 1.25rem));
    width: min(360px, calc(100vw - 1.25rem));
}

.member-poll-dialog .member-poll-panel {
    padding: 0 0.75rem 0.75rem;
    overflow-y: auto;
    max-height: min(88vh, 520px);
}

.member-poll-dialog .member-poll-panel > .member-life-event-fb-top {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: auto;
}

.member-poll-dialog .member-poll-question-input {
    width: 100%;
    box-sizing: border-box;
}

.member-poll-dialog .member-poll-done {
    width: 100%;
    box-sizing: border-box;
}

.sidebar-hype-widget {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.2rem;
    color: var(--text-dark);
}

.sidebar-hype-widget h3 {
    margin: 0;
    padding: 0.7rem 0.8rem 0.25rem;
    color: var(--text-dark);
}

.sidebar-hype-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.sidebar-hype-item {
    margin: 0;
}

.sidebar-hype-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem;
    border-radius: 12px;
    color: inherit;
    transition: background 0.16s ease;
}

.sidebar-hype-link:hover {
    background: rgba(20, 89, 130, 0.08);
}

.sidebar-hype-widget h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sidebar-hype-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.sidebar-hype-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-hype-content {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.sidebar-hype-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-hype-meta {
    font-size: 0.74rem;
    color: var(--muted-text);
}

.sidebar-hype-score {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.14rem 0.36rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 88, 12, 0.28);
    color: #c2410c;
    background: rgba(251, 146, 60, 0.16);
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-hype-score.is-neutral {
    color: #4b5563;
    border-color: rgba(75, 85, 99, 0.22);
    background: rgba(148, 163, 184, 0.14);
}

.sidebar-collection-widget {
    background: linear-gradient(145deg, rgba(255, 248, 243, 0.95) 0%, var(--surface-card) 55%, rgba(238, 246, 255, 0.95) 100%);
    border: 1px solid rgba(232, 93, 4, 0.14);
    border-radius: 16px;
    padding: 0.2rem 0.2rem 0.55rem;
    color: var(--text-dark);
}

.sidebar-collection-widget h3 {
    margin: 0 0 0.65rem;
    padding: 0.7rem 0.8rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-dark);
}

.sidebar-collection-widget h3 i {
    color: var(--bg-accent, #e85d04);
}

.sidebar-collection-list {
    list-style: none;
    margin: 0;
    padding: 0 0.35rem;
    display: grid;
    gap: 0.35rem;
}

.sidebar-collection-item {
    margin: 0;
}

.sidebar-collection-link {
    display: grid;
    grid-template-columns: auto 52px minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 12px;
    color: inherit;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-collection-link:hover,
.sidebar-collection-link:focus-visible {
    background: rgba(20, 89, 130, 0.08);
}

.sidebar-collection-item.is-top-1 .sidebar-collection-link {
    background: rgba(245, 158, 11, 0.08);
}

.sidebar-collection-item.is-top-2 .sidebar-collection-link {
    background: rgba(148, 163, 184, 0.1);
}

.sidebar-collection-item.is-top-3 .sidebar-collection-link {
    background: rgba(217, 119, 6, 0.08);
}

.sidebar-collection-rank {
    min-width: 1.85rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
}

.sidebar-collection-item.is-top-1 .sidebar-collection-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sidebar-collection-item.is-top-2 .sidebar-collection-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.sidebar-collection-item.is-top-3 .sidebar-collection-rank {
    background: linear-gradient(135deg, #d97706, #92400e);
}

.sidebar-collection-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.sidebar-collection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-collection-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.45);
    font-size: 1.1rem;
}

.sidebar-collection-content {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.sidebar-collection-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-collection-meta {
    font-size: 0.74rem;
    color: var(--muted-text);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sidebar-collection-meta i {
    color: var(--bg-accent, #e85d04);
}

.sidebar-collection-avatars {
    display: flex;
    align-items: center;
    margin-top: 0.1rem;
}

.sidebar-collection-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--surface-card, #fff);
    margin-left: -0.35rem;
}

.sidebar-collection-avatar:first-child {
    margin-left: 0;
}

.sidebar-collection-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sidebar-collection-more {
    display: inline-block;
    margin: 0.55rem 0.8rem 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-blue);
    text-decoration: none;
}

.sidebar-collection-more:hover,
.sidebar-collection-more:focus-visible {
    color: var(--button-hover-bg, var(--bg-accent));
}

.sidebar-newsletter h3,
.sidebar-newsletter p {
    color: #f2f8ff;
}

.sidebar-newsletter h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.newsletter-form input[type="email"] {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 0.75rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(242, 248, 255, 0.76);
}

.newsletter-form button {
    border: none;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 0.9rem;
    color: var(--button-text, var(--text-light));
    background: var(--button-bg, var(--bg-blue));
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    color: var(--button-text, var(--text-light));
}

.newsletter-feedback {
    margin-top: 0.55rem;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
}

.newsletter-feedback.is-success {
    background: rgba(34, 197, 94, 0.2);
    color: #dcfce7;
}

.newsletter-feedback.is-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
}

@media (max-width: 1024px) {
    .category-mag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .category-featured-card,
    .category-mag-grid,
    .newsletter-form {
        grid-template-columns: 1fr;
    }
}

/* Ensure readable text on recent articles */
.news-section .post-card-body h3 a,
.news-section .post-card-body h2 a {
    color: var(--text-dark) !important;
}

.news-section .post-card .post-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    background: var(--badge-bg) !important;
    color: var(--badge-text) !important;
    border: 1px solid var(--badge-text) !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45em 0.95em !important;
    line-height: 1 !important;
    min-height: 2rem;
    box-sizing: border-box;
}

.news-section .post-card .post-category .post-category-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

.news-section .post-card-body p,
.news-section .post-meta,
.news-section .post-meta span {
    color: var(--muted-text) !important;
}

.news-section .post-meta .post-views,
.news-section .post-meta .post-views i {
    font-weight: 400 !important;
    color: var(--muted-text) !important;
}

.news-section .post-read-more {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--bg-accent);
}

.home-news-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Enhanced recent articles header */
.recent-heading-main p {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

@media (max-width: 820px) {
    .editorial-hero-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-articles-heading {
        gap: 0.5rem;
    }

    .recent-articles-heading h2 {
        font-size: 0.86rem;
        white-space: normal;
        line-height: 1.25;
    }

    .recent-articles-head-line {
        height: 3px;
        min-width: 1.5rem;
    }
}

/* Home articles layout switcher */
.news-section,
.news-section .news-grid,
.news-section .news-main,
.news-section .cards-grid {
    min-width: 0;
    max-width: 100%;
}

.news-section .post-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.news-section .post-card-body {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-section .post-card-body h3,
.news-section .post-card-body h3 a,
.news-section .post-card-body p,
.news-section .post-read-more,
.news-section .post-meta {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.news-section .post-meta {
    flex-wrap: wrap;
    row-gap: 0.35rem;
}

.news-section .cards-grid.is-horizontal {
    grid-template-columns: 1fr;
}

/* Desktop large : image à gauche, texte à droite */
@media (min-width: 1025px) {
    .news-section .cards-grid.is-horizontal .post-card {
        display: grid;
        grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
        grid-template-areas: "media body";
        align-items: stretch;
        min-height: 190px;
    }

    .news-section .cards-grid.is-horizontal .post-card-body {
        grid-area: body;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .news-section .cards-grid.is-horizontal .post-card-image {
        grid-area: media;
        height: 100%;
        min-width: 0;
    }

    .news-section .cards-grid.is-horizontal .post-card-image img {
        width: 100%;
        height: 100%;
        min-height: 190px;
        object-fit: cover;
    }
}

/* Tablette + mobile : actualités en premier, sidebar en dessous, cartes empilées */
@media (max-width: 1024px) {
    .news-section .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .news-section .news-main {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .news-section .news-sidebar {
        order: 2;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
    }

    .news-section .news-sidebar .sidebar-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 1.1rem;
        border-radius: 16px;
    }

    .news-section .sidebar-live .streamer-card-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .news-section .sidebar-live .streamer-card-aside {
        flex: 1 1 100%;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    .news-section .sidebar-live .streamer-info {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .news-section .sidebar-live .streamer-game {
        flex: 1 1 100%;
        white-space: normal;
        overflow: visible;
        word-break: break-word;
    }

    .news-section .sidebar-live .streamer-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .news-section .sidebar-discord-embed,
    .news-section .sidebar-discord-embed iframe {
        max-width: 100%;
    }

    .news-section .sidebar-hype-link {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 0.45rem;
    }

    .news-section .cards-grid,
    .news-section .cards-grid.is-horizontal {
        grid-template-columns: 1fr !important;
    }

    /* Flex colonne : hauteur auto selon le contenu (titres longs inclus). */
    .news-section .post-card,
    .news-section .cards-grid.is-horizontal .post-card,
    .news-section .cards-grid.is-vertical .post-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: auto;
        grid-template-columns: unset;
        grid-template-areas: unset;
    }

    .news-section .cards-grid {
        gap: 1.25rem;
    }

    .news-section .cards-grid.is-horizontal .post-card-image,
    .news-section .cards-grid.is-vertical .post-card-image {
        flex: 0 0 auto;
        order: -1;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 720 / 495;
        max-height: min(44vw, 220px);
    }

    .news-section .cards-grid.is-horizontal .post-card-image > a,
    .news-section .cards-grid.is-vertical .post-card-image > a {
        height: auto;
        min-height: 0;
    }

    .news-section .cards-grid.is-horizontal .post-card-image img,
    .news-section .cards-grid.is-vertical .post-card-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: min(44vw, 220px);
        aspect-ratio: 720 / 495;
        object-fit: cover;
    }

    .news-section .cards-grid.is-horizontal .post-card-body,
    .news-section .cards-grid.is-vertical .post-card-body {
        flex: 0 0 auto;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 1rem 1rem 1.4rem;
    }

    .news-section .post-card-body h3 {
        font-size: 1.05rem;
        line-height: 1.32;
        margin: 0 0 0.5rem;
    }

    .news-section .post-card-body p {
        margin: 0 0 0.65rem;
        line-height: 1.55;
    }

    .news-section .post-read-more {
        margin-top: 0.25rem;
    }

    .news-section .post-meta {
        flex-shrink: 0;
        margin-top: 0.65rem;
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
        line-height: 1.45;
        overflow: visible;
    }

    .news-section .post-meta span {
        display: inline-flex;
        align-items: center;
        line-height: 1.45;
    }

    .news-section .post-card img {
        height: auto;
    }
}

/* Blog/index pagination */
.blog-posts-header {
    margin-bottom: 1rem;
}

.blog-posts-header h1 {
    margin: 0 0 0.3rem;
}

.blog-posts-header p {
    margin: 0;
    color: rgba(14, 32, 56, 0.66);
}

.blog-pagination,
.category-mag-pagination,
.search-pagination {
    margin-top: 1.1rem;
}

.blog-pagination .nav-links,
.category-mag-pagination .nav-links,
.search-pagination .nav-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.blog-pagination .page-numbers,
.category-mag-pagination .page-numbers,
.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.18);
    background: #fff;
    color: var(--bg-accent);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-pagination a.page-numbers:hover,
.blog-pagination a.page-numbers:focus-visible,
.category-mag-pagination a.page-numbers:hover,
.category-mag-pagination a.page-numbers:focus-visible,
.search-pagination a.page-numbers:hover,
.search-pagination a.page-numbers:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 10px 22px rgba(30, 115, 190, 0.2);
    outline: none;
}

.blog-pagination .page-numbers.current,
.category-mag-pagination .page-numbers.current,
.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--bg-blue), var(--bg-accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(16, 86, 156, 0.28);
}

/* Front page upcoming releases */
.home-releases-section {
    margin-top: 0.5rem;
    padding: 0 1rem 1.35rem;
}

.home-releases-inner {
    max-width: 1600px;
    margin: 0 auto;
    background: #f6f9ff;
    border: 1px solid rgba(20, 89, 130, 0.13);
    border-radius: 12px;
    padding: 0.9rem;
}

.home-releases-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.7rem;
    gap: 0.75rem;
}

.home-releases-head h2 {
    margin: 0;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(14, 32, 56, 0.86);
    white-space: nowrap;
}

.home-releases-head-line {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: var(--bg-blue);
    opacity: 0.9;
}

.home-releases-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.home-releases-nav-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: rgba(14, 32, 56, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
}

.home-releases-nav-btn:hover:not(:disabled) {
    background: rgba(20, 89, 130, 0.1);
    color: var(--bg-dark);
}

.home-releases-nav-btn.is-disabled,
.home-releases-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.home-releases-more {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bg-blue);
    text-decoration: none;
    white-space: nowrap;
}

.home-releases-more:hover {
    color: var(--bg-accent);
    text-decoration: underline;
}

.home-releases-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.home-releases-track::-webkit-scrollbar {
    display: none;
}

.home-releases-track--grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    overflow: visible;
    scroll-snap-type: none;
    align-content: start;
}

.home-releases-track--grid .home-release-card {
    flex: unset;
    width: auto;
    min-width: 0;
    scroll-snap-align: unset;
}

.home-after-tests-cell--releases .home-releases-track--grid {
    flex: 0 1 auto;
}

@media (max-width: 980px) {
    .home-releases-track--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-releases-track--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-release-card {
    flex: 0 0 calc((100% - (5 * 0.7rem)) / 6);
    width: calc((100% - (5 * 0.7rem)) / 6);
    min-width: calc((100% - (5 * 0.7rem)) / 6);
    scroll-snap-align: start;
}

@media (max-width: 980px) {
    .home-release-card {
        flex-basis: calc((100% - (4 * 0.7rem)) / 5);
        width: calc((100% - (4 * 0.7rem)) / 5);
        min-width: calc((100% - (4 * 0.7rem)) / 5);
    }
}

@media (max-width: 640px) {
    .home-release-card {
        flex-basis: calc((100% - (3 * 0.7rem)) / 4);
        width: calc((100% - (3 * 0.7rem)) / 4);
        min-width: calc((100% - (3 * 0.7rem)) / 4);
    }
}

@media (max-width: 420px) {
    .home-release-card {
        flex-basis: calc((100% - (2 * 0.7rem)) / 3);
        width: calc((100% - (2 * 0.7rem)) / 3);
        min-width: calc((100% - (2 * 0.7rem)) / 3);
    }
}

.home-release-card-link {
    display: block;
}

.home-release-thumb {
    border-radius: 9px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    padding: 0;
    position: relative;
}

.home-release-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 9px;
}

.home-release-card h3 {
    margin: 0.4rem 0 0.2rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--bg-dark);
}

.home-release-card p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(14, 32, 56, 0.65);
}

.home-release-empty {
    margin: 0.4rem 0;
    color: rgba(14, 32, 56, 0.7);
}

/* STYLE-DIET assets/css/play4geek-home-community-feed.css (accueil) — voir assets/css/play4geek-home-community-feed.css (accueil) */

@media (max-width: 680px) {
    .home-releases-head {
        gap: 0.45rem;
    }

    .home-releases-head h2 {
        font-size: 0.78rem;
    }

    .home-releases-head-line {
        height: 3px;
    }
}

/* STYLE-DIET page sorties — voir assets/css/play4geek-style-releases-page.css */
.home-releases-by-month {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.home-releases-month-block {
    margin: 0;
}

.home-releases-month-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    padding-bottom: 0.28rem;
    border-bottom: 2px solid rgba(20, 89, 130, 0.28);
}

.home-releases-month-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(14, 32, 56, 0.88);
}

.home-releases-month-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.55);
}

.home-releases-month-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-releases-month-cards .home-release-card {
    flex: 1 1 140px;
    max-width: 200px;
    min-width: 120px;
}

.home-release-card-date {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    line-height: 1.25;
    color: rgba(14, 32, 56, 0.62);
    font-weight: 600;
}

.home-release-card-date .home-release-day {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bg-accent);
    margin-right: 0.25rem;
}

/* STYLE-DIET responsive releases/annuaire — voir assets/css/play4geek-style-releases-page.css */
/* Single review full-width */
.single-review-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.single-review-layout {
    display: grid;
    gap: 1rem;
}

.single-review-hero {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    background: linear-gradient(160deg, var(--bg-dark), var(--theme-surface-deep));
    border: 1px solid rgba(30, 115, 190, 0.26);
    border-radius: 16px;
    padding: 1rem;
    color: #fff;
}

.single-review-rating {
    border: 3px solid var(--bg-blue);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    min-height: 96px;
}

.single-review-rating-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.single-review-rating-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.single-review-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(232, 241, 255, 0.8);
}

.single-review-hero h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    color: #fff;
}

.single-review-verdict {
    margin: 0 0 0.6rem;
    color: rgba(232, 241, 255, 0.9);
}

.single-review-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.single-review-meta span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.16rem 0.55rem;
    font-size: 0.76rem;
    color: rgba(232, 241, 255, 0.9);
}

.single-review-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 14px;
}

.single-review-share-label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.75);
}

.single-review-share .share-buttons-horizontal {
    margin-left: auto;
}

.single-review-content {
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 14px;
    padding: 1.2rem;
    line-height: 1.8;
    color: rgba(14, 32, 56, 0.88);
}

.single-review-proscons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.single-review-list {
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 14px;
    padding: 1rem;
}

.single-review-list.pros h3 {
    color: #177645;
}

.single-review-list.cons h3 {
    color: #b4233d;
}

.single-review-list h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.single-review-list ul {
    margin: 0;
    padding-left: 1.05rem;
}

.single-review-list li {
    margin-bottom: 0.4rem;
}

@media (max-width: 760px) {
    .single-review-hero,
    .single-review-proscons {
        grid-template-columns: 1fr;
    }

    .single-review-rating {
        min-height: 78px;
    }
}

/* Pro review layout overrides */
.single-review-page {
    max-width: 1180px;
}

.single-review-breadcrumb {
    font-size: 0.86rem;
    color: rgba(14, 32, 56, 0.64);
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.single-review-breadcrumb a {
    color: var(--bg-accent);
}

.single-review-hero {
    grid-template-columns: 112px 1fr;
    border-radius: 20px;
    padding: 1.25rem;
    background: linear-gradient(160deg, #0d1b32, #142e52 72%);
}

.single-review-cover {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(20, 89, 130, 0.22);
    position: relative;
}

.single-review-cover img,
.single-review-cover-media {
    width: 100%;
    min-height: 220px;
    max-height: 430px;
    object-fit: cover;
    display: block;
}

.single-review-cover--member .single-review-cover-media {
    min-height: 280px;
    object-position: center top;
}

.single-review-cover-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.1rem;
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.05), rgba(5, 12, 22, 0.88) 72%);
    color: #fff;
}

.single-review-cover-overlay-inner {
    min-width: 0;
    flex: 1 1 auto;
}

.single-review-cover-overlay h1,
.single-review-cover-fallback h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.15;
    color: #fff;
}

.single-review-hero-game {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.single-review-hero-game a {
    color: rgba(232, 241, 255, 0.95);
    text-decoration: none;
}

.single-review-hero-game a:hover {
    text-decoration: underline;
}

.single-review-hero-rating {
    margin: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    line-height: 1;
}

.single-review-hero-rating-value {
    font-size: 1.65rem;
    font-weight: 800;
}

.single-review-hero-rating-suffix {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
}

.single-review-hero-rating.is-high {
    background: rgba(34, 197, 94, 0.28);
}

.single-review-hero-rating.is-mid {
    background: rgba(245, 158, 11, 0.3);
}

.single-review-hero-rating.is-low {
    background: rgba(239, 68, 68, 0.28);
}

.single-review-header {
    margin-top: 1rem;
}

.single-review-header .single-article-excerpt {
    margin: 0 0 1rem;
}

/* Critiques (jeu, matÃ©riel, accessoire) : barre auteur / meta plus plate */
.single-review-page .article-meta-bar {
    padding: 0.6rem 0.85rem;
    gap: 1rem;
    align-items: center;
}

.single-review-page .author-info {
    gap: 0.65rem;
    align-items: center;
}

.single-review-page .author-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    align-self: center;
    border-width: 2px;
}

.single-review-page .author-details {
    gap: 0.12rem;
}

.single-review-page .author-name {
    font-size: 0.92rem;
    line-height: 1.25;
}

.single-review-page .article-stats {
    font-size: 0.8rem;
    gap: 0.45rem;
    line-height: 1.35;
}

.single-review-page .share-buttons-horizontal {
    gap: 0.45rem;
}

.single-review-page .share-icon {
    width: 34px;
    height: 34px;
}

.single-review-page .share-icon svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 768px) {
    .single-review-page .article-meta-bar {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .single-review-page .article-meta-bar {
        padding: 0.5rem 0.65rem;
    }

    .single-review-page .author-avatar {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .single-review-page .article-stats {
        font-size: 0.76rem;
    }

    .single-review-page .share-icon {
        width: 32px;
        height: 32px;
    }

    .single-review-page .share-icon svg {
        width: 16px;
        height: 16px;
    }
}

.single-review-cover-fallback {
    border: 1px solid rgba(20, 89, 130, 0.2);
    border-radius: 16px;
    background: linear-gradient(160deg, #0d1b32, #142e52 72%);
    padding: 1rem 1.1rem;
    color: #fff;
}

.single-review-cover-fallback .single-review-kicker {
    color: rgba(232, 241, 255, 0.82);
}

.single-review-cover-fallback .single-review-hero-rating {
    margin-top: 0.75rem;
    width: fit-content;
}

.single-review-layout > .article-game-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.single-review-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.single-review-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.single-review-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-height: 32px;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: rgba(20, 89, 130, 0.08);
    color: rgba(14, 32, 56, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
}

.single-review-highlight.rating.is-high {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.single-review-highlight.rating.is-mid {
    background: rgba(234, 179, 8, 0.16);
    border-color: rgba(234, 179, 8, 0.3);
    color: #92400e;
}

.single-review-highlight.rating.is-low {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.single-review-content {
    border-radius: 16px;
    padding: 1.35rem;
}

.single-review-content > *:first-child {
    margin-top: 0;
}

/* Comments full width on single review (native + wpDiscuz) */
.single-review-page .comments-area,
.single-review-page #comments,
.single-review-page #wpdcom,
.single-review-page .wpdiscuz_unauth,
.single-review-page .wpd-thread-wrapper,
.single-review-page .wpd-comment-form-wrap,
.single-review-page .wpd-form-wrapper,
.single-review-page .wpd-thread-list,
.single-review-page .wpdiscuz-comment-form,
.single-review-page .wpdiscuz-comments {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.single-review-page #comments,
.single-review-page #wpdcom {
    margin-top: 1rem;
}

.single-review-page .comment-respond textarea,
.single-review-page .wpdiscuz-textarea-wrap textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* STYLE-DIET single article wpDiscuz (post) — voir assets/css/play4geek-style-single-article.css */

.single-review-subscores {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.18);
}

.single-review-subscores h3 {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
}

.single-review-subscores-grid {
    display: grid;
    gap: 0.65rem;
}

.single-review-subscore-item {
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: rgba(20, 89, 130, 0.04);
}

.single-review-subscore-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.single-review-subscore-head strong {
    color: var(--bg-dark);
}

.single-review-subscore-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.14);
    overflow: hidden;
}

.single-review-subscore-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--theme-gradient-progress);
}

.single-review-summary {
    position: sticky;
    top: 90px;
    border: 1px solid rgba(20, 89, 130, 0.17);
    border-radius: 16px;
    background: #ffffff;
    padding: 1rem;
}

.single-review-summary h3 {
    margin: 0 0 0.35rem;
}

.single-review-summary-text {
    margin: 0 0 0.75rem;
    color: rgba(14, 32, 56, 0.78);
}

.single-review-summary-score {
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(20, 89, 130, 0.08);
}

.single-review-summary-score strong {
    color: var(--bg-dark);
    font-size: 1.28rem;
}

.single-review-summary-badge {
    margin: 0 0 0.65rem;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.16rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.single-review-summary-badge.is-high {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.single-review-summary-badge.is-mid {
    background: rgba(234, 179, 8, 0.16);
    color: #92400e;
}

.single-review-summary-badge.is-low {
    background: rgba(239, 68, 68, 0.14);
    color: #991b1b;
}

.single-review-summary .single-review-list {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-review-summary .single-review-list h4 {
    margin: 0.7rem 0 0.45rem;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .single-review-main-grid {
        grid-template-columns: 1fr;
    }

    .single-review-summary {
        position: static;
    }
}

/* Single review dark mode */
body.theme-dark .single-review-breadcrumb {
    color: #96afd0;
}

body.theme-dark .single-review-breadcrumb a {
    color: #9fcfff;
}

body.theme-dark .single-review-cover,
body.theme-dark .single-review-share,
body.theme-dark .single-review-content,
body.theme-dark .single-review-summary {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .single-review-cover-fallback {
    border-color: var(--border-color);
    background: linear-gradient(160deg, #0d1b32, #142e52 72%);
}

body.theme-dark .single-review-page .single-review-header .article-meta-bar {
    background: var(--surface-panel);
    border: 1px solid var(--border-color);
}

body.theme-dark .single-review-page .author-name,
body.theme-dark .single-review-page .article-stats {
    color: #9fb5d3;
}

body.theme-dark .single-review-page .author-name a {
    color: #9fcfff;
}

body.theme-dark .single-review-page .single-review-header .single-article-excerpt {
    color: #9fb5d3;
}

body.theme-dark .single-review-game-meta span {
    border-color: rgba(77, 163, 255, 0.26);
    color: #bdd5f5;
    background: rgba(77, 163, 255, 0.12);
}

body.theme-dark .single-review-highlight {
    background: rgba(77, 163, 255, 0.14);
    border-color: rgba(77, 163, 255, 0.26);
    color: #dbe8ff;
}

body.theme-dark .single-review-highlight.rating.is-high {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(74, 222, 128, 0.36);
    color: #bbf7d0;
}

body.theme-dark .single-review-highlight.rating.is-mid {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(250, 204, 21, 0.36);
    color: #fde68a;
}

body.theme-dark .single-review-highlight.rating.is-low {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(248, 113, 113, 0.36);
    color: #fecaca;
}

body.theme-dark .single-review-summary-text {
    color: #bdd5f5;
}

body.theme-dark .single-review-summary-score {
    background: rgba(77, 163, 255, 0.16);
}

body.theme-dark .single-review-summary-score strong {
    color: #e8f3ff;
}

body.theme-dark .single-review-summary-badge.is-high {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

body.theme-dark .single-review-summary-badge.is-mid {
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

body.theme-dark .single-review-summary-badge.is-low {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

body.theme-dark .single-review-subscores {
    border-top-color: rgba(77, 163, 255, 0.24);
}

body.theme-dark .single-review-subscore-item {
    background: rgba(77, 163, 255, 0.12);
    border-color: rgba(77, 163, 255, 0.22);
}

body.theme-dark .single-review-subscore-head {
    color: #dbe8ff;
}

body.theme-dark .single-review-subscore-head strong {
    color: #ffffff;
}

body.theme-dark .single-review-subscore-bar {
    background: rgba(191, 219, 254, 0.18);
}

/* STYLE-DIET-PHASE6-APPLIED */
