:root {
  --bg: #0f0f10;
  --bg-alt: #17171a;
  --card: #1f1f23;
  --border: #2c2c31;
  --text: #f2f2f2;
  --muted: #a0a0a8;
  --accent: #ff7a1a;
  --accent-dark: #e0620a;
  --radius: 10px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.05;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
.muted { color: var(--muted); }

/* Promo bar */
.promo-bar {
  background: var(--accent);
  color: #111;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 16px;
}
.promo-bar a { font-weight: 700; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 16, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  background: var(--accent); color: #111;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  padding: 6px 8px; border-radius: 6px; letter-spacing: 1px;
}
.logo-text {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: .95rem; line-height: 1;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .5px; color: var(--muted);
  transition: color .15s;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px; transition: background .15s;
}
.icon-btn:hover { background: var(--card); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--accent); color: #111;
  font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; }
.search-bar { display: none; padding: 12px 0 16px; }
.search-bar.open { display: block; }
.search-bar input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font: inherit;
}
.search-bar input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .5px;
  padding: 12px 24px; border-radius: 8px;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: #111; color: var(--text); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 122, 26, .18), transparent 55%),
    var(--bg);
  padding: 64px 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.tag {
  display: inline-block; background: var(--accent); color: #111;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 16px; letter-spacing: 1px;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Thumbnails */
.thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
}
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55));
}
.thumb-title {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%) rotate(-3deg);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: .95;
  color: #fff; text-shadow: 3px 3px 0 #000; z-index: 1;
}
.video-card .thumb-title { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s;
  transform: scale(.85);
}
.thumb:hover .play { opacity: 1; transform: scale(1); }
.hero-thumb .play { opacity: 1; transform: none; background: var(--accent); color: #111; }
.duration {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(0, 0, 0, .8); font-size: .78rem; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
}
.hero-thumb { box-shadow: 0 30px 60px -20px rgba(255, 122, 26, .35); }

.t-orange { background: linear-gradient(135deg, #ff7a1a, #b23b00); }
.t-blue   { background: linear-gradient(135deg, #1e6bff, #0a1f5c); }
.t-green  { background: linear-gradient(135deg, #1fbf75, #0b4d2e); }
.t-purple { background: linear-gradient(135deg, #8b5cf6, #3b1a7a); }
.t-red    { background: linear-gradient(135deg, #ff3b4a, #6e0f17); }
.t-teal   { background: linear-gradient(135deg, #14b8c4, #0a4a52); }
.t-gray   { background: linear-gradient(135deg, #5b5b66, #1c1c22); }
.t-yellow { background: linear-gradient(135deg, #ffc61a, #8a5b00); }

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-block: 28px; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.25rem; color: var(--accent); line-height: 1; }
.stats span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 5px; background: var(--accent); border-radius: 3px;
}
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--muted); transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #111; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }
.video-card h3 {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 12px 0 4px;
}
.video-card:hover h3 { color: var(--accent); }
.video-meta { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Series */
.series-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.series-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 28px 24px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--border); transition: transform .2s;
}
.series-card:hover { transform: translateY(-4px); }
.series-card h3 { font-size: 1.9rem; margin-bottom: 8px; }
.series-card p { color: rgba(255, 255, 255, .8); font-size: .92rem; margin-bottom: 14px; }
.series-card .link-arrow { color: #fff; }
.series-count {
  position: absolute; top: 20px; left: 24px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(0, 0, 0, .4); padding: 4px 10px; border-radius: 4px;
}
.s1 { background: linear-gradient(160deg, #ff7a1a 0%, #3a1600 100%); }
.s2 { background: linear-gradient(160deg, #1e6bff 0%, #071436 100%); }
.s3 { background: linear-gradient(160deg, #1fbf75 0%, #06301c 100%); }
.s4 { background: linear-gradient(160deg, #8b5cf6 0%, #1d0d40 100%); }

/* Store */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column;
}
.product-img {
  position: relative; aspect-ratio: 1; border-radius: 8px; margin-bottom: 14px;
  display: grid; place-items: center; background: #26262b;
}
.product-img svg { transition: transform .25s; }
.product:hover .product-img svg { transform: scale(1.1) rotate(-4deg); }
.badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #111; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
}
.badge-new { background: #fff; }
.product h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.product .price { color: var(--accent); font-weight: 700; margin: 4px 0 14px; }
.product .btn { margin-top: auto; }
.add-cart.added { background: #1fbf75; }

/* Community */
.community { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.community-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.community-card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.community-card p { color: var(--muted); margin-bottom: 22px; }
.community-card.highlight { background: var(--accent); color: #111; border-color: var(--accent); }
.community-card.highlight p { color: rgba(0, 0, 0, .75); }
.newsletter { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 8px;
  border: 0; font: inherit; background: #fff; color: #111;
}
.form-msg { font-weight: 700; margin: 12px 0 0 !important; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.about h2 { margin-bottom: 18px; }
.about p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.about-img {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #2a2a30, #121214);
  display: grid; place-items: center; border: 1px solid var(--border);
}
.about-img span {
  font-family: var(--font-head); font-weight: 800; font-size: 6rem;
  color: var(--accent); letter-spacing: 4px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a0a0b; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 1.1rem; color: var(--accent); margin-bottom: 14px; }
.footer-grid > div > a:not(.logo) { display: block; color: var(--muted); margin-bottom: 8px; font-size: .92rem; }
.footer-grid > div > a:not(.logo):hover { color: var(--text); }
.footer-grid .muted { margin: 14px 0 18px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; border-radius: 8px; background: var(--card);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.socials a:hover { background: var(--accent); color: #111; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-block: 22px; color: var(--muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .series-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .community { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .menu-toggle { display: grid; }
  .subscribe { display: none; }
  .hero-inner, .about { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .series-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; }
  .section { padding: 56px 0; }
}
