:root {
    color-scheme: dark;
    --page: #071326;
    --panel: #0e1b30;
    --panel-soft: #12233d;
    --line: #24466f;
    --blue: #4b6cff;
    --text: #f7fbff;
    --muted: #9fb2cf;
    --yellow: #f5c400;
    --red: #ff3b3b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--page);
    padding: 14px;
}

.shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

header, .tabs, .stream-bar { display: none; }

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

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: min(360px, 55vw);
    height: auto;
    object-fit: contain;
}

.help-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    border: 1px solid rgba(75, 108, 255, 0.55);
    background: linear-gradient(180deg, #1a2a4a 0%, #12233d 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.help-btn:hover {
    border-color: #6b84ff;
    color: #fff;
    transform: scale(1.04);
}

.help-btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.help-dialog {
    margin: auto;
    padding: 0;
    max-width: min(440px, calc(100vw - 28px));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.help-dialog::backdrop {
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(4px);
}

.help-dialog-panel {
    position: relative;
    padding: 22px 22px 20px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid rgba(36, 70, 111, 0.9);
}

.help-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #202633;
    color: var(--text);
    font-size: 1rem;
}

.help-dialog-close:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: #2a3142;
}

.help-dialog-title {
    margin: 0 44px 14px 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.help-dialog-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
    display: grid;
    gap: 10px;
}

.help-dialog-list li {
    padding-left: 0.25rem;
}

.filters {
    display: none;
    grid-template-columns: auto auto auto minmax(260px, 1fr) 130px 130px auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

select, button, input, .manager-link {
    height: 39px;
    border: 1px solid #31537d;
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--text);
    font: inherit;
    font-size: .87rem;
    font-weight: 700;
    outline: none;
}

.manager-link {
    display: inline-grid;
    place-items: center;
    padding: 0 13px;
    text-decoration: none;
    white-space: nowrap;
}

#topMultiView {
    min-width: 200px;
    height: 54px;
    color: #fff;
    border-color: #5d79ff;
    background: linear-gradient(180deg, #182363 0%, #3151db 100%);
    box-shadow: 0 10px 24px rgba(75,108,255,.32);
    font-size: 1rem;
    line-height: 1.1;
}

#topMultiView span {
    display: inline;
    font-size: .78rem;
    color: #dce5ff;
    margin-left: 4px;
}

input {
    width: 100%;
    padding: 0 14px;
    color: #dbe7fb;
    font-weight: 500;
}

