﻿:root {
    color-scheme: dark;
    --fg4-bg: #0b0c10;
    --fg4-panel: #0f1016;
    --fg4-card: #13141a;
    --fg4-raised: #1a1b24;
    --fg4-border: rgba(255, 255, 255, 0.06);
    --fg4-border-strong: rgba(255, 255, 255, 0.1);
    --fg4-text: #eceef5;
    --fg4-muted: #9ca3b8;
    --fg4-dim: #555b73;
    --fg4-red: #e8394a;
    --fg4-blue: #4fc3f7;
    --fg4-green: #22c55e;
    --fg4-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--fg4-bg);
    scroll-behavior: smooth;
}

body.fg4-page {
    min-width: 320px;
    margin: 0;
    background: var(--fg4-bg);
    color: var(--fg4-text);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.fg4-page a {
    color: inherit;
    text-decoration: none;
}

.fg4-page button,
.fg4-page input {
    font: inherit;
}

.fg4-page img {
    max-width: 100%;
}

.fg4-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

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

.fg4-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--fg4-bg);
    border-bottom: 1px solid var(--fg4-border);
}

.fg4-announcement {
    min-height: 29px;
    padding: 5px 16px;
    overflow-x: auto;
    background: var(--fg4-panel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--fg4-muted);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

.fg4-announcement a,
.fg4-announcement > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fg4-announcement strong {
    color: var(--fg4-text);
    font-weight: 500;
}

.fg4-announcement a + a {
    margin-left: 24px;
}

.fg4-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 62px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.fg4-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fg4-brand strong {
    color: var(--fg4-text);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.fg4-brand-mark,
.fg4-brand-logo {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--fg4-red);
    box-shadow: 0 0 12px rgba(232, 57, 74, 0.35);
}

.fg4-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fg4-brand-mark i,
.fg4-play-ring i {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

.fg4-search-form {
    display: flex;
    flex: 1 1 520px;
    max-width: 520px;
    min-width: 0;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: var(--fg4-raised);
}

.fg4-search-form:focus-within {
    border-color: rgba(232, 57, 74, 0.55);
    box-shadow: 0 0 0 3px rgba(232, 57, 74, 0.08);
}

.fg4-search-form input {
    width: 100%;
    min-width: 0;
    padding: 9px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fg4-text);
}

.fg4-search-form input::placeholder {
    color: #686d81;
}

.fg4-search-form button {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--fg4-red);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.fg4-search-icon {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.fg4-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.fg4-app-link {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--fg4-muted);
    font-size: 13px;
    transition: color 0.15s, border-color 0.15s;
}

.fg4-app-link:hover,
.fg4-app-link:focus-visible {
    border-color: rgba(79, 195, 247, 0.35);
    color: var(--fg4-blue);
}

.fg4-category-nav {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d0e13;
}

.fg4-category-row {
    display: flex;
    align-items: stretch;
    min-height: 43px;
}

.fg4-category-primary {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.fg4-category-primary::-webkit-scrollbar {
    display: none;
}

.fg4-category-primary a {
    display: inline-flex;
    min-height: 43px;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 6px;
    border-bottom: 2px solid transparent;
    color: #7a7f96;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.fg4-category-primary a:hover,
.fg4-category-primary a:focus-visible {
    color: #c8cad4;
}

.fg4-category-primary a.is-active {
    border-bottom-color: var(--fg4-red);
    color: var(--fg4-text);
    font-weight: 600;
}

.fg4-category-primary a > span,
.fg4-category-grid a > span {
    display: block;
    width: 5em;
    overflow: hidden;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg4-category-primary a.fg4-category-ad,
.fg4-category-grid a.fg4-category-ad {
    gap: 5px;
    color: var(--fg4-blue);
}

.fg4-category-ad em {
    padding: 1px 4px;
    border: 1px solid rgba(79, 195, 247, 0.34);
    border-radius: 3px;
    background: rgba(79, 195, 247, 0.1);
    color: var(--fg4-blue);
    font-size: 9px;
    font-style: normal;
    line-height: 1.3;
}

.fg4-category-divider {
    width: 1px;
    height: 20px;
    flex: 0 0 1px;
    align-self: center;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.08);
}

.fg4-category-toggle {
    display: inline-flex;
    min-height: 43px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 6px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #7a7f96;
    cursor: pointer;
    white-space: nowrap;
}

.fg4-category-toggle b {
    min-width: 25px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg4-dim);
    font-size: 10px;
    line-height: 1.5;
}

.fg4-category-toggle i {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}

.fg4-category-toggle[aria-expanded="true"] {
    border-bottom-color: var(--fg4-red);
    background: rgba(232, 57, 74, 0.08);
    color: var(--fg4-red);
}

.fg4-category-toggle[aria-expanded="true"] b {
    background: var(--fg4-red);
    color: #fff;
}

.fg4-category-toggle[aria-expanded="true"] i {
    transform: rotate(225deg) translate(-1px, -1px);
}

.fg4-category-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 400;
    border-top: 1px solid var(--fg4-border);
    border-bottom: 1px solid var(--fg4-border);
    background: var(--fg4-panel);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.fg4-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    max-height: min(55vh, 420px);
    padding-top: 16px;
    padding-bottom: 18px;
    overflow-y: auto;
}

.fg4-category-grid a {
    display: inline-flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg4-muted);
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.fg4-category-grid a:hover,
.fg4-category-grid a:focus-visible {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg4-text);
}

