/* =========================================================
   PLATFORM GAME LIST
   ========================================================= */

.platform-page {
    padding: 24px 0 56px;
}


/* =========================================================
   HEADER
   ========================================================= */

.platform-header {
    margin-bottom: 24px;
    padding: 0;

    border: 0;
    background: transparent;
}


/* =========================================================
   TITLE
   ========================================================= */

.platform-title {
    margin: 0;

    color: var(--text);

    font-family: var(--head);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
}


/* =========================================================
   INTRO
   ========================================================= */

.platform-intro {
    max-width: 900px;
    margin-top: 14px;

    color: var(--text2);

    font-family: var(--body);
    font-size: 15px;
    line-height: 1.75;
}

.platform-intro p {
    margin: 0;
}

.platform-intro strong {
    color: var(--text);
    font-weight: 600;
}


/* =========================================================
   GAME COUNT
   ========================================================= */

.platform-count {
    margin-top: 12px;

    color: var(--muted);

    font-family: var(--head);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   GAME LIST
   ========================================================= */

.game-list-section {
    margin-top: 20px;
}
.game-empty-title {
    margin: 0 0 8px;

    color: var(--text);

    font-family: var(--head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.game-empty {
    margin: 36px 0;
    padding: 30px;

    border: 1px solid var(--line);
    border-radius: 4px;

    background: var(--surface);

    text-align: center;
}


.game-empty p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {

    .platform-page {
        padding-top: 18px;
    }

    .platform-header {
        margin-bottom: 22px;
    }

}


@media (max-width: 600px) {

    .platform-page {
        padding-top: 16px;
    }

    .platform-header {
        margin-bottom: 20px;
    }

    .platform-title {
        font-size: 27px;
    }

    .platform-intro {
        margin-top: 12px;

        font-size: 14px;
        line-height: 1.7;
    }

    .platform-count {
        margin-top: 10px;
    }

    .game-list-section {
        margin-top: 18px;
    }

}

/* SEGA collection tabs */
.sega-collection-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0 26px;
    border-bottom: 1px solid var(--line);
}

.sega-collection-nav a {
    display: inline-block;
    padding: 0 0 12px;
    margin-bottom: -1px;
    color: var(--text2);
    font: 600 14px/1.5 var(--body);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.sega-collection-nav a:hover {
    color: var(--text);
}

.sega-collection-nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* View all link */
.collection-more {
    margin: 20px 0 8px;
    text-align: right;
}

.collection-more a {
    color: var(--accent);
    font: 600 14px/1.5 var(--body);
    text-decoration: none;
}

.collection-more a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sega-collection-nav a:focus-visible,
.collection-more a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .sega-collection-nav {
        gap: 18px;
    }

    .sega-collection-nav a {
        font-size: 13px;
    }

    .collection-more {
        text-align: left;
    }
}

/* Links in editorial content */
.platform-editorial a , .platform-intro a{
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.platform-editorial a:hover, .platform-intro a:hover {
    color: var(--text);
    text-decoration-color: var(--accent);
}

.platform-editorial a:focus-visible, .platform-intro a:focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
/* Game titles in editorial content */
.platform-intro em,
.platform-editorial em {
    color: #175db4;
    font-style: italic;
    font-weight: 600;
}

/* Dark mode */
body.dark .platform-intro em,
body.dark .platform-editorial em {
    color: #8bbcff;
}

/* Linked game titles retain link styling */
.platform-editorial a em {
    color: inherit;
}

.editorial-figure {
    max-width: 640px;
    margin: 24px 0;
}

.editorial-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.editorial-figure figcaption {
    margin-top: 8px;
    color: var(--text2);
    font-size: 13px;
    line-height: 1.6;
}