/* ================================================================
   SOFTWARE DETAIL PAGE — aft-sw-detail-* namespace
   Uses CSS variables for consistent theming
   ================================================================ */

/* ── Main Container ── */
.sw-main {
    padding: 0 0 100px;
    min-height: 100vh;
    margin-top: 100px;
}

.sw-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── Hero Banner ── */
.sw-hero-banner {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    position: relative;
}

.sw-hero-banner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
}

.sw-hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,26,28,0.1) 0%, rgba(15,26,28,0.85) 100%);
}

/* ── Breadcrumb ── */
.sw-breadcrumb {
    padding: 22px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sw-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.sw-breadcrumb a:hover {
    color: var(--text);
}

.sw-breadcrumb .sep {
    color: var(--border);
}

.sw-breadcrumb .current {
    color: var(--text-muted);
}

/* ── Header Card ── */
.sw-header-card {
    border-radius: 18px;
    padding: 32px 36px;
    margin: 24px 0 32px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.sw-icon-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sw-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-icon-placeholder {
    font-size: 2.8rem;
    color: var(--accent);
}

.sw-title-block {
    flex: 1;
    min-width: 230px;
}

.sw-title-block h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.2;
}

.sw-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

.sw-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(99,102,241,0.08);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.sw-badge.os {
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    border-color: rgba(99,102,241,0.2);
}

.sw-badge.license {
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border-color: rgba(16,185,129,0.15);
}

.sw-badge.version {
    background: rgba(139,92,246,0.08);
    color: #8b5cf6;
    border-color: rgba(139,92,246,0.15);
}

.sw-badge.updated {
    background: rgba(107,114,128,0.1);
    color: var(--text-muted);
    border-color: var(--border);
}

.sw-badge.rating-badge {
    background: rgba(251,191,36,0.08);
    color: #f59e0b;
    border-color: rgba(251,191,36,0.15);
}

/* ── Download Action ── */
.sw-action-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 250px;
    max-width: 300px;
}

.sw-dl-dropdown-wrap {
    position: relative;
    width: 100%;
}

.sw-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    width: 100%;
}

.sw-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    color: #fff;
    text-decoration: none;
    background: var(--accent-hover);
}

.sw-dl-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.25s;
    opacity: 0.8;
}

.sw-dl-dropdown-wrap:hover .sw-dl-chevron,
.sw-dl-dropdown-wrap.open .sw-dl-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.sw-dl-dropdown {
    position: absolute;
    top: 98%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    pointer-events: none;
    min-width: 260px;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .sw-dl-dropdown-wrap:hover .sw-dl-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Mobile click */
.sw-dl-dropdown-wrap.open .sw-dl-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown items */
.sw-dl-option {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.sw-dl-option:last-child {
    border-bottom: none;
}

.sw-dl-option:hover {
    background: rgba(99,102,241,0.06);
    color: var(--text);
    text-decoration: none;
}

.sw-dl-opt-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.sw-dl-opt-info {
    flex: 1;
    min-width: 0;
}

.sw-dl-opt-label {
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
}

.sw-dl-opt-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sw-dl-opt-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--accent);
    background: rgba(99,102,241,0.08);
    border-radius: 4px;
    padding: 1px 7px;
}

.sw-dl-opt-arrow {
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}

.sw-dl-option:hover .sw-dl-opt-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Official button */
.sw-btn-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid var(--accent);
    transition: all 0.25s;
    white-space: nowrap;
    width: 100%;
}

.sw-btn-official:hover {
    background: rgba(99,102,241,0.06);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Download notes */
.sw-dl-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-download-note {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sw-download-note i {
    color: var(--accent);
    flex-shrink: 0;
}

/* ── Screenshot ── */
.sw-screenshot-full {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.sw-screenshot-full img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

/* ── Grid Layout ── */
.sw-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sw-main-col {
    order: 1;
}

.sw-sidebar {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop Grid */
@media (min-width: 961px) {
    .sw-grid {
        display: grid;
        grid-template-columns: 1fr 310px;
        gap: 28px;
    }
    .sw-main-col {
        order: 0;
    }
    .sw-sidebar {
        order: 0;
    }
}

/* ── Cards ── */
.sw-card {
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sw-card:last-child {
    margin-bottom: 0;
}

.sw-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-card-title i {
    color: var(--accent);
    font-size: 1rem;
}

/* ── Rich Content ── */
.sw-rich-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.94rem;
}

.sw-rich-content h1,
.sw-rich-content h2 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 22px 0 10px;
    font-weight: 600;
}

.sw-rich-content h3,
.sw-rich-content h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin: 18px 0 8px;
    font-weight: 600;
}

.sw-rich-content h1:first-child,
.sw-rich-content h2:first-child,
.sw-rich-content h3:first-child {
    margin-top: 0;
}

.sw-rich-content p {
    margin: 0 0 14px;
}

.sw-rich-content p:last-child {
    margin-bottom: 0;
}

.sw-rich-content ul,
.sw-rich-content ol {
    padding-left: 22px;
    margin: 0 0 14px;
}

.sw-rich-content li {
    margin-bottom: 6px;
}

.sw-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.sw-rich-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    background: rgba(99,102,241,0.04);
    margin: 16px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.sw-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

@media (min-width: 768px) {
    .sw-rich-content table {
        display: table;
    }
}

.sw-rich-content th {
    background: var(--bg);
    color: var(--text);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border);
}

.sw-rich-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.sw-rich-content code {
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent);
    font-size: 0.88em;
    background: rgba(99,102,241,0.06);
}