.fg4-category-grid a.is-active {
    border-color: var(--fg4-red);
    background: var(--fg4-red);
    color: #fff;
    font-weight: 600;
}

.fg4-main {
    min-height: 50vh;
}

.fg4-hero {
    padding: 24px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--fg4-panel);
}

.fg4-hero h1 {
    margin: 0 0 6px;
    color: var(--fg4-text);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.35;
}

.fg4-hero p {
    max-width: 760px;
    margin: 0 0 14px;
    color: var(--fg4-muted);
    font-size: 13px;
    line-height: 1.8;
}

.fg4-hot-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fg4-hot-tags > span {
    color: var(--fg4-dim);
    font-size: 12px;
}

.fg4-hot-tags a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--fg4-border);
    border-radius: 20px;
    background: var(--fg4-raised);
    color: var(--fg4-muted);
    font-size: 12px;
}

.fg4-hot-tags a:nth-of-type(-n+3) {
    color: var(--fg4-red);
}

.fg4-hot-tags b {
    font-size: 10px;
}

.fg4-content {
    padding-top: 24px;
    padding-bottom: 24px;
}

.fg4-promo-strip {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 13px 20px;
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 10px;
    background: linear-gradient(100deg, #0d1528 0%, #111c38 60%, #0d1528 100%);
}

.fg4-promo-strip > span:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--fg4-text);
    font-size: 13px;
}

.fg4-promo-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(79, 195, 247, 0.1);
    color: var(--fg4-blue);
    font-size: 11px;
}

.fg4-promo-strip > b {
    flex: 0 0 auto;
    padding: 7px 18px;
    border-radius: 6px;
    background: var(--fg4-blue);
    color: var(--fg4-bg);
    font-size: 13px;
}

.fg4-detail-tags a,
.fg4-footer-tags a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg4-muted);
    font-size: 13px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.fg4-detail-tags a:hover,
.fg4-detail-tags a:focus-visible {
    border-color: rgba(232, 57, 74, 0.3);
    background: rgba(232, 57, 74, 0.1);
    color: var(--fg4-text);
}

.fg4-list-section {
    margin-bottom: 16px;
}

.fg4-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.fg4-section-heading h1,
.fg4-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--fg4-text);
    font-size: 16px;
    font-weight: 700;
}

.fg4-section-heading h1 i,
.fg4-section-heading h2 i {
    display: inline-block;
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: var(--fg4-red);
}

.fg4-section-heading > a {
    color: var(--fg4-blue);
    font-size: 13px;
}

.fg4-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fg4-card {
    min-width: 0;
    border: 1px solid var(--fg4-border);
    border-radius: var(--fg4-radius);
    background: var(--fg4-card);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fg4-card:hover,
.fg4-card:focus-within {
    border-color: rgba(232, 57, 74, 0.42);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.fg4-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 7px 7px 0 0;
    background: var(--fg4-raised);
}

.fg4-card-media > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px 7px 0 0;
    object-fit: contain;
    background: var(--fg4-raised);
}

.fg4-card-media::after {
    position: absolute;
    inset: 0;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 52%);
    content: "";
    pointer-events: none;
}

.fg4-play-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(232, 57, 74, 0.9);
    box-shadow: 0 0 20px rgba(232, 57, 74, 0.4);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s, transform 0.2s;
}

