:root {
    --bg: #f6f2e9;
    --bg-strong: #fffdf7;
    --bg-soft: #efe7d8;
    --surface: rgba(255, 252, 245, 0.88);
    --surface-strong: #fffdf8;
    --surface-muted: #f2ede2;
    --text: #161413;
    --muted: #68625a;
    --muted-strong: #4f4a43;
    --line: rgba(22, 20, 19, 0.08);
    --line-strong: rgba(22, 20, 19, 0.14);
    --accent: #dc8b31;
    --accent-strong: #c97112;
    --accent-soft: rgba(220, 139, 49, 0.14);
    --emerald: #187b68;
    --emerald-soft: rgba(24, 123, 104, 0.12);
    --danger: #c74c47;
    --shadow-xl: 0 40px 90px rgba(91, 66, 34, 0.12);
    --shadow-lg: 0 24px 60px rgba(84, 60, 31, 0.1);
    --shadow-md: 0 18px 40px rgba(80, 58, 29, 0.08);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1220px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.has-modal-open,
body.has-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.public-body {
    min-height: 100vh;
    position: relative;
    color: var(--text);
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(235, 198, 125, 0.32), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(64, 145, 129, 0.18), transparent 18%),
        linear-gradient(180deg, #fbf8f2 0%, var(--bg) 48%, #f8f4ec 100%);
}

body.has-modal-open {
    position: fixed;
    inset: 0;
    width: 100%;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-aura {
    position: fixed;
    z-index: 0;
    width: 34rem;
    height: 34rem;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.45;
}

.page-aura-left {
    top: -10rem;
    left: -10rem;
    background: rgba(233, 176, 92, 0.45);
}

.page-aura-right {
    top: 10rem;
    right: -12rem;
    background: rgba(83, 146, 175, 0.16);
}

.public-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 42px;
    position: relative;
    z-index: 1;
}

.public-topbar {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(83, 60, 28, 0.08);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: clamp(200px, 24vw, 320px);
    height: auto;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.lang-switch label {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.lang-switch select {
    min-width: 152px;
    padding: 10px 16px;
    border: 1px solid rgba(220, 139, 49, 0.28);
    border-radius: 999px;
    background: var(--bg-strong);
    color: var(--text);
    appearance: none;
    cursor: pointer;
}

.public-main {
    display: grid;
    gap: 26px;
}

.hero-panel,
.catalog-section,
.trust-section,
.not-found-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 249, 240, 0.88));
    box-shadow: var(--shadow-xl);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    padding: 34px;
}

.hero-panel::before,
.catalog-section::before,
.trust-section::before {
    content: "";
    position: absolute;
    inset: auto auto -90px -60px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 194, 124, 0.24), transparent 68%);
    pointer-events: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-pill-muted {
    background: rgba(22, 20, 19, 0.04);
    color: var(--muted-strong);
}

.hero-copy h1,
.section-heading h2,
.modal-card h2,
.not-found-code {
    margin: 16px 0 0;
    font-family: "Fraunces", "Times New Roman", serif;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 8vw, 5.4rem);
}

.hero-support,
.section-heading p,
.selected-playlist-copy p,
.modal-preview-copy p,
.not-found-message {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 60ch;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(24, 123, 104, 0.1);
    color: var(--emerald);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions,
.modal-preview-actions,
.catalog-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
.card-submit-btn,
.card-listen-link,
.modal-close,
#submission-button {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary,
#submission-button,
.card-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff7ec;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(201, 113, 18, 0.2);
    cursor: pointer;
}

.btn-primary:hover,
#submission-button:hover,
.card-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(201, 113, 18, 0.25);
}

.btn-secondary,
.btn-tertiary,
.card-listen-link,
.not-found-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-tertiary:hover,
.card-listen-link:hover,
.not-found-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(220, 139, 49, 0.26);
    box-shadow: var(--shadow-md);
}

.btn-tertiary {
    min-width: 220px;
    background: rgba(22, 20, 19, 0.04);
}

.hero-stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat {
    padding: 18px 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-md);
}

.hero-stat strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    padding: 16px;
}

.hero-visual-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(220, 139, 49, 0.16);
}

.hero-visual-orbit-top {
    inset: 20px 18px auto auto;
    width: 160px;
    height: 160px;
}

.hero-visual-orbit-bottom {
    inset: auto auto 12px 0;
    width: 220px;
    height: 220px;
}

.hero-mini-card {
    position: absolute;
    width: min(280px, 100%);
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 253, 249, 0.86);
    box-shadow: 0 24px 48px var(--card-accent-shadow, rgba(220, 139, 49, 0.12));
    backdrop-filter: blur(16px);
}

