/* Native 600 px, Arial, black/white/red identity; no external font or icon requests. */
:root {
    color-scheme: light;
    --ym-width: 600px;
    --ym-canvas: #ffffff;
    --ym-surface: #ffffff;
    --ym-soft: #f7f7f8;
    --ym-ink: #171719;
    --ym-muted: #55585f;
    --ym-line: #dedfe3;
    --ym-red: #c62828;
    --ym-red-soft: #fff1f1;
    --ym-shadow: 0 6px 18px rgb(0 0 0 / 6%);
}
html[data-ym-appearance="dark"] {
    color-scheme: dark;
    --ym-canvas: #131416;
    --ym-surface: #1e2024;
    --ym-soft: #272a2f;
    --ym-ink: #f1f2f4;
    --ym-muted: #c4c6cc;
    --ym-line: #42464d;
    --ym-red: #ff9b9b;
    --ym-red-soft: #342127;
    --ym-shadow: 0 6px 18px rgb(0 0 0 / 15%);
}
body {
    background-color: var(--ym-canvas);
    background-image: linear-gradient(#000000 200px, var(--ym-canvas) 200px);
    color: var(--ym-ink);
    font-family: Arial, sans-serif;
}
.ym-primary-nav, .ym-header-actions, .ym-language, .ym-language-menu,
.ym-theme-toggle, .search-form, .search-form *, .ym-landing *,
.ym-blog *, .ym-blog-article *, .ym-related, .ym-related *,
.ym-pagination, #footer {
    box-sizing: border-box;
}
.ym-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    vertical-align: middle;
}
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
.ym-primary-nav a:focus-visible, .ym-header-actions a:focus-visible,
.ym-header-actions summary:focus-visible, .ym-header-actions button:focus-visible,
.search-form input:focus-visible, .search-form button:focus-visible,
#text a:focus-visible, #text button:focus-visible, #text summary:focus-visible,
.ym-related a:focus-visible, .ym-related button:focus-visible, #footer a:focus-visible {
    outline: 3px solid var(--ym-red);
    outline-offset: 3px;
}
.search-form input[type="text"]:focus {
    border-color: var(--ym-red);
    outline: 2px solid var(--ym-red);
    outline-offset: 2px;
}
.ym-skip {
    position: fixed;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    z-index: 200;
    padding: 12px 16px;
    background: #ffffff;
    color: #171719;
    border: 2px solid #c62828;
    border-radius: 6px;
    transform: translateY(-160%);
}
.ym-skip:focus { transform: translateY(0); }
#header {
    direction: ltr;
    position: relative;
    z-index: 30;
    width: calc(100% - 32px);
    max-width: var(--ym-width);
    min-height: 64px;
    padding-top: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ym-primary-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
