:root {
    color-scheme: dark;
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --card: #111827;
    --card-2: #172033;
    --text: #e5e7eb;
    --text-strong: #f8fafc;
    --muted: #94a3b8;
    --border: #243049;
    --primary: #3b82f6;
    --primary-strong: #2563eb;
    --accent: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --header-bg: rgba(11, 17, 32, 0.88);
    --radius: 16px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #eef2f7;
    --bg-soft: #f8fafc;
    --card: #ffffff;
    --card-2: #f1f5f9;
    --text: #1e293b;
    --text-strong: #0f172a;
    --muted: #64748b;
    --border: #dbe3ee;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --accent: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --header-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 12% -10%, rgba(59, 130, 246, 0.12), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, 0.08), transparent 28%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

/* <picture> chỉ là wrapper ngữ nghĩa: không tạo box để layout/CSS cũ giữ nguyên. */
picture {
    display: contents;
}

a {
    color: var(--primary);
}

button {
    font-family: inherit;
}

.site-main {
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 64px;
    flex: 1;
}

.preview-banner {
    background: #78350f;
    color: #fef3c7;
    font-size: 13px;
}

[data-theme="light"] .preview-banner {
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fcd34d;
}

.preview-banner-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.preview-banner-inner a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.site-brand:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 4px;
    border-radius: 8px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed 60%, #db2777);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-text small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.site-nav-link.is-active {
    color: var(--text-strong);
    background: var(--card-2);
}

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

.header-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.header-admin-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.member-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.member-login-link,
.member-register-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.18s ease;
}

.member-login-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.member-register-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.member-register-link:hover {
    filter: brightness(1.08);
    text-decoration: none;
    color: #fff;
}

.member-account {
    position: relative;
}

.member-account-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
}

.member-account-button:hover,
.member-account-button[aria-expanded="true"] {
    border-color: var(--primary);
    color: var(--primary);
}

.member-account-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-account-caret {
    font-size: 10px;
    opacity: 0.7;
}

.member-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    min-width: 232px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.member-account-menu[hidden] {
    display: none;
}