.hero-mini-card-1 {
    top: 6px;
    right: 12px;
    transform: rotate(6deg);
}

.hero-mini-card-2 {
    top: 112px;
    left: 14px;
    transform: rotate(-8deg);
}

.hero-mini-card-3 {
    bottom: 0;
    right: 42px;
    transform: rotate(4deg);
}

.hero-mini-cover {
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--card-accent-soft, rgba(220, 139, 49, 0.18)), rgba(255, 255, 255, 0.1)),
        linear-gradient(135deg, #2e2e2e, #686868);
}

.hero-mini-cover img,
.playlist-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mini-copy {
    padding-top: 12px;
}

.hero-mini-copy span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-mini-copy strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
}

.hero-mini-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-mini-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(22, 20, 19, 0.05);
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.catalog-section,
.trust-section,
.not-found-card {
    padding: 30px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
    max-width: 36rem;
}

.section-heading-compact {
    margin-bottom: 20px;
}

.catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.catalog-toolbar-meta {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.search-control,
.sort-control {
    display: grid;
    gap: 8px;
}

.search-control span,
.sort-control span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-control input,
.sort-control select,
.submission-form input,
.submission-form select,
.submission-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(22, 20, 19, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-control input {
    min-width: min(420px, calc(100vw - 56px));
}

.sort-control select {
    min-width: 210px;
}

.catalog-count-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(22, 20, 19, 0.04);
    color: var(--muted);
}

.catalog-count-pill strong {
    font-size: 1.2rem;
    color: var(--text);
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.playlist-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 250, 243, 0.88));
    box-shadow: 0 24px 56px rgba(75, 54, 25, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 28px 64px var(--card-accent-shadow, rgba(220, 139, 49, 0.14));
}

.playlist-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft), 0 28px 64px var(--card-accent-shadow, rgba(220, 139, 49, 0.14));
}

.playlist-card.selected {
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 0 0 3px var(--card-accent-soft, rgba(220, 139, 49, 0.16)), 0 28px 64px var(--card-accent-shadow, rgba(220, 139, 49, 0.14));
}

.playlist-card-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--card-accent-soft, rgba(220, 139, 49, 0.14)), rgba(255, 255, 255, 0.08)),
        linear-gradient(140deg, #4d4d4d, #1d1d1d);
}

.playlist-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.playlist-card-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.15;
}

.playlist-card-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.card-stat svg {
    width: 22px;
    height: 22px;
    color: var(--card-accent, var(--accent));
}

.card-stat div {
    display: grid;
    gap: 2px;
}

.card-stat span {
    color: var(--muted);
    font-size: 0.78rem;
}

.card-stat strong {
    font-size: 0.98rem;
}

.card-listen-link,
.card-link-disabled {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.card-link-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    white-space: nowrap;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.card-submit-btn {
    width: 100%;
    min-height: 50px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.benefit-card {
    display: grid;
    gap: 16px;
    min-height: 190px;
    align-content: start;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.public-footer {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 252, 245, 0.84);
    box-shadow: var(--shadow-lg);
}

.footer-branding {
    max-width: 28rem;
}

.footer-title {
    margin: 0;
    font-weight: 800;
}

.footer-copy {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--muted-strong);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.lang-switch-footer {
    margin-left: auto;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-shell.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 21, 19, 0.46);
    backdrop-filter: blur(8px);
    touch-action: none;
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 249, 241, 0.95));
    box-shadow: 0 34px 90px rgba(29, 21, 15, 0.24);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal-card-preview {
    padding: 28px;
}

.modal-card-submit {
    padding: 28px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    transform: scale(1.04);
}

.modal-preview-layout,
.modal-submit-layout {
    display: grid;
    gap: 22px;
}

.modal-mobile-actions {
    display: none;
}

.modal-preview-layout {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.modal-preview-player {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: #000;
    min-height: 380px;
}

.modal-preview-player iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
}

.modal-submit-layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
}

.selected-playlist-panel {
    position: sticky;
    top: 0;
    align-self: start;
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
}

.selected-playlist-copy {
    min-width: 0;
}

.selected-playlist-art {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(220, 139, 49, 0.16), rgba(24, 123, 104, 0.1)),
        linear-gradient(135deg, #5e5e5e, #232323);
    background-size: cover;
    background-position: center;
}

.selected-playlist-art span {
    color: rgba(255, 255, 255, 0.92);
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 2.5rem;
    letter-spacing: 0.06em;
}

.selected-playlist-copy h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.submission-panel {
    padding: 4px 0 0;
}

.submission-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.submission-form label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-span-2,
.privacy-note,
.submission-feedback,
#submission-button {
    grid-column: 1 / -1;
}