input::placeholder { color: #7f91ad; }
select { padding: 0 12px; cursor: pointer; }
button { padding: 0 14px; cursor: pointer; }

.source-chip {
    min-width: 50px;
    background: #10223d;
}

.action-source-chip {
    min-width: 86px;
    height: 54px;
    position: relative;
    color: #dce8f8;
    border-radius: 9px;
    font-size: 1rem;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.action-country-chip {
    min-width: 86px;
    height: 54px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe883;
    border-radius: 9px;
    font-size: 1rem;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.action-live-chip {
    min-width: 86px;
    height: 54px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffb3b9;
    border-radius: 9px;
    font-size: 1rem;
    line-height: 1.1;
    border-color: #a8323e;
    background: linear-gradient(180deg, #44161a 0%, #5a1d23 100%);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.action-live-chip:hover {
    color: #fff;
    border-color: #d67a84;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(0,0,0,.26);
}

.action-live-chip:focus-visible {
    outline: 2px solid #ff6b7a;
    outline-offset: 3px;
}

.action-live-chip.active {
    color: #fff;
    border-color: #ff6b7a;
    background: linear-gradient(180deg, #c91620 0%, #f22c2c 100%);
    box-shadow: 0 0 0 2px rgba(255,107,122,.26) inset, 0 12px 26px rgba(255,59,59,.38);
}

.pba-chip {
    border-color: #2f7f5a;
    background: linear-gradient(180deg, #102f25 0%, #123c2d 100%);
}

.umb-chip {
    border-color: #6b4b86;
    background: linear-gradient(180deg, #221b35 0%, #2d1d44 100%);
}

.vn-chip {
    border-color: #a83d32;
    background: linear-gradient(180deg, #641b21 0%, #7b1e24 100%);
}

.vn-star {
    color: #f6d95a;
    font-size: 1.55rem;
    line-height: 1;
}

.action-source-chip:hover,
.action-country-chip:hover {
    color: #fff;
    border-color: #7fa4d6;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(0,0,0,.26);
}

.action-source-chip:focus-visible,
.action-country-chip:focus-visible,
#topMultiView:focus-visible {
    outline: 2px solid #f4d35e;
    outline-offset: 3px;
}

.source-chip.active {
    border-color: #5d79ff;
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(75,108,255,.28);
}

.pba-chip.active {
    color: #fff;
    border-color: #72f2b4;
    background: linear-gradient(180deg, #167045 0%, #16a765 100%);
    box-shadow: 0 0 0 2px rgba(114,242,180,.22) inset, 0 12px 26px rgba(32,201,123,.36);
}

.umb-chip.active {
    color: #fff;
    border-color: #dda7ff;
    background: linear-gradient(180deg, #653090 0%, #7a27a8 100%);
    box-shadow: 0 0 0 2px rgba(221,167,255,.22) inset, 0 12px 26px rgba(184,94,230,.36);
}

.vn-chip.active {
    color: #fff7b3;
    border-color: #ffe76b;
    background: linear-gradient(180deg, #f22c2c 0%, #c91620 100%);
    box-shadow: 0 0 0 2px rgba(255,231,107,.26) inset, 0 12px 26px rgba(255,59,59,.38);
}

.vn-chip.active .vn-star {
    color: #ffef73;
}

.count-pill, #clearFilters { display: none; }

.filter-toast {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .18s ease, transform .18s ease;
}

.filter-toast.show {
    opacity: 1;
    transform: scale(1);
}

.filter-toast-message {
    max-width: min(520px, 88vw);
    padding: 18px 22px;
    border: 1px solid rgba(244,211,94,.55);
    border-radius: 12px;
    color: #fff;
    background: rgba(7,19,38,.92);
    box-shadow: 0 18px 44px rgba(0,0,0,.44), 0 0 0 1px rgba(255,255,255,.08) inset;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: pre-line;
}

.stats {
    display: grid;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    min-height: 79px;
    padding: 15px 14px;
    border: 1px solid #27476f;
    border-radius: 14px;
    background: var(--panel);
    color: var(--muted);
    font-size: .94rem;
}

.stat strong {
    display: block;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.05;
    margin-bottom: 2px;
}

main { padding: 0; }
.panel { display: none; }

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

.match {
    min-height: 222px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #24466f;
    border-radius: 17px;
    padding: 14px;
    background: var(--panel);
    overflow: hidden;
}

.match.live { border-color: #24466f; }
.match.ended { border-color: #334e73; opacity: .9; }
.match::before { display: none; }

.match.upcoming button {
    opacity: 0.3;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #d4e3ff;
    font-size: .83rem;
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    color: #cde2ff;
    background: #183e70;
    font-size: .78rem;
    font-weight: 800;
}

.badge.live-badge {
    color: #fff;
    background: #cf1f35;
    box-shadow: 0 0 0 0 rgba(255,59,59,.62);
    animation: liveBadgePulse 1.35s ease-in-out infinite;
}

.badge.live-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.72);
    animation: liveDotPulse 1.35s ease-in-out infinite;
}

.badge.umb { background: #55316d; color: #f0dcff; }
.badge.umb.live-badge { background: #cf1f35; color: #fff; }

@keyframes liveBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,.45); }
    50% { box-shadow: 0 0 0 6px rgba(255,59,59,0); }
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .72; transform: scale(.75); }
}

.title {
    display: none;
    margin: 4px 0 2px;
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 1px 1px 0 rgba(255,59,59,.48);
}

.players {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.player {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px;
    border-radius: 10px;
    background: #132641;
}

.player.right {
    grid-template-columns: auto minmax(0, 1fr) 58px;
}

.player.right .info,
.player.right .name,
.player.right .small {
    text-align: right;
}

.photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf2f7;
}

.avatar-stack {
    display: grid;
    gap: 3px;
    justify-items: center;
    align-items: start;
}

.country-under {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #dbe7fb;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}

.winner .photo { outline: 2px solid #2ee083; }
.info { min-width: 0; display: block; }

.name {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.12;
    font-weight: 800;
    text-shadow: 1px 1px 0 rgba(255,59,59,.4);
}

.flag {
    width: 19px;
    min-height: 13px;
    margin-right: 4px;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: -2px;
}

.small {
    color: #cfe1ff;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}

.ranking {
    margin-top: 2px;
    color: #ffe45c;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
}

.points {
    color: var(--text);
    min-width: 24px;
    text-align: right;
    font-size: 1.45rem;
    font-weight: 800;
}

.points.leader { color: #ffe45c; }

.match-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    color: #d6e5ff;
    font-size: .79rem;
}

.match-footer span:nth-child(2) { text-align: center; }
.match-footer span:nth-child(3) { text-align: right; }

.watch {
    display: grid;
    place-items: center;
    height: 37px;
    border: 1px solid #315b8f;
    border-radius: 8px;
    color: #fff;
    background: #132843;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 800;
}

.watch.disabled,
.watch:disabled {
    color: #8193ad;
    pointer-events: none;
}

.empty, .loading {
    grid-column: 1 / -1;
    padding: 42px 18px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #31537d;
    border-radius: 14px;
    background: var(--panel);
}

.refresh {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    box-shadow: 0 10px 24px rgba(52,152,219,.35);
}

footer { display: none; }

p.mien-tru {
    font-size: 0.7rem;
    padding: 1rem 0;
    font-style: italic;
    opacity: 0.5;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: #05070b;
    color: #fff;
    overflow: hidden;
}

.overlay.active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.overlay-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    background: #0e1118;
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 28px rgba(0,0,0,.36);
}

.overlay-title-group {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.overlay-title-group strong {
    font-size: 1.02rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.overlay-title-group span {
    color: #9aa8b8;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.overlay-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay-head button,
.overlay-head select {
    height: 38px;
    border-radius: 7px;
}

.overlay-head select {
    min-width: 110px;
    border-color: rgba(47,160,255,.45);
    color: #eff7ff;
    background: #121b2b;
    font-weight: 900;
}

.overlay-head button {
    width: 38px;
    padding: 0;
    border-color: rgba(255,255,255,.16);
    background: #202633;
}

.is-multiview .overlay-head {
    background: #0b0f16;
}

.is-multiview .overlay-title-group strong {
    color: #f3fbff;
}

.is-multiview .overlay-title-group span {
    color: #73d9b7;
}

.v-content,
.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, 1fr);
    gap: 10px;
    padding: 10px;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        #05070b;
    background-size: 32px 32px;
}

.v-mode-2 { grid-template-columns: repeat(2, 1fr); }
.v-mode-1 { grid-template-columns: 1fr; }
.v-mode-3,
.v-mode-4,
.grid-view.three,
.grid-view.four { grid-template-columns: repeat(2, 1fr); }
.grid-view.one { grid-template-columns: 1fr; }

.v-slot {
    position: relative;
    min-width: 0;
    min-height: 260px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: visible;
    background: #020305;
    border: 1px solid rgba(122,150,190,.26);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.035);
    isolation: isolate;
}

.v-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}

.v-slot.picker-open,
.v-slot:has(.stream-picker.open) {
    z-index: 50;
}

.v-slot-bar {
    position: relative;
    z-index: 100;
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px;
    background: #0c111a;
    border-bottom: 1px solid rgba(122,150,190,.18);
    border-radius: 8px 8px 0 0;
}

.v-slot-kicker {
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.v-slot-kicker {
    min-width: 58px;
    color: #111827;
    background: #e9f2ff;
}

.stream-picker { position: relative; width: 100%; z-index: 1; }
.stream-picker.open { z-index: 60; }

.stream-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 34px 0 10px;
    border: 1px solid rgba(134,170,217,.38);
    border-radius: 7px;
    color: #f7fbff;
    background: #151f2e;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-select option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-picker-btn {
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 7px;
    color: #fff;
    background: #132843;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.stream-picker-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #31537d;
    border-radius: 8px;
    background: #071326;
    box-shadow: 0 16px 32px rgba(0,0,0,.4);
}

.stream-picker.open .stream-picker-list { display: block; }

.stream-picker-item {
    padding: 9px 10px;
    color: #dbe7fb;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px solid rgba(49,83,125,.45);
}

.stream-picker-item:hover,
.stream-picker-item.active {
    color: #fff;
    background: #23497a;
}

iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #000;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 720px) {
    body { padding: 0; }
    .shell { padding: 10px; }
    .topbar { align-items: center; flex-direction: column; }
    .topbar-brand { justify-content: center; width: 100%; }
    .brand-logo { width: min(100%, 240px); }
    .filters { grid-template-columns: repeat(3, 1fr); }
    .filters input, .filters select { grid-column: 1 / -1; }
    .action-row {
        display: grid;
        grid-template-columns: minmax(110px, 1.4fr) repeat(4, minmax(52px, .8fr));
        width: 100%;
        margin-top: 0;
        gap: 8px;
    }
    #topMultiView,
    .action-live-chip,
    .action-source-chip,
    .action-country-chip {
        width: 100%;
        min-width: 0;
    }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel.active { grid-template-columns: 1fr; }
    .match { min-height: 222px; padding: 13px; }
    .players { grid-template-columns: 1fr; gap: 8px; }
    .player, .player.right { grid-template-columns: 50px minmax(0, 1fr) auto; }
    .player.right .points { order: 3; }
    .player.right .info { order: 2; text-align: left; }
    .player.right .avatar-stack { order: 1; }
    .photo { width: 44px; height: 44px; }
    .name { font-size: .9rem; }
    .player.right .info, .player.right .name, .player.right .small {
        text-align: left;
    }
    .points { font-size: 1.22rem; }
    .small { font-size: .68rem; }
    .overlay-head { position: sticky; top: 0; z-index: 20; }
    .v-content {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        align-content: start;
        height: 100%;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .v-slot {
        position: relative;
        display: block;
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
        z-index: auto;
    }
    .v-slot.picker-open {
        z-index: 200;
    }
    .v-slot-bar {
        position: relative;
        z-index: 220;
        min-width: 0;
    }
    .stream-select {
        min-width: 0;
        font-size: .78rem;
    }
    .stream-select option {
        font-size: .78rem;
    }
    .v-slot iframe {
        position: relative;
        z-index: 1;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .v-content:not(.v-mode-1) iframe {
        /* pointer-events: none; */
    }
    .v-mode-1 .v-slot {
        aspect-ratio: auto;
        min-height: calc(100dvh - 66px);
        height: calc(100dvh - 66px);
        display: grid;
        grid-template-rows: auto 1fr;
    }
    .v-mode-1 .v-slot iframe {
        aspect-ratio: auto;
        height: 100%;
    }
}

/* SEO Directory Footer Styles */
.seo-section {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-bottom: 20px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.seo-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-list li {
    display: block;
}

.seo-link-tag {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
    line-height: 1.4;
}

.seo-link-tag:hover {
    color: var(--blue);
}

.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(36, 70, 111, 0.4);
    padding-top: 20px;
    margin-top: 20px;
}

.seo-keyword-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-right: 8px;
}

.seo-keyword-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(75, 108, 255, 0.06);
    border: 1px solid rgba(75, 108, 255, 0.2);
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.seo-keyword-badge:hover {
    color: var(--text);
    border-color: rgba(75, 108, 255, 0.55);
    background: rgba(75, 108, 255, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .seo-section {
        margin-top: 30px;
        padding-top: 20px;
    }
}

