:root {
  --gp-bg: #050816;
  --gp-ink: #f7fbff;
  --gp-soft: rgba(247, 251, 255, 0.68);
  --gp-muted: rgba(247, 251, 255, 0.42);
  --gp-line: rgba(255, 255, 255, 0.14);
  --gp-panel: rgba(7, 13, 31, 0.74);
  --gp-panel-strong: rgba(6, 10, 24, 0.92);
  --gp-blue: #147cff;
  --gp-green: #46e36e;
  --gp-cyan: #1ed2d3;
  --gp-purple: #7b3ff2;
  --gp-rose: #f24c8f;
  --gp-orange: #ff8a2a;
  --gp-gold: #ffd166;
  --gp-coral: #ff6b4a;
  --gp-warm: #ffb000;
  --gp-radius: 28px;
  --gp-font: "Inter", "Aptos", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--gp-bg); color: var(--gp-ink); font-family: var(--gp-font); overflow: hidden; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 209, 102, 0.18), transparent 30%),
    radial-gradient(circle at 20% 12%, rgba(74, 224, 116, 0.21), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 107, 74, 0.25), transparent 31%),
    radial-gradient(circle at 72% 84%, rgba(123, 63, 242, 0.24), transparent 34%),
    radial-gradient(circle at 40% 78%, rgba(242, 76, 143, 0.18), transparent 34%),
    linear-gradient(135deg, #071226 0%, #050816 38%, #14061e 70%, #07101d 100%);
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.gp-app { width: 100vw; height: 100dvh; overflow: hidden; }
.gp-auth, .gp-shell { width: 100%; height: 100%; }
.gp-auth { display: grid; place-items: center; padding: 24px; }
.gp-auth-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(8, 18, 38, 0.1);
  border-radius: 30px;
  color: #071226;
  background:
    radial-gradient(circle at 90% 10%, rgba(70, 227, 110, 0.14), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(20, 124, 255, 0.12), transparent 32%),
    #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.gp-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.gp-brand-auth { margin-bottom: 24px; }
.gp-gb-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 34px rgba(20, 124, 255, 0.28);
}
.gp-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.gp-wordmark strong { font-weight: 780; color: white; }
.gp-wordmark span { font-weight: 370; color: rgba(255, 255, 255, 0.78); }
.gp-wordmark em { margin-left: 4px; color: var(--gp-green); font-style: normal; font-weight: 640; }
.gp-auth-card .gp-wordmark strong { color: #071226; }
.gp-auth-card .gp-wordmark span { color: rgba(7, 18, 38, 0.62); }
.gp-auth-card .gp-wordmark em { color: var(--gp-green); }

.gp-auth-copy, .gp-legal, .gp-status { color: var(--gp-soft); line-height: 1.45; }
.gp-auth-card .gp-auth-copy,
.gp-auth-card .gp-legal,
.gp-auth-card .gp-status { color: rgba(7, 18, 38, 0.64); }
.gp-auth-card .gp-form label { color: rgba(7, 18, 38, 0.72); }
.gp-legal { font-size: 12px; margin-top: 20px; }
.gp-status { min-height: 18px; font-size: 13px; }
.gp-form { display: grid; gap: 14px; }
.gp-form label { display: grid; gap: 7px; color: var(--gp-soft); font-size: 13px; }
.gp-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--gp-ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.gp-auth-card .gp-form input {
  color: #071226;
  border-color: rgba(7, 18, 38, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 253, 248, 0.94)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.gp-form input:focus { border-color: rgba(70, 227, 110, 0.75); box-shadow: 0 0 0 4px rgba(70, 227, 110, 0.13); }
.gp-primary, .gp-google {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 720;
}
.gp-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}
.gp-primary { color: #06101d; background: linear-gradient(135deg, var(--gp-green), var(--gp-cyan)); }
.gp-google {
  width: 100%;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.gp-auth-card .gp-google {
  color: #071226;
  background: rgba(7, 18, 38, 0.055);
  border-color: rgba(7, 18, 38, 0.1);
}
.gp-google span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #101828;
  background: white;
  font-weight: 800;
}

.gp-meta-oauth {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(7, 18, 38, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 119, 242, 0.13), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(193, 53, 132, 0.13), transparent 32%),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}
.gp-meta-oauth p {
  margin: 0 0 10px;
  color: #071226;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
}
.gp-meta-oauth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gp-meta-oauth-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(7, 18, 38, 0.14);
}
.gp-meta-oauth-actions a:first-child { background: #1877f2; }
.gp-meta-oauth-actions a:last-child {
  background: linear-gradient(135deg, #833ab4, #c13584 42%, #fd1d1d 72%, #fcb045);
}
.gp-meta-oauth small {
  display: block;
  margin-top: 10px;
  color: rgba(7, 18, 38, 0.6);
  font-size: 11px;
  line-height: 1.45;
}

.gp-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  gap: 12px;
}
.gp-header {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(2px, 1vw, 12px);
}
.gp-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
  overflow-x: auto;
  scrollbar-width: none;
}
.gp-nav::-webkit-scrollbar, .gp-rail::-webkit-scrollbar, .gp-grid::-webkit-scrollbar, .gp-live-list::-webkit-scrollbar, .gp-categories::-webkit-scrollbar { display: none; }
.gp-nav button {
  flex: 0 0 auto;
  border: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
}
.gp-nav-text, .gp-nav-small {
  padding: 12px 2px;
  font-size: clamp(14px, 1.7vw, 19px);
  font-weight: 430;
}
.gp-nav-small { font-size: clamp(12px, 1.3vw, 15px); color: rgba(255, 255, 255, 0.56); }
.gp-nav-button, .gp-icon-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(#081126, #081126) padding-box, linear-gradient(135deg, var(--gp-blue), var(--gp-cyan), var(--gp-green), var(--gp-purple)) border-box !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
}
.gp-nav-mini {
  width: 38px;
  height: 38px;
}
.gp-nav-mini svg {
  width: 20px;
  height: 20px;
}
.gp-nav-button svg, .gp-icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: white;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gp-nav-mini svg {
  width: 20px;
  height: 20px;
}
.gp-nav .is-active, .gp-nav button:hover { color: white; }
.gp-nav .is-active:not(.gp-nav-button) { border-bottom: 3px solid var(--gp-green); }
.gp-actions { display: flex; gap: 10px; align-items: center; }
.gp-power.is-stale { background: linear-gradient(#14101c, #14101c) padding-box, linear-gradient(135deg, var(--gp-orange), var(--gp-green)) border-box !important; }
.gp-power.is-error { background: linear-gradient(#160b14, #160b14) padding-box, linear-gradient(135deg, #ff4f5f, var(--gp-orange)) border-box !important; }

.gp-menu {
  position: fixed;
  z-index: 20;
  top: calc(max(14px, env(safe-area-inset-top)) + 60px);
  right: max(16px, env(safe-area-inset-right));
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--gp-line);
  background: rgba(5, 8, 22, 0.95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.gp-power-menu {
  width: min(240px, calc(100vw - 32px));
}
.gp-menu-profile, .gp-menu-state {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gp-menu-state { display: grid; gap: 3px; }
.gp-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-cyan));
}
.gp-menu-profile strong, .gp-menu-state strong {
  display: block;
  color: white;
  font-size: 14px;
  line-height: 1.15;
}
.gp-menu-profile small, .gp-menu-state small {
  display: block;
  color: var(--gp-muted);
  font-size: 11px;
  line-height: 1.3;
}
.gp-menu button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: white;
  text-align: left;
  padding: 0 13px;
  background: transparent;
}
.gp-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.gp-menu .danger { color: #ff8f9b; }
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gp-stage {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--gp-radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 209, 102, 0.13), transparent 26%),
    radial-gradient(circle at 86% 24%, rgba(255, 107, 74, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(242, 76, 143, 0.15), rgba(30, 210, 211, 0.12) 45%, rgba(70, 227, 110, 0.1)),
    rgba(4, 8, 20, 0.78);
  box-shadow: inset 0 0 0 1px rgba(70, 227, 110, 0.04), 0 28px 90px rgba(0, 0, 0, 0.28);
}
.gp-stage-status {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 22px;
  right: 22px;
  color: var(--gp-soft);
  font-size: 13px;
  pointer-events: none;
}
.gp-view {
  position: absolute;
  inset: 0;
  display: none;
  padding: 54px 22px 22px;
  overflow: auto;
  scrollbar-width: none;
}
.gp-view.is-active { display: block; }
#gpViewLive {
  overflow: hidden;
}
.gp-section-title {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: -0.025em;
}
.gp-muted { color: var(--gp-soft); }
.gp-hero {
  min-height: clamp(220px, 42vh, 420px);
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.7fr);
  gap: 22px;
  align-items: end;
}
.gp-feature {
  align-self: stretch;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    var(--feature-bg, linear-gradient(135deg, rgba(20, 124, 255, 0.35), rgba(242, 76, 143, 0.26)));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 209, 102, 0.06);
}
.gp-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 209, 102, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(20, 124, 255, 0.18), transparent 44%, rgba(255, 107, 74, 0.18));
}
.gp-feature > * { position: relative; z-index: 1; }
.gp-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gp-gold), var(--gp-orange));
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gp-feature h1 { margin: 0; font-size: clamp(24px, 4vw, 44px); line-height: 1.02; letter-spacing: -0.035em; }
.gp-feature p { max-width: 58ch; color: rgba(255, 255, 255, 0.75); }
.gp-feature-meta {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 620;
}
.gp-home-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.gp-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gp-home-stats button {
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: white;
  text-align: left;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(255, 107, 74, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.gp-home-stats strong {
  display: block;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
}
.gp-home-stats span {
  display: block;
  margin-top: 7px;
  color: var(--gp-soft);
  font-size: 12px;
}
.gp-home-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, 1fr);
  gap: 10px;
  min-height: 300px;
}
.gp-mosaic-tile {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: white;
  text-align: left;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(135deg, rgba(20, 124, 255, 0.34), rgba(242, 76, 143, 0.22), rgba(255, 209, 102, 0.12)),
    rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}