.fg4-card:hover .fg4-play-ring,
.fg4-card:focus-within .fg4-play-ring {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fg4-card-category,
.fg4-card-duration {
    position: absolute;
    bottom: 7px;
    z-index: 3;
}

.fg4-card-category {
    left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(232, 57, 74, 0.15);
    color: var(--fg4-red);
    font-size: 10px;
}

.fg4-card-duration {
    right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.66);
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
}

.fg4-card-body {
    padding: 10px 12px 12px;
}

.fg4-card-body h3 {
    display: -webkit-box;
    min-height: 39px;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--fg4-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fg4-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--fg4-dim);
    font-size: 11px;
}

.fg4-card--ad {
    grid-column: span 2;
    border-color: rgba(79, 195, 247, 0.12);
    border-radius: 0;
    background: linear-gradient(135deg, #0f1528 0%, #141b35 100%);
}

.fg4-card--ad:hover,
.fg4-card--ad:focus-within {
    border-color: rgba(79, 195, 247, 0.35);
}

.fg4-card--ad .fg4-card-media,
.fg4-card--ad .fg4-card-media > img,
.fg4-card--ad .fg4-card-media::after {
    border-radius: 0;
}

.fg4-card--ad .fg4-card-media::after {
    display: none;
}

.fg4-card--ad .fg4-card-media > img {
    object-fit: fill;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 28px 0 8px;
}

.page-navigator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-navigator li a,
.page-navigator li span,
.page-jump button {
    display: inline-flex;
    min-width: 34px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    background: var(--fg4-raised);
    color: var(--fg4-muted);
    font-size: 13px;
}

.page-navigator li.active a {
    border-color: var(--fg4-red);
    background: var(--fg4-red);
    color: #fff;
    font-weight: 600;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fg4-dim);
    font-size: 12px;
}

.page-jump input {
    width: 50px;
    height: 32px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    background: var(--fg4-card);
    color: var(--fg4-text);
    text-align: center;
}

.page-jump button {
    cursor: pointer;
}

.global-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    color: var(--fg4-dim);
    font-size: 13px;
}

.global-breadcrumb a {
    color: var(--fg4-blue);
}

.global-breadcrumb span:last-child {
    color: var(--fg4-muted);
}

.xqbj-search-none,
.fg4-empty-panel {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 32px;
    border: 1px solid var(--fg4-border);
    border-radius: 10px;
    background: var(--fg4-card);
    color: var(--fg4-muted);
    text-align: center;
}

.xqbj-search-none > .title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.fg4-empty-icon,
.xqbj-icon-none::before {
    color: var(--fg4-dim);
    font-size: 32px;
}

.xqbj-search-none .recommend {
    width: 100%;
    margin-top: 18px;
}

.xqbj-search-none .recommend .tags,
#archives-tags .tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.xqbj-search-none .tag,
#archives-tags .itags {
    padding: 5px 12px;
    border: 1px solid var(--fg4-border);
    border-radius: 20px;
    background: var(--fg4-raised);
    color: var(--fg4-muted);
}

.fg4-search-page {
    padding-bottom: 20px;
}

.fg4-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
}

.fg4-search-history,
.fg4-search-ranking {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--fg4-border);
    border-radius: 10px;
    background: var(--fg4-card);
}

.fg4-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fg4-border);
}

.fg4-panel-heading h2 {
    margin: 0;
    color: var(--fg4-text);
    font-size: 14px;
}

.fg4-panel-heading button {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--fg4-dim);
    cursor: pointer;
}

.fg4-history-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fg4-history-list a,
.fg4-history-list span {
    padding: 5px 11px;
    border: 1px solid var(--fg4-border);
    border-radius: 20px;
    background: var(--fg4-raised);
    color: var(--fg4-muted);
    font-size: 12px;
}

.fg4-rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
}

.fg4-rank-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fg4-rank-card b {
    color: var(--fg4-dim);
    font-size: 13px;
}

.fg4-rank-card b.is-top {
    color: var(--fg4-red);
}

.fg4-rank-card span {
    min-width: 0;
    overflow: hidden;
    color: var(--fg4-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg4-rank-card em {
    color: var(--fg4-dim);
    font-size: 11px;
    font-style: normal;
}

.fg4-player-shell {
    padding: 12px;
    border: 1px solid var(--fg4-border);
    border-radius: 10px;
    background: var(--fg4-card);
}

.fg4-player-note {
    margin-bottom: 10px;
    color: var(--fg4-muted);
    font-size: 12px;
}

.fg4-player-note span {
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--fg4-red);
    color: #fff;
}

.player-wrapper,
#article-videos,
.dplayer {
    width: 100%;
}

#article-videos {
    aspect-ratio: 1520 / 651;
    background: #000;
}

