/* clipdls crafted interface */

:root {
    color-scheme: light;
    --canvas: #f3f0ee;
    --canvas-2: #ebe6e1;
    --surface: #fcfbfa;
    --surface-2: #ffffff;
    --ink: #141413;
    --ink-soft: #262627;
    --muted: #696969;
    --line: #d1cdc7;
    --line-strong: rgba(20, 20, 19, 0.24);
    --orange: #cf4500;
    --orange-soft: #f37338;
    --blue: #3860be;
    --green: #2a7a4b;
    --error: #c0392b;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.08);
    --r-sm: 6px;
    --r-btn: 20px;
    --r-card: 40px;
    --r-pill: 999px;
    --nav-h: 68px;
    --max: 780px;
    --wide: 1120px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --m3e-progress-indicator-color: var(--blue);
    --m3e-progress-indicator-track-color: var(--line);
    --m3e-loading-indicator-active-indicator-color: var(--ink);
    --m3e-loading-indicator-contained-active-indicator-color: var(--ink);
    --m3e-loading-indicator-contained-container-color: var(--canvas-2);
}

[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #11100f;
    --canvas-2: #1a1817;
    --surface: #211f1d;
    --surface-2: #2a2725;
    --ink: #f7f1ec;
    --ink-soft: #e3d9d1;
    --muted: #ada29a;
    --line: #3a3531;
    --line-strong: rgba(247, 241, 236, 0.22);
    --orange: #ff8a4c;
    --orange-soft: #ffad76;
    --blue: #8faeff;
    --green: #7ed89d;
    --error: #ff8b80;
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.28);
    --shadow-card: 0 26px 70px rgba(0, 0, 0, 0.42);
    --m3e-progress-indicator-color: var(--orange-soft);
    --m3e-progress-indicator-track-color: var(--line);
    --m3e-loading-indicator-active-indicator-color: var(--orange-soft);
    --m3e-loading-indicator-contained-active-indicator-color: var(--orange-soft);
    --m3e-loading-indicator-contained-container-color: #302822;
}

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

* {
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Sofia Sans", Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.45;
    color: var(--ink);
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        var(--canvas);
    background-size: 72px 72px, 72px 72px, auto;
    background-blend-mode: soft-light;
}

main,
footer,
.app-shell,
.hero,
.seo-support {
    max-width: 100vw;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        var(--canvas);
    background-size: 72px 72px, 72px 72px, auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue), transparent 68%);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}

/* Navigation */
.nav-pill {
    position: fixed;
    z-index: 50;
    top: 20px;
    left: 50%;
    width: min(980px, calc(100% - 32px));
    min-height: var(--nav-h);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 14px 10px 22px;
    border: 1px solid color-mix(in srgb, var(--line-strong), transparent 12%);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface-2), transparent 7%);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.nav-logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 32px;
    height: 32px;
}

.nav-wordmark,
.footer-wordmark {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--r-pill);
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.nav-links a:hover {
    background: var(--canvas-2);
    transform: translateY(-1px);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.support-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 10px;
    border: 1px solid color-mix(in srgb, var(--orange), transparent 34%);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--orange-soft), transparent 88%);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.support-link:hover {
    transform: translateY(-1px);
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange-soft), transparent 78%);
}

.support-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.theme-toggle {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(8deg);
}

.theme-toggle .moon,
[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: block;
}

/* App shell */
.app-shell {
    min-height: calc(100vh - 160px);
}

.hero {
    position: relative;
    min-height: 0;
    padding: 134px 24px clamp(52px, 8vh, 84px);
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

.hero-watermark {
    position: absolute;
    z-index: -1;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink);
    opacity: 0.04;
    font-size: clamp(76px, 15vw, 168px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow-dot,
.platform-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange-soft);
}

