:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #1d1b20; background: #fffaf6; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #a33b17; }
button, select, input { font: inherit; }
button, .button { cursor: pointer; }
.site-header { align-items: center; display: flex; font-size: .9rem; gap: .4rem; margin: 0 auto; max-width: 70rem; padding: 1.25rem 1.25rem 0; }
.site-header a { color: #1d1b20; font-weight: 800; text-decoration: none; }
.container { margin: 0 auto; max-width: 70rem; padding: 1.25rem; }
.hero { background: radial-gradient(circle at 85% 0%, #ffc59e, transparent 26rem), linear-gradient(130deg, #2f195e, #6d2e55); border-radius: 1.5rem; color: #fff; padding: clamp(2rem, 8vw, 5rem); }
.eyebrow { color: #be4e26; font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 .7rem; }
.hero .eyebrow { color: #ffd3a8; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.3rem, 7vw, 5rem); letter-spacing: -.055em; line-height: 1.02; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.03em; }
.lead { font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.8; max-width: 40rem; }
.hero-actions, .result-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { align-items: center; border: 0; border-radius: .75rem; display: inline-flex; font-weight: 800; justify-content: center; min-height: 3rem; padding: .7rem 1rem; text-decoration: none; }
.primary { background: #e95b2b; color: #fff; }.primary:hover { background: #cf4217; }.secondary { background: #fff; color: #482159; }.secondary:hover { background: #f2eaf8; }
.privacy-note { color: #f8ddd2; font-size: .85rem; margin: 1.25rem 0 0; }
.upload-panel, .takeout-guide, .privacy-card { background: #fff; border: 1px solid #f0e5dc; border-radius: 1.25rem; margin-top: 1.25rem; padding: clamp(1.25rem, 4vw, 2rem); }
.drop-zone { align-items: center; background: #fff8f2; border: 2px dashed #e89b77; border-radius: 1rem; display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; padding: 2rem; text-align: center; }.drop-zone.dragging { background: #fee4d6; border-color: #c64d20; }.drop-zone:focus-visible { outline: 3px solid #482159; outline-offset: 2px; }
.status { color: #75401f; min-height: 1.3em; }.status.error { color: #b3261e; font-weight: 700; }
.takeout-guide li { line-height: 1.8; }
#results { margin-top: 2.5rem; }.result-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; }.result-heading h2 { margin-bottom: 0; }.result-heading label { font-weight: 700; }.result-heading select, #share-limit { border: 1px solid #cfc1b8; border-radius: .5rem; display: block; margin-top: .3rem; padding: .55rem; }
.summary { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.25rem 0; }.summary div { background: #f6eeff; border-radius: 1rem; padding: 1rem; }.summary strong, .summary span { display: block; }.summary strong { font-size: 1.6rem; }.summary span { color: #625b64; font-size: .85rem; }
.ranking-disclaimer { color: #625b64; font-size: .88rem; line-height: 1.6; }.ranking-list { display: grid; gap: .8rem; list-style: none; margin: 1.25rem 0; padding: 0; }.ranking-item { align-items: center; background: #fff; border: 1px solid #f0e5dc; border-radius: 1rem; display: grid; gap: .9rem; grid-template-columns: 2.5rem 6rem 1fr; padding: .75rem; }.ranking-item.top-three { border-color: #e95b2b; box-shadow: 0 .4rem 1.5rem rgb(233 91 43 / 12%); }.rank { font-size: 1.1rem; font-weight: 900; text-align: center; }.thumbnail { aspect-ratio: 16 / 9; background: #eee; border-radius: .6rem; object-fit: cover; width: 100%; }.video-info { min-width: 0; }.video-info a { color: #1d1b20; font-weight: 800; line-height: 1.4; text-decoration: none; }.video-info a:hover { text-decoration: underline; }.video-info p { color: #625b64; font-size: .85rem; margin: .35rem 0 0; }.view-count { color: #a33b17; font-weight: 900; }
.privacy-card { margin-bottom: 2rem; }.privacy-card p { line-height: 1.8; margin-bottom: 0; }
dialog { border: 0; border-radius: 1.25rem; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 25%); max-width: min(34rem, calc(100% - 2rem)); padding: 0; }dialog::backdrop { background: rgb(25 12 35 / 60%); }.dialog-content { padding: 1.5rem; position: relative; }.close-button { background: transparent; border: 0; font-size: 2rem; line-height: 1; position: absolute; right: .6rem; top: .6rem; }.share-preview { line-height: 1.6; padding-left: 1.5rem; }.share-preview strong { display: block; }.share-preview span { color: #625b64; font-size: .85rem; }
@media (max-width: 38rem) { .site-header span { display: none; }.result-heading { align-items: start; flex-direction: column; }.ranking-item { grid-template-columns: 2.2rem 5rem 1fr; }.result-actions .button { flex: 1 1 100%; }.hero-actions .button { width: 100%; } }