:root {
    color-scheme: light;
    --ink: #272727;
    --muted: #535353;
    --red: #ef3024;
    --red-action: #d72c20;
    --red-dark: #ab2018;
    --red-pale: #fcebe8;
    --line: #dedede;
    --surface: #fff;
    --background: #f2f2f2;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: var(--red-dark); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--red-action); outline-offset: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(2.15rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.42rem, 4vw, 1.85rem); margin: 0 0 1.15rem; }
.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.header, .footer { background: var(--surface); }
.header { border-bottom: 1px solid var(--line); }
.nav, .footer-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, nav a { color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; letter-spacing: -.02em; }
.brand-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; flex: 0 0 auto; border-radius: .65rem; color: white; background: var(--red); font-size: 1.35rem; }
nav { display: flex; gap: 1.25rem; white-space: nowrap; font-size: .9rem; font-weight: 600; }
.hero { text-align: center; padding: clamp(3rem, 8vw, 5.6rem) 0 3.25rem; }
.lede { margin: .95rem auto 1.8rem; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.15rem); }
.lookup { width: min(100%, 50rem); margin-inline: auto; text-align: left; padding: 1.15rem; border-radius: 1rem; border: 1px solid var(--line); background: white; box-shadow: 0 12px 36px #27272714; }
.lookup label { display: block; margin-bottom: .48rem; font-size: .875rem; font-weight: 700; }
.lookup-row, .input-wrap { display: flex; gap: .65rem; }
.input-wrap { flex: 1; min-width: 0; border: 1px solid #bdbdbd; border-radius: .65rem; background: #fafafa; padding: .28rem; }
.input-wrap:focus-within { outline: 2px solid var(--red-action); outline-offset: 1px; }
input { width: 100%; min-width: 0; padding: .6rem .55rem; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; }
input::placeholder { color: #656565; }
.paste, .button { border: 0; border-radius: .55rem; font-family: inherit; font-size: .95rem; font-weight: 720; cursor: pointer; white-space: nowrap; }
.paste { padding: .45rem .72rem; background: var(--red-pale); color: var(--red-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.8rem; padding: .72rem 1.05rem; color: white; background: var(--red-action); text-decoration: none; }
.button:hover { background: var(--red-dark); }
.quiet, .status { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
.notice { padding: .7rem .85rem; color: #8c2620; background: #fff0ef; border: 1px solid #f1c6c2; border-radius: .55rem; }
.guide, .faq { margin: 0 auto 2.8rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.steps li, .formats li { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: 1.15rem; }
.step-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; font-weight: 750; color: var(--red-dark); background: var(--red-pale); margin-bottom: .65rem; }
.steps p, details p { color: var(--muted); margin: .6rem 0 0; }
details { padding: .85rem 1rem; background: white; border: 1px solid var(--line); border-radius: .75rem; margin-bottom: .5rem; }
summary { font-weight: 650; cursor: pointer; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.result { max-width: 49rem; margin: 2.4rem auto 3.25rem; }
.back { display: inline-block; margin-bottom: 1.1rem; }
.result h1 { font-size: clamp(2rem, 5vw, 2.85rem); }
.video-title, .legal p { color: var(--muted); margin-top: .8rem; overflow-wrap: anywhere; }
.duration { margin: -.5rem 0 1rem; }
.formats { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 1.45rem 0; }
.formats li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.formats li div span { display: block; color: var(--muted); font-size: .86rem; }
@media (max-width: 620px) {
    .wrap { width: min(100% - 1.5rem, 62rem); }
    nav { gap: .7rem; }
    .lookup-row { flex-direction: column; }
    .steps { grid-template-columns: 1fr; }
    .hero { padding-bottom: 2.25rem; }
}
@media (max-width: 390px) {
    .nav { gap: .4rem; }
    .brand { font-size: .84rem; gap: .4rem; }
    nav { font-size: .76rem; gap: .4rem; }
    .formats li { align-items: stretch; flex-direction: column; }
}