.hero-headline {
    width: 100%;
    max-width: 860px;
    color: var(--ink);
    font-size: clamp(42px, 8vw, 74px);
    font-weight: 500;
    line-height: 1.02;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-subheadline {
    width: 100%;
    max-width: 680px;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(17px, 2.4vw, 21px);
    font-weight: 450;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-chips {
    width: min(var(--max), 100%);
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface), transparent 18%);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.tool-stage {
    width: min(var(--max), 100%);
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seo-support {
    padding: 0 24px 68px;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.seo-support-inner {
    width: min(var(--wide), 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border-top: 1px solid var(--line-strong);
    contain: layout paint style;
}

.seo-support h2 {
    max-width: 760px;
    color: var(--ink);
    font-size: clamp(28px, 4.6vw, 44px);
    font-weight: 500;
    line-height: 1.08;
    text-wrap: balance;
}

.seo-support-intro {
    max-width: 760px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

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

.seo-support-item {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface), transparent 12%);
    contain: layout paint;
}

.seo-support-item h3 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.seo-support-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.seo-detail-layout {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 0 34px;
    border-top: 1px solid var(--line);
}

.seo-detail-block {
    min-width: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.seo-detail-block:first-child {
    grid-row: span 2;
}

.seo-detail-block h3,
.seo-faq h3 {
    color: var(--ink);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.16;
    text-wrap: balance;
}

.seo-detail-block p {
    margin-top: 10px;
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.seo-detail-block ul {
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.seo-detail-block li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.seo-detail-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.seo-faq {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.seo-faq-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.seo-faq details {
    min-width: 0;
    border-bottom: 1px solid var(--line);
}

.seo-faq summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    font-size: 18px;
    font-weight: 500;
    transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.seo-faq details[open] summary::after {
    transform: rotate(45deg);
    background: var(--ink);
    color: var(--surface);
}

.seo-faq details p {
    margin: -2px 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.related-tools {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-tools a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.related-tools a:hover {
    transform: translateY(-1px);
    background: var(--canvas-2);
}

/* URL input */
.url-input-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 24px;
    border: 1.5px solid color-mix(in srgb, var(--ink), transparent 28%);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.url-input-container:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange-soft), transparent 82%), var(--shadow-card);
    transform: translateY(-1px);
}

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

.url-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
}

.url-input::placeholder {
    color: color-mix(in srgb, var(--muted), transparent 24%);
}

.url-submit-btn,
.submit-btn,
.download-btn,
.retry-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border-radius: var(--r-btn);
    background: var(--ink);
    color: var(--canvas);
    font-size: 16px;
    font-weight: 500;
    transition: transform 180ms var(--ease), opacity 180ms var(--ease), box-shadow 180ms var(--ease);
}

.url-submit-btn:hover,
.submit-btn:hover,
.download-btn:hover,
.retry-btn:hover {
    transform: translateY(-2px);
}

.url-submit-btn:active,
.submit-btn:active,
.download-btn:active,
.retry-btn:active {
    transform: translateY(0) scale(0.98);
}

.url-submit-btn:disabled,
.submit-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.url-error {
    width: fit-content;
    max-width: min(100%, 720px);
    min-height: 0;
    margin: 12px auto 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--error);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.url-error:empty {
    display: none;
}

.url-error.is-error {
    border-color: color-mix(in srgb, var(--error), transparent 62%);
    background: color-mix(in srgb, var(--error), transparent 92%);
}

.url-error.is-warning {
    border-color: color-mix(in srgb, var(--orange), transparent 58%);
    background: color-mix(in srgb, var(--orange-soft), transparent 90%);
    color: color-mix(in srgb, var(--orange), var(--ink) 25%);
}

/* Cards and panels */
.metadata-card,
.progress-section,
.result-card,
.audio-player-wrap,
.result-preview-wrap,
.preview-panel,
.error-banner {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--line-strong), transparent 26%);
    border-radius: var(--r-card);
    background: color-mix(in srgb, var(--surface), transparent 2%);
    box-shadow: var(--shadow-card);
}

.metadata-card {
    margin-top: 10px;
    padding: 20px;
    animation: panelIn 360ms var(--ease);
    contain: layout paint;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.metadata-loading {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    color: var(--muted);
}

.metadata-loading strong,
.progress-topline strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.metadata-loading span,
.progress-topline span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 14px;
}

.metadata-content {
    display: grid;
    grid-template-columns: 212px 1fr;
    gap: 20px;
    align-items: center;
}

.metadata-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: var(--canvas-2);
}

.metadata-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metadata-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metadata-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.metadata-title {
    color: var(--ink);
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 500;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.metadata-duration {
    color: var(--muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.preview-play-btn {
    align-self: flex-start;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.preview-play-btn:hover {
    transform: translateY(-1px);
    background: var(--canvas-2);
}

.preview-panel {
    margin-top: 14px;
    overflow: hidden;
    contain: layout paint;
}

.preview-panel iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.preview-panel-close {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.preview-message {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.preview-message a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Operation controls */
.operation-section {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: panelIn 360ms var(--ease);
}

.operation-selector {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.op-pill {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface), transparent 14%);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.op-pill:hover {
    transform: translateY(-2px);
    background: var(--surface);
}

.op-pill.selected {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--canvas);
}

.chip-section {
    width: 100%;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.chip-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.chip-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.chip:hover {
    transform: translateY(-1px);
}

.chip.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

[data-theme="dark"] .chip.selected {
    color: #11100f;
}

.chip:disabled,
.chip.unavailable {
    opacity: 0.42;
    cursor: not-allowed;
    text-decoration: line-through;
}

.submit-btn {
    width: 100%;
    border-radius: var(--r-pill);
}

/* Progress */
.progress-section {
    margin-top: 16px;
    padding: 22px;
    display: grid;
    gap: 16px;
    animation: panelIn 360ms var(--ease);
    contain: layout paint;
}

.progress-topline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.progress-section m3e-linear-progress {
    width: 100%;
    --m3e-linear-progress-indicator-thickness: 0.55rem;
    --m3e-linear-progress-indicator-shape: 999px;
    --m3e-linear-wavy-progress-indicator-amplitude: 0.18rem;
    --m3e-linear-wavy-progress-indicator-wavelength: 2.3rem;
}

.progress-percent {
    min-width: 48px;
    justify-self: end;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--canvas-2);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.progress-stages {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.stage {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--canvas-2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stage.active {
    background: color-mix(in srgb, var(--blue), transparent 84%);
    color: var(--blue);
}

.stage.done {
    background: color-mix(in srgb, var(--green), transparent 84%);
    color: var(--green);
}

.stage-divider {
    height: 1px;
    background: var(--line);
}

/* Result */
.result-section {
    width: 100%;
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.result-card {
    padding: 24px;
    display: grid;
    gap: 18px;
    animation: panelIn 360ms var(--ease);
    contain: layout paint;
}

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

.badge-ready {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--green), transparent 84%);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.result-size {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.download-btn {
    width: 100%;
    min-height: 58px;
    border-radius: var(--r-pill);
}

.timer-section {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 6px 0 2px;
}

.timer-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.timer-display {
    color: var(--ink);
    font-size: clamp(38px, 8vw, 54px);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-display.warning,
.timer-display.critical {
    color: var(--orange);
}

.timer-display.critical {
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.result-actions button {
    min-height: 38px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.result-preview-wrap,
.audio-player-wrap {
    overflow: hidden;
    contain: layout paint;
}

.result-preview-player {
    width: 100%;
    max-height: 420px;
    background: #000;
}

/* Audio player */
.eq-header {
    padding: 20px 20px 0;
    background: var(--ink);
}

.eq-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.eq-file-label {
    padding-bottom: 7px;
    color: color-mix(in srgb, var(--canvas), transparent 40%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.eq-bars-idle {
    height: 52px;
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.eq-bar {
    flex: 1;
    min-width: 3px;
    height: 5px;
    border-radius: 3px 3px 0 0;
    background: var(--orange-soft);
    transform-origin: bottom;
    animation: eqWave var(--eq-dur, 0.8s) ease-in-out infinite alternate;
    animation-play-state: paused;
}

.eq-bar:nth-child(3n) { --eq-dur: 0.58s; }
.eq-bar:nth-child(4n) { --eq-dur: 0.82s; }
.eq-bar:nth-child(5n) { --eq-dur: 0.96s; }

.eq-bars-idle.playing .eq-bar {
    animation-play-state: running;
}

@keyframes eqWave {
    from { height: 5px; opacity: 0.55; }
    to { height: 42px; opacity: 1; }
}

.eq-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 18px;
    background: var(--surface);
}

.eq-pp-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--canvas);
}

.eq-seek-wrap {
    flex: 1;
    display: grid;
    gap: 7px;
}

.eq-seek-rail {
    position: relative;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--line);
    cursor: pointer;
}

.eq-seek-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: var(--orange-soft);
}

.eq-seek-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange-soft);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.eq-seek-rail:hover .eq-seek-thumb {
    opacity: 1;
}

.eq-time-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Error */
.error-section {
    width: 100%;
    margin-top: 14px;
}

.error-banner {
    min-height: 72px;
    padding: 14px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    border-color: color-mix(in srgb, var(--error), transparent 55%);
    background: color-mix(in srgb, var(--error), transparent 90%);
    color: var(--ink);
    box-shadow: none;
}

.error-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--error);
    color: var(--canvas);
    font-weight: 700;
}

.error-text {
    color: var(--ink);
    font-weight: 700;
}

.retry-btn {
    min-height: 42px;
    padding: 0 18px;
    background: transparent;
    border: 1.5px solid var(--error);
    color: var(--error);
}

/* Scrubber */
.clip-section {
    width: 100%;
}

.scrubber-wrapper {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-card);
    background: var(--surface);
    user-select: none;
}

.scrubber-track {
    position: relative;
    width: 100%;
    height: 52px;
    overflow: visible;
    border-radius: var(--r-pill);
    background: var(--canvas-2);
    cursor: pointer;
    --start-pct: 0%;
    --end-pct: 100%;
}

.scrubber-shade-left,
.scrubber-shade-right {
    position: absolute;
    top: 0;
    height: 100%;
    background: color-mix(in srgb, var(--ink), transparent 88%);
    pointer-events: none;
}

.scrubber-shade-left {
    left: 0;
    width: var(--start-pct);
    border-radius: var(--r-pill) 0 0 var(--r-pill);
}

.scrubber-shade-right {
    right: 0;
    left: var(--end-pct);
    width: calc(100% - var(--end-pct));
    border-radius: 0 var(--r-pill) var(--r-pill) 0;
}

.scrubber-highlight {
    position: absolute;
    top: 0;
    left: var(--start-pct);
    width: calc(var(--end-pct) - var(--start-pct));
    height: 100%;
    border: 2px solid var(--orange-soft);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--orange-soft), transparent 76%);
    pointer-events: none;
}

.scrubber-handle {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 30px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--surface-2);
    transform: translate(-50%, -50%);
    cursor: grab;
    touch-action: none;
}

.scrubber-handle-start { left: var(--start-pct); }
.scrubber-handle-end { left: var(--end-pct); }

.scrubber-handle:active {
    cursor: grabbing;
}

.sh-grip {
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.scrubber-controls {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 12px;
}

.scrubber-field {
    display: grid;
    gap: 6px;
}

.scrubber-field-end {
    justify-items: end;
}

.scrubber-field-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.scrubber-time-input {
    width: 112px;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--canvas);
    color: var(--ink);
    text-align: center;
    outline: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.scrubber-time-input:focus {
    border-color: var(--ink);
}

.scrubber-duration-badge {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Footer and legal */
.footer {
    padding: 26px 24px 42px;
    content-visibility: auto;
    contain-intrinsic-size: 240px;
}

.footer-inner {
    width: min(var(--wide), 100%);
    margin: 0 auto;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-radius: var(--r-card);
    background: var(--ink);
    color: var(--canvas);
}

.footer-brand {
    align-items: flex-start;
    max-width: 420px;
    flex-direction: column;
}

.footer-brand p {
    max-width: 100%;
    color: color-mix(in srgb, var(--canvas), transparent 30%);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-content: center;
}

.footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--canvas), transparent 72%);
    border-radius: var(--r-pill);
    color: color-mix(in srgb, var(--canvas), transparent 12%);
    font-size: 13px;
    font-weight: 700;
}

.legal-page {
    min-height: 100vh;
    padding: 132px 24px 76px;
}

.legal-hero,
.legal-shell {
    width: min(var(--wide), 100%);
    margin: 0 auto;
}

.legal-hero {
    padding: clamp(24px, 5vw, 44px);
    text-align: center;
}

.legal-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
    padding: clamp(22px, 4vw, 34px) 0 0;
    border-top: 1px solid var(--line-strong);
}

.legal-index {
    position: sticky;
    top: 104px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface), transparent 8%);
    contain: layout paint style;
}