.member-account-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.member-account-head strong {
    font-size: 13.5px;
    color: var(--text-strong, var(--text));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-account-head small {
    font-size: 11.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role {
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.member-account-menu a,
.member-account-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.member-account-menu a i,
.member-account-logout i {
    width: 16px;
    text-align: center;
    color: var(--muted);
}

.member-account-menu a:hover {
    background: var(--card-2);
    color: var(--primary);
    text-decoration: none;
}

.member-account-menu a:hover i {
    color: var(--primary);
}

.member-account-menu form {
    margin: 4px 0 0;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.member-account-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.member-account-logout:hover i {
    color: #ef4444;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card-2);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    transition: 0.18s ease;
}

.icon-button:hover {
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: inline-block;
}

.article-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.28), transparent 42%),
        linear-gradient(135deg, #1e293b, #0f172a 58%, #111827);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.62) 55%, rgba(2, 6, 23, 0.94) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px 40px 36px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.48);
    border-radius: 999px;
    background: rgba(9, 17, 35, 0.9);
    box-shadow: 0 6px 22px rgba(2, 6, 23, 0.26);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 150ms ease;
}

.breadcrumb a:hover {
    color: #dbeafe;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
    border-radius: 3px;
}

.breadcrumb .crumb-sep {
    color: #60a5fa;
    font-size: 9px;
}

.breadcrumb .current {
    min-width: 0;
    max-width: min(100%, 680px);
    color: #fff;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .breadcrumb {
        gap: 6px;
        padding: 7px 10px;
        font-size: 11px;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.badge-type {
    background: rgba(37, 99, 235, 0.92);
    border-color: rgba(147, 197, 253, 0.5);
}

.badge-age {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(252, 165, 165, 0.6);
}

.badge-status {
    background: rgba(22, 163, 74, 0.9);
    border-color: rgba(134, 239, 172, 0.45);
}

.hero-title {
    margin: 0 0 20px;
    max-width: 900px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #cbd5e1;
    font-size: 12.5px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.author-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.author-chip-text small {
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.author-chip-text strong {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
}

.hero-rating {
    color: #fbbf24;
    font-weight: 700;
}

.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: #ffffff;
    font-weight: 800;
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.avatar img.is-broken {
    display: none;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.article-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-card-body {
    padding: 28px 32px;
}

.article-lead {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: var(--card-2);
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.7;
    font-weight: 500;
}

.content-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 20px;
    padding: 10px 13px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
}

.content-notice i {
    color: var(--warning);
    margin-top: 2px;
}

.article-content {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.78;
    word-break: break-word;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-strong);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 30px 0 12px;
}

.article-content h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 22px;
}

.article-content h3 {
    font-size: 18px;
}

.article-content h4 {
    font-size: 16px;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content strong,
.article-content b {
    color: var(--text-strong);
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.article-content li {
    margin: 6px 0;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: var(--card-2);
    color: var(--text);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 10px;
}

.article-content img.is-broken,
.hero-bg.is-broken {
    display: none;
}

.article-content figure {
    margin: 20px 0;
    text-align: center;
}

.article-content figure img {
    margin: 0 auto;
}

.article-content figcaption {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12.5px;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 18px 0;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
    padding: 9px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: var(--card-2);
    color: var(--text-strong);
    font-weight: 700;
}

.article-content tbody tr:nth-child(even) td {
    background: rgba(148, 163, 184, 0.06);
}

.article-content pre {
    margin: 18px 0;
    padding: 14px 16px;
    overflow: auto;
    border-radius: 10px;
    background: #0b1120;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}

.article-content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--card-2);
    color: var(--text-strong);
    font-size: 0.92em;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.article-content hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.article-content .old-box,
.article-content .game-info-box {
    margin: 18px 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--text);
    font-size: 14px;
}

.article-content .old-box strong,
.article-content .old-box b {
    color: var(--text-strong);
}

.article-content .old-highlight {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    background: rgba(59, 130, 246, 0.12);
    color: var(--text);
}

.article-content .old-half {
    display: inline-block;
    width: 48%;
    max-width: 100%;
    margin: 1%;
    vertical-align: top;
}

.article-content .old-third {
    display: inline-block;
    width: 31.5%;
    max-width: 100%;
    margin: 1%;
    vertical-align: top;
}

.article-content .old-center {
    text-align: center;
}

.article-content .old-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 6px 4px 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.article-content .old-button::before {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.article-content .old-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.article-content .alignleft {
    float: left;
    margin: 8px 16px 8px 0;
}

.article-content .alignright {
    float: right;
    margin: 8px 0 8px 16px;
}

.article-content .aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.article-content .wp-caption {
    max-width: 100%;
    margin: 18px auto;
    text-align: center;
}

.article-content .wp-caption img {
    margin: 0 auto;
}

.article-content .wp-caption-text {
    padding-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.article-content details {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-2);
}

.article-content summary {
    color: var(--text-strong);
    font-weight: 700;
    cursor: pointer;
}

.article-content details[open] summary {
    margin-bottom: 10px;
}

.article-content .game-info-title {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
}

.article-content .game-info-table {
    display: table;
    width: 100%;
    margin: 0;
    border: 0;
    font-size: 13.5px;
}

.article-content .game-info-table th,
.article-content .game-info-table td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px dashed var(--border);
}

.article-content .game-info-table th {
    width: 38%;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
}

.article-content .game-info-table tr:last-child th,
.article-content .game-info-table tr:last-child td {
    border-bottom: 0;
}

.article-content .post-downloads {
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-2);
    scroll-margin-top: 92px;
}

.article-content .download-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: var(--text-strong);
    font-size: 17px;
    font-weight: 800;
}

.article-content .download-heading::before {
    content: "\f019";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
}

.article-content .download-group {
    margin-bottom: 14px;
}

.article-content .download-label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-content .download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-content .download-password {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--text);
    font-size: 13px;
}

.article-content .download-password strong {
    color: var(--warning);
    user-select: all;
}

.article-content .old-box.has-download-hub {
    margin: 18px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.download-hub {
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--card-2), var(--card));
    overflow: hidden;
    scroll-margin-top: 92px;
}

