
:root {
    --cs-bg: #070709;
    --cs-shelf: #111114;
    --cs-border: #1f1f24;
    --cs-text-main: #f4f4f5;
    --cs-text-sub: #8e8e93;
    --cs-neon: #3b82f6;
    --cs-glow: rgba(59, 130, 246, 0.2);
    --cs-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--cs-bg);
    color: var(--cs-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* --- Global Header (Sticky & Blurs) --- */
header.cs-masthead {
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cs-border);
    position: sticky; top: 0; z-index: 1000; height: 74px; display: flex; align-items: center;
}
.cs-nav-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 16px; gap: 16px; }

.cs-logo { font-family: 'Orbitron', sans-serif; font-size: 19px; font-weight: 900; text-decoration: none; color: var(--cs-text-main); letter-spacing: 1px; flex-shrink: 0; }
.cs-logo span { color: var(--cs-neon); text-shadow: 0 0 12px var(--cs-glow); }

.cs-search-wrapper {
    flex: 1; max-width: 340px; background: var(--cs-shelf); height: 42px; border: 1px solid var(--cs-border);
    border-radius: 8px; display: flex; align-items: center; padding: 0 14px; transition: border 0.2s;
}
.cs-search-wrapper:focus-within { border-color: var(--cs-neon); }
.cs-search-wrapper input { border: none; background: transparent; width: 80%; outline: none; font-size: 13px; color: var(--cs-text-main); margin-left: 8px; }
.cs-search-wrapper i { color: var(--cs-text-sub); font-size: 13px; }

/* --- Core Page Layout --- */
.cs-layout-matrix {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    max-width: 1500px; margin: 0 auto; padding: 16px 16px 80px;
}

/* --- Mobile Navigation Strip --- */
.cs-mobile-slider {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--cs-border); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cs-mobile-slider::-webkit-scrollbar { display: none; }

.cs-slider-tab {
    background: transparent; padding: 8px 16px; font-weight: 600; font-size: 13px;
    text-decoration: none; color: var(--cs-text-sub); white-space: nowrap; border-radius: 6px;
}
.cs-slider-tab.is-active { color: var(--cs-neon); background: rgba(59, 130, 246, 0.1); }

/* --- Immersive PC HUD Sidebar Navigation (Hidden on Mobile) --- */
.cs-sidebar-hub { display: none; }

/* --- Game Grid Shelf --- */
.cs-grid-shelf { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Card Anchor Box Wrapper */
.cs-shelf-item {
    background: var(--cs-shelf); border: 1px solid var(--cs-border); border-radius: var(--cs-radius);
    padding: 14px; display: flex; align-items: center; text-decoration: none; color: inherit;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-shelf-item:hover { border-color: #2c2c35; background: #16161a; transform: translateY(-1px); }

/* Rigid 64x64/76x76 Image Aspect Frames */
.cs-item-avatar {
    width: 64px; height: 64px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #1a1a20; border: 1px solid rgba(255,255,255,0.04);
}
.cs-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Content Text Groupings */
.cs-item-payload { flex: 1; padding: 0 14px; min-width: 0; }
.cs-item-payload h3 { font-size: 15px; font-weight: 600; color: var(--cs-text-main); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-item-payload p { font-size: 12px; color: var(--cs-text-sub); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }

/* Secondary Data Nodes */
.cs-payload-badges { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; color: var(--cs-text-sub); }
.cs-badge-node { background: rgba(255,255,255,0.06); color: var(--cs-text-main); padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.cs-active-users { color: var(--cs-neon); display: flex; align-items: center; gap: 4px; }
.cs-rating-metric { color: #fbbf24; }

/* Action Vectors Compartment */
.cs-action-node { flex-shrink: 0; position: relative; z-index: 5; }
.cs-action-btn {
    width: 36px; height: 36px; border: 1px solid var(--cs-border); border-radius: 8px;
    background: transparent; color: var(--cs-text-sub); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.cs-action-btn:hover { background: var(--cs-text-main); color: var(--cs-bg); border-color: var(--cs-text-main); }

/* --- Structural Footer Layout --- */
footer.cs-footer { background: var(--cs-bg); border-top: 1px solid var(--cs-border); padding: 48px 0 32px; }
.cs-footer-inner { max-width: 1500px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 24px; }

.cs-footer-about h2 { font-family: 'Orbitron', sans-serif; font-size: 17px; margin-bottom: 8px; font-weight: 800; letter-spacing: 0.5px; }
.cs-footer-about p { font-size: 12px; color: var(--cs-text-sub); line-height: 1.6; }

.cs-footer-nav h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--cs-text-sub); }
.cs-footer-nav ul { list-style: none; display: flex; gap: 20px; }
.cs-footer-nav a { color: var(--cs-text-sub); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.cs-footer-nav a:hover { color: var(--cs-neon); }

.cs-footer-meta { border-top: 1px solid var(--cs-border); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; color: var(--cs-text-sub); text-align: center; }

/* View Scroll Rocket Link */
#csScrollRocket {
    position: fixed; bottom: 24px; right: 16px; width: 44px; height: 44px;
    background: var(--cs-shelf); border: 1px solid var(--cs-border); color: var(--cs-text-main); border-radius: 8px;
    display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1001;
}

/* --- High-Performance PC Responsive Breakpoints --- */
@media (min-width: 768px) {
    .cs-grid-shelf { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
    .cs-nav-wrap { padding: 0 24px; }
    .cs-mobile-slider { display: none; }

    /* Enhanced Immersive PC Sidebar Deck Layout */
    .cs-sidebar-hub { display: block; width: 240px; }
    .cs-hub-header { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; color: var(--cs-text-sub); text-align: center; }
    .cs-hub-list { list-style: none; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 110px; }

    .cs-hub-link {
        text-decoration: none; color: var(--cs-text-sub);
        padding: 20px 14px; border-radius: var(--cs-radius); background: var(--cs-shelf);
        border: 1px solid var(--cs-border); display: flex; flex-direction: column; align-items: center; gap: 12px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); text-align: center; position: relative;
    }
    .cs-hub-link i { font-size: 22px; transition: transform 0.2s; color: var(--cs-text-sub); }
    .cs-hub-link span { font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

    /* Hover States */
    .cs-hub-link:hover { color: var(--cs-text-main); border-color: #3b82f6; background: #15151a; }
    .cs-hub-link:hover i { transform: translateY(-2px); color: var(--cs-text-main); }

    /* Active Deck State Indicators */
    .cs-hub-link.is-active {
        background: rgba(59, 130, 246, 0.08); color: var(--cs-neon); border-color: var(--cs-neon);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
    }
    .cs-hub-link.is-active i { color: var(--cs-neon); }
    .cs-hub-link.is-active::before {
        content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 3px; background: var(--cs-neon); border-radius: 0 4px 4px 0;
    }

    /* Main Layout Grid Expansions */
    .cs-layout-matrix { grid-template-columns: 240px 1fr; gap: 36px; padding: 32px 24px 80px; }
    .cs-grid-shelf { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cs-item-avatar { width: 72px; height: 72px; }

    .cs-footer-inner { flex-direction: row; justify-content: space-between; padding: 0 24px; }

    .cs-footer-meta { flex-direction: row; justify-content: space-between; text-align: left; margin: 0 24px; }
}

@media (min-width: 1360px) {
    .cs-grid-shelf { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
    .cs-grid-shelf { grid-template-columns: repeat(4, 1fr); }
}
a{
    text-decoration: none;
}