html[dir="rtl"] .ym-primary-nav,
html[dir="rtl"] .ym-language > summary { direction: rtl; }
#header .ym-primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    line-height: 1.35;
    font-size: 14px;
    color: #f1f2f4;
}
#header .ym-primary-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ym-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-inline-start: auto;
    flex: 0 0 auto;
}
.ym-language { position: relative; font-size: 14px; }
.ym-language > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    max-width: 185px;
    padding: 10px 12px;
    border: 1px solid #505057;
    border-radius: 8px;
    color: #ffffff;
    background: #151516;
    cursor: pointer;
    list-style: none;
}
.ym-language > summary::-webkit-details-marker { display: none; }
.ym-language > summary::marker { content: ""; }
.ym-language > summary span { overflow-wrap: anywhere; }
.ym-language > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    margin-block-end: 4px;
}
.ym-language[open] > summary::after { transform: rotate(225deg); margin-block-end: 0; }
.ym-language-menu {
    position: absolute;
    z-index: 40;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    width: 270px;
    max-width: calc(100vw - 32px);
    max-height: 420px;
    max-height: min(420px, 65vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: 6px;
    border: 1px solid var(--ym-line);
    border-radius: 12px;
    background: var(--ym-surface);
    box-shadow: 0 12px 35px rgb(0 0 0 / 20%);
    scrollbar-width: thin;
}
#header .ym-language-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--ym-ink);
    background: transparent;
    line-height: 1.4;
}
#header .ym-language-menu a:hover { background: var(--ym-soft); }
#header .ym-language-menu a[aria-current="page"] {
    background: var(--ym-red-soft);
    color: var(--ym-red);
    font-weight: 700;
}
.ym-language-code { font-size: 11px; letter-spacing: .07em; opacity: .8; }
.ym-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: #151516;
    border: 1px solid #505057;
    border-radius: 8px;
    cursor: pointer;
}
.ym-theme-toggle:hover, .ym-language > summary:hover { background: #29292d; }
.ym-theme-toggle .ym-sun { display: none; }
html[data-ym-appearance="dark"] .ym-theme-toggle .ym-moon { display: none; }
html[data-ym-appearance="dark"] .ym-theme-toggle .ym-sun { display: inline-block; }
#logo { margin: 30px auto 38px; padding: 0; background: none; }
#logo a { display: inline-flex; align-items: center; min-height: 44px; }
#logo img { display: block; width: 192px; height: 38px; max-width: 100%; }
.search-form {
    position: relative;
    z-index: 10;
    width: calc(100% - 32px);
    max-width: var(--ym-width);
    padding: 20px;
    color: var(--ym-ink);
    background: var(--ym-surface);
    border: 1px solid var(--ym-line);
    border-radius: 8px;
    box-shadow: var(--ym-shadow);
}
.search-form > div:first-child { white-space: normal; text-overflow: clip; line-height: 1.5; }
.search-form label { display: block; font-size: 15px; font-weight: 700; }
.search-form div.ym-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 14px;
    align-items: start;
}
.search-form .input { width: auto; min-width: 0; }
.search-form input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    padding-inline-end: 98px;
    font-size: 16px;
    border-color: var(--ym-line);
    color: var(--ym-ink);
    background: var(--ym-soft);
}
.search-form input[type="text"]::placeholder { color: var(--ym-muted); opacity: 1; }
.search-form input[type="submit"] {
    width: auto;
    min-width: 96px;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    color: #ffffff;
    background: #121212;
    font-size: 16px;
    font-weight: 700;
}
.search-form input[type="submit"]:hover { background: #343438; }
.ym-paste {
    position: absolute;
    inset-inline-end: 3px;
    inset-block-start: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 88px;
    height: 44px;
    padding: 0 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ym-ink);
    background: var(--ym-surface);
    border: 1px solid var(--ym-line);
    border-radius: 4px;
    cursor: pointer;
}
.ym-paste span { white-space: normal; overflow-wrap: anywhere; }
.ym-paste:hover { background: var(--ym-red-soft); color: var(--ym-red); }
.ym-paste:disabled { cursor: wait; opacity: .65; }
.search-form p.ym-form-status { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ym-muted); }
.search-form p.ym-form-status[hidden] { display: none; }
.search-form .suggest-results { color: var(--ym-ink); background: var(--ym-surface); border: 1px solid var(--ym-line); }
.search-form .suggest-results li { min-height: 36px; padding: 9px 12px; line-height: 1.3; }
.search-form .suggest-results li:hover, .search-form .suggest-results li.active { background: var(--ym-soft); }
#text.ym-landing, #text.ym-blog, #text.ym-blog-article {
    width: calc(100% - 32px);
    max-width: var(--ym-width);
    margin: 36px auto 40px;
    padding: 0;
    background: transparent;
}
#text.ym-landing h1, #text.ym-blog h1, #text.ym-blog-article h1 {
    color: var(--ym-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
#text.ym-landing h1 { text-align: center; }
#text.ym-blog-article h1 { text-align: start; margin: 22px 0; }
#text.ym-landing h2, #text.ym-blog h2, #text.ym-blog-article h2, .ym-related h2 {
    margin: 0 0 16px;
    color: var(--ym-ink);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}