.download-hub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.download-hub-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.download-hub-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.download-hub-title h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.download-hub-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.download-hub-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.download-badge i {
    color: var(--primary);
    font-size: 10px;
}

.download-badge-age {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent);
}

.download-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px 0;
}

.download-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.16s ease;
}

.download-tab > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--card-2);
    color: var(--muted);
    font-size: 10px;
}

.download-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.download-tab.is-active {
    border-color: transparent;
    background: var(--primary);
    color: #ffffff;
}

.download-tab.is-active > span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.download-panels {
    padding: 14px 20px 18px;
}

.download-panel {
    display: block;
}

.download-hub.is-tabbed .download-panel {
    display: none;
}

.download-hub.is-tabbed .download-panel.is-active {
    display: block;
}

.download-platform {
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.download-platform:last-child {
    margin-bottom: 0;
}

.download-platform-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.download-platform-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--card-2);
    color: var(--primary);
    font-size: 15px;
}

.download-platform-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
}

.download-platform-head div > span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10.5px;
}

.download-mirrors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.download-hub .download-mirror {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-2);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.download-hub .download-mirror:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: var(--card);
}

.download-mirror-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 15px;
}

.download-mirror-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.download-mirror-text strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.download-mirror-text small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.download-mirror-action {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12px;
}

.download-hub .download-mirror:hover .download-mirror-action {
    color: var(--primary);
}

.download-mirror.is-gdrive .download-mirror-icon {
    background: rgba(26, 115, 232, 0.12);
    color: #1a73e8;
}

.download-mirror.is-onedrive .download-mirror-icon {
    background: rgba(0, 120, 212, 0.12);
    color: #0078d4;
}

.download-mirror.is-mega .download-mirror-icon {
    background: rgba(217, 39, 46, 0.12);
    color: #d9272e;
}

.download-mirror.is-terabox .download-mirror-icon {
    background: rgba(43, 125, 233, 0.12);
    color: #2b7de9;
}

.download-mirror.is-pixeldrain .download-mirror-icon {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.download-mirror.is-gofile .download-mirror-icon {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.download-mirror.is-fshare .download-mirror-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.download-mirror.is-dropbox .download-mirror-icon {
    background: rgba(0, 97, 255, 0.12);
    color: #0061ff;
}

.download-mirror.is-mediafire .download-mirror-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.download-pass {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 18px;
    padding: 10px 13px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
}

.download-pass-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--warning);
    font-size: 14px;
}

.download-pass-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.download-pass-body > span {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.download-pass-body strong {
    overflow-wrap: anywhere;
    color: var(--warning);
    font-size: 13px;
    font-weight: 800;
    user-select: all;
}

.gallery-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.gallery-slider {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-slider-main {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card-2);
}

.gallery-slides {
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.64);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 0.88);
}

.gallery-nav-prev {
    left: 12px;
}

.gallery-nav-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 88px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--card-2);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 58px;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    opacity: 1;
}

.gallery-thumb.is-active {
    border-color: var(--primary);
}

.gallery-slider.is-single .gallery-nav,
.gallery-slider.is-single .gallery-thumbs {
    display: none;
}

@media (max-width: 640px) {
    .gallery-nav {
        width: 34px;
        height: 34px;
    }

    .gallery-nav-prev {
        left: 8px;
    }

    .gallery-nav-next {
        right: 8px;
    }

    .gallery-thumb {
        flex-basis: 68px;
    }

    .gallery-thumb img {
        height: 46px;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--text-strong);
    font-size: 17px;
    font-weight: 700;
}

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

.gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--card-2);
}

.thumb-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
}

.thumb img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.thumb img.is-broken {
    display: none;
}

.thumb-gallery {
    aspect-ratio: 1 / 1;
}

