@font-face {
  font-family: "Russo One";
  src: url("/assets/russo-one.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-left: #f4f8fd;
  --bg-center: #dce8f5;
  --bg-right: #71859d;
  --ink: #10243d;
  --ink-soft: #486078;
  --muted: #6e829a;
  --blue: #2f7dff;
  --blue-deep: #155ee8;
  --cyan: #7de3ff;
  --success: #23c483;
  --glass: rgba(255, 255, 255, 0.38);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.68);
  --shadow: 0 28px 70px rgba(26, 50, 82, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 56% 18%, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at 86% 72%, rgba(64, 144, 255, 0.22), transparent 38%),
    linear-gradient(112deg, var(--bg-left) 0%, var(--bg-center) 52%, var(--bg-right) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: linear-gradient(rgba(55, 92, 132, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(55, 92, 132, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 30%, black 75%, transparent);
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.aurora {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

.aurora-one { top: -15rem; left: 28%; background: #80dcff; }
.aurora-two { right: -15rem; bottom: -14rem; background: #377cff; animation-delay: -7s; }

.app-shell {
  position: relative;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(145%);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  min-height: 78px;
  padding: 10px 14px 10px 12px;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(30, 107, 223, 0.28));
  transition: transform 240ms ease;
}

.brand:hover img { transform: translateY(-2px) rotate(-2deg); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy b { font-family: "Russo One", sans-serif; letter-spacing: 0.04em; font-size: 18px; }
.brand-copy small { margin-top: 4px; color: var(--blue); letter-spacing: 0.34em; font-weight: 900; font-size: 9px; }

.branch-nav {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.branch-nav a {
  min-width: 105px;
  padding: 10px 18px;
  border-radius: 13px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 750;
  transition: 180ms ease;
}

.branch-nav a:hover { color: var(--blue-deep); background: rgba(255, 255, 255, 0.4); }
.branch-nav a[aria-current="page"] { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 10px 24px rgba(47, 125, 255, 0.3); }

.utility-area {
  align-self: start;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 3px;
}

.utility-nav, .locale-switch { display: flex; align-items: center; }
.utility-nav { gap: 4px; }
.utility-nav a {
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: 180ms ease;
}
.utility-nav a:hover, .utility-nav a[aria-current="page"] { color: var(--blue-deep); background: rgba(255, 255, 255, 0.48); }
.utility-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 rgba(47, 125, 255, 0.52); }
.locale-switch { gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: 10px; background: rgba(255, 255, 255, 0.25); }
.locale-switch a { padding: 4px 6px; border-radius: 7px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; }
.locale-switch a[aria-current="page"] { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }

.hero {
  min-height: 365px;
  padding: 56px clamp(18px, 5vw, 74px) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 30px;
}

.hero[hidden] { display: none; }

.hero h1 {
  position: relative;
  width: fit-content;
  margin: 0;
  max-width: 850px;
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
  background: linear-gradient(108deg, #0b1f38 4%, #194b82 48%, #1673ee 75%, #79dcff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 24px rgba(31, 79, 132, 0.16));
}

.hero h1::after {
  content: "";
  display: block;
  width: min(76%, 470px);
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan) 68%, transparent);
  box-shadow: 0 6px 20px rgba(47, 125, 255, 0.28);
}

.hero-orbit { position: relative; min-height: 285px; display: grid; place-items: center; }
.hero-orbit img { position: relative; z-index: 2; width: min(280px, 75%); filter: drop-shadow(0 24px 40px rgba(6, 69, 154, 0.28)); animation: float 5s ease-in-out infinite; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 0 40px rgba(47, 125, 255, 0.2), inset 0 0 30px rgba(125, 227, 255, 0.12); }
.ring-one { width: 310px; height: 190px; transform: rotate(-13deg); }
.ring-two { width: 245px; height: 280px; transform: rotate(24deg); border-color: rgba(47, 125, 255, 0.25); }

.catalog-panel, .detail-panel, .info-panel { border-radius: var(--radius); padding: clamp(18px, 3vw, 34px); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }

.search {
  flex: 1;
  max-width: 720px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 18px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 white, 0 12px 28px rgba(31, 62, 95, 0.08);
  transition: 180ms ease;
}

.search:focus-within { border-color: rgba(47, 125, 255, 0.6); box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.12), 0 14px 32px rgba(31, 62, 95, 0.1); }
.search > span { color: var(--blue); font-size: 28px; line-height: 1; transform: rotate(-16deg); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: #71849a; }
.search button, .download-button {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 14px;
  padding: 12px 19px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 28px rgba(47, 125, 255, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
  text-decoration: none;
}

.search button:hover, .download-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 125, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42); }
.search button:active, .download-button:active { transform: translateY(1px) scale(0.98); }
.catalog-count { color: var(--ink-soft); font-size: 13px; font-weight: 750; white-space: nowrap; }

.filter-bar {
  margin: -8px 0 25px;
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 0.8fr)) repeat(3, minmax(125px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.filter-bar label { display: grid; gap: 6px; }
.filter-bar label > span { padding-left: 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.filter-bar select {
  width: 100%;
  min-height: 43px;
  padding: 0 34px 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.filter-bar select:focus { border-color: rgba(47, 125, 255, 0.58); box-shadow: 0 0 0 3px rgba(47, 125, 255, 0.1); }
.clear-filters { min-height: 43px; padding: 0 15px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.7); color: var(--ink-soft); background: rgba(255, 255, 255, 0.28); font-weight: 800; cursor: pointer; transition: 180ms ease; }
.clear-filters:hover { color: var(--blue-deep); background: rgba(255, 255, 255, 0.5); }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-more-row { display: flex; justify-content: center; padding: 28px 0 4px; }
.catalog-more-row[hidden] { display: none; }
.catalog-more { min-width: min(100%, 260px); padding: 13px 24px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 15px; color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 13px 28px rgba(47, 125, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32); font-weight: 850; cursor: pointer; transition: 180ms ease; }
.catalog-more:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(47, 125, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.36); }
.catalog-more:disabled { cursor: wait; opacity: 0.68; }
.catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; }
.catalog-pagination[hidden] { display: none; }
.catalog-pagination button, .pagination-jump input { min-height: 38px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 11px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.42); font-weight: 800; }
.catalog-pagination button { min-width: 40px; padding: 7px 11px; cursor: pointer; }
.catalog-pagination button:hover:not(:disabled) { color: var(--blue-deep); background: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }
.catalog-pagination button[aria-current="page"] { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 8px 20px rgba(47, 125, 255, 0.25); }
.catalog-pagination button:disabled:not([aria-current="page"]) { opacity: 0.42; }
.pagination-ellipsis { padding: 0 2px; color: var(--muted); font-weight: 900; }
.pagination-jump { display: flex; gap: 6px; margin-left: 6px; }
.pagination-jump input { width: 72px; padding: 5px 9px; outline: none; }
.pagination-jump button { min-width: auto; }
.back-to-top { position: fixed; z-index: 60; right: clamp(14px, 2.5vw, 34px); bottom: clamp(14px, 2.5vw, 34px); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.72); border-radius: 17px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--blue-deep)); box-shadow: 0 16px 38px rgba(20,72,150,.32); font-size: 24px; font-weight: 900; cursor: pointer; }
.back-to-top[hidden] { display: none; }

.catalog-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 46px rgba(22, 42, 72, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  align-items: start;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.catalog-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--cyan), var(--blue)); opacity: 0.9; }
.catalog-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -75px; top: 190px; background: rgba(71, 142, 255, 0.16); filter: blur(3px); }
.catalog-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.55); box-shadow: 0 24px 58px rgba(22, 42, 72, 0.16), 0 0 0 1px rgba(47, 125, 255, 0.1); }
.card-poster { position: relative; z-index: 1; isolation: isolate; width: calc(100% - 20px); aspect-ratio: 2 / 3; margin: 20px 0 20px 20px; overflow: hidden; background: linear-gradient(145deg, #142945, #091525); border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 18px; box-shadow: 0 18px 38px rgba(18, 48, 84, 0.2); }
.card-poster img, .detail-poster img { width: 100%; height: 100%; display: block; }
.card-poster .poster-ambient, .detail-poster .poster-ambient { position: absolute; z-index: 0; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) saturate(1.12); opacity: 0.58; transform: scale(1.05); }
.card-poster .poster-main, .detail-poster .poster-main { position: relative; z-index: 1; object-fit: contain; object-position: center; transition: transform 500ms ease; }
.card-poster[data-orientation="portrait"] .poster-ambient, .detail-poster[data-orientation="portrait"] .poster-ambient { opacity: 0.16; }
.card-poster[data-orientation="portrait"] .poster-main, .detail-poster[data-orientation="portrait"] .poster-main { object-fit: cover; }
.catalog-card:hover .card-poster .poster-main { transform: scale(1.025); }
.poster-fallback { display: grid; place-items: center; isolation: isolate; background: radial-gradient(circle at 68% 25%, hsla(var(--poster-hue), 88%, 78%, 0.9), transparent 28%), linear-gradient(145deg, hsl(var(--poster-hue), 56%, 18%), hsl(calc(var(--poster-hue) + 42), 74%, 48%)); }
.poster-fallback::before, .poster-fallback::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.poster-fallback::before { width: 74%; aspect-ratio: 1; transform: rotate(-18deg); }
.poster-fallback::after { width: 48%; aspect-ratio: 1; box-shadow: 0 0 42px rgba(120, 224, 255, 0.26); }
.poster-mark { position: relative; z-index: 1; color: rgba(255,255,255,0.92); font-family: "Russo One", sans-serif; font-size: 54px; letter-spacing: 0.04em; text-shadow: 0 8px 28px rgba(0,0,0,0.28); }
.card-body { position: relative; z-index: 2; min-width: 0; align-self: stretch; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.card-top, .card-actions { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.type-chip, .latest-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.type-chip { color: #31536b; background: rgba(220, 235, 249, 0.76); border: 1px solid rgba(255, 255, 255, 0.7); }
.latest-chip { color: #066a4d; background: rgba(35, 196, 131, 0.12); border: 1px solid rgba(35, 196, 131, 0.22); letter-spacing: 0.03em; }
.catalog-card h2 { position: relative; z-index: 1; margin: 16px 0 5px; overflow: hidden; font-family: "Russo One", sans-serif; font-size: 24px; font-weight: 400; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-year { position: relative; z-index: 1; min-height: 22px; margin: 0; color: var(--muted); font-size: 13px; }
.card-description { min-height: 58px; margin: 12px 0 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.48; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.metadata-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 25px; }
.metadata-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; color: #31536b; background: rgba(213, 231, 248, 0.72); border: 1px solid rgba(255, 255, 255, 0.72); font-size: 10px; font-weight: 850; }
.card-metrics { position: relative; z-index: 1; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.metric { padding: 10px; border-radius: 14px; background: rgba(237, 245, 253, 0.65); border: 1px solid rgba(255, 255, 255, 0.72); }
.metric b { display: block; font-size: 16px; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-actions { margin-top: auto; align-items: center; }
.details-link { color: var(--blue-deep); font-weight: 850; text-decoration: none; }
.details-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download-mini { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--blue), #0e57d3); text-decoration: none; font-size: 20px; box-shadow: 0 10px 23px rgba(47, 125, 255, 0.28); transition: 180ms ease; }
.download-mini:hover { transform: translateY(-2px); }

.skeleton { min-height: 470px; border-radius: 23px; background: linear-gradient(100deg, rgba(255,255,255,0.22) 20%, rgba(255,255,255,0.58) 42%, rgba(255,255,255,0.22) 65%); background-size: 250% 100%; animation: shimmer 1.4s infinite linear; }
.empty-state { grid-column: 1 / -1; padding: 64px 20px; text-align: center; color: var(--ink-soft); }
.empty-state b { display: block; margin-bottom: 8px; color: var(--ink); font-family: "Russo One", sans-serif; font-size: 24px; font-weight: 400; }

.detail-panel { min-height: 380px; }
.detail-back { display: inline-flex; gap: 8px; align-items: center; color: var(--blue-deep); font-weight: 850; text-decoration: none; }
.detail-backdrop { width: 100%; height: clamp(210px, 30vw, 390px); margin: 24px 0 -110px; overflow: hidden; border-radius: 24px; background: #dceafb; box-shadow: inset 0 -100px 80px rgba(18, 48, 84, 0.22); }
.detail-backdrop img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-header { margin: 34px 0 30px; display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: end; gap: 28px; }
.detail-poster { position: relative; isolation: isolate; width: 170px; height: 255px; overflow: hidden; border-radius: 20px; background: #10213a; border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 20px 45px rgba(22,42,72,0.18); }
.detail-header h1 { margin: 9px 0 8px; font-family: "Russo One", sans-serif; font-size: clamp(34px, 5vw, 62px); font-weight: 400; line-height: 1.03; }
.detail-header p { color: var(--ink-soft); }
.detail-subtitle { margin: 0; }
.detail-description { max-width: 760px; margin: 17px 0 13px; line-height: 1.65; }
.detail-facts { margin: 12px 0 0; font-size: 12px; font-weight: 750; }
.screenshot-section { margin: 0 0 24px; }
.screenshot-section h2 { margin: 0 0 14px; font-family: "Russo One", sans-serif; font-size: 21px; font-weight: 400; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screenshot-frame { aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border-radius: 16px; background: rgba(220,234,251,0.72); border: 1px solid rgba(255,255,255,0.72); }
.screenshot-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.related-section { margin-top: 28px; }
.related-section h2 { margin: 0 0 14px; font-family: "Russo One", sans-serif; font-size: 21px; font-weight: 400; }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-card { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; background: rgba(255,255,255,.36); text-decoration: none; transition: 180ms ease; }
.related-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.58); box-shadow: 0 12px 26px rgba(22,42,72,.11); }
.related-poster { position: relative; isolation: isolate; width: 72px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: #10213a; }
.related-poster .poster-ambient { position: absolute; z-index: 0; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(10px); opacity: .5; }
.related-poster .poster-main { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.related-poster[data-orientation="portrait"] .poster-main { object-fit: cover; }
.related-copy { min-width: 0; }
.related-copy b, .related-copy small { display: block; }
.related-copy b { overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.related-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.edition-list { display: grid; gap: 16px; }
.edition { padding: 20px; border-radius: 21px; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.7); }
.edition-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.edition-title h2 { margin: 0; font-size: 19px; }
.release-list { display: grid; gap: 10px; }
.release { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 15px; border-radius: 15px; background: rgba(230, 240, 251, 0.62); }
.release strong { display: block; }
.release small { color: var(--muted); }
.release-meta { color: var(--ink-soft); font-size: 13px; text-align: right; }

.info-panel { min-height: 420px; overflow: hidden; }
.info-article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(16px, 3vw, 34px);
}
.info-article::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  right: -130px;
  bottom: -170px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(47, 125, 255, 0.04), 0 0 0 84px rgba(125, 227, 255, 0.035);
}
.info-heading { align-self: start; }
.info-kicker { display: block; margin-bottom: 12px; color: var(--blue-deep); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.info-heading h1 { margin: 0; font-family: "Russo One", sans-serif; font-size: clamp(34px, 4.6vw, 60px); font-weight: 400; letter-spacing: -0.035em; }
.info-lead { margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 22px); font-weight: 650; line-height: 1.62; }
.info-body { display: grid; align-content: start; gap: 16px; padding-top: 30px; }
.info-body p { margin: 0; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.66); border-radius: 17px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.31); font-size: 15px; line-height: 1.68; }
.contact-card { align-self: center; display: grid; gap: 10px; padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 24px; background: rgba(255, 255, 255, 0.4); box-shadow: 0 20px 48px rgba(31, 68, 108, 0.09); }
.contact-label { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-email { width: fit-content; color: var(--blue-deep); font-family: "Russo One", sans-serif; font-size: clamp(18px, 2.6vw, 30px); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 7px; }

.placement-zone { width: 100%; margin: 16px 0; }
.placement-zone[hidden] { display: none; }
.monetization-slot {
  width: 100%;
  min-height: var(--placement-min-height, 0);
  overflow: clip;
  contain: layout paint style;
  border-radius: 18px;
}

.consent-notice {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 20px;
}
.consent-copy strong { display: block; font-size: 15px; }
.consent-copy p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.consent-policy { display: inline-block; margin-top: 6px; color: var(--blue-deep); font-size: 11px; font-weight: 800; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.consent-primary, .consent-secondary { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 12px; font-size: 11px; font-weight: 850; cursor: pointer; }
.consent-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.consent-secondary { color: var(--ink-soft); background: rgba(255, 255, 255, 0.48); }

.admin-panel {
  min-height: 460px;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
}

.admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-heading h1 {
  margin: 0;
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.admin-heading p { max-width: 720px; margin: 10px 0 0; color: var(--ink-soft); line-height: 1.55; }
.admin-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.admin-login {
  display: grid;
  gap: 14px;
  max-width: 620px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.admin-login h2 { margin: 0; font-family: "Russo One", sans-serif; font-size: 23px; font-weight: 400; }
.admin-login p { margin: 0 0 4px; color: var(--ink-soft); line-height: 1.55; }
.admin-login label, .admin-field-form label, .admin-split-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }

.admin-login input,
.admin-inline-form input,
.admin-field-form input,
.admin-field-form select,
.admin-split-form input,
.admin-split-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-login input:focus,
.admin-inline-form input:focus,
.admin-field-form input:focus,
.admin-field-form select:focus,
.admin-split-form input:focus,
.admin-split-form textarea:focus { border-color: rgba(47, 125, 255, 0.62); box-shadow: 0 0 0 3px rgba(47, 125, 255, 0.12); }

.admin-primary,
.admin-secondary {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: 180ms ease;
}

.admin-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: 0 10px 22px rgba(47, 125, 255, 0.24); }
.admin-secondary { color: var(--ink-soft); background: rgba(255, 255, 255, 0.38); }
.admin-primary:hover, .admin-secondary:hover { transform: translateY(-1px); }
.admin-secondary:hover { color: var(--blue-deep); background: rgba(255, 255, 255, 0.58); }
.admin-primary:disabled, .admin-secondary:disabled { opacity: 0.55; cursor: wait; transform: none; }
.admin-compact { min-height: 34px; padding: 6px 10px; }
.admin-danger { color: #9c3144; background: rgba(255, 226, 230, 0.68); }

.admin-error { margin: 14px 0; padding: 13px 15px; border: 1px solid rgba(202, 58, 83, 0.22); border-radius: 14px; color: #8c2639; background: rgba(255, 231, 235, 0.72); }
.admin-loading, .admin-empty { padding: 28px 4px; color: var(--muted); text-align: center; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-metric { min-height: 105px; padding: 17px; border: 1px solid rgba(255, 255, 255, 0.74); border-radius: 18px; background: rgba(255, 255, 255, 0.43); }
.admin-metric b { display: block; margin-bottom: 6px; font-family: "Russo One", sans-serif; font-size: 28px; font-weight: 400; }
.admin-metric span { color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.35; text-transform: uppercase; }

.admin-section { margin-top: 16px; padding: 19px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 20px; background: rgba(255, 255, 255, 0.34); }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.admin-section-heading h2 { margin: 0; font-family: "Russo One", sans-serif; font-size: 20px; font-weight: 400; }
.admin-section-heading span { color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.admin-table-wrap { width: 100%; overflow-x: auto; border-radius: 14px; }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th { padding: 9px 10px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 11px 10px; border-top: 1px solid rgba(122, 153, 186, 0.14); color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.27); }
.admin-text-pair strong, .admin-text-pair small { display: block; }
.admin-text-pair strong { color: var(--ink); font-size: 13px; }
.admin-text-pair small { max-width: 290px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.admin-inline-form { display: flex; align-items: center; gap: 6px; }
.admin-inline-form input { width: 76px; min-height: 34px; padding: 6px 8px; }
.admin-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 250px; }
.admin-source-form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.admin-source-form input { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(119, 148, 180, 0.24); border-radius: 11px; color: var(--ink); background: rgba(255, 255, 255, 0.52); }

.admin-status { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; color: #31536b; background: rgba(221, 233, 246, 0.82); font-size: 10px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.status-active, .status-completed { color: #087251; background: rgba(35, 196, 131, 0.14); }
.status-queued, .status-pending { color: #7d5b00; background: rgba(255, 204, 74, 0.2); }
.status-processing { color: #1358b3; background: rgba(47, 125, 255, 0.14); }
.status-degraded { color: #9a5b00; background: rgba(255, 166, 46, 0.19); }
.status-disabled { color: #556273; background: rgba(136, 151, 168, 0.2); }
.status-failed, .status-dead { color: #992a3e; background: rgba(215, 61, 88, 0.16); }

.admin-field-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(140px, 0.8fr) auto; align-items: end; gap: 10px; }
.admin-split-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-split-form textarea { min-height: 86px; resize: vertical; font: inherit; text-transform: none; }
.admin-split-form button { justify-self: start; align-self: end; }
.admin-split-picker { grid-column: 1 / -1; padding: 13px; border: 1px solid rgba(119, 148, 180, 0.2); border-radius: 14px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.28); font-size: 12px; }
.admin-split-picker-content { display: grid; gap: 12px; }
.admin-split-options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-split-options > span { width: 100%; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-split-option { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 7px !important; min-height: 32px; padding: 6px 9px; border: 1px solid rgba(119, 148, 180, 0.18); border-radius: 10px; color: var(--ink-soft) !important; background: rgba(255, 255, 255, 0.4); font-size: 11px !important; font-weight: 750 !important; letter-spacing: 0 !important; text-transform: none !important; }
.admin-split-option input { width: 15px; min-height: 15px; margin: 0; box-shadow: none; }
.admin-timeline { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.admin-timeline-item { padding: 11px 13px; border-left: 3px solid rgba(47, 125, 255, 0.46); border-radius: 0 12px 12px 0; background: rgba(235, 244, 253, 0.52); }
.admin-timeline-item strong, .admin-timeline-item span { display: block; }
.admin-timeline-item strong { color: var(--ink); font-size: 12px; }
.admin-timeline-item span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 8px 0; color: rgba(24, 49, 75, 0.68); font-size: 12px; font-weight: 650; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes drift { to { transform: translate(5vw, 4vh) scale(1.08); } }

@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr 280px; }
  .topbar { grid-template-columns: 1fr auto; }
  .branch-nav { order: 3; grid-column: 1 / -1; justify-self: center; margin-top: 9px; }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two-column { grid-template-columns: 1fr; }
  .info-article { grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); gap: 28px; }
}

@media (max-width: 720px) {
  .app-shell { width: min(100% - 20px, 1440px); padding-top: 10px; }
  .topbar { top: 8px; border-radius: 21px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 48px 10px 30px; }
  .hero-orbit { display: none; }
  .catalog-panel, .detail-panel, .info-panel { border-radius: 22px; }
  .utility-area { gap: 5px; }
  .utility-nav a { padding-inline: 6px; font-size: 10px; }
  .branch-nav { width: 100%; gap: 3px; }
  .branch-nav a { flex: 1; min-width: 0; padding: 10px 6px; font-size: 13px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search { max-width: none; }
  .catalog-count { padding-left: 4px; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .catalog-pagination { justify-content: flex-start; }
  .pagination-edge { display: none; }
  .pagination-jump { width: 100%; margin-left: 0; }
  .pagination-jump input { flex: 1; }
  .sort-control { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { display: flex; flex-direction: column; min-height: 0; }
  .card-poster { width: min(calc(100% - 36px), 300px); margin: 18px auto 0; }
  .card-body { width: 100%; }
  .detail-header { grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 18px; }
  .detail-poster { width: 110px; height: 165px; border-radius: 15px; }
  .detail-header > .catalog-count { grid-column: 1 / -1; }
  .detail-header h1 { font-size: clamp(28px, 9vw, 44px); }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr auto; }
  .release-meta { grid-row: 2; text-align: left; }
  .admin-panel { border-radius: 22px; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-header-actions { justify-content: flex-start; }
  .admin-field-form { grid-template-columns: 1fr 1fr; }
  .admin-split-form { grid-template-columns: 1fr; }
  .admin-field-form button { min-height: 42px; }
  .info-article { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .info-body { padding-top: 18px; }
  .contact-card { margin-top: 22px; }
  .consent-notice { align-items: stretch; flex-direction: column; }
  .consent-actions { justify-content: flex-end; }
  footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .utility-nav a { font-size: 9px; }
  .locale-switch { gap: 0; }
  .consent-actions { display: grid; grid-template-columns: 1fr; }
  .branch-nav { width: 100%; }
  .branch-nav a { flex: 1; min-width: 0; }
  .search button { padding-inline: 13px; }
  .card-metrics { grid-template-columns: repeat(2, 1fr); }
  .catalog-card { display: flex; flex-direction: column; min-height: 0; }
  .card-poster { width: min(calc(100% - 36px), 280px); margin: 18px auto 0; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .clear-filters { grid-column: 1 / -1; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-poster { width: 100%; height: min(118vw, 440px); }
  .detail-header > .catalog-count { grid-column: 1; }
  .admin-metrics, .admin-field-form, .admin-split-form { grid-template-columns: 1fr; }
  .admin-section { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
