:root {
  --red: #ee1d2d;
  --ink: #11161d;
  --paper: #f7f3e9;
  --line: #ded8ca;
  --content: 1480px;
  --shadow: 0 14px 36px rgba(20, 22, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Montserrat, Arial, sans-serif; }

.topbar {
  height: 52px; background: #080a0d; color: #fff; display: flex; align-items: center;
  padding: 0 max(34px, calc((100vw - 1400px) / 2)); gap: 54px; position: absolute; top: 0; left: 0; right: 0;
  z-index: 20; border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 26px rgba(0,0,0,.16); backdrop-filter: blur(9px);
}
.topbar:after { content: ""; position: absolute; left: max(34px, calc((100vw - 1400px) / 2)); right: max(34px, calc((100vw - 1400px) / 2)); bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--red), transparent 34%); opacity: .9; }
.brand { width: 250px; height: 84px; display: flex; align-items: center; color: #fff; text-decoration: none; position: relative; z-index: 3; flex: 0 0 250px; }
.brand img { width: 238px; height: auto; display: block; position: absolute; left: -4px; top: 4px; filter: drop-shadow(0 11px 16px rgba(0,0,0,.38)); transition: transform .25s ease, filter .25s ease; }
.brand:hover img { transform: translateY(-2px) scale(1.015); filter: drop-shadow(0 14px 18px rgba(0,0,0,.44)); }
.nav { display: flex; align-items: center; gap: 36px; margin: 0; }
.nav a { color: #d9dde2; text-decoration: none; font-size: 10px; font-weight: 700; padding: 17px 0 16px; position: relative; transition: color .2s; }
.nav a:after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 7px; height: 2px; border-radius: 2px; background: var(--red); transition: left .2s, right .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover:after, .nav a.active:after { left: 0; right: 0; }
.header-search { width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: rgba(15,20,27,.72); border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: flex-end; overflow: hidden; box-shadow: 0 8px 20px #0002; transition: width .3s ease, border-radius .3s ease, background .2s; }
.header-search:focus-within { width: 270px; border-radius: 24px; background: rgba(20,27,35,.96); }
.header-search input { width: 0; opacity: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 0; font: 500 10px Montserrat; transition: width .3s ease, opacity .2s, padding .3s; }
.header-search:focus-within input { width: 218px; opacity: 1; padding-left: 17px; }
.header-search input::placeholder { color: #7e8793; }
.header-search button { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.header-search button svg { width: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.header-search button:hover { background: var(--red); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 25px; }

main { overflow: visible; }
.hero {
  width: 100%; height: auto; aspect-ratio: 1980 / 400; margin: 52px 0 0; position: relative;
  background-image: linear-gradient(90deg, rgba(16,21,27,.10) 0, transparent 16%, transparent 84%, rgba(16,21,27,.10) 100%), url('hero-banner-v2.jpg?v=20261008b');
  background-position: center; background-size: 100% 100%; background-repeat: no-repeat; background-color: #e51f25;
}
.hero:before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -20px 34px rgba(0,0,0,.05); pointer-events: none; }
.main-search { width: min(720px, 90%); height: 56px; margin: -28px auto 18px; position: relative; z-index: 3; display: flex; align-items: center; }
.main-search .search-icon { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.main-search .search-icon svg { width: 20px; fill: none; stroke: #252a31; stroke-width: 1.8; stroke-linecap: round; }
.main-search input { width: 100%; height: 56px; border: 1px solid #e2ded5; outline: none; border-radius: 999px; background: #fff; padding: 0 90px 0 53px; color: #3e444c; font: 500 11px Montserrat; box-shadow: 0 12px 32px rgba(24,26,29,.16); transition: border-color .25s, box-shadow .25s; }
.main-search input::placeholder { color: #8a9097; }
.main-search input:focus { border-color: #bfc1c3; box-shadow: 0 14px 36px rgba(24,26,29,.2), 0 0 0 4px rgba(238,29,45,.08); }
.main-search button { position: absolute; top: 5px; right: 5px; width: 76px; height: 46px; border: 0; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 7px 18px rgba(238,29,45,.28); transition: transform .35s ease, background .35s ease, box-shadow .35s ease; }
.main-search button svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.main-search button:hover { transform: scale(1.06); background: #c90f1e; box-shadow: 0 10px 24px rgba(201,15,30,.36); }

.section { width: min(var(--content), 100%); margin: auto; padding: 11px 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section h2 { font-family: "Archivo Black", Arial Black, sans-serif; text-transform: uppercase; letter-spacing: -1px; margin: 12px 0 10px; font-size: 24px; }
.section-head a { height: 36px; color: #fff; background: #171c23; border: 1px solid #292f38; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .6px; font-size: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 11px; padding: 0 5px 0 15px; box-shadow: 0 7px 16px rgba(19,21,24,.12); transition: transform .22s, box-shadow .22s, background .22s; }
.section-head a:hover { background: #222831; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(19,21,24,.18); }
.section-head span { width: 26px; height: 26px; margin-left: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; transition: transform .22s; }
.section-head a:hover span { transform: rotate(90deg); }
.category-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.category { min-width: 0; height: 112px; border-radius: 12px; color: #fff; text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; isolation: isolate; box-shadow: inset 0 1px #ffffff44, 0 7px 16px #00000014; transition: .2s transform, .2s box-shadow; }
.category:after { content: ""; position: absolute; width: 90px; height: 90px; border: 1px solid #ffffff25; border-radius: 50%; right: -24px; top: -30px; box-shadow: 0 0 0 15px #ffffff0a; z-index: -1; }
.category:hover { transform: translateY(-4px); box-shadow: 0 14px 27px #0003; }
.category i { width: 36px; height: 36px; margin-bottom: 8px; }
.category i svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category b { font-size: 16px; }
.category small { font-size: 11px; margin-top: 6px; opacity: .9; white-space: nowrap; }
.collection-total { width: min(var(--content), calc(100% - 56px)); min-height: 76px; margin: 4px auto 8px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #ded8ca; border-left: 5px solid var(--red); border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgba(20,22,26,.08); }
.collection-total span { display: flex; align-items: baseline; gap: 11px; }
.collection-total strong { font: 34px/1 "Archivo Black", Arial Black, sans-serif; color: var(--red); }
.collection-total small { font-size: 14px; font-weight: 800; color: #171c23; }
.collection-total i { font-style: normal; font-size: 11px; font-weight: 600; color: #737981; }
.red { background: linear-gradient(145deg, #f42a35, #d91421); }
.purple { background: linear-gradient(145deg, #8738b6, #60208e); }
.green { background: linear-gradient(145deg, #36945c, #1d7444); }
.orange { background: linear-gradient(145deg, #ff7f1a, #e65703); }
.blue { background: linear-gradient(145deg, #1595d4, #086ea7); }
.pink { background: linear-gradient(145deg, #f33b6a, #da1748); }
.dark { background: linear-gradient(145deg, #3b424c, #222831); }

.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.card { background: #fff; border-radius: 11px; overflow: hidden; border: 1px solid #e4dfd4; box-shadow: 0 3px 10px #1d212610; transition: .2s transform, .2s box-shadow; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media { position: relative; overflow: hidden; background: #ddd; }
.thumb { display: block; width: 100%; object-fit: cover; transition: .3s transform; }
.card:hover .thumb { transform: scale(1.025); }
.featured .thumb { aspect-ratio: 126/143; }
.recent .thumb { aspect-ratio: 127/84; }
.format-pill { position: absolute; left: 9px; bottom: 9px; background: #10151bd9; color: #fff; border: 1px solid #ffffff44; border-radius: 999px; padding: 5px 9px; font-size: 8px; font-weight: 800; text-transform: uppercase; backdrop-filter: blur(6px); }
.card-meta { display: flex; align-items: center; justify-content: space-between; height: 35px; padding: 0 9px; font-size: 8px; font-weight: 600; color: #686b70; }
.download { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #f1eee6; cursor: pointer; }
.download svg { width: 14px; fill: none; stroke: #171b20; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recent-section { padding-bottom: 38px; }
.about { min-height: 190px; background: var(--red); color: #fff; display: grid; place-items: center; padding: 48px 24px; text-align: center; }
.about p { width: min(760px, 100%); margin: 0; font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; line-height: 1.65; }
footer { background: #10151b; color: #fff; text-align: center; padding: 40px 20px; }
footer a { color: #fff; }
.footer-brand { width: min(300px, 72vw); display: block; margin: 0 auto 18px; }
.footer-brand img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 16px rgba(0,0,0,.34)); }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 30px); background: #111; color: #fff; padding: 12px 20px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.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; }

@media (max-width: 1050px) {
  .topbar { gap: 24px; }
  .nav { gap: 18px; }
  .nav a { padding-left: 0; padding-right: 0; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .header-search { display: none; }
}
@media (max-width: 650px) {
  .topbar { height: 50px; padding: 0 15px; }
  .brand { width: 166px; height: 70px; min-width: 0; flex-basis: 166px; }
  .brand img { width: 162px; left: -2px; top: 8px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 50px; left: 10px; right: 10px; background: rgba(15,20,27,.97); padding: 8px; flex-direction: column; border: 1px solid #ffffff18; border-radius: 0 0 15px 15px; box-shadow: 0 18px 30px #0006; }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; }
  .hero { height: 210px; min-height: 210px; aspect-ratio: auto; margin-top: 50px; background-size: cover; background-position: center; }
  .main-search { height: 52px; margin-top: 14px; margin-bottom: 20px; }
  .main-search input { height: 52px; padding-right: 58px; padding-left: 45px; }
  .main-search .search-icon { left: 16px; }
  .main-search button { top: 4px; right: 4px; width: 58px; height: 44px; padding: 0; }
  .main-search button svg { width: 20px; height: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid .category:last-child { grid-column: span 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { min-height: 160px; padding: 36px 22px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .section h2 { font-size: 21px; }
  .category b { font-size: 15px; }
  .category small { font-size: 10px; }
  .collection-total { width: calc(100% - 28px); min-height: 70px; padding: 12px 15px; }
  .collection-total strong { font-size: 29px; }
  .collection-total small { font-size: 12px; }
  .collection-total i { display: none; }
}