.gp-mosaic-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 18%, rgba(255, 209, 102, 0.2), transparent 28%);
  pointer-events: none;
}
.gp-mosaic-tile > * { position: relative; z-index: 1; }
.gp-mosaic-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.44);
  filter: saturate(1.12);
}
.gp-mosaic-tile.is-wide { grid-column: span 2; }
.gp-mosaic-tile.is-tall { grid-row: span 2; }
.gp-mosaic-tile span {
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #071226;
  background: linear-gradient(135deg, var(--gp-gold), var(--gp-coral));
  font-size: 10px;
  font-weight: 800;
}
.gp-mosaic-tile strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.12;
}
.gp-rail-block {
  display: grid;
  gap: 10px;
}
.gp-rail-wrap {
  position: relative;
  min-width: 0;
}
.gp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(156px, 15.5vw, 210px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 48px;
  padding: 6px 48px 14px;
}
.gp-rail-featured .gp-rail {
  grid-auto-columns: clamp(184px, 18vw, 250px);
}
.gp-rail-arrow {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, rgba(70, 227, 110, 0.82), rgba(20, 124, 255, 0.76));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}
.gp-rail-prev { left: 4px; }
.gp-rail-next { right: 4px; }
.gp-library-link {
  justify-self: end;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 560;
}
.gp-poster {
  position: relative;
  min-height: 0;
  border: 0;
  padding: 0;
  color: white;
  text-align: left;
  background: transparent;
  scroll-snap-align: start;
}
.gp-poster-art {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(20, 124, 255, 0.45), rgba(242, 76, 143, 0.34));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.gp-poster-art.is-generated {
  padding: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(70, 227, 110, 0.55), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(255, 209, 102, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(20, 124, 255, 0.72), rgba(103, 64, 255, 0.68), rgba(242, 76, 143, 0.5));
}
.gp-poster-art.is-generated span {
  display: grid;
  place-items: center;
  width: clamp(54px, 45%, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 8, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 640;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
}
.gp-poster:hover .gp-poster-art {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(255, 209, 102, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 209, 102, 0.08);
}
.gp-poster-chip {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 7px;
  border-radius: 999px;
  color: white;
  background: rgba(5, 8, 22, 0.68);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 720;
}
.gp-poster-title {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}
.gp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.gp-section-head h2 {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.gp-section-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}
.gp-recent { margin-top: 20px; }
.gp-library-hero {
  min-height: clamp(170px, 26vh, 260px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    var(--library-bg, linear-gradient(135deg, rgba(20, 124, 255, 0.25), rgba(255, 107, 74, 0.14))),
    rgba(5, 8, 22, 0.76);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}
.gp-library-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(26px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.gp-library-hero p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.72);
}
.gp-library-count {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(#081126, #081126) padding-box, linear-gradient(135deg, var(--gp-gold), var(--gp-coral), var(--gp-purple)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}
.gp-library-count strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}
.gp-library-count span {
  display: block;
  max-width: 90px;
  color: var(--gp-soft);
  font-size: 11px;
}
.gp-media-section {
  margin-bottom: 24px;
}
.gp-media-discovery {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(70, 227, 110, 0.16), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(242, 76, 143, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.045);
}
.gp-category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 220px);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gp-category-strip::-webkit-scrollbar { display: none; }
.gp-category-strip button {
  flex: 0 0 auto;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(70, 227, 110, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 560;
  text-align: left;
}
.gp-category-strip button strong,
.gp-category-strip button span {
  display: block;
}
.gp-category-strip button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 640;
}
.gp-category-strip button span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}
.gp-category-strip button:hover {
  color: #071226;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-blue));
}
.gp-media-section h2 {
  margin: 0 0 10px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
  font-weight: 580;
  color: rgba(255, 255, 255, 0.84);
}
.gp-full-library {
  display: grid;
  gap: 18px;
}
.gp-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}
.gp-library-toolbar h1 {
  margin: 3px 0;
  font-size: clamp(20px, 2.4vw, 30px);
}
.gp-library-toolbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}
.gp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 16px;
  align-content: start;
}
.gp-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 206px));
  justify-content: start;
}
.gp-library-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(170px, 230px));
  gap: 20px;
}
.gp-search-shell {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(20, 124, 255, 0.18), rgba(70, 227, 110, 0.12), rgba(242, 76, 143, 0.13)),
    rgba(255, 255, 255, 0.055);
}
.gp-search-shell h1 {
  margin: 4px 0 14px;
  max-width: 760px;
  font-size: clamp(22px, 3.8vw, 42px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.gp-search-box {
  display: flex;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 18px;
}
.gp-search-box input {
  flex: 1;
  min-height: 46px;
  border-radius: 18px;
  border: 1px solid var(--gp-line);
  color: white;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.gp-search-results,
#gpSearchResults {
  display: grid;
  gap: 22px;
}
.gp-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gp-search-filters button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 13px;
  font-size: 12px;
}
.gp-search-filters button.is-active {
  color: #071226;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-gold));
}
.gp-search-group {
  display: grid;
  gap: 12px;
}
.gp-search-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gp-search-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.gp-search-card:hover {
  transform: translateY(-2px);
  border-color: rgba(70, 227, 110, 0.32);
  background: rgba(255, 255, 255, 0.08);
}
.gp-search-poster {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.gp-search-poster .gp-poster-art {
  border-radius: 14px;
}
.gp-search-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.gp-search-card-body .gp-poster-chip {
  position: static;
  width: max-content;
}
.gp-search-card-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 580;
  line-height: 1.18;
}
.gp-search-card-body > span:not(.gp-poster-chip) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.25;
}
.gp-search-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.gp-search-actions .gp-primary,
.gp-search-actions .gp-secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.gp-live-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(280px, 38%);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
}
.gp-categories, .gp-live-list {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}
.gp-category, .gp-channel {
  width: 100%;
  border: 0;
  color: white;
  text-align: left;
  background: transparent;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gp-category.is-active, .gp-channel:hover { background: rgba(70, 227, 110, 0.11); }
.gp-channel.is-selected {
  background: linear-gradient(90deg, rgba(20, 124, 255, 0.22), rgba(70, 227, 110, 0.13), rgba(255, 209, 102, 0.08));
  box-shadow: inset 3px 0 0 var(--gp-green);
}
.gp-channel-title { display: block; font-size: 14px; font-weight: 520; }
.gp-channel-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--gp-muted); }
.gp-preview {
  align-self: start;
  position: sticky;
  top: 0;
  height: min(100%, 560px);
  min-height: 320px;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}