.legal-index span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-index a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.section-title {
    max-width: 780px;
    margin: 0 auto;
    color: var(--ink);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    text-align: center;
}

.legal-intro {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
}

.legal-meta-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-meta-row span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface), transparent 8%);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.legal-summary-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

.legal-summary-item {
    min-width: 0;
    padding: 18px;
    border-top: 1px solid var(--line-strong);
}

.legal-summary-item h2 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.legal-summary-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.legal-list {
    display: grid;
    gap: 0;
    min-width: 0;
}

.legal-block {
    padding: 0 0 30px;
    border-bottom: 1px solid var(--line);
    contain: layout paint;
}

.legal-block + .legal-block {
    padding-top: 30px;
}

.legal-block h2 {
    color: var(--ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.16;
    text-wrap: balance;
}

.legal-block p {
    margin-top: 10px;
    color: var(--muted);
    max-width: 72ch;
    line-height: 1.6;
}

.legal-block ul {
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.legal-block li {
    position: relative;
    max-width: 74ch;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.legal-block li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.tools-grid {
    margin-top: 30px;
    display: grid;
    gap: 14px;
}

.tool-index-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-index-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.tool-index-links a:hover {
    transform: translateY(-1px);
    background: var(--canvas-2);
}

/* Motion boot */
.nav-pill,
.section-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-chips,
.tool-stage {
    opacity: 1;
}

body.motion-ready .nav-pill {
    animation: navIn 520ms var(--ease) forwards;
}

body.motion-ready .section-eyebrow {
    animation: riseIn 560ms var(--ease) 60ms forwards;
}

body.motion-ready .hero-headline {
    animation: riseIn 620ms var(--ease) 120ms forwards;
}

body.motion-ready .hero-subheadline {
    animation: riseIn 620ms var(--ease) 190ms forwards;
}

body.motion-ready .hero-chips {
    animation: riseIn 620ms var(--ease) 260ms forwards;
}

body.motion-ready .tool-stage {
    animation: riseIn 680ms var(--ease) 330ms forwards;
}

@keyframes navIn {
    from { transform: translateX(-50%) translateY(-10px) scale(0.99); }
    to { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes riseIn {
    from { transform: translateY(14px); }
    to { transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-pill {
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-content: initial;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 64px;
    }

    .metadata-content {
        grid-template-columns: 1fr;
    }

    .seo-support-grid {
        grid-template-columns: 1fr;
    }

    .seo-detail-layout,
    .seo-faq-list {
        grid-template-columns: 1fr;
    }

    .seo-detail-block:first-child {
        grid-row: auto;
    }

    .metadata-thumb-wrap {
        border-radius: 28px;
    }

    .operation-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .legal-shell {
        grid-template-columns: 1fr;
    }

    .legal-index {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .legal-index span {
        width: 100%;
        margin-bottom: 0;
    }

    .legal-index a {
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid var(--line-strong);
        border-radius: var(--r-pill);
        background: var(--surface);
    }

    .legal-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --shadow-soft: 0 3px 16px rgba(0, 0, 0, 0.04);
        --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.07);
    }

    [data-theme="dark"] {
        --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.24);
        --shadow-card: 0 16px 42px rgba(0, 0, 0, 0.34);
    }

    body {
        background-size: 48px 48px, 48px 48px, auto;
    }

    .nav-pill {
        top: 12px;
        left: 50%;
        width: min(calc(100vw - 20px), 372px);
        transform: translateX(-50%);
        min-height: 58px;
        gap: 8px;
        padding: 8px 8px 8px 12px;
        backdrop-filter: none;
    }

    body.motion-ready .nav-pill {
        animation: mobileNavIn 520ms var(--ease) forwards;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        gap: 2px;
        padding-inline: 2px;
    }

    .nav-links a {
        min-height: 38px;
        padding: 0 9px;
        font-size: 13px;
    }

    .nav-actions {
        gap: 4px;
    }

    .support-link {
        min-height: 38px;
        width: 38px;
        justify-content: center;
        gap: 0;
        padding: 0;
    }

    .support-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .support-mark {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .nav-wordmark {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: auto;
        padding: 104px 14px 44px;
        align-items: stretch;
        width: 100%;
    }

    .section-eyebrow {
        margin-bottom: 14px;
    }

    .hero-headline {
        width: min(100%, calc(100vw - 28px), 362px);
        font-size: clamp(34px, 10.5vw, 40px);
        line-height: 1.08;
        max-width: 362px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subheadline {
        width: min(100%, calc(100vw - 28px), 362px);
        margin-top: 16px;
        max-width: 362px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-chips {
        width: min(100%, calc(100vw - 28px), 362px);
        max-width: 362px;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        justify-content: flex-start;
    }

    .hero-chips span {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .tool-stage {
        width: min(100%, calc(100vw - 28px), 362px);
        max-width: 362px;
        margin-top: 24px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }

    .seo-support {
        padding: 0 14px 44px;
    }

    .seo-support-inner {
        width: min(100%, calc(100vw - 28px), 362px);
        max-width: 362px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 0 0;
    }

    .seo-support h2 {
        font-size: 30px;
    }

    .seo-support-intro {
        font-size: 16px;
    }

    .seo-detail-layout {
        margin-top: 26px;
    }

    .seo-detail-block {
        padding: 20px 0;
    }

    .seo-detail-block h3,
    .seo-faq h3 {
        font-size: 22px;
    }

    .seo-detail-block p,
    .seo-detail-block li,
    .seo-faq details p {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .seo-faq {
        margin-top: 26px;
        padding-top: 22px;
    }

    .seo-faq summary {
        min-height: 54px;
        gap: 12px;
        font-size: 14px;
    }

    .seo-support-item {
        padding: 18px;
    }

    .related-tools a {
        min-height: 36px;
        font-size: 13px;
    }

    .url-input-container {
        width: 100%;
        max-width: min(362px, calc(100vw - 28px));
        min-width: 0;
        min-height: 60px;
        grid-template-columns: 1fr 48px;
        gap: 6px;
        padding: 6px 6px 6px 16px;
        border-radius: 30px;
    }

    .url-input {
        min-width: 0;
        height: 46px;
        font-size: 15px;
    }

    .url-submit-btn {
        width: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 50%;
    }

    .url-submit-btn span {
        display: none;
    }

    .metadata-card,
    .progress-section,
    .result-card,
    .audio-player-wrap,
    .result-preview-wrap,
    .preview-panel,
    .error-banner,
    .scrubber-wrapper {
        border-radius: 28px;
    }

    .metadata-card,
    .result-card,
    .progress-section {
        padding: 16px;
    }

    .operation-selector {
        gap: 8px;
    }

    .op-pill {
        min-height: 52px;
        font-size: 14px;
    }

    .chip-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chip {
        width: 100%;
        min-height: 42px;
    }

    .progress-stages {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .progress-topline {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .progress-percent {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-width: 0;
    }

    .stage-divider {
        display: none;
    }

    .error-banner {
        grid-template-columns: 34px 1fr;
    }

    .retry-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .scrubber-controls {
        grid-template-columns: 1fr 1fr;
    }

    .scrubber-duration-badge {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .scrubber-time-input {
        width: 100%;
    }

    .footer {
        padding: 18px 14px 32px;
    }

    .footer-inner {
        width: min(100%, calc(100vw - 28px), 362px);
        max-width: 362px;
        margin-left: auto;
        margin-right: auto;
        padding: 22px;
        border-radius: 30px;
        overflow: hidden;
    }

    .legal-page {
        padding: 104px 14px 44px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .legal-hero,
    .legal-shell {
        width: min(100%, calc(100vw - 28px), 362px);
        max-width: 362px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .legal-hero {
        padding: 18px 0 0;
    }

    .legal-shell {
        padding-top: 24px;
        gap: 24px;
    }

    .legal-intro {
        font-size: 16px;
        text-align: center;
        text-wrap: auto;
        overflow-wrap: anywhere;
    }

    .legal-meta-row {
        justify-content: flex-start;
    }

    .legal-meta-row span {
        min-height: 34px;
        font-size: 12px;
    }

    .legal-summary-grid {
        margin-top: 22px;
        gap: 0;
        border-top: 1px solid var(--line);
    }

    .legal-summary-item {
        padding: 16px 0;
        border-top: 0;
        border-bottom: 1px solid var(--line);
    }

    .legal-index {
        max-height: none;
        overflow: visible;
    }

    .legal-index a {
        font-size: 13px;
    }

    .legal-list,
    .tools-grid,
    .tool-index-links,
    .legal-block {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .legal-block {
        padding-bottom: 24px;
    }

    .legal-block + .legal-block {
        padding-top: 24px;
    }

    .legal-block h2,
    .legal-block p,
    .legal-block li {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    .nav-pill {
        gap: 4px;
        padding: 7px 7px 7px 10px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .nav-links a {
        min-height: 36px;
        padding: 0 6px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .support-link {
        width: 36px;
        min-height: 36px;
    }

    .hero {
        padding-inline: 12px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 15px;
    }

    .hero-chips span,
    .chip,
    .related-tools a,
    .footer-links a {
        font-size: 12px;
    }

    .url-input-container {
        grid-template-columns: 1fr 46px;
        padding-left: 14px;
    }

    .url-submit-btn {
        width: 46px;
        min-height: 46px;
    }

    .seo-support h2 {
        font-size: 27px;
    }
}

@media (hover: none) {
    .nav-links a:hover,
    .theme-toggle:hover,
    .url-submit-btn:hover,
    .submit-btn:hover,
    .download-btn:hover,
    .retry-btn:hover,
    .preview-play-btn:hover,
    .op-pill:hover,
    .chip:hover,
    .support-link:hover,
    .related-tools a:hover,
    .tool-index-links a:hover {
        transform: none;
    }
}

@keyframes mobileNavIn {
    from { transform: translateX(-50%) translateY(-10px) scale(0.99); }
    to { transform: translateX(-50%) translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }

    .nav-pill,
    .section-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-chips,
    .tool-stage {
        opacity: 1 !important;
        transform: none !important;
    }
}