.sw-rich-content pre {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
    margin: 16px 0;
}

.sw-rich-content pre code {
    background: none;
    padding: 0;
}

/* ── Pros Cons ── */
.sw-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 720px) {
    .sw-pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.sw-pros-block,
.sw-cons-block {
    border-radius: 10px;
    padding: 18px 20px;
}

.sw-pros-block {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
}

.sw-cons-block {
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.12);
}

.sw-pros-label,
.sw-cons-label {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sw-pros-label {
    color: #10b981;
}

.sw-cons-label {
    color: #ef4444;
}

/* ── System Requirements ── */
.sw-reqs-table {
    width: 100%;
    border-collapse: collapse;
}

.sw-reqs-table tr {
    border-bottom: 1px solid var(--border);
}

.sw-reqs-table tr:last-child {
    border-bottom: none;
}

.sw-reqs-table th {
    padding: 12px 14px 12px 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    width: 120px;
    vertical-align: top;
}

@media (max-width: 480px) {
    .sw-reqs-table th {
        display: block;
        width: 100%;
        padding: 12px 0 4px 0;
    }
    .sw-reqs-table td {
        display: block;
        padding: 4px 0 12px 0;
    }
    .sw-reqs-table tr {
        display: block;
    }
}

.sw-reqs-table td {
    padding: 12px 0 12px 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sw-reqs-table th i {
    margin-right: 7px;
}

/* ── Download Table ── */
.sw-dl-table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 640px) {
    .sw-dl-table thead {
        display: none;
    }
    .sw-dl-table tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 15px;
    }
    .sw-dl-table td {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }
    .sw-dl-table td:last-child {
        border-bottom: none;
    }
    .sw-dl-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent);
        width: 80px;
        flex-shrink: 0;
    }
    .sw-dlt-platform {
        flex: 1;
    }
    .sw-dlt-btn {
        margin-left: auto;
    }
}

.sw-dl-table thead th {
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    border-bottom: 2px solid rgba(99,102,241,0.2);
    text-align: left;
}

.sw-dl-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.sw-dl-table tbody tr:last-child {
    border-bottom: none;
}

.sw-dl-table tbody tr:hover {
    background: rgba(99,102,241,0.02);
}

.sw-dl-table td {
    padding: 13px 14px;
    vertical-align: middle;
}

.sw-dlt-platform {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.sw-dlt-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--accent);
}

.sw-dlt-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.sw-dlt-size {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sw-dlt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.sw-dlt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    color: #fff;
    text-decoration: none;
    background: var(--accent-hover);
}

.sw-dlt-btn.ext {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid rgba(99,102,241,0.4);
}

.sw-dlt-btn.ext:hover {
    background: rgba(99,102,241,0.06);
    color: var(--text);
    box-shadow: none;
}

/* ── Mirrors ── */
.sw-mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

@media (max-width: 480px) {
    .sw-mirrors-grid {
        grid-template-columns: 1fr;
    }
}

.sw-mirror-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.25s;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.sw-mirror-link i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sw-mirror-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.sw-mirror-link:hover i {
    color: #fff;
}

/* ── FAQ ── */
.sw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.sw-faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 48px;
    transition: background 0.2s;
    font-size: 0.94rem;
}

.sw-faq-item summary::-webkit-details-marker {
    display: none;
}

.sw-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 300;
    line-height: 1;
}

.sw-faq-item[open] summary::after {
    content: '-';
}

.sw-faq-item summary:hover {
    background: rgba(99,102,241,0.04);
}

