/* downloadsoundcloudlikes.com — dark + SoundCloud orange */

:root {
    --bg: #161616;
    --surface: #1c1c1c;
    --surface-elevated: #242424;
    --border: #383838;
    --border-focus: #ff5500;
    --text: #f2f2f2;
    --text-muted: #9a9a9a;
    --accent: #ff5500;
    --accent-hover: #ff7733;
    --accent-pressed: #e64d00;
    --error-bg: #2a1212;
    --error-border: #5c2020;
    --error-text: #ffb4b4;
    --status-bg: #1f1810;
    --status-border: #4a3520;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color-scheme: dark;
}

@view-transition {
    navigation: auto;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Full-bleed header: waves flush to viewport top (no body/html gap) */
.site-header {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

.hero-waves-bar {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    /* Waves now run flush from the very top of the page; keep the band compact so it
       reads as a header crest, not a full-bleed slab. */
    height: clamp(128px, 26vw, 208px);
    overflow: hidden;
    background: var(--bg);
    line-height: 0;
}

.hero-waves-svg {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: top;
}

.site-header__intro {
    max-width: 640px;
    margin: 0 auto;
    padding: 10px clamp(14px, 4vw, 24px) 6px;
    text-align: center;
}

.brand {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
    word-break: break-word;
}

.tagline {
    margin: 1em auto 1em;
    max-width: 34em;
    font-size: clamp(0.875rem, 2.8vw, 0.95rem);
    color: var(--text-muted);
}

.page {
    max-width: 640px;
    margin: -10px auto 0;
    padding: 8px clamp(14px, 4vw, 24px) 40px;
    position: relative;
    z-index: 1;
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 4vw, 28px);
}

.rip-form {
    text-align: left;
}

/* Track / Playlist / Likes — flat text tabs (downloadsound.cloud style) */
.kind-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin-bottom: 14px;
}

.kind-tab {
    margin: 0;
    padding: 6px 0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.kind-tab:hover {
    color: var(--text);
}

.kind-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.kind-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 520px) {
    .form-row {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }

    .form-row .url-input {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

    .form-row .btn-primary {
        width: auto;
        min-width: 132px;
        flex-shrink: 0;
        align-self: stretch;
    }
}

.url-input {
    width: 100%;
    padding: 14px 16px;
    margin: 0;
    font-size: 16px;
    color: var(--text);
    background: var(--surface-elevated);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.12s ease;
}

.url-input::placeholder {
    color: #666;
}

.url-input:hover {
    border-color: #ff6633;
}

.url-input:focus {
    border-color: var(--border-focus);
}

.url-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.12s ease;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
    background: var(--accent-pressed);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Optional range */
.range-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.range-toggle:hover {
    color: var(--text);
    border-color: #444;
    background: #1a1410;
}

.range-toggle[aria-expanded="true"] {
    color: var(--text);
    border-color: var(--accent);
    border-style: solid;
}

.range-toggle__label {
    flex: 1;
    padding-right: 8px;
}

.range-toggle__chev {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.range-toggle[aria-expanded="true"] .range-toggle__chev {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.range-panel {
    margin-top: 12px;
    padding: 14px 14px 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.range-hint {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.range-hint strong {
    color: var(--accent);
    font-weight: 600;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 400px) {
    .range-inputs {
        flex-direction: row;
        gap: 12px;
    }

    .range-inputs input {
        flex: 1;
        margin: 0;
    }
}

.range-inputs input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease;
}

.range-inputs input[type="number"]:focus {
    border-color: var(--border-focus);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Status + list */
.hidden {
    display: none !important;
}

.status {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: 0.875rem;
    text-align: left;
    color: #e8d4c4;
    background: var(--status-bg);
    border: 1px solid var(--status-border);
    border-radius: var(--radius-md);
    word-break: break-word;
}

.status.error {
    color: var(--error-text);
    background: var(--error-bg);
    border-color: var(--error-border);
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
    max-height: min(40vh, 280px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
}

.track-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

@media (min-width: 480px) {
    .track-list li {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
    }
}

.track-list li:last-child {
    border-bottom: none;
}

.track-list .name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-list .prog {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@media (max-width: 479px) {
    .track-list .prog {
        white-space: normal;
    }
}

.track-list li.error .prog {
    color: #ff6b6b;
}

/* Footer notes */
.notes {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.notes p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.notes strong {
    color: var(--text);
    font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────
   Sub-pages (about / privacy / contact): slim brand header, long-form copy
   ─────────────────────────────────────────────────────────────────────── */
.site-header.is-sub {
    border-top: 3px solid var(--accent);
}

.site-header.is-sub .site-header__intro {
    max-width: 720px;
    padding: 14px clamp(14px, 4vw, 24px) 8px;
    text-align: left;
}

.brand-line {
    margin: 0;
}

.brand-link {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 3.4vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
}

.brand-link:hover {
    color: var(--accent);
}

.site-header.is-sub + .page {
    max-width: 720px;
    margin-top: 0;
}

/* Long-form content */
.prose {
    text-align: left;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h1 {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.prose h2 {
    margin: 30px 0 8px;
    font-size: clamp(1.05rem, 3.6vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
}

.prose p,
.prose ul {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cdcdcd;
}

.prose ul {
    padding-left: 1.25em;
}

.prose li {
    margin-bottom: 7px;
}

.prose li::marker {
    color: var(--accent);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--accent-hover);
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose em {
    color: #dedede;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    color: #e8c9b5;
    word-break: break-word;
}

.prose .lead {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.6;
}

.prose .meta-line {
    margin-bottom: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact link card */
.contact-card {
    margin: 6px 0 18px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    color: var(--text) !important;
    text-decoration: none !important;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.04s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    background: #1d1813;
}

.contact-link:active {
    transform: translateY(1px);
}

.contact-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.contact-link__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0a66c2; /* LinkedIn blue */
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.contact-link__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.contact-link__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-link__sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-link__arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-link:hover .contact-link__arrow {
    color: var(--accent);
}

/* Site-wide footer (all pages) */
.site-footer {
    max-width: 640px;
    margin: 8px auto 0;
    padding: 18px clamp(14px, 4vw, 24px) 36px;
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 10px;
}

.site-footer__nav a {
    padding: 4px 2px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.site-footer__nav a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.site-footer__note {
    margin: 0;
    font-size: 0.75rem;
    color: #6f6f6f;
}
