:root {
  color-scheme: dark;
  --background: #050607;
  --surface: #0b0d10;
  --surface-soft: #111419;
  --border: #272c33;
  --text: #f7f7f5;
  --muted: #9ba2aa;
  --orange: #ff4b0b;
  --orange-soft: rgba(255, 75, 11, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: radial-gradient(circle at 82% 8%, rgba(255,75,11,.12), transparent 28rem), var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar { width: min(1440px, calc(100% - 3rem)); min-height: 104px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: .9rem; }
.brand-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15%; background: var(--orange); color: #170803; font-size: 1.35rem; font-weight: 900; box-shadow: 0 0 28px rgba(255,75,11,.23); }
.brand > span:last-child { display: grid; gap: .25rem; }
.brand strong { font-size: .95rem; letter-spacing: .28rem; }
.brand small { color: var(--muted); font-size: .56rem; letter-spacing: .15rem; }
.topnav { display: flex; align-items: center; gap: clamp(1rem,3vw,2.5rem); }
.topnav a { color: #c6cbd0; font-size: .75rem; font-weight: 700; letter-spacing: .1rem; text-transform: uppercase; }
.topnav a:hover, .topnav a.active { color: var(--orange); }
.topnav .account-link { max-width: 180px; padding: .8rem 1rem; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
main { flex: 1; }

.hero { width: min(1240px, calc(100% - 3rem)); min-height: 610px; margin: clamp(2rem,5vw,4.5rem) auto 0; padding: clamp(2.5rem,5vw,4rem); position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); align-items: center; gap: clamp(2rem,4vw,4.5rem); overflow: hidden; background: linear-gradient(125deg,#111419,#08090b); border: 1px solid var(--border); border-radius: 32px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .38; background: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255,255,255,.035) 29px 30px); }
.hero-copy { min-width:0; position: relative; z-index: 2; }
.eyebrow { color: var(--orange); font-size: .7rem; font-weight: 800; letter-spacing: .24rem; }
.hero h1 { max-width: 100%; margin-top: 1rem; overflow-wrap:anywhere; word-break:normal; font-size: clamp(3.25rem,5.2vw,5.5rem); font-weight: 900; letter-spacing: -.055em; line-height: .92; text-transform: none; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin-top: 1.4rem; color: #b6bbc1; font-size: 1rem; line-height: 1.7; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-meta span, .card-tags span { padding: .45rem .65rem; border: 1px solid rgba(255,75,11,.28); border-radius: 999px; background: var(--orange-soft); color: #ff7946; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05rem; }
.primary-button { margin-top: 1.8rem; display: inline-flex; padding: .95rem 1.3rem; border-radius: 12px; background: var(--orange); color: white; font-weight: 800; }

.hero-art { width:min(100%,340px); aspect-ratio:316/561; min-height:0; position: relative; z-index: 1; justify-self:end; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px 22px 58px 22px; transform: rotate(1.2deg); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.hero-art > img { width: 100%; height: 100%; min-height:0; display: block; object-fit: cover; object-position:center top; }
.empty-hero { grid-template-columns: 1fr; min-height: 420px; }
.hero-art::before, .cover-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg,transparent 38%,rgba(0,0,0,.72)), repeating-linear-gradient(-25deg,transparent 0 18px,rgba(255,255,255,.06) 19px 20px); }
.hero-art span { position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2; color: rgba(255,255,255,.28); font-size: 4rem; font-weight: 900; }
.hero-art i { width: 190px; height: 280px; position: absolute; left: 50%; bottom: 0; translate: -50%; background: #090a0c; clip-path: polygon(45% 0,68% 12%,83% 45%,72% 100%,22% 100%,8% 48%,27% 14%); }
.hero-art b { width: 95px; height: 95px; position: absolute; left: 50%; top: 20%; translate: -50%; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 55px currentColor; }

.ember { background: linear-gradient(145deg,#40180b,#08090b 55%,#ff4b0b); color: #ff4b0b; }
.violet { background: linear-gradient(145deg,#26103d,#08090b 55%,#7c3aed); color: #8b5cf6; }
.cobalt { background: linear-gradient(145deg,#102855,#08090b 55%,#2563eb); color: #3b82f6; }
.steel { background: linear-gradient(145deg,#89929d,#111 48%,#7f1d1d); color: #d1d5db; }
.gold { background: linear-gradient(145deg,#70511b,#090909 52%,#f59e0b); color: #fbbf24; }
.crimson { background: linear-gradient(145deg,#5b121c,#090909 52%,#dc2626); color: #f43f5e; }
.neon { background: linear-gradient(145deg,#073b33,#090909 52%,#10b981); color: #34d399; }
.sky { background: linear-gradient(145deg,#164e63,#090909 52%,#38bdf8); color: #7dd3fc; }
.rose { background: linear-gradient(145deg,#5c1838,#090909 52%,#ec4899); color: #f472b6; }
.lime { background: linear-gradient(145deg,#365314,#090909 52%,#84cc16); color: #a3e635; }

.catalog { width: min(1240px, calc(100% - 3rem)); margin: 0 auto; padding: clamp(4rem,8vw,7rem) 0 4rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-head h2 { margin-top: .65rem; font-size: clamp(2rem,4vw,3.2rem); font-weight: 500; }
.section-head > p { color: var(--muted); }
.section-head > p strong { color: var(--text); font-size: 1.5rem; }

.catalog-search { margin-top: 2rem; padding: .65rem; display: grid; grid-template-columns: 1.4fr .7fr auto; gap: .55rem; background: var(--surface); border: 1px solid var(--border); border-radius: 19px; }
.catalog-search label { min-width: 0; padding: .55rem .75rem; }
.catalog-search label > span { display: block; margin-bottom: .35rem; color: #d5d8dc; font-size: .66rem; font-weight: 800; letter-spacing: .07rem; text-transform: uppercase; }
.catalog-search input, .catalog-search select { width: 100%; min-height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); }
.catalog-search option { background: #111419; }
.catalog-search button { padding: 0 1.25rem; border: 0; border-radius: 13px; background: var(--orange); color: white; font-weight: 800; cursor: pointer; }

.catalog-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.title-card { min-height: 320px; padding: 1rem; display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 1.4rem; background: linear-gradient(145deg,var(--surface-soft),var(--surface)); border: 1px solid var(--border); border-radius: 22px; transition: transform 180ms ease,border-color 180ms ease; }
.title-card:hover { transform: translateY(-3px); border-color: rgba(255,75,11,.5); }
.cover-art { min-height: 286px; position: relative; overflow: hidden; border-radius: 15px; }
.cover-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-art span { position: absolute; left: 1rem; bottom: .8rem; z-index: 2; color: rgba(255,255,255,.8); font-size: 5rem; font-weight: 900; line-height: 1; }
.cover-art i { width: 90px; height: 170px; position: absolute; right: -5px; bottom: 0; background: rgba(0,0,0,.7); clip-path: polygon(50% 0,85% 30%,75% 100%,15% 100%,5% 38%); }
.title-copy { min-width: 0; display: flex; flex-direction: column; }
.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.title-card h3 { margin-top: 1rem; font-size: clamp(1.35rem,2.2vw,1.75rem); line-height: 1.15; }
.creator { margin-top: .45rem; color: #d0d4d8; font-size: .85rem; font-weight: 700; }
.description { margin-top: .9rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.card-footer { margin-top: auto; padding-top: 1rem; display: flex; align-items: end; justify-content: space-between; gap: .8rem; border-top: 1px solid rgba(255,255,255,.07); }
.card-footer > span:first-child { display: grid; gap: .2rem; color: var(--muted); font-size: .7rem; }
.card-footer strong { color: var(--text); font-size: .8rem; }
.preview-label { color: var(--orange); font-size: .72rem; font-weight: 800; text-align: right; }

.empty-state { min-height: 320px; margin-top: 1.5rem; padding: 2rem; display: grid; place-items: center; align-content: center; gap: .75rem; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 24px; }
.empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 1.5rem; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--orange); font-weight: 800; }
.pagination { min-height: 84px; margin-top: 1.5rem; padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.pagination a { color: var(--orange); font-weight: 800; }
.pagination a:last-child { text-align: right; }
.pagination p { color: var(--muted); font-size: .84rem; }

.creator-callout { width: min(1240px, calc(100% - 3rem)); margin: 0 auto 5rem; padding: clamp(2rem,5vw,4rem); display: flex; align-items: end; justify-content: space-between; gap: 3rem; background: linear-gradient(125deg,rgba(255,75,11,.13),rgba(11,13,16,.95)); border: 1px solid rgba(255,75,11,.28); border-radius: 26px; }
.creator-callout h2 { margin-top: .7rem; font-size: clamp(2rem,4vw,3.2rem); }
.creator-callout div > p:last-child { max-width: 720px; margin-top: .9rem; color: var(--muted); line-height: 1.65; }
.creator-callout > a { flex: 0 0 auto; padding: .9rem 1.1rem; border: 1px solid var(--orange); border-radius: 12px; color: var(--orange); font-weight: 800; }
.footer { width: min(1240px, calc(100% - 3rem)); margin: auto auto 0; padding: 2rem 0 3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid var(--border); font-size: .75rem; letter-spacing: .08rem; }
.footer strong { color: var(--text); letter-spacing: .18rem; }

@media (max-width: 980px) {
  .topbar { min-height: 88px; }
  .topnav > a:not(.active):not(.account-link) { display: none; }
  .hero { min-height:560px; padding:2.5rem; grid-template-columns:minmax(0,1.15fr) minmax(250px,.65fr); gap:2rem; }
  .hero h1 { font-size:clamp(2.8rem,5.7vw,4.4rem); }
  .hero-art { width:min(100%,290px); }
  .catalog-search { grid-template-columns: 1fr 1fr; }
  .catalog-search .search-field { grid-column: 1 / -1; }
  .catalog-search button { min-height: 50px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { overflow-x: clip; }
  .hero { min-height: auto; grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .hero-copy,.hero h1,.hero-copy > p { min-width: 0; max-width: 100%; }
  .hero h1 { overflow-wrap: anywhere; word-break: break-word; }
  .hero-copy > p:not(.eyebrow) { overflow-wrap: anywhere; }
  .hero-art { min-height: 320px; transform: none; }
  .creator-callout { align-items: start; flex-direction: column; gap: 1.5rem; }
}
.title-card{transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}.title-card:hover,.title-card:focus-within{border-color:rgba(255,75,11,.55);transform:translateY(-2px);box-shadow:0 18px 42px rgba(0,0,0,.28)}.title-card h3 a:focus-visible,.primary-button:focus-visible,.catalog-search button:focus-visible{outline:2px solid #ff7a48;outline-offset:4px}.cover-art img,.hero-art img{background:#0a0d10}

@media (max-width: 600px) {
  .topbar,.hero,.catalog,.creator-callout,.footer { width: min(100% - 1.25rem,1240px); }
  .topbar { min-height: 76px; gap: .65rem; }
  .brand { gap: .65rem; }
  .brand-icon { width: 39px; height: 39px; font-size: 1rem; }
  .brand small { display: none; }
  .brand strong { font-size: .7rem; letter-spacing: .13rem; }
  .topnav .active { display: none; }
  .topnav .account-link { max-width: 120px; }
  .hero { margin-top: .75rem; padding: 0 0 1.3rem; gap: 0; border-radius: 20px; }
  .hero::before { opacity: .22; }
  .hero-copy { padding: 1.25rem 1.1rem 0; }
  .hero .eyebrow { font-size: .56rem; letter-spacing: .18rem; }
  .hero h1 { margin-top: .7rem; font-size: clamp(2.15rem,11vw,3.15rem); letter-spacing: -.045em; line-height: .96; }
  .hero-copy > p:not(.eyebrow) { margin-top: 1rem; display: -webkit-box; overflow: hidden; color: #abb1b8; font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
  .hero-meta { margin-top: 1rem; gap: .4rem; }
  .hero-meta span { padding: .38rem .52rem; font-size: .57rem; letter-spacing: .035rem; }
  .primary-button { width: 100%; min-height: 48px; margin-top: 1.1rem; padding: .8rem 1rem; align-items: center; justify-content: center; }
  .hero-art { width: calc(100% - 2.2rem); height: min(112vw,500px); min-height: 0; margin: 1.1rem auto 0; order: -1; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.42); }
  .hero-art > img { height: 100%; min-height: 0; object-position: center top; }
  .empty-hero { padding: 1.3rem; }
  .empty-hero .hero-copy { padding: 0; }
  .catalog-search { grid-template-columns: 1fr; }
  .catalog-search .search-field { grid-column: auto; }
  .catalog-search button { min-height: 52px; }
  .catalog { padding: 2.8rem 0 3rem; }
  .section-head { align-items: start; flex-direction: column; gap: .8rem; }
  .section-head h2 { font-size: 1.8rem; }
  .catalog-search { margin-top: 1.25rem; padding: .5rem; border-radius: 15px; }
  .title-card { min-height: 0; padding: .75rem; grid-template-columns: 105px minmax(0,1fr); gap: .85rem; border-radius: 17px; }
  .cover-art { min-height: 178px; border-radius: 11px; }
  .cover-art span { font-size: 3.4rem; }
  .card-tags { gap: .28rem; }
  .card-tags span { padding: .32rem .42rem; font-size: .52rem; }
  .title-card h3 { margin-top: .65rem; overflow-wrap: anywhere; font-size: 1.08rem; line-height: 1.1; }
  .creator { margin-top: .35rem; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .description { display: none; }
  .card-footer { padding-top: .65rem; align-items: start; flex-direction: column; gap: .55rem; }
  .card-footer strong { font-size: .7rem; }
  .preview-label { text-align: left; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination p { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1rem; text-align: center; }
  .creator-callout { margin-bottom: 2.5rem; padding: 1.35rem; border-radius: 18px; }
  .creator-callout h2 { font-size: 1.75rem; }
  .creator-callout > a { width: 100%; text-align: center; }
  .footer { flex-direction: column; }
}

@media (max-width: 380px) {
  .topbar,.hero,.catalog,.creator-callout,.footer { width: calc(100% - .8rem); }
  .hero-copy { padding-right: .9rem; padding-left: .9rem; }
  .hero-art { width: calc(100% - 1.8rem); }
  .hero h1 { font-size: clamp(1.9rem,10.8vw,2.55rem); }
  .title-card { grid-template-columns: 92px minmax(0,1fr); gap: .7rem; }
  .cover-art { min-height: 158px; }
  .card-tags span:nth-child(2) { display: none; }
}
