/* ============================================================
   SINGLE SCRIPT PAGE — COMPLETE RESPONSIVE STYLES
   Matches xenoscripts.com layout exactly.
   ============================================================ */

/* ── Root layout ── */
body, html, .ss-page, .ss-layout {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.ss-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 16px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .ss-page { padding-top: 100px; padding-left: 24px; padding-right: 24px; }
}

body.admin-bar .ss-page {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ss-page {
        margin-top: 46px;
    }
}

/* ── Two-column grid: main + sidebar ── */
.ss-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .ss-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}

@media (min-width: 1100px) {
    .ss-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}

/* ── Main and Sidebar Columns ── */
.ss-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ss-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ── Cards ── */
.ss-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ============================================================
   HERO CARD — MATCHES IMAGE 2 LAYOUT
   ============================================================ */

.ss-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.dark .ss-hero-card {
    background: #1e293b;
    border-color: #334155;
}

/* 1. Full-width Top Header */
.ss-hero-top-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #f1f5f9;
}
.dark .ss-hero-top-header {
    border-bottom-color: #334155;
}

.ss-hero-square-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
    background: #0f172a;
    border: 1px solid rgba(0,0,0,0.08);
}
.dark .ss-hero-square-thumb {
    border-color: rgba(255,255,255,0.1);
}

.ss-hero-top-details {
    flex: 1;
    min-width: 0;
}

.ss-hero-top-details .ss-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 6px 0;
    word-break: break-word;
}
.dark .ss-hero-top-details .ss-title {
    color: #f8fafc;
}

@media (min-width: 640px) {
    .ss-hero-top-details .ss-title {
        font-size: 1.55rem;
    }
}

.ss-hero-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 13px;
    color: #64748b;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ss-hero-meta-row::-webkit-scrollbar {
    display: none;
}
.dark .ss-hero-meta-row {
    color: #94a3b8;
}

.ss-game-link-text {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #2563eb;
    padding: 3.5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #dbeafe;
    line-height: 1.25;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}
.ss-game-link-text:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
    text-decoration: none;
    transform: translateY(-1px);
}
.dark .ss-game-link-text {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.dark .ss-game-link-text:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.ss-meta-bullet {
    color: #cbd5e1;
    font-size: 12px;
}
.dark .ss-meta-bullet {
    color: #475569;
}

.ss-meta-time {
    font-weight: 500;
    color: #64748b;
}
.dark .ss-meta-time {
    color: #94a3b8;
}

.ss-meta-views-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.dark .ss-meta-views-pill {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

/* 2. Lower Grid (2 columns on desktop) */
.ss-hero-body-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 22px;
}

@media (min-width: 768px) {
    .ss-hero-body-grid {
        display: grid;
        grid-template-columns: 58% calc(42% - 20px);
        gap: 20px;
        align-items: start;
    }
}

/* ── Mobile: image → title → buttons ── */
@media (max-width: 767px) {
    .ss-hero-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /*
     * display:contents makes .ss-hero-body-grid "disappear" as a box,
     * so its children (.ss-hero-thumb-box and .ss-hero-actions-col)
     * become direct flex children of .ss-hero-card and can be ordered freely.
     */
    .ss-hero-body-grid {
        display: contents !important;
    }

    /* 1st: Full-width thumbnail, edge-to-edge */
    .ss-hero-thumb-box {
        order: 1 !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16 / 9 !important;
    }

    /* 2nd: Title + meta row */
    .ss-hero-top-header {
        order: 2 !important;
        padding: 14px 16px 10px !important;
        border-bottom: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3rd: Action buttons (save, play, copy) */
    .ss-hero-actions-col {
        order: 3 !important;
        padding: 4px 16px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Hide the small 48×48 square icon — the full 16:9 thumbnail is already showing */
    .ss-hero-square-thumb {
        display: none !important;
    }
}

/* Left Column: 16:9 Thumbnail */
.ss-hero-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.ss-hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top-Right Badge: Sleek, compact pill with semi-transparent frosted glass (Matches Image 3) */
.ss-thumb-key-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 3.5px 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}
.dark .ss-thumb-key-badge {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ss-thumb-key-badge.keyless {
    color: #15803d;
}
.ss-thumb-key-badge.keyless i,
.ss-thumb-key-badge.keyless svg {
    width: 12px !important;
    height: 12px !important;
    color: #22c55e !important;
}
.dark .ss-thumb-key-badge.keyless {
    color: #4ade80;
}

.ss-thumb-key-badge.keysystem {
    color: #dc2626;
}
.ss-thumb-key-badge.keysystem i,
.ss-thumb-key-badge.keysystem svg {
    width: 12px !important;
    height: 12px !important;
    color: #ef4444 !important;
}
.dark .ss-thumb-key-badge.keysystem {
    color: #f87171;
}

/* Bottom-Right Feature circular badges */
.ss-thumb-icon-circles {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 2;
}

.ss-thumb-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.dark .ss-thumb-circle {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Right Column: Actions */
.ss-hero-actions-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Author Row */
.ss-hero-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
    width: 100%;
}

.ss-hero-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.ss-hero-author-info .ss-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}
.dark .ss-hero-author-info .ss-avatar {
    border-color: #334155;
}

.ss-hero-author-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.ss-hero-author-info:hover .ss-hero-author-name {
    color: #0284c7;
}
.dark .ss-hero-author-name {
    color: #f8fafc;
}

.ss-hero-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0ea5e9;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
    transition: all 0.15s ease;
}
.ss-hero-follow-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.45);
}
.ss-hero-follow-btn:active {
    transform: translateY(0);
}
.ss-hero-follow-btn .follow-sep {
    opacity: 0.7;
    font-size: 11px;
    margin: 0 1px;
}
.ss-hero-follow-btn.following {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}
.ss-hero-follow-btn.following:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}
.dark .ss-hero-follow-btn.following {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8 !important;
}
.dark .ss-hero-follow-btn.following:hover {
    background: #334155;
    color: #f1f5f9 !important;
}