.gallery-item:hover .thumb img {
    transform: scale(1.04);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.tags-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.action-label {
    margin-right: 2px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-2);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.18s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: transparent;
}

.share-facebook:hover {
    background: #1877f2;
}

.share-x:hover {
    background: #0f172a;
}

.share-telegram:hover {
    background: #229ed9;
}

.share-pinterest:hover {
    background: #e60023;
}

.share-copy:hover {
    background: var(--primary);
}

.share-btn.is-copied {
    border-color: transparent;
    background: var(--success);
    color: #ffffff;
}

.action-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 12.5px;
}

.action-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 32px;
    border-top: 1px solid var(--border);
    background: var(--card-2);
}

.author-body {
    min-width: 0;
}

.author-role {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.author-name {
    margin: 2px 0 4px;
    color: var(--text-strong);
    font-size: 16px;
    font-weight: 700;
}

.author-bio {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.article-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.sidebar-banner.home-banner {
    width: min(100%, var(--sidebar-ad-width, 300px));
    max-width: 100%;
    min-height: var(--sidebar-ad-height, 250px);
    margin-inline: auto;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.home-banner-direct {
    display: block;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.sidebar-banner.home-banner-direct ins {
    display: block;
    max-width: 100%;
}

.sidebar-banner img,
.sidebar-banner .home-banner-frame {
    width: 100%;
    max-width: 100%;
}

.sidebar-banner .home-banner-frame {
    min-height: var(--sidebar-ad-height, 250px);
    display: block;
    border: 0;
    background: transparent;
}

.side-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.side-card-header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--card-2);
}

.side-card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.side-card-header h2 i {
    color: var(--primary);
}

.side-card-body {
    padding: 14px 16px;
}

.side-cta-card .side-card-header h2 i {
    color: var(--warning);
}

.cta-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.cta-summary span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cta-summary strong {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.side-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.side-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.age-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 12px 0 0;
    color: var(--warning);
    font-size: 11.5px;
    line-height: 1.5;
}

.spec-list {
    margin: 0;
}

.spec-row {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row dt {
    color: var(--muted);
    font-size: 12px;
}

.spec-row dd {
    margin: 0;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.side-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-post {
    display: flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.side-post:hover .side-post-title {
    color: var(--primary);
}

.side-rank {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--card-2);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 800;
}

.side-post .thumb-sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
}

.side-post-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.side-post-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-post-meta {
    color: var(--muted);
    font-size: 11px;
}

.side-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--card-2);
    color: var(--text);
    font-size: 12.5px;
}

.side-category em {
    color: var(--muted);
    font-size: 11.5px;
    font-style: normal;
}

.side-category,
.tag-chip,
.author-chip-text a,
.author-name a {
    text-decoration: none;
}

.side-category:hover,
.author-chip-text a:hover,
.author-name a:hover {
    color: var(--primary);
}

.side-card .tag-chip {
    padding: 3px 8px;
    font-size: 11px;
}

.ad-slot {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--muted);
    text-align: center;
}

.ad-slot span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot small {
    font-size: 11px;
    opacity: 0.75;
}

.related-section {
    margin-top: 0;
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-strong);
    font-size: 19px;
    font-weight: 800;
}

.section-heading h2 i {
    color: var(--primary);
}

.section-heading > span {
    color: var(--muted);
    font-size: 12.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.related-thumb {
    width: 132px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 9px;
}

.related-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 2px 0;
}

.related-type {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.related-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-strong);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
}

.related-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.site-footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 24px;
}

.footer-brand p {
    max-width: 340px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card-2);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.footer-col h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12.5px;
}

.footer-disclaimer p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.footer-disclaimer .age-pill {
    margin-top: 2px;
}

.site-footer-inner .footer-useful-links {
    width: 100%;
    margin: 14px 0 0;
    padding: 12px 0 0;
}

.footer-useful-links {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px dashed var(--border);
}

.footer-useful-links h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-useful-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-useful-list a {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
}