.submission-form textarea {
    min-height: 132px;
    resize: vertical;
}

.search-control input:focus,
.sort-control select:focus,
.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
    outline: none;
    border-color: rgba(220, 139, 49, 0.4);
    box-shadow: 0 0 0 4px rgba(220, 139, 49, 0.12);
}

.privacy-note,
.submission-feedback,
.empty-state {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(22, 20, 19, 0.08);
    background: rgba(22, 20, 19, 0.04);
    color: var(--muted);
}

.submission-feedback {
    min-height: 54px;
}

.submission-feedback.success {
    color: var(--emerald);
}

.submission-feedback.error {
    color: var(--danger);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.not-found-card {
    max-width: 720px;
    margin: 72px auto;
    text-align: center;
}

.not-found-code {
    font-size: clamp(4rem, 18vw, 8rem);
}

.not-found-cta {
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .hero-panel,
    .modal-submit-layout,
    .modal-preview-layout,
    .benefit-grid,
    .playlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-mini-card-3 {
        right: 0;
    }

    .public-footer {
        flex-wrap: wrap;
    }

    .lang-switch-footer {
        margin-left: 0;
    }
}

@media (max-width: 860px) {
    .public-topbar {
        top: 10px;
        border-radius: 24px;
        padding: 14px;
    }

    .hero-panel,
    .playlist-grid,
    .benefit-grid,
    .modal-submit-layout,
    .modal-preview-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .catalog-section,
    .trust-section,
    .modal-card-preview,
    .modal-card-submit {
        padding: 22px;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-mini-card {
        width: min(250px, calc(100% - 20px));
    }

    .hero-mini-card-1 {
        top: 0;
    }

    .hero-mini-card-2 {
        top: 78px;
    }

    .hero-mini-card-3 {
        bottom: 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .catalog-toolbar {
        align-items: stretch;
    }

    .catalog-toolbar-meta {
        width: 100%;
        justify-content: space-between;
    }

    .search-control input,
    .sort-control select {
        min-width: 0;
    }

    .submission-form {
        grid-template-columns: 1fr;
    }

    .selected-playlist-panel {
        position: static;
        top: auto;
        grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
        align-items: center;
    }

    .selected-playlist-art {
        aspect-ratio: 1 / 1;
        min-height: 108px;
    }

    .selected-playlist-copy h2 {
        margin-top: 8px;
        font-size: clamp(1.35rem, 4.8vw, 1.85rem);
    }

    .selected-playlist-copy p {
        max-width: none;
    }

    .form-span-2,
    .privacy-note,
    .submission-feedback,
    #submission-button {
        grid-column: auto;
    }

    .card-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .public-shell {
        width: min(100vw - 20px, 100%);
        padding-top: 10px;
    }

    .public-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-link {
        width: 100%;
        justify-content: center;
    }

    .lang-switch,
    .lang-switch select {
        width: 100%;
    }

    .hero-actions,
    .modal-preview-actions,
    .catalog-actions,
    .footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-tertiary,
    .card-listen-link,
    .card-submit-btn,
    #submission-button {
        width: 100%;
    }

    .modal-shell {
        padding:
            max(12px, env(safe-area-inset-top))
            max(8px, env(safe-area-inset-right))
            12px
            max(8px, env(safe-area-inset-left));
        align-items: start;
        overflow-y: auto;
    }

    .modal-card {
        width: 100%;
        margin: 0 auto;
        max-height: none;
        min-height: calc(100dvh - 24px);
        overflow: visible;
        border-radius: 30px 30px 22px 22px;
    }

    .modal-close {
        position: sticky;
        top: 0;
        right: auto;
        margin-left: auto;
        z-index: 5;
    }

    .modal-mobile-actions {
        position: sticky;
        bottom: 0;
        z-index: 6;
        display: block;
        margin: 16px -22px -22px;
        padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255, 249, 241, 0), rgba(255, 249, 241, 0.96) 28%, rgba(255, 249, 241, 0.99));
        border-top: 1px solid rgba(22, 20, 19, 0.08);
    }

    .modal-mobile-close {
        width: 100%;
        min-height: 52px;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.94);
    }

    .selected-playlist-panel {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 22px;
    }

    .selected-playlist-art {
        min-height: 78px;
        border-radius: 18px;
    }

    .selected-playlist-art span {
        font-size: 1.7rem;
    }

    .selected-playlist-copy h2 {
        font-size: 1.2rem;
        line-height: 1.08;
    }

    .selected-playlist-copy p {
        margin-top: 8px;
        font-size: 0.92rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .selected-playlist-panel .tag-row {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