#text.ym-landing h3, #text.ym-blog h3, #text.ym-blog-article h3 { color: var(--ym-ink); }
#text.ym-landing p, #text.ym-blog p, #text.ym-blog-article p {
    color: var(--ym-muted);
    font-size: 15px;
    line-height: 1.75;
    text-align: start;
    margin: 14px 0 0;
    overflow-wrap: anywhere;
}
#text.ym-landing a, #text.ym-blog a, #text.ym-blog-article a { color: var(--ym-ink); text-underline-offset: 3px; }
#text .ym-intro p { margin-top: 20px; width: 100%; max-width: none; }
#text .ym-intro a { font-weight: 700; }
.ym-landing > section, .ym-landing > div.ym-prose, .ym-landing > nav.ym-tools { margin-top: 32px; }
.ym-panel {
    padding: 20px;
    background: var(--ym-surface);
    border: 1px solid var(--ym-line);
    border-radius: 12px;
}
#text .ym-trending > h2, .ym-related > h2 {
    padding-inline-start: 12px;
    border-inline-start: 3px solid var(--ym-red);
}
.ym-song-list, .ym-related-list { display: flex; flex-direction: column; gap: 10px; }
.ym-song {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--ym-line);
    border-radius: 8px;
    background: var(--ym-soft);
}
.ym-song > img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 5px; background: var(--ym-line); }
.ym-song > div { min-width: 0; }
#text .ym-song h3, .ym-related .ym-song h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
#text .ym-song h3 a, .ym-related .ym-song h3 a { color: var(--ym-ink); text-decoration: none; }
#text .ym-song h3 a:hover, .ym-related .ym-song h3 a:hover { text-decoration: underline; }
.ym-song > div > span { display: block; color: var(--ym-muted); font-size: 12px; line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }
#text a.ym-download, .ym-related a.ym-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
    border: 1px solid #b62020;
    border-radius: 7px;
    color: #ffffff;
    background: #c62828;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