.footer-useful-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.site-footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11.5px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox:not(.is-gallery) .lightbox-nav {
    display: none;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    max-width: 80%;
    margin: 0;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 12.5px;
    text-align: center;
}

body.lightbox-open {
    overflow: hidden;
}

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

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .ad-slot {
        grid-column: span 2;
        min-height: 160px;
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        margin: 0;
        padding: 12px 20px 16px;
        border-bottom: 1px solid var(--border);
        background: var(--bg-soft);
        box-shadow: var(--shadow);
        backdrop-filter: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav-link {
        padding: 10px 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 820px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-disclaimer {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .site-main {
        width: calc(100% - 20px);
        margin: 16px auto 48px;
    }

    .site-header-inner,
    .site-footer-inner,
    .site-footer-bottom,
    .preview-banner-inner {
        width: calc(100% - 20px);
    }

    .brand-text small {
        display: none;
    }

    .hero-content {
        padding: 22px 20px 24px;
    }

    .article-hero {
        min-height: 340px;
        border-radius: 16px;
    }

    .hero-meta {
        gap: 8px 12px;
    }

    .author-chip {
        padding-right: 0;
        border-right: 0;
    }

    .article-card-body {
        padding: 20px 18px;
    }

    .author-box {
        padding: 18px;
    }

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

    .ad-slot {
        grid-column: auto;
    }

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

    .article-content .old-half,
    .article-content .old-third {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .article-content .alignleft,
    .article-content .alignright {
        float: none;
        margin: 18px auto;
    }

    .download-hub-head {
        flex-direction: column;
    }

    .download-hub-badges {
        justify-content: flex-start;
    }

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

    .download-pass {
        flex-wrap: wrap;
    }

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

    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 23px;
    }

    .hero-badges {
        gap: 6px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .article-content {
        font-size: 14.5px;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    .article-card-body {
        padding: 18px 14px;
    }

    .article-lead {
        padding: 12px 14px;
        font-size: 14.5px;
    }

    .download-hub {
        margin: 18px 0;
        border-radius: 12px;
    }

    .download-hub-head,
    .download-panels {
        padding: 14px;
    }

    .download-hub-title h2 {
        font-size: 16px;
    }

    .download-tabs {
        padding: 10px 14px 0;
    }

    .download-platform {
        padding: 10px;
    }

    .download-pass {
        margin: 0 14px 14px;
    }

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

    .related-card {
        align-items: flex-start;
    }

    .related-thumb {
        width: 104px;
        height: 72px;
    }

    .site-footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand,
    .footer-disclaimer {
        grid-column: auto;
    }

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

    .header-admin-link span {
        display: none;
    }

    .header-admin-link {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.tam-su-section {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-2);
}

.tam-su-section .section-title {
    margin-bottom: 12px;
}

.tam-su-content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

.tam-su-content p {
    margin: 0 0 10px;
}

.tam-su-content p:last-child {
    margin-bottom: 0;
}

.tam-su-content ul,
.tam-su-content ol {
    margin: 0 0 10px 20px;
}

.tam-su-content a {
    color: var(--primary);
}

@media (max-width: 640px) {
    .tam-su-section {
        padding: 16px;
    }
}

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

.footer-menu li {
    margin-bottom: 6px;
}

.footer-menu a {
    color: var(--muted);
    font-size: 12.5px;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-description {
    max-width: 340px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.footer-description p {
    margin: 0 0 6px;
}

.footer-warning-text {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.footer-warning-text p {
    margin: 0 0 6px;
}

.footer-bottom-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-dmca {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer-dmca img {
    max-height: 40px;
    width: auto;
}

@media (max-width: 640px) {
    .member-login-link span,
    .member-register-link span,
    .member-account-name,
    .member-account-caret {
        display: none;
    }

    .member-login-link,
    .member-register-link,
    .member-account-button {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .member-account-menu {
        min-width: 220px;
    }
}

.site-ads {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.site-ad {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.site-ad-frame {
    display: block;
    width: 100%;
    height: 90px;
    border: 0;
    background: transparent;
}