.sw-faq-answer {
    padding: 18px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.sw-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ── Related Software ── */
.sw-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

@media (max-width: 480px) {
    .sw-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.sw-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 11px;
    padding: 18px 12px;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.25s;
    background: var(--bg-card);
}

.sw-related-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.sw-related-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
}

.sw-related-icon-ph {
    width: 52px;
    height: 52px;
    background: rgba(99,102,241,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.sw-related-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ── CTA Bar ── */
.sw-cta-bar {
    margin-top: 36px;
    text-align: center;
    padding: 22px 30px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.sw-cta-bar p {
    color: var(--text);
    font-size: 1rem;
    margin: 0;
}

.sw-cta-bar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.sw-cta-bar a:hover {
    text-decoration: underline;
}

/* ── Sidebar ── */
.sw-sidebar-card {
    border-radius: 14px;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sw-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-sidebar-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

.sw-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    font-size: 0.87rem;
}

@media (max-width: 480px) {
    .sw-info-row {
        flex-direction: column;
        gap: 4px;
    }
    .sw-info-label {
        width: 100%;
    }
    .sw-info-value {
        text-align: left;
        width: 100%;
    }
}

.sw-info-row:last-child {
    border-bottom: none;
}

.sw-info-label {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.sw-info-value {
    color: var(--text);
    text-align: right;
    word-break: break-word;
}

.sw-info-value a {
    color: var(--accent);
    text-decoration: none;
}

.sw-info-value a:hover {
    text-decoration: underline;
}

.sw-req-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-req-mini li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.87rem;
    color: var(--text-muted);
}

.sw-req-mini li:last-child {
    border-bottom: none;
}

.sw-req-mini i {
    color: var(--accent);
    width: 18px;
    flex-shrink: 0;
    padding-top: 2px;
}

.sw-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 0.87rem;
    border: 1px solid var(--border);
}

.sw-tool-link:hover {
    background: rgba(99,102,241,0.06);
    color: var(--text);
    transform: translateX(3px);
    text-decoration: none;
    border-color: var(--accent);
}

.sw-tool-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-tool-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sw-tools-note {
    font-size: 0.73rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* ── Sidebar Download List ── */
.sw-sidebar-dl-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-sidebar-dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 9px;
    text-decoration: none;
    background: rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.sw-sidebar-dl-item:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateX(2px);
    text-decoration: none;
}

.sw-sidebar-dl-item i {
    color: var(--accent);
    width: 16px;
    flex-shrink: 0;
}

.sw-sidebar-dl-item:hover i {
    color: #fff;
}

.sw-sdb-size {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.sw-sidebar-dl-item:hover .sw-sdb-size {
    color: rgba(255,255,255,0.7);
}

/* ── Rating ── */
.sw-rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sw-rating-num {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.sw-stars {
    color: #f59e0b;
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.sw-review-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Safety Card ── */
.sw-safety-card {
    border: 1px solid rgba(99,102,241,0.12) !important;
}

.sw-safety-tips {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.sw-safety-tips li {
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .sw-container {
        padding: 0 4%;
    }
    .sw-action-block {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .sw-card {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .sw-header-card {
        padding: 22px 20px;
        gap: 20px;
    }
    .sw-title-block h1 {
        font-size: 1.6rem;
    }
    .sw-card {
        padding: 20px;
    }
    .sw-cta-bar {
        padding: 18px 20px;
    }
    .sw-cta-bar p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sw-container {
        padding: 0 15px;
    }
    .sw-hero-banner img {
        height: 200px;
    }
    .sw-header-card {
        padding: 16px;
    }
    .sw-icon-wrap {
        width: 72px;
        height: 72px;
        padding: 8px;
    }
    .sw-title-block h1 {
        font-size: 1.4rem;
    }
    .sw-tagline {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    .sw-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    .sw-btn-download {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .sw-btn-official {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
    .sw-dl-opt-meta {
        flex-direction: column;
        gap: 2px;
    }
    .sw-dl-opt-type {
        align-self: flex-start;
    }
    .sw-card-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    .sw-rich-content {
        font-size: 0.9rem;
    }
    .sw-related-card {
        padding: 12px 8px;
    }
    .sw-related-name {
        font-size: 0.75rem;
    }
    .sw-dlt-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* ── Touch Device Optimizations ── */
@media (hover: none) and (pointer: coarse) {
    .sw-dl-option:hover {
        background: transparent;
    }
    .sw-dl-option:active {
        background: rgba(99,102,241,0.08);
    }
    .sw-mirror-link:hover {
        transform: none;
    }
    .sw-mirror-link:active {
        transform: translateY(-2px);
    }
}