.gp-preview video, .gp-playback video {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 20px;
  background: black;
  object-fit: contain;
}
.gp-preview-info {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.gp-live-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}
.gp-live-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.gp-live-controls, .gp-playback-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gp-epg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gp-soft);
}
.gp-epg-head strong {
  color: white;
  font-weight: 620;
}
.gp-epg-list {
  height: calc(100% - 54px);
  overflow: auto;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: 8px;
}
.gp-epg-list::-webkit-scrollbar { display: none; }
.gp-epg-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px minmax(130px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}
.gp-epg-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}
.gp-epg-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 520;
}
.gp-epg-program {
  position: relative;
  min-height: 42px;
  display: grid;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(20, 124, 255, 0.22), rgba(70, 227, 110, 0.12));
}
.gp-epg-program span {
  color: var(--gp-muted);
  font-size: 11px;
}
.gp-epg-program strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 520;
}
.gp-epg-program i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gp-green);
  box-shadow: 0 0 12px rgba(70, 227, 110, 0.85);
}
.gp-multi-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.gp-multi-card {
  min-height: 42px;
  border: 1px solid var(--gp-line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 16px;
}
.gp-multi-card.is-active {
  color: #03101d;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-cyan));
}
.gp-multi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: min(62vh, 560px);
}
.gp-multi-grid[data-layout="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-multi-slot {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  color: var(--gp-soft);
  background: rgba(0, 0, 0, 0.26);
  text-align: center;
  padding: 12px;
}
.gp-detail {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.gp-detail-art {
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.08);
}
.gp-detail h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); }
.gp-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.gp-secondary {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gp-line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 16px;
}
.gp-footer {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.gp-footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gp-footer span:last-child { margin-left: auto; text-align: right; }

.gp-modal, .gp-playback {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}
.gp-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--gp-line);
  border-radius: 28px;
  background: var(--gp-panel-strong);
}
.gp-info-box,
.gp-info-body {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.gp-info-grid {
  display: grid;
  gap: 9px;
}
.gp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.gp-info-row span {
  color: var(--gp-muted);
  font-size: 12px;
}
.gp-info-row strong {
  color: var(--gp-ink);
  font-size: 13px;
  text-align: right;
}
.gp-track-list,
.gp-playback-options {
  display: grid;
  gap: 12px;
}
.gp-track-list section,
.gp-playback-options section {
  display: grid;
  gap: 8px;
}
.gp-track-list section > div,
.gp-playback-options section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gp-track-option {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--gp-ink);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
}
.gp-track-option.is-active {
  color: #04111f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gp-green), var(--gp-cyan));
}