#article-videos > .dplayer {
    height: 100%;
}

.dplayer-loading {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--fg4-muted);
}

.fg4-detail-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-radius: 7px;
    background: linear-gradient(90deg, #0d1528, #111c38);
    color: var(--fg4-muted);
}

.fg4-detail-download b {
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(79, 195, 247, 0.1);
    color: var(--fg4-blue);
    font-size: 11px;
}

.fg4-detail-download strong {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 5px;
    background: var(--fg4-blue);
    color: var(--fg4-bg);
    font-size: 12px;
}

.fg4-detail-header {
    margin-bottom: 16px;
}

.fg4-detail-header h1 {
    margin: 0 0 10px;
    color: var(--fg4-text);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.45;
}

.fg4-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: var(--fg4-dim);
    font-size: 12px;
}

.fg4-detail-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--fg4-dim);
    font-size: 12px;
}

.fg4-detail-tags a {
    min-height: 28px;
    padding: 3px 10px;
    border-color: rgba(79, 195, 247, 0.15);
    background: rgba(79, 195, 247, 0.08);
    color: var(--fg4-blue);
    font-size: 12px;
}

.fg4-detail-description {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--fg4-border);
    border-radius: 8px;
    background: var(--fg4-card);
}

.fg4-detail-description p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--fg4-muted);
    font-size: 13px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.fg4-detail-description.is-expanded p {
    display: block;
    overflow: visible;
}

.fg4-detail-description button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fg4-blue);
    font-size: 12px;
    cursor: pointer;
}

.fg4-related {
    margin-bottom: 24px;
}

.fg4-banner-block {
    display: block;
}

.banner-cover-grid,
.horizontal-banner,
.player-info,
.mda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 12px;
}

.fg4-banner-block .banner-cover-grid > a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.banner-cover-grid > a,
.banner-cover-grid > div,
.horizontal-banner > div,
.mda > a {
    min-width: 0;
    border-radius: 0;
    overflow: visible;
}

.banner-cover-grid img,
.horizontal-banner img,
.mda img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: fill;
}

.fg4-static-page,
.archive-page,
#archives {
    padding: 22px;
    border: 1px solid var(--fg4-border);
    border-radius: 10px;
    background: var(--fg4-card);
}

.fg4-static-page h1,
.fg4-static-page h2,
.fg4-static-page h3,
.archive-page-title,
#archives h3 {
    margin-top: 0;
    color: var(--fg4-text);
}

.fg4-static-page p,
.fg4-static-page li,
.archive-page-desc {
    color: var(--fg4-muted);
    line-height: 1.9;
}

.fg4-static-page a {
    color: var(--fg4-blue);
}

.archive-page .module {
    margin-top: 18px;
}

#archives-tags > h3 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fg4-border);
    font-size: 16px;
}

.content-404 {
    display: grid;
    min-height: 420px;
    place-items: center;
    text-align: center;
}

.content-404 h1,
.content-404 h2 {
    color: var(--fg4-text);
}

.content-404 form {
    display: flex;
    max-width: 520px;
    margin: 20px auto 0;
}

.content-404 input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--fg4-border-strong);
    border-radius: 6px 0 0 6px;
    outline: 0;
    background: var(--fg4-raised);
    color: var(--fg4-text);
}

.content-404 .search-btn {
    width: 48px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--fg4-red);
    color: #fff;
}

.fg4-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #090a0e;
}

.fg4-footer-about {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--fg4-panel);
}

.fg4-footer-about h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--fg4-muted);
    font-size: 14px;
}

.fg4-footer-about h2 i {
    display: inline-block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--fg4-red);
}

.fg4-footer-about p {
    max-width: 860px;
    margin: 0 0 14px;
    color: var(--fg4-dim);
    font-size: 13px;
    line-height: 1.85;
}

.fg4-footer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fg4-footer-tags a {
    min-height: 27px;
    padding: 3px 11px;
    border-color: rgba(255, 255, 255, 0.05);
    background: var(--fg4-card);
    color: var(--fg4-dim);
    font-size: 12px;
}

.fg4-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.fg4-footer-brand p {
    margin: 10px 0 0;
    color: var(--fg4-dim);
    font-size: 12px;
}