/* Row 2: Vote pill + 3 Social icons */
.ss-hero-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    width: 100%;
    flex-wrap: wrap;
}

.ss-hero-vote-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
}
.dark .ss-hero-vote-pill {
    background: #0f172a;
    border-color: #334155;
}

.ss-hero-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #64748b;
}

.ss-hero-vote-btn.ss-vote-like {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ss-hero-vote-btn.ss-vote-like:hover {
    color: #0284c7;
}
.dark .ss-hero-vote-btn.ss-vote-like {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.ss-hero-vote-btn.ss-vote-dislike:hover {
    color: #ef4444;
}
.dark .ss-hero-vote-btn.ss-vote-dislike {
    color: #94a3b8;
}

.ss-hero-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-hero-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.1s ease;
}
.ss-hero-icon-btn:hover {
    color: #0f172a;
    transform: scale(1.15);
}
.ss-hero-icon-btn.favorite-btn:hover {
    color: #f59e0b;
}
.ss-hero-icon-btn.report:hover {
    color: #ef4444;
}
.dark .ss-hero-icon-btn {
    color: #94a3b8;
}
.dark .ss-hero-icon-btn:hover {
    color: #f8fafc;
}

/* Row 3: Save Script Button (White card style with thin gray border) */
.ss-btn-save-script {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.ss-btn-save-script:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.ss-btn-save-script:active {
    transform: translateY(0);
}
.ss-btn-save-script.saved {
    background: #fefce8;
    border-color: #fde047;
    color: #a16207;
}
.dark .ss-btn-save-script {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
.dark .ss-btn-save-script:hover {
    background: #334155;
    border-color: #475569;
}
.dark .ss-btn-save-script.saved {
    background: #713f12;
    border-color: #eab308;
    color: #fef08a;
}

/* Row 4: Play Game Button (White card style with thin gray border) */
.ss-btn-play-game {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.ss-btn-play-game:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.ss-btn-play-game:active {
    transform: translateY(0);
}
.dark .ss-btn-play-game {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
.dark .ss-btn-play-game:hover {
    background: #334155;
    border-color: #475569;
}

/* Row 5: Copy Script Button (Vibrant Sky Blue #0ea5e9) */
.ss-btn-copy-script {
    width: 100%;
    height: 44px;
    background: #0ea5e9;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.25);
    box-sizing: border-box;
}
.ss-btn-copy-script:hover {
    background: #0284c7;
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}
.ss-btn-copy-script:active {
    transform: translateY(0);
}
.ss-btn-copy-script.copied,
.ss-btn-copy-script.btn-copied-success {
    background: #10b981 !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25) !important;
}

.ss-title-row {
    min-width: 0;
    flex: 1;
    width: 100%;
}

.ss-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 6px;
    word-break: break-word;
    display: block;
    width: 100%;
}

@media (min-width: 640px) {
    .ss-title { font-size: 1.65rem; }
}

.ss-author-link {
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.ss-author-link:hover {
    opacity: 0.85;
}

.ss-author-link:hover .ss-author-name {
    color: #2563eb !important;
}

.ss-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.ss-game-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.ss-game-tag:hover { background: #dbeafe; }

.ss-views-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Thumbnail: strict 16:9 ── */
.ss-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.ss-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-thumb-badge-views {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ss-thumb-badge-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: .02em;
}

.ss-thumb-badge-type.keysystem {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.ss-thumb-badge-type.keyless {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(4px);
    color: #22c55e !important;
}

.ss-thumb-badge-type.keyless i,
.ss-thumb-badge-type.keyless svg {
    color: #22c55e !important;
}

/* Author row (Matches Image 2 & 4) */
.ss-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.ss-author-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.ss-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-width: 0;
}

.ss-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ss-author-name {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
@media (min-width: 640px) {
    .ss-author-name {
        max-width: 150px;
    }
}

.ss-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.ss-follow-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}
.ss-follow-btn.following {
    background: #e2e8f0;
    color: #475569;
}
.dark .ss-follow-btn.following {
    background: #334155;
    color: #cbd5e1;
}

/* Vote + Social Actions Row (Matches Image 3 & 4 - Like/Dislike on left, Bookmark/Share/Flag on right) */
.ss-vote-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.ss-vote-bar {
    display: flex;
    align-items: center;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 38px;
    padding: 0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 2px;
}
.dark .ss-vote-bar {
    background: #1e293b;
    border-color: #334155;
}

.ss-vote-btn {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px;
    transition: color 0.15s, background-color 0.15s;
    border-radius: 0;
}
.dark .ss-vote-btn {
    color: #f8fafc;
}
.ss-vote-btn:hover { background: #f1f5f9; color: #0284c7; }
.dark .ss-vote-btn:hover { background: #0f172a; }
.ss-vote-btn + .ss-vote-btn {
    border-left: 1px solid #e2e8f0;
}
.dark .ss-vote-btn + .ss-vote-btn {
    border-left: 1px solid #334155;
}
.ss-vote-btn + .ss-vote-btn:hover { color: #ef4444; }

.ss-icon-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 2px;
}

.ss-icon-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    color: #64748b;
    padding: 0 8px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.ss-icon-btn:hover { background: #f1f5f9; color: #0284c7; border-color: #cbd5e1; }
.dark .ss-icon-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
.dark .ss-icon-btn:hover { background: #334155; color: #38bdf8; }
.ss-icon-btn.favorite-btn:hover { color: #f59e0b; }
.ss-icon-btn.report:hover { color: #ef4444; }

/* Action buttons (Matches reference: 38px height, 10px rounded corners, full width) */
.ss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, background-color 0.15s;
    box-sizing: border-box;
}

.ss-btn:hover { opacity: 0.94; transform: translateY(-1px); }
.ss-btn:active { transform: translateY(0); }
.ss-btn-play    { background: #0f172a; color: #fff; }
.dark .ss-btn-play { background: #0f172a; color: #fff; border: 1px solid #334155; }
.ss-btn-gamelink { background: #16a34a; color: #fff; }
.ss-btn-gamelink:hover { background: #15803d; }
.dark .ss-btn-gamelink { background: #16a34a; color: #fff; }
.ss-btn-copy    { background: #235efa; color: #fff; }
.ss-btn-copy:hover { background: #1b4fd8; }
.dark .ss-btn-copy { background: #235efa; color: #fff; }
.dark .ss-btn-copy:hover { background: #1b4fd8; }
.ss-btn-youtube { background: #ef4444; color: #fff; }

/* ── From the Creator Section (Matches Image 2) ── */
.ss-creator-section {
    margin: 16px 0 20px;
}

.ss-creator-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.dark .ss-creator-title {
    color: #f8fafc;
}

.ss-creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 12px;
}

.ss-creator-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.ss-creator-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .ss-creator-btn {
    background: #0f172a;
    border-color: #1e293b;
}

.dark .ss-creator-btn:hover {
    border-color: #334155;
    background: #1e293b;
}

.ss-creator-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.ss-creator-icon.discord {
    background: #5865f2;
}

.ss-creator-icon.key {
    background: #f97316;
}

.ss-creator-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.dark .ss-creator-text {
    color: #ffffff;
}

/* Quick Links Row */
.ss-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.ss-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    flex: 1;
    min-width: 70px;
    text-align: center;
}
.ss-quick-yt  { background: #ef4444; color: #fff; }
.ss-quick-yt:hover { background: #dc2626; }
.ss-quick-dc  { background: #5865f2; color: #fff; }
.ss-quick-dc:hover { background: #4752c4; }
.ss-quick-key { background: #e11d48; color: #fff; }
.ss-quick-key:hover { background: #be123c; }

/* ── Section card content ── */
.ss-section {
    padding: 24px;
}

@media (min-width: 640px) {
    .ss-section { padding: 28px 32px; }
}

.ss-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Description (Matches media_1790171365038.png) ── */
.ss-description {
    font-size: 14.5px;
    color: #475569;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 0;
}

.ss-description h1, .ss-description h2, .ss-description h3,
.ss-description h4, .ss-description h5, .ss-description h6 {
    color: #0f172a;
    font-weight: 700;
    margin: 1.6rem 0 0.85rem;
    line-height: 1.3;
}
.ss-description h1 { font-size: 1.4rem; }
.ss-description h2 { font-size: 1.25rem; }
.ss-description h3 { font-size: 1.15rem; }
.ss-description p {
    margin-bottom: 1.25rem;
    line-height: 1.65;
    color: #475569;
}
.ss-description p:last-child {
    margin-bottom: 0;
}
.ss-description ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin: 0 0 1.25rem 0 !important;
}
.ss-description ul > li {
    position: relative;
    padding-left: 4px;
    margin-bottom: 8px;
    line-height: 1.55;
    color: #475569;
    font-size: 14.5px;
    font-weight: 400;
}
.ss-description ul > li::before {
    display: none !important;
    content: none !important;
}
.ss-description ul > li::marker {
    color: #64748b;
    font-size: 0.9em;
}
.ss-description ol {
    list-style: decimal;
    margin: 0 0 1rem 1.5rem;
}
.ss-description ol > li {
    margin-bottom: 6px;
    line-height: 1.55;
    color: #475569;
}
.ss-description a {
    color: #2563eb;
    text-decoration: underline;
}
.ss-description strong {
    color: #0f172a;
    font-weight: 700;
}
.ss-description blockquote {
    border-left: 3px solid #e2e8f0;
    padding-left: 1rem;
    font-style: italic;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* ── Feature / Executor tags inside Description Block (Matches media_1790172240932.png) ── */
.ss-desc-tags-block {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ss-desc-tags-block:first-of-type {
    margin-top: 20px;
}

.ss-desc-subheading {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 12px 0;
}

.ss-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ss-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.ss-tag-feature {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.ss-tag-feature:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ss-tag-executor {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-weight: 700;
}
.ss-tag-executor:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* ── Code block ── */
.ss-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
    .ss-code-header { padding: 20px 32px 16px; }
}

.ss-code-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ss-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.ss-copy-btn:hover { background: #0284c7; }

.ss-code-body {
    background: #f8fafc;
    border-top: 1px solid #e8edf2;
    border-radius: 0 0 14px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-code-body pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-code-body code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #1e293b;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

/* Dark mode: flip code block back to dark */
.dark .ss-code-body {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

.dark .ss-code-body code {
    color: #e2e8f0 !important;
}

/* ── How to Use This Script (Delta Executor Guide) ── */
.ss-how-to-card {
    margin-bottom: 20px;
}
.ss-how-to-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}
@media (min-width: 640px) {
    .ss-how-to-header { padding: 20px 32px; }
}
.dark .ss-how-to-header {
    border-bottom-color: #1e293b;
}
.ss-how-to-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}
.dark .ss-how-to-main-title {
    color: #f8fafc;
}
.ss-how-to-body {
    padding: 20px 18px;
}
@media (min-width: 640px) {
    .ss-how-to-body { padding: 24px 28px; }
}
.ss-how-to-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .ss-how-to-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}
.ss-how-to-step {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ss-how-to-step:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.dark .ss-how-to-step {
    background: #0b1329;
    border-color: #1e293b;
}
.dark .ss-how-to-step:hover {
    border-color: #334155;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.ss-step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f59e0b;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    flex-shrink: 0;
}
.ss-step-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.dark .ss-step-title {
    color: #f8fafc;
}
.ss-step-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    max-width: 250px;
}
.dark .ss-step-desc {
    color: #94a3b8;
}

/* ── YouTube embed ── */
.ss-yt-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}
.ss-yt-wrap iframe,
.ss-yt-wrap > div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Comments ── */
.ss-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
}
.ss-comment:last-child { border-bottom: none; }
.ss-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}
.ss-comment-author {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.ss-comment-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 6px;
}
.ss-comment-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-top: 3px;
}
.ss-comment-form {
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 6px;
}
.ss-comment-input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #1e293b;
    resize: vertical;
    min-height: 90px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.ss-comment-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.ss-comment-post-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-end;
    white-space: nowrap;
}
.ss-comment-post-btn:hover { background: #1e293b; }

/* ── Sidebar ── */
.ss-sidebar { display: flex; flex-direction: column; gap: 20px; }

.ss-similar-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    transition: opacity 0.15s;
}
.ss-similar-card:last-child { border-bottom: none; }
.ss-similar-card:hover { opacity: .8; }
.ss-similar-thumb {
    width: 80px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}
.ss-similar-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ss-similar-game {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 3px;
}
.ss-similar-card:hover .ss-similar-title { color: #2563eb; }

/* ── Tab Switcher ── */
.ss-tab-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.ss-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.ss-tab-btn.active {
    color: #fff;
    background: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.ss-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.ss-tab-btn:not(.active) .ss-tab-badge {
    background: #f1f5f9;
    color: #64748b;
}

/* Tab Panes */
.ss-tab-pane {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ss-tab-pane.active {
    display: flex;
}

/* ── Game Page Mini Widget (Matches media_1790171901981.png) ── */
.ss-game-stats-card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ss-game-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.ss-game-widget:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}

.ss-game-widget-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ss-game-widget-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}

.ss-game-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #0284c7;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-game-widget-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-game-widget-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

.ss-game-widget:hover .ss-game-widget-arrow {
    transform: translateX(3px);
}

/* ── Script Stats Grid ── */
.ss-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 540px) {
    .ss-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ss-stat-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.ss-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ss-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* ── Actions Row Below Script: Discord, Get Key & Google Preferred Source (Matches media_1790172051471.png) ── */
.ss-script-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 24px;
}

.ss-google-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 7px 14px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ss-google-source-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ss-google-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2937;
    text-align: left;
}

/* ── Script Preview Box (Matches reference design: Bold 'Script' + clean buttons + background) ── */
.ss-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ss-preview-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.ss-preview-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ss-preview-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.ss-preview-tool-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

#section-copy-btn {
    background: #235efa !important;
    color: #ffffff !important;
    border-color: #1b4fd8 !important;
    font-weight: 700;
}

#section-copy-btn:hover {
    background: #1b4fd8 !important;
    color: #ffffff !important;
}

/* Success state: Light green with tick icon on copy */
.btn-copied-success,
#section-copy-btn.btn-copied-success,
.ss-btn-copy.btn-copied-success {
    background: #22c55e !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35) !important;
    transition: all 0.2s ease !important;
}

.dark .btn-copied-success,
.dark #section-copy-btn.btn-copied-success,
.dark .ss-btn-copy.btn-copied-success {
    background: #22c55e !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.ss-preview-code-wrap {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 18px 20px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 12px 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-preview-code-wrap pre {
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, Menlo, Monaco, monospace;
    font-size: 13.5px;
    line-height: 1.65;
    color: #0284c7;
    white-space: pre !important;
    word-break: normal;
    tab-size: 4;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ss-preview-code-wrap code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* ── Recommended Scripts Grid ── */
.ss-rec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .ss-rec-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ss-rec-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ss-rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ss-rec-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.ss-rec-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-rec-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ss-rec-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ss-rec-card:hover .ss-rec-title {
    color: #2563eb;
}

.ss-rec-game {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Comments Card (Matches media_1790171436388.png) ── */
.ss-comments-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ss-comments-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ss-comments-list {
    margin-bottom: 18px;
}

.ss-comment-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ss-comment-row:last-child {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.ss-comment-avatar-wrap {
    flex-shrink: 0;
}

.ss-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
}

.ss-comment-main {
    flex: 1;
    min-width: 0;
}

.ss-comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.ss-comment-author {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.ss-comment-date {
    font-size: 12.5px;
    font-weight: 400;
    color: #94a3b8;
}

.ss-comment-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
    word-break: break-all;
    margin: 0;
}

.ss-no-comments {
    color: #94a3b8;
    font-size: 13.5px;
    font-style: italic;
    padding: 8px 0 16px 0;
}

/* ── Comment Input Form ── */
.ss-comment-form {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ss-comment-form-avatar {
    flex-shrink: 0;
    margin-top: 4px;
}

.ss-comment-form-main {
    flex: 1;
    min-width: 0;
}

.ss-comment-textarea {
    width: 100%;
    min-height: 75px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-comment-textarea::placeholder {
    color: #94a3b8;
}

.ss-comment-textarea:focus {
    border-color: #94a3b8;
}

.ss-comment-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.ss-comment-post-btn {
    background: #0b0f19;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ss-comment-post-btn:hover {
    background: #1e293b;
}

.ss-comment-post-btn:active {
    transform: scale(0.98);
}

/* ============================================================
   DARK MODE OVERRIDES — all ss-* classes
   ============================================================ */
.dark .ss-card,
.dark .ss-tab-nav,
.dark .ss-game-widget,
.dark .ss-stat-box,
.dark .ss-preview-card,
.dark .ss-rec-card,
.dark .ss-comments-card,
.dark .ss-comment-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.dark .ss-game-widget:hover,
.dark .ss-rec-card:hover {
    border-color: #475569 !important;
    background: #24334a !important;
}

.dark .ss-tab-btn {
    color: #94a3b8 !important;
}

.dark .ss-tab-btn:hover {
    color: #f1f5f9 !important;
    background: #334155 !important;
}

.dark .ss-tab-btn.active {
    color: #fff !important;
    background: #2563eb !important;
}

.dark .ss-tab-btn:not(.active) .ss-tab-badge {
    background: #334155 !important;
    color: #94a3b8 !important;
}

.dark .ss-title,
.dark .ss-section-title,
.dark .ss-code-title,
.dark .ss-author-name,
.dark .ss-comment-author,
.dark .ss-similar-title,
.dark .ss-tag-label,
.dark .ss-game-widget-title,
.dark .ss-stat-value,
.dark .ss-preview-heading,
.dark .ss-rec-title,
.dark .ss-comments-title {
    color: #f1f5f9 !important;
}

.dark .ss-meta,
.dark .ss-views-badge,
.dark .ss-description,
.dark .ss-comment-text,
.dark .ss-comment-date,
.dark .ss-sim-game,
.dark .ss-similar-game,
.dark .ss-icon-btn,
.dark .empty,
.dark .ss-game-widget-label,
.dark .ss-stat-label,
.dark .ss-preview-meta,
.dark .ss-rec-game,
.dark .ss-comments-subtitle {
    color: #94a3b8 !important;
}

.dark .ss-preview-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.dark .ss-preview-header {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

.dark .ss-preview-heading {
    color: #f8fafc !important;
}

.dark .ss-preview-tool-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

.dark .ss-preview-tool-btn:hover {
    background: #334155 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.dark .ss-preview-code-wrap {
    background: #090d16 !important;
    border-top-color: #1e293b !important;
}

.dark .ss-preview-code-wrap pre,
.dark .ss-preview-code-wrap code {
    color: #38bdf8 !important;
}

.dark .ss-views-badge {
    background: #0f172a !important;
    color: #38bdf8 !important;
}

.dark .ss-section-title {
    border-color: #334155 !important;
}

.dark .ss-hero-header {
    border-color: #334155;
}

.dark .ss-vote-bar {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.dark .ss-vote-btn {
    background: transparent !important;
    color: #f8fafc !important;
    border-radius: 9999px !important;
    transition: all 0.15s ease !important;
}

.dark #ss-btn-like i {
    color: #38bdf8 !important;
}

.dark #ss-btn-dislike i {
    color: #94a3b8 !important;
}

.dark .ss-vote-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

.dark #ss-btn-like:hover i {
    color: #7dd3fc !important;
}

.dark #ss-btn-dislike:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.dark #ss-btn-dislike:hover i {
    color: #f87171 !important;
}

.dark .ss-vote-btn + .ss-vote-btn {
    border-left: 1px solid #334155 !important;
}

.dark .ss-vote-btn.vote-active,
.dark #ss-btn-like.vote-active {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
}

.dark #ss-btn-dislike.vote-active {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
}

.dark .ss-icon-btn {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.dark .ss-icon-btn:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

.dark .ss-icon-btn.favorite-btn:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

.dark .ss-icon-btn.report:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.dark .ss-author-row {
    border-color: #334155;
}

.dark .ss-avatar {
    border-color: #334155 !important;
    background: #0f172a !important;
}

.dark .ss-game-tag {
    background: #1e3a5f !important;
    color: #38bdf8 !important;
}

.dark .ss-tag-feature {
    background: #334155 !important;
    color: #cbd5e1 !important;
}

.dark .ss-tag-feature:hover {
    background: #2563eb !important;
    color: #fff !important;
}

.dark .ss-tag-executor {
    background: #064e3b !important;
    border-color: #065f46 !important;
    color: #6ee7b7 !important;
}

.dark .ss-tag-executor:hover {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}

.dark .ss-description,
.dark .ss-description p,
.dark .ss-description span,
.dark .ss-description div {
    color: #e2e8f0 !important;
}

.dark .ss-description ul > li,
.dark .ss-description ol > li {
    color: #e2e8f0 !important;
}

.dark .ss-description ul > li::marker {
    color: #38bdf8 !important;
}

.dark .ss-description strong,
.dark .ss-description b {
    color: #ffffff !important;
}

.dark .ss-description h1,
.dark .ss-description h2,
.dark .ss-description h3,
.dark .ss-description h4,
.dark .ss-description h5,
.dark .ss-description h6 {
    color: #ffffff !important;
}

.dark .ss-description a {
    color: #38bdf8 !important;
}

.dark .ss-description ul > li::before {
    color: #38bdf8 !important;
}

.dark .ss-description blockquote {
    border-left-color: #38bdf8 !important;
    color: #cbd5e1 !important;
}

/* Code block header */
.dark .ss-code-header {
    border-color: #334155 !important;
}

.dark .ss-copy-btn {
    background: #0369a1 !important;
}

/* YouTube section */
.dark .ss-yt-wrap {
    background: #0f172a !important;
}

/* Comments */
.dark .ss-comment {
    border-color: #334155 !important;
}

.dark .ss-comment-avatar {
    background: #0f172a !important;
}

.dark .ss-comment-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .ss-comment-input::placeholder {
    color: #475569 !important;
}

.dark .ss-comment-input:focus {
    border-color: #2563eb !important;
}

.dark .ss-comment-form {
    border-color: #334155 !important;
}

.dark .ss-comment-post-btn {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .ss-comment-post-btn:hover {
    background: #475569 !important;
}

/* Sidebar similar scripts */
.dark .ss-similar-card {
    border-color: #334155 !important;
}

.dark .ss-similar-title {
    color: #e2e8f0 !important;
}

.dark .ss-similar-game {
    color: #64748b !important;
}

.dark .ss-similar-card:hover .ss-similar-title {
    color: #38bdf8 !important;
}

.dark .ss-similar-thumb {
    background: #0f172a !important;
}

/* Description tags & subheadings */
.dark .ss-desc-subheading {
    color: #f8fafc !important;
}

.dark .ss-desc-tags-block {
    border-top-color: #334155 !important;
}

/* Game info & stats card */
.dark .ss-game-stats-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.dark .ss-game-widget {
    background: #0f172a !important;
    border-color: #0284c7 !important;
}

.dark .ss-game-widget:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
}

.dark .ss-game-widget-title {
    color: #38bdf8 !important;
}

.dark .ss-game-widget-subtitle {
    color: #94a3b8 !important;
}

.dark .ss-game-widget-arrow {
    color: #38bdf8 !important;
}

/* Google Preferred Source button */
.dark .ss-google-source-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.dark .ss-google-source-btn:hover {
    background: #334155 !important;
    border-color: #475569 !important;
}

.dark .ss-google-text {
    color: #f8fafc !important;
}
