:root {
  --bg: #14052a;
  --bg-2: #2b0f3a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #f8f9ff;
  --muted: #c7bcd6;
  --accent: #ff8a00;
  --accent-2: #ff5500;
  --card: rgba(0, 0, 0, 0.25);
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --focus: 0 0 0 3px rgba(255, 170, 0, 0.85);
}

html, body { height: 100%; }

html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, rgba(160, 0, 180, 0.08) 25%, rgba(255, 140, 0, 0.08) 50%, rgba(160, 0, 180, 0.08) 75%, rgba(255, 140, 0, 0.08) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 4px),
    linear-gradient(to bottom, rgba(10,0,24,.9), rgba(10,0,24,.55) 60%, rgba(10,0,24,.9));
  background-color: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header {
  width: min(1100px, 92vw);
  margin: 1rem auto;
  padding: 1.75rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(8, 0, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 600ms ease both;
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 138, 0, 0.6);
  letter-spacing: .2px;
}

main {
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}

.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.20);
  margin: 1rem auto;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content {
  padding: 1rem;
}

.product-ad {
  display: inline-block;
  padding: 0.6rem 1rem;
  margin: 0.4rem;
  border-radius: 10px;
  background: rgba(2, 0, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.product-ad a { color: var(--text); text-decoration: none; display: block; padding: 0.4rem 0; }

.product-ad p { margin: 0; font-weight: 600; }

.sponsored-page { display: inline-block; padding: 0.6rem 1rem; margin: 0.4rem; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.28); }

footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

ul, li { margin: 0; padding: 0; list-style: none; }

a, button, .btn, .cta { color: inherit; text-decoration: none; cursor: pointer; }

a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

a:hover, a:focus { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #111;
  font-weight: 700;
}

.btn.secondary {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
}

.cta {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.tag {
  display: inline-block;
  padding: 0.15em 0.6em;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255, 140, 0, 0.25);
}

.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1120px);
  padding-inline: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html, body, header, main, article, footer { animation: none !important; transition: none !important; }
  .image-frame { transition: none; transform: none; }
}

@media print {
  body { background: white; color: #000; }
  header, main, footer { background: none; box-shadow: none; }
}