.fg4-footer nav h3 {
    margin: 0 0 12px;
    color: var(--fg4-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fg4-footer nav a {
    display: block;
    margin-bottom: 8px;
    color: var(--fg4-muted);
    font-size: 13px;
}

.fg4-footer nav a:hover,
.fg4-footer nav a:focus-visible {
    color: var(--fg4-blue);
}

.fg4-footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fg4-footer-copy > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 48px;
    color: #3f4354;
    font-size: 11px;
    text-align: center;
}

.fg4-footer-copy p {
    margin: 0;
}

.fg4-footer-copy a {
    color: var(--fg4-dim);
}

.fg4-preview-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 7, 10, 0.84);
    backdrop-filter: blur(12px);
}

.fg4-preview-dialog__panel {
    width: min(380px, 100%);
    border: 1px solid rgba(232, 57, 74, 0.28);
    border-radius: 12px;
    background: linear-gradient(165deg, #181921, #0f1016);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

.fg4-preview-dialog__accent {
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, transparent, var(--fg4-red), transparent);
}

.fg4-preview-dialog__body {
    padding: 22px 22px 18px;
}

.fg4-preview-dialog__body h2 {
    margin: 0 0 10px;
    color: var(--fg4-text);
    font-size: 18px;
}

.fg4-preview-dialog__body p {
    margin: 0;
    color: var(--fg4-muted);
    font-size: 14px;
    line-height: 1.7;
}

.fg4-preview-dialog__actions {
    display: flex;
    gap: 10px;
    padding: 0 18px 20px;
}

.fg4-preview-dialog__button {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
}

.fg4-preview-dialog__button--ghost {
    border: 1px solid var(--fg4-border-strong);
    background: var(--fg4-raised);
    color: var(--fg4-muted);
}

.fg4-preview-dialog__button--primary {
    border: 1px solid var(--fg4-red);
    background: var(--fg4-red);
    color: #fff;
}

@media (max-width: 860px) {
    .fg4-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fg4-card--ad {
        grid-column: span 3;
    }

    .fg4-search-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    #article-videos {
        aspect-ratio: 16 / 9;
    }

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

    .fg4-card--ad {
        grid-column: 1 / -1;
    }

    .fg4-header {
        position: relative;
    }

    .fg4-header-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .fg4-search-form {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .fg4-app-link {
        justify-self: end;
    }

    .fg4-category-nav {
        position: sticky;
        top: 0;
        z-index: 190;
    }

    .fg4-promo-strip {
        align-items: flex-start;
    }

    .fg4-promo-strip > b {
        align-self: center;
    }

    .banner-cover-grid,
    .horizontal-banner,
    .player-info,
    .mda {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .fg4-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .fg4-announcement {
        padding-right: 12px;
        padding-left: 12px;
        text-align: left;
    }

    .fg4-brand strong {
        max-width: 160px;
        overflow: hidden;
        font-size: 17px;
        text-overflow: ellipsis;
    }

    .fg4-app-link {
        min-width: 42px;
        padding: 6px 10px;
    }

    .fg4-app-link span:last-child {
        display: none;
    }

    .fg4-search-form button {
        min-width: 46px;
        padding: 0 14px;
    }

    .fg4-search-form button span:last-child {
        display: none;
    }

    .fg4-category-primary a {
        min-height: 46px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .fg4-category-toggle {
        min-height: 46px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .fg4-category-toggle > span {
        display: none;
    }

    .fg4-category-grid a {
        min-height: 40px;
    }

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

    .fg4-hero {
        padding-top: 20px;
    }

    .fg4-content {
        padding-top: 18px;
    }

    .fg4-promo-strip {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px;
    }

    .fg4-promo-strip > b {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .fg4-video-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .fg4-card--ad {
        grid-column: 1 / -1;
    }

    .fg4-card-body {
        padding: 8px 9px 10px;
    }

    .fg4-card-body h3 {
        min-height: 38px;
        font-size: 12px;
    }

    .fg4-card-meta {
        font-size: 10px;
    }

    .fg4-play-ring {
        display: none;
    }

    .fg4-rank-list {
        grid-template-columns: 1fr;
    }

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

    .page-navigator,
    .page-jump {
        justify-content: center;
    }

    .fg4-detail-download {
        align-items: stretch;
        flex-direction: column;
    }

    .fg4-detail-download strong {
        text-align: center;
    }

    .fg4-static-page,
    .archive-page,
    #archives {
        padding: 16px;
    }

    .fg4-footer {
        margin-top: 36px;
    }

    .fg4-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .fg4-footer-brand {
        grid-column: 1 / -1;
    }
}