#text a.ym-download:hover, .ym-related a.ym-download:hover { background: #a51f1f; border-color: #a51f1f; }
.ym-download .ym-icon { width: 18px; height: 18px; flex-basis: 18px; }
.ym-related { width: 100%; max-width: var(--ym-width); margin: 28px auto; }
.ym-related h2 { font-size: 20px; }
.ym-related .ym-related-song { grid-template-columns: 80px minmax(0, 1fr) auto; }
.ym-related-song > img { width: 80px; height: 45px; border-radius: 6px; }
.ym-related-list > p { margin: 0; color: var(--ym-muted); font-size: 14px; line-height: 1.6; }
.ym-retry { align-self: flex-start; min-height: 44px; padding: 10px 16px; font: inherit; color: var(--ym-ink); background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: 6px; cursor: pointer; }
.ym-retry:hover { border-color: var(--ym-red); }
.ym-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ym-steps > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    background: var(--ym-surface);
    border: 1px solid var(--ym-line);
    border-radius: 10px;
}
.ym-step-heading { display: flex; align-items: center; gap: 10px; }
.ym-step-heading .ym-step-number { position: static; flex: 0 0 28px; width: 28px; height: 28px; }
.ym-live-preview { margin: 4px 0 0; overflow: hidden; border: 1px solid var(--ym-line); border-radius: 7px; background: #ffffff; }
.ym-howto-image { display: block; width: 100%; height: auto; }
.ym-step-preview {
    position: relative;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 36px 12px 14px;
    border: 1px solid #e3e3e6;
    border-radius: 7px;
    background: #f8f8fa;
    color: #171719;
    overflow: hidden;
}
.ym-step-number {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #c62828;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}
.ym-preview-search { width: 100%; display: grid; gap: 7px; font-size: 10px; text-align: start; }
.ym-preview-search > span { color: #c62828; font-weight: 700; font-size: 16px; }
.ym-preview-search > div { padding: 8px 6px; color: #55585f; border: 1px solid #dedfe3; border-radius: 4px; background: #ffffff; }
.ym-preview-search > b { padding: 7px; border-radius: 4px; background: #171719; color: #ffffff; text-align: center; }
.ym-preview-options { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ym-preview-options > div { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px; background: #ffffff; border: 1px solid #dedfe3; border-radius: 6px; font-size: 12px; }
.ym-preview-options .ym-icon { color: #c62828; width: 24px; height: 24px; }
.ym-preview-save { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; font-size: 12px; }
.ym-preview-save > .ym-icon { width: 27px; height: 27px; color: #c62828; }
.ym-preview-save > strong { padding: 8px 14px; border-radius: 4px; color: #ffffff; background: #c62828; }
.ym-preview-progress { width: 78%; height: 5px; background: #dedfe3; border-radius: 3px; }
.ym-preview-progress::before { content: ""; display: block; width: 65%; height: 100%; border-radius: inherit; background: #c62828; }
#text .ym-steps h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.4; }
#text .ym-steps p { margin: 0; font-size: 14px; line-height: 1.65; }
.ym-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ym-feature-grid > article { padding: 16px; background: var(--ym-soft); border: 1px solid var(--ym-line); border-radius: 10px; }
.ym-feature-grid > article > .ym-icon { color: var(--ym-red); width: 24px; height: 24px; }
#text .ym-feature-grid h3 { font-size: 15px; line-height: 1.4; margin: 12px 0 0; overflow-wrap: anywhere; }
#text .ym-feature-grid p { font-size: 13px; line-height: 1.65; margin-top: 8px; }
.ym-prose section { padding: 24px 0; border-top: 1px solid var(--ym-line); }
#text .ym-prose h2 { margin-bottom: 0; }
.ym-faq > details { margin-top: 10px; border: 1px solid var(--ym-line); border-radius: 8px; background: var(--ym-surface); }
.ym-faq summary {
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    padding-inline-end: 42px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ym-ink);
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}
.ym-faq summary::-webkit-details-marker { display: none; }
.ym-faq summary::marker { content: ""; }
.ym-faq summary::before, .ym-faq summary::after { content: ""; position: absolute; inset-inline-end: 17px; width: 12px; height: 2px; background: var(--ym-red); }
.ym-faq summary::after { transform: rotate(90deg); }
.ym-faq details[open] > summary::after { display: none; }
.ym-faq details[open] > summary { border-bottom: 1px solid var(--ym-line); }
#text .ym-faq details > p { margin: 0; padding: 14px 16px; font-size: 14px; }
.ym-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
#text .ym-section-head h2 { margin-bottom: 0; }
#text .ym-section-head > a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; font-size: 12px; line-height: 1.4; color: var(--ym-red); font-weight: 700; }
.ym-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.ym-latest .ym-blog-grid { margin-top: 0; }
.ym-blog-card { border: 1px solid var(--ym-line); border-radius: 9px; background: var(--ym-surface); overflow: hidden; }
#text .ym-blog-link { display: flex; gap: 16px; padding: 12px; color: var(--ym-ink); text-decoration: none; min-height: 108px; }
.ym-blog-link > img { display: block; flex: 0 0 148px; width: 148px; height: 83px; object-fit: cover; border-radius: 5px; background: var(--ym-line); }
.ym-blog-card-body { min-width: 0; align-self: center; }
.ym-read-time { display: inline-block; color: var(--ym-muted); font-size: 12px; line-height: 1.5; }
#text .ym-blog-card h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ym-blog-card:hover { border-color: var(--ym-red); }
.ym-blog-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.ym-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ym-tools > h2 { grid-column: 1 / -1; }
#text .ym-tools > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px; font-size: 13px; line-height: 1.4; border: 1px solid var(--ym-line); border-radius: 7px; text-decoration: none; background: var(--ym-surface); }
#text .ym-tools > a:hover { border-color: var(--ym-red); background: var(--ym-red-soft); }
.ym-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
#text .ym-pagination > a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ym-line); border-radius: 6px; text-decoration: none; background: var(--ym-surface); }
#text .ym-pagination > a[aria-current="page"] { color: #ffffff; background: #c62828; border-color: #c62828; font-weight: 700; }
.ym-breadcrumb { display: flex; gap: 10px; margin-bottom: 18px; color: var(--ym-muted); font-size: 13px; }
.ym-featured-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: var(--ym-soft); margin-bottom: 14px; }
.ym-article-body { margin-top: 18px; }
#text .ym-article-body p { color: var(--ym-ink); font-size: 16px; }
#text .ym-article-body h2 { margin-top: 28px; font-size: 22px; }
#text .ym-article-body h3 { margin-top: 24px; font-size: 18px; line-height: 1.4; }
.ym-article-body ul, .ym-article-body ol { padding-inline-start: 24px; color: var(--ym-ink); font-size: 16px; line-height: 1.75; }
.ym-article-body li { margin-block: 8px; }
.ym-blog-article > .ym-latest { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--ym-line); }
/* Small, content-led differences; every tool stays in the same native-width column. */
.ym-variant-mp3juice .ym-feature-grid { grid-template-columns: 1fr; }
.ym-variant-mp3juice .ym-feature-grid > article { border-inline-start: 3px solid var(--ym-red); }
.ym-variant-mp3juice .ym-intro { border-bottom: 2px solid var(--ym-red); padding-bottom: 22px; }
.ym-variant-ytmp3 .ym-prose > section:first-child { padding: 20px; border: 1px solid var(--ym-line); border-radius: 10px; background: var(--ym-soft); }
.ym-variant-ytmp3 .ym-feature-grid > article { border-top: 3px solid var(--ym-red); }
.ym-variant-tubidy .ym-steps > li { border-radius: 16px; }
.ym-variant-tubidy .ym-feature-grid > article { background: var(--ym-surface); border-inline-start: 3px solid var(--ym-red); }
.ym-variant-youtube-to-mp3 .ym-feature-grid > article { border: 0; border-bottom: 3px solid var(--ym-red); border-radius: 6px; }
.ym-variant-youtube-to-mp3 .ym-intro h1 { text-decoration: underline; text-decoration-color: var(--ym-red); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.ym-variant-youtube-to-mp4 .ym-step-preview { border-top: 6px solid #171719; border-bottom: 6px solid #171719; }
.ym-variant-youtube-to-mp4 .ym-feature-grid > article { background: var(--ym-surface); border: 2px solid var(--ym-line); }
.ym-variant-youtube-downloader .ym-feature-grid { grid-template-columns: 1fr; }
.ym-variant-youtube-downloader .ym-feature-grid > article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; }
.ym-variant-youtube-downloader .ym-feature-grid > article > .ym-icon { grid-row: 1 / 3; }
#text.ym-variant-youtube-downloader .ym-feature-grid h3, #text.ym-variant-youtube-downloader .ym-feature-grid p { margin: 0; }
.ym-variant-youtube-downloader .ym-prose > section { border-top-style: dashed; }
#footer { flex-wrap: wrap; align-items: center; gap: 6px 16px; width: calc(100% - 32px); max-width: var(--ym-width); padding: 14px 0; border-color: var(--ym-line); }
#footer a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; color: var(--ym-muted); font-size: 12px; line-height: 1.5; }
#footer a:hover { color: var(--ym-ink); text-decoration: underline; }
html[data-ym-appearance="dark"] #text:not(.ym-landing):not(.ym-blog):not(.ym-blog-article) { background-color: var(--ym-surface); color: var(--ym-ink); }
html[data-ym-appearance="dark"] #text:not(.ym-landing):not(.ym-blog):not(.ym-blog-article) h1,
html[data-ym-appearance="dark"] #text:not(.ym-landing):not(.ym-blog):not(.ym-blog-article) h2,
html[data-ym-appearance="dark"] #text:not(.ym-landing):not(.ym-blog):not(.ym-blog-article) p,
html[data-ym-appearance="dark"] #text:not(.ym-landing):not(.ym-blog):not(.ym-blog-article) a { color: var(--ym-ink); }
html[data-ym-appearance="dark"] .convert-iframe { background: var(--ym-soft); }
html[data-ym-appearance="dark"] #collapse .opener { color: var(--ym-ink); background: var(--ym-soft); border-color: var(--ym-line); }
html[data-ym-appearance="dark"] #collapse .opener + div,
html[data-ym-appearance="dark"] #collapse .opener + div a { color: var(--ym-muted); }
@media (max-width: 560px) {
    body { background-image: linear-gradient(#000000 224px, var(--ym-canvas) 224px); }
    #header { flex-wrap: wrap; padding-top: 10px; gap: 4px; }
    .ym-header-actions { order: -1; width: 100%; }
    .ym-primary-nav { display: grid; grid-template-columns: 1fr 1.5fr 1fr; width: 100%; gap: 8px; }
    #header .ym-primary-nav a { justify-content: center; text-align: center; font-size: 14px; }
    #logo { margin: 24px auto 28px; }
    .ym-feature-grid { grid-template-columns: 1fr; }
    .ym-feature-grid > article { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 12px; padding: 16px; }
    .ym-feature-grid > article > .ym-icon { grid-row: 1 / 3; }
    #text .ym-feature-grid h3, #text .ym-feature-grid p { margin: 0; }
}
@media (max-width: 480px) {
    .search-form { padding: 16px; }
    .search-form div.ym-search-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .search-form input[type="submit"] { width: 100%; }
    #text.ym-landing h1, #text.ym-blog h1, #text.ym-blog-article h1 { font-size: 26px; }
    .ym-panel { padding: 14px; }
    .ym-song { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
    .ym-song > img { width: 48px; height: 48px; }
    #text a.ym-download, .ym-related a.ym-download { gap: 4px; padding: 9px 8px; font-size: 11px; }
    .ym-related .ym-related-song { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .ym-related-song > img { width: 64px; height: 36px; }
    .ym-steps > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ym-step-preview { grid-row: auto; min-height: 144px; }
    .ym-preview-search { max-width: 210px; }
    .ym-preview-options { max-width: 210px; }
    .ym-preview-save { max-width: 210px; }
    #text .ym-steps h3 { margin-top: 2px; }
    #text .ym-blog-link { padding: 10px; gap: 12px; min-height: 88px; }
    .ym-blog-link > img { flex-basis: 104px; width: 104px; height: 59px; align-self: center; }
    #text .ym-blog-card h3 { font-size: 14px; }
    .ym-section-head { flex-wrap: wrap; gap: 6px; }
    .ym-tools { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
    .ym-language > summary { max-width: 190px; }
    .ym-paste { width: 44px; padding: 0; }
    .ym-paste span { display: none; }
    .search-form input[type="text"] { padding-inline-end: 54px; }
    .ym-song { grid-template-columns: 44px minmax(0, 1fr); }
    .ym-song > img { width: 44px; height: 44px; }
    .ym-related .ym-related-song { grid-template-columns: 64px minmax(0, 1fr); }
    .ym-related-song > img { width: 64px; height: 36px; }
    .ym-song > .ym-download { grid-column: 2; justify-self: start; }
    .ym-blog-link > img { flex-basis: 88px; width: 88px; height: 50px; }
    #text .ym-blog-link { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ym-language *, .ym-theme-toggle, .ym-paste, .ym-song *, .ym-blog-card *, .ym-steps *, .ym-feature-grid *, .ym-faq * { scroll-behavior: auto; animation: none; transition: none; }
}
