:root {
    --bg: #08080a;
    --surface: #111114;
    --surface-2: #17171c;
    --line: #29292f;
    --muted: #9999a3;
    --text: #f7f7f8;
    --pink: #ff296d;
    --purple: #8a3ffc;
    --blue: #4a7dff;
    --radius: 22px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    min-height: 82px;
    padding: 18px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    z-index: 5;
}
.brand img { width: 210px; height: auto; }
.privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #b8b8c0;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
}
.privacy-pill svg { width: 14px; fill: #72dd9b; }

.hero {
    min-height: 610px;
    padding: 90px 20px 110px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-orb { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(120px); opacity: .16; }
.hero-orb-one { background: var(--purple); top: -180px; left: 12%; }
.hero-orb-two { background: var(--pink); right: 8%; bottom: -220px; }
.hero-content { width: min(840px, 100%); position: relative; text-align: center; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: #c767ff; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.07em; font-weight: 800; }
h1 span { color: transparent; background: linear-gradient(100deg, #b762ff 15%, #ff4181 55%, #ff8a4c); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 650px; margin: 27px auto 34px; color: #aaaab4; font-size: clamp(1rem, 2vw, 1.15rem); }

.search-form { width: min(750px, 100%); margin: 0 auto; }
.search-shell {
    padding: 7px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: rgba(21,21,25,.94);
    border: 1px solid #34343b;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.025) inset;
    transition: border-color .2s, box-shadow .2s;
}
.search-shell:focus-within { border-color: #8b4cff; box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 0 3px rgba(138,63,252,.13); }
.at-sign { padding-left: 14px; color: #777782; font-size: 1.3rem; }
.search-shell input { min-width: 0; height: 56px; padding: 0 12px; color: #fff; background: none; border: 0; outline: 0; font-size: 1.08rem; }
.search-shell input::placeholder { color: #666670; }
.search-shell button {
    height: 50px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(120deg, #8138f7, #d72e99);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    transition: transform .2s, filter .2s;
}
.search-shell button:hover { transform: translateY(-1px); filter: brightness(1.12); }
.search-shell button:disabled { cursor: wait; opacity: .7; }
.search-shell button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-hint { margin: 13px 0 0; color: #686873; font-size: .82rem; }
.search-hint button { padding: 0; color: #b9a4ff; background: none; border: 0; cursor: pointer; }
.search-history { min-height: 32px; margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.history-chip { padding: 5px 10px; color: #94949d; background: #121216; border: 1px solid #29292f; border-radius: 999px; cursor: pointer; font-size: .78rem; }
.history-chip:hover { color: white; border-color: #5d5d68; }
.status { width: min(750px, 100%); margin: 18px auto 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; color: #c4c4cc; background: rgba(17,17,20,.88); font-size: .9rem; text-align: left; }
.status.is-loading::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 9px; vertical-align: -2px; border: 2px solid #54545d; border-top-color: #d65cff; border-radius: 50%; animation: spin .8s linear infinite; }
.status.is-error { color: #ffb0c3; border-color: rgba(255,41,109,.35); }
.status.is-warning { color: #ffe0a6; border-color: rgba(255,181,71,.35); }
@keyframes spin { to { transform: rotate(360deg); } }

.results { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 110px; }
.profile-card {
    padding: clamp(23px, 4vw, 38px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #141419, #0e0e11);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.profile-main { display: flex; align-items: center; gap: 24px; min-width: 0; }
.profile-copy, .profile-name-row { min-width: 0; }
.avatar-ring { flex: 0 0 auto; width: 116px; height: 116px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, #ffbb55, #ff296d 45%, #8a3ffc 76%); }
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; border: 4px solid #111114; border-radius: 50%; background: #24242a; }
.profile-name-row { display: flex; align-items: center; gap: 9px; }
.profile-name-row h2 { max-width: 100%; margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified { display: grid; place-items: center; width: 19px; height: 19px; background: #3e8cff; border-radius: 50%; font-size: .72rem; }
.profile-handle { margin: 3px 0 11px; color: #a6a6b0; }
.profile-bio { max-width: 540px; margin: 0; color: #d1d1d6; white-space: pre-line; }
.profile-stats { margin: 0; display: flex; gap: clamp(22px, 4vw, 45px); text-align: center; }
.profile-stats div { min-width: 65px; }
.profile-stats dt { font-size: 1.25rem; font-weight: 800; }
.profile-stats dd { margin: 2px 0 0; color: #888892; font-size: .75rem; }

.highlights-section, .library { padding-top: 65px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.section-kicker { margin-bottom: 5px; }
.section-total { margin: 0; color: #777781; font-size: .85rem; }
.highlights-list { display: flex; gap: 22px; padding: 3px 2px 13px; overflow-x: auto; scrollbar-color: #3d3d45 transparent; }
.highlight-button { flex: 0 0 90px; padding: 0; background: none; border: 0; cursor: pointer; text-align: center; }
.highlight-cover { width: 82px; height: 82px; margin: 0 auto 9px; padding: 3px; display: block; border: 1px solid #474750; border-radius: 50%; transition: transform .2s, border-color .2s; }
.highlight-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #1d1d22; }
.highlight-button:hover .highlight-cover { transform: translateY(-3px); border-color: #c453ff; }
.highlight-button strong { display: block; max-width: 90px; color: #dedee3; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-button small { color: #686872; font-size: .69rem; }
.highlight-items { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.highlight-items-heading { margin-bottom: 20px; display: flex; align-items: center; gap: 13px; }
.highlight-items-heading span { color: #777781; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.highlight-items-heading h3 { margin: 0; }
.back-button { width: 39px; height: 39px; border: 1px solid #36363d; border-radius: 50%; background: #151519; cursor: pointer; font-size: 1.2rem; }

.tabs { margin-bottom: 25px; display: flex; gap: 8px; overflow-x: auto; }
.tab { padding: 10px 15px; color: #85858f; background: transparent; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; cursor: pointer; font-weight: 700; font-size: .87rem; }
.tab span { display: inline-grid; min-width: 22px; margin-left: 5px; padding: 1px 5px; place-items: center; background: #222228; border-radius: 999px; font-size: .69rem; }
.tab.is-active { color: white; background: #1b1b20; border-color: #35353c; }
.tab.is-active span { background: #7e36e9; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.media-card { min-width: 0; background: #121216; border: 1px solid #24242a; border-radius: 15px; overflow: hidden; }
.media-preview { width: 100%; aspect-ratio: 4 / 5; padding: 0; position: relative; display: block; background: #202026; border: 0; cursor: pointer; overflow: hidden; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.media-card:hover .media-preview img { transform: scale(1.025); }
.media-overlay { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.media-kind { position: absolute; top: 10px; left: 10px; padding: 5px 8px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .06em; }
.play-icon { position: absolute; inset: 50% auto auto 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%, -50%); background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1rem; }
.media-meta { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-meta div { min-width: 0; }
.media-meta small, .media-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta small { color: #6f6f79; font-size: .66rem; text-transform: uppercase; }
.media-meta strong { margin-top: 2px; font-size: .78rem; }
.mini-download { flex: 0 0 auto; padding: 7px 9px; color: white; background: #24242b; border: 1px solid #373740; border-radius: 8px; text-decoration: none; font-size: .72rem; font-weight: 700; }
.mini-download:hover { background: #7b35df; border-color: #9d55ff; }
.empty-state { padding: 70px 20px; color: #777781; border: 1px dashed #303037; border-radius: 18px; text-align: center; }
.empty-state div { font-size: 2.5rem; }
.empty-state h3 { margin: 8px 0 4px; color: #ccc; }
.empty-state p { margin: 0; }

.intro { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 120px; border-top: 1px solid var(--line); }
.intro-heading { display: flex; align-items: end; justify-content: space-between; }
.intro-heading h2 { margin: 0 0 38px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { min-height: 230px; padding: 27px; background: #111114; border: 1px solid var(--line); border-radius: 18px; }
.feature-grid span { display: inline-block; margin-bottom: 53px; color: #ba5eff; font-size: .75rem; font-weight: 800; }
.feature-grid h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-grid p { margin: 0; color: #85858f; font-size: .91rem; }

.media-dialog { width: min(900px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: white; background: #121216; border: 1px solid #3a3a42; border-radius: 19px; box-shadow: 0 30px 100px #000; overflow: hidden; }
.media-dialog::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; color: white; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.dialog-media { min-height: 300px; max-height: calc(100vh - 130px); display: grid; place-items: center; background: black; overflow: hidden; }
.dialog-media img, .dialog-media video { width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.dialog-footer { min-height: 86px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-footer span, .dialog-footer strong { display: block; }
.dialog-footer span { color: #777781; font-size: .67rem; text-transform: uppercase; }
.dialog-footer strong { margin-top: 2px; }
.download-button { padding: 11px 17px; color: white; background: linear-gradient(120deg, #7c35e9, #d62e98); border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .84rem; }

footer { padding: 45px 20px; color: #7b7b84; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; }
footer img { width: 160px; margin: 0 auto 18px; opacity: .65; }
.fine-print { margin: 4px 0 0; color: #55555e; }
.status.is-success { color: #a4edbd; border-color: #285d3a; background: rgba(35, 103, 58, .18); }

@media (max-width: 900px) {
    .profile-card { align-items: flex-start; flex-direction: column; }
    .profile-stats { width: 100%; padding-top: 25px; justify-content: space-around; border-top: 1px solid var(--line); }
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .site-header { min-height: 68px; padding: 14px 17px; }
    .brand img { width: 165px; }
    .privacy-pill { padding: 7px 9px; font-size: .66rem; }
    .hero { min-height: 560px; padding: 70px 16px 82px; }
    .hero-copy { margin-top: 22px; }
    .search-shell { grid-template-columns: auto 1fr; padding: 6px; }
    .search-shell button { grid-column: 1 / -1; width: 100%; justify-content: center; }
    .at-sign { padding-left: 10px; }
    .search-shell input { height: 48px; }
    .results, .intro { width: min(100% - 28px, 1180px); }
    .profile-main { width: 100%; align-items: flex-start; gap: 15px; }
    .profile-copy { flex: 1; overflow: hidden; }
    .avatar-ring { width: 80px; height: 80px; }
    .profile-bio { font-size: .86rem; }
    .profile-name-row h2 { font-size: 1.35rem; }
    .profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: hidden; }
    .profile-stats div { min-width: 0; }
    .profile-stats dt { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
    .profile-stats dd { font-size: .65rem; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .media-meta { padding: 9px; }
    .media-meta strong { font-size: .7rem; }
    .mini-download { padding: 6px; font-size: .66rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article { min-height: 185px; }
    .feature-grid span { margin-bottom: 35px; }
    .dialog-footer { align-items: stretch; flex-direction: column; }
    .download-button { text-align: center; }
}
@media (max-width: 390px) {
    .privacy-pill span { display: none; }
    .privacy-pill::after { content: "Públicos"; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
