.downloads-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.downloads-header {
    margin-bottom: 24px;
}

.downloads-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 8px 0 0;
}

.downloads-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.segmented-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.control-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.segmented-control {
    display: flex;
    background: #e6e3de; /* darker than marble base */
    padding: 4px;
    gap: 4px;
    width: 100%;
}

.segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    transform: none;
    text-shadow: none;
    white-space: nowrap;
}

.segment-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: none;
    filter: none;
}

.segment-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: default;
}

.helper-text {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.downloads-list-container {
    width: 100%;
    max-width: 600px;
    margin-top: 32px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.downloads-placeholder {
    color: var(--muted);
    font-style: italic;
}

.downloads-error {
    color: var(--error);
    background: rgba(122, 43, 43, 0.05);
    padding: 16px;
    border: 1px solid rgba(122, 43, 43, 0.1);
}

.download-card {
    background: #fff;
    border: 1px solid var(--edge);
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    transition: opacity 0.3s ease;
}

.download-card.best-match {
    border-color: rgba(43, 42, 40, 0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.download-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.download-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    line-height: 1.2;
}

.download-card__meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.download-badge {
    background: #f0f0f0;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.05em;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    color: var(--bg, #f6f5f3);
    background: var(--accent);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: var(--shadow-soft, 0 16px 32px -24px rgba(43, 42, 40, 0.25));
}
.download-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.download-button:active {
    transform: translateY(0);
}

/* Secondary list for older versions or alternatives if needed */
.secondary-downloads {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.secondary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--edge);
    font-size: 14px;
    color: var(--fg);
    text-decoration: none;
}
.secondary-item:hover {
    background: #fff;
    border-color: rgba(43, 42, 40, 0.2);
}

/* Recommended Specs */
.specs-container {
    width: 100%;
    max-width: 600px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--edge);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specs-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    text-align: center;
}

.specs-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.specs-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border: 1px solid rgba(233, 231, 226, 0.6);
}

.specs-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--fg);
}

.specs-list li {
    display: flex;
    gap: 6px;
    line-height: 1.4;
}

.specs-list strong {
    font-weight: 600;
    color: var(--accent);
    min-width: 80px;
    flex-shrink: 0;
}

.specs-message {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    font-style: italic;
    text-align: center;
}

@media (min-width: 640px) {
    .specs-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 640px) {
    .download-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .download-button {
        width: auto;
        min-width: 160px;
    }
}
