

.ghub-hero__lead {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ghub-content-wrap {
    max-width: var(--fe-main-max, 1200px);
}

.ghub-main {
    flex: 1;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding-bottom: 3rem;
}

.ghub-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--fe-color-text-muted, #64748b);
    font-size: 1rem;
}

.ghub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

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

.ghub-card {
    --ghub-accent: var(--fe-color-primary, #6366f1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: var(--fe-radius-lg, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--fe-color-surface, #f8fafc);
    border: 1px solid var(--fe-color-border, #e2e8f0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .ghub-card {
    background: var(--fe-color-surface, #1e293b);
    border-color: var(--fe-color-border, #334155);
}

.ghub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--ghub-accent);
}

[data-theme="dark"] .ghub-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ghub-card__media {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.ghub-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ghub-card:hover .ghub-card__img {
    transform: scale(1.04);
}

.ghub-card__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.ghub-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghub-card__firm {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    max-width: calc(100% - 1.3rem);
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghub-card__media--sponsored .ghub-card__firm {
    max-width: min(55%, calc(100% - 5.5rem));
}

.ghub-card__sponsor-ribbon {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    margin: 0;
    max-width: min(11rem, calc(100% - 1.3rem));
    text-align: right;
    pointer-events: none;
}

.ghub-card__sponsor-ribbon .ghub-card__sponsor {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ghub-card__panel {
    padding: 1.1rem 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 3px solid var(--ghub-accent);
}

.ghub-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--fe-color-text, #0f172a);
}

[data-theme="dark"] .ghub-card__title {
    color: var(--fe-color-text, #f1f5f9);
}

.ghub-card__tagline {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--fe-color-text-muted, #64748b);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ghub-card__panel-end {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: stretch;
    width: 100%;
    flex-shrink: 0;
}

.ghub-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem;
    margin: 0;
    flex-shrink: 0;
}

.ghub-card__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    align-items: center;
}

.ghub-card__plat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    line-height: 1;
    color: var(--fe-color-text-muted, #64748b);
    background: var(--fe-color-bg-alt, #f1f5f9);
}

.ghub-card__plat i {
    font-size: 1em;
    line-height: 1;
    width: 1em;
    height: 1em;
}

[data-theme="dark"] .ghub-card__plat {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.ghub-card__cta {
    margin-top: 0;
    padding-top: 0.45rem;
    border-top: 1px solid var(--fe-color-border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ghub-accent);
    transition: gap 0.2s ease;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .ghub-card__cta {
    border-top-color: var(--fe-color-border, #334155);
}

.ghub-card:hover .ghub-card__cta {
    gap: 0.5rem;
}

.ghub-share-inline {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fe-color-border, #e2e8f0);
}

[data-theme="dark"] .ghub-share-inline {
    border-top-color: var(--fe-color-border, #334155);
}

@media (max-width: 900px) {
    .ghub-content-wrap {
        flex-direction: column;
        padding-left: var(--fe-spacing-md, 1rem);
        padding-right: var(--fe-spacing-md, 1rem);
    }

    .ghub-content-wrap .pg-share-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--fe-color-border, #e2e8f0);
    }

    [data-theme="dark"] .ghub-content-wrap .pg-share-sidebar {
        border-bottom-color: var(--fe-color-border, #334155);
    }
}

@media (max-width: 640px) {
    .ghub-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ghub-hero__lead {
        font-size: 0.9375rem;
    }
}

body.is-gamehub-list-page .pg-hero__title {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.06;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 8px 28px rgba(0, 0, 0, 0.45);
}
body.is-gamehub-list-page .pg-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.is-gamehub-list-page .ghub-grid {
    gap: 1rem;
}
body.is-gamehub-list-page .ghub-card__title {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
body.is-gamehub-list-page .ghub-card__panel {
    padding: 1rem 1.1rem 0.95rem;
}