.gp-admin-separator {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 22px 0;
}
.gp-admin-asset {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gp-admin-asset:last-child { border-bottom: 0; }
.gp-admin-asset span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gp-gold), var(--gp-orange));
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gp-admin-asset strong {
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 880px) {
  .gp-home-stats { grid-template-columns: repeat(3, minmax(92px, 1fr)); overflow-x: auto; }
  .gp-home-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 420px; }
  .gp-mosaic-tile.is-wide { grid-column: span 2; }
  .gp-mosaic-tile.is-tall { grid-row: span 1; }
  .gp-library-hero { grid-template-columns: 1fr; }
  .gp-library-count { width: 104px; height: 104px; }
}
.gp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gp-line);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.gp-playback {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: stretch;
}
.gp-playback-close { z-index: 2; }
.gp-playback-title { align-self: end; max-width: calc(100vw - 90px); padding: 0 0 12px; font-weight: 650; }
.gp-playback-controls {
  justify-content: center;
  padding-top: 12px;
}
.gp-playback-options {
  justify-self: center;
  width: min(720px, 100%);
  padding: 14px;
  border: 1px solid var(--gp-line);
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.88);
}

@media (max-width: 820px) {
  html, body { overflow: hidden; }
  .gp-shell { padding: max(12px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); gap: 9px; }
  .gp-header { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; gap: 8px; min-height: 104px; }
  .gp-brand { grid-area: brand; }
  .gp-actions { grid-area: actions; }
  .gp-nav { grid-area: nav; justify-content: flex-start; gap: 13px; }
  .gp-gb-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .gp-wordmark { font-size: 25px; }
  .gp-nav-button, .gp-icon-button { width: 42px; height: 42px; }
  .gp-stage { border-radius: 24px; }
  .gp-view { padding: 48px 14px 16px; }
  .gp-hero { display: block; min-height: 0; }
  .gp-feature { min-height: 230px; margin-bottom: 14px; }
  .gp-rail { grid-auto-columns: minmax(148px, 42vw); padding-inline: 42px; scroll-padding-inline: 42px; }
  .gp-rail-featured .gp-rail { grid-auto-columns: minmax(168px, 48vw); }
  .gp-rail-arrow { width: 34px; height: 34px; font-size: 24px; }
  .gp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gp-search-results,
  #gpSearchResults { grid-template-columns: 1fr; }
  .gp-library-grid,
  .gp-library-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gp-live-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 36%) minmax(78px, 16%) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }
  .gp-preview { min-height: 0; height: 100%; grid-row: 1; }
  .gp-categories { grid-row: 2; height: 100%; max-height: none; }
  .gp-live-list { grid-row: 3; height: 100%; max-height: none; }
  .gp-detail { grid-template-columns: 1fr; }
  .gp-detail-art { width: min(180px, 45vw); }
  .gp-footer { font-size: 10px; gap: 8px; }
}

@media (max-width: 440px) {
  .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-library-grid,
  .gp-library-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gp-nav-text { font-size: 15px; }
  .gp-nav-small { font-size: 12px; }
}
