@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #05060a;
  --panel: #0b0d14;
  --panel-2: #10131d;
  --line: rgba(255,255,255,.08);
  --text: #f5f7fb;
  --muted: #8f96aa;
  --muted-2: #646b7d;
  --purple: #926cff;
  --cyan: #4ee7ff;
  --pink: #ff6ccf;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(74,66,166,.14), transparent 30%),
    radial-gradient(circle at 10% 70%, rgba(62,140,170,.08), transparent 28%),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell { min-height: 100vh; }

.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(300px, 620px) 220px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 32px;
  background: rgba(5,6,10,.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.brand > span:last-child > span { color: #8d91a2; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, #a77dff, #5cd8ff);
  color: #fff; box-shadow: 0 0 30px rgba(121,124,255,.3);
}

.search {
  height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035);
}
.search-icon { color: var(--muted); font-size: 23px; line-height: 1; transform: rotate(-10deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.search input::placeholder { color: #6f7688; }
.search kbd { color: #767d90; white-space: nowrap; border: 1px solid var(--line); border-bottom-color: rgba(255,255,255,.14); border-radius: 7px; padding: 4px 7px; font-size: 11px; }

.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.icon-btn, .avatar { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); cursor: pointer; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; font-size: 11px; font-weight: 700; background: linear-gradient(135deg, #3d2b7d, #1d8098); }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1600px; margin: 0 auto; }
.sidebar { min-height: calc(100vh - 76px); padding: 28px 18px; border-right: 1px solid var(--line); position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; }
.nav-section { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 12px; color: #979eae; font-size: 13px; font-weight: 600; transition: .2s ease; }
.nav-item span { width: 18px; text-align: center; color: #6e7587; font-size: 15px; }
.nav-item:hover, .nav-item.active { background: rgba(146,108,255,.10); color: #eeeafc; }
.nav-item.active { box-shadow: inset 2px 0 0 var(--purple); }
.nav-item.active span { color: #b39aff; }
.nav-divider { height: 1px; margin: 24px 10px; background: var(--line); }
.nav-title, .section-kicker { margin: 0 0 10px 13px; font-size: 10px; letter-spacing: .17em; color: #5c6376; font-weight: 700; }

.sidebar-note { position: relative; overflow: hidden; margin: auto 4px 18px; padding: 23px 16px 18px; min-height: 145px; border: 1px solid rgba(143,115,255,.20); border-radius: 18px; background: linear-gradient(145deg, rgba(130,91,255,.13), rgba(37,53,83,.08)); }
.sidebar-note strong, .sidebar-note p { position: relative; z-index: 2; display: block; max-width: 150px; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note p { margin: 7px 0 0; color: #858ca0; font-size: 11px; line-height: 1.5; }
.note-planet { position: absolute; right: -16px; bottom: -13px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #c2a7ff 0, #7651bb 34%, #271f5a 72%, #121329 100%); box-shadow: 0 0 45px rgba(129,104,255,.26); }
.note-orbit { position: absolute; width: 120px; height: 40px; border: 1px solid rgba(196,185,255,.34); border-radius: 50%; right: -33px; bottom: 18px; transform: rotate(-22deg); }
.orbit-two { transform: rotate(18deg); opacity: .55; }
.sidebar-footer { color: #4c5362; font-size: 9px; letter-spacing: .08em; padding: 0 12px; }

.content { min-width: 0; padding: 30px 34px 60px; }
.hero { position: relative; overflow: hidden; min-height: 410px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(114deg, #11101b 0%, #0b0d16 49%, #101326 100%); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.6) .7px, transparent .7px); background-size: 24px 24px; opacity: .09; mask-image: linear-gradient(90deg, #000, transparent 65%); }
.hero-stars { position: absolute; inset: 0; background: radial-gradient(circle at 76% 55%, rgba(168,132,255,.18), transparent 20%), radial-gradient(circle at 91% 14%, rgba(77,214,255,.16), transparent 16%); }
.hero-glow { position: absolute; width: 480px; height: 480px; right: 4%; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(109,93,250,.23), transparent 62%); filter: blur(8px); }
.hero-copy { position: relative; z-index: 4; width: 56%; padding: 56px 42px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #8d95a8; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #66edcd; box-shadow: 0 0 14px rgba(102,237,205,.85); }
.hero h1 { margin: 17px 0; max-width: 620px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 4vw, 68px); line-height: .97; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #d7ccff, #75dcff 70%); -webkit-background-clip: text; color: transparent; }
.hero-copy p { max-width: 540px; margin: 0; color: #9299aa; font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; gap: 11px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.btn-primary { background: #f1eefb; color: #15121f; box-shadow: 0 12px 30px rgba(187,167,255,.15); }
.btn-ghost { border: 1px solid var(--line); color: #9ea6b8; background: rgba(255,255,255,.03); }
.hero-planet { position: absolute; right: -32px; top: 50%; width: 430px; height: 430px; transform: translateY(-50%); }
.planet-core { position: absolute; inset: 64px; border-radius: 50%; background: radial-gradient(circle at 31% 27%, #d8cfff 0, #8a6ad4 24%, #3f347c 55%, #17152d 100%); box-shadow: inset -28px -24px 60px rgba(0,0,0,.44), inset 17px 5px 45px rgba(255,255,255,.13), 0 0 90px rgba(136,112,255,.25); }
.planet-shadow { position: absolute; inset: 71px 72px 52px 55px; border-radius: 50%; background: radial-gradient(circle at 65% 36%, transparent 0 42%, rgba(1,2,5,.67) 68%, rgba(0,0,0,.92) 100%); z-index: 2; }
.planet-ring { position: absolute; inset: 160px -10px 160px -10px; border: 1px solid rgba(186,168,255,.45); border-radius: 50%; transform: rotate(-17deg); }
.ring-b { inset: 148px -22px 148px -22px; transform: rotate(18deg); opacity: .32; }

.section { padding-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head.compact { margin-bottom: 15px; }
.section-head h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 24px; letter-spacing: -.025em; }
.section-link { color: #858da0; font-size: 11px; font-weight: 600; }
.section-link:hover { color: #c4b8ff; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 18px; }
.video-card { min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; background: #171a26; border: 1px solid rgba(255,255,255,.06); }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.42)); }
.thumb-chip, .duration { position: absolute; z-index: 2; top: 10px; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.thumb-chip { left: 10px; color: #c9c0ff; background: rgba(42,31,76,.75); border: 1px solid rgba(181,153,255,.28); }
.duration { right: 10px; color: #f7f7fb; background: rgba(0,0,0,.55); }
.play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: #fff; background: rgba(11,10,17,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 14px; opacity: 0; transition: .2s ease; }
.thumb:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1.04); }
.card-body { padding: 11px 2px 0; }
.meta { display: block; color: #70788b; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.card-body h3 { margin: 7px 0 7px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.card-body p { margin: 0 0 10px; color: #858d9f; font-size: 11px; line-height: 1.5; }
.card-author { display: flex; align-items: center; gap: 7px; color: #8c93a4; font-size: 10px; }
.author-avatar { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #e8e1ff; background: #3d3472; font-size: 7px; font-weight: 800; }
.author-avatar.orange { background: #70452f; color: #ffd9c6; }
.author-avatar.violet { background: #4b386c; }
.author-avatar.blue { background: #2d526f; }
.author-avatar.gold { background: #5f4b27; color: #ffe9a6; }
.author-avatar.green { background: #2d564b; color: #ccffe9; }
.views { margin-left: auto; color: #666e81; }

.thumb-nebula { background: radial-gradient(circle at 70% 56%, rgba(197,101,255,.85), transparent 14%), radial-gradient(circle at 42% 42%, rgba(95,159,255,.63), transparent 19%), radial-gradient(circle at 73% 29%, rgba(255,129,220,.52), transparent 15%), linear-gradient(130deg, #080a17 5%, #171034 55%, #07131b 100%); }
.thumb-nebula::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.78) 0 1px, transparent 1px); background-size: 27px 23px; opacity: .55; }
.thumb-mars { background: radial-gradient(circle at 56% 50%, #f08a4c 0 14%, #8c3e29 40%, transparent 41%), linear-gradient(140deg, #110d14, #49241e 54%, #120b11); }
.thumb-blackhole { background: radial-gradient(circle at 54% 50%, #020206 0 13%, transparent 14%), radial-gradient(ellipse at 54% 52%, rgba(255,157,70,.88) 0 9%, rgba(152,87,255,.62) 17%, transparent 36%), linear-gradient(135deg,#05040b,#211332 65%,#0b0815); }
.thumb-earth { background: radial-gradient(circle at 56% 47%, #4cd8ff 0 16%, #1d5cc4 31%, transparent 32%), radial-gradient(circle at 52% 45%, rgba(255,255,255,.35) 0 23%, transparent 24%), linear-gradient(145deg, #040b1a, #10285d 60%, #03121b); }
.thumb-saturn { background: radial-gradient(circle at 53% 42%, #dfb56e 0 18%, #8f663c 31%, transparent 32%), linear-gradient(140deg,#100c0c,#42352b 54%,#0b0b12); }
.thumb-iss { background: linear-gradient(150deg, rgba(124,202,255,.35), transparent 25%), radial-gradient(circle at 77% 26%, #d5ebff 0 2%, transparent 2.5%), linear-gradient(135deg,#061323,#071d36 55%,#02080f); }

.topics { padding-top: 42px; }
.topic-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.topic-card { min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; position: relative; overflow: hidden; padding: 17px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); }
.topic-card::before { content: ''; position: absolute; width: 90px; height: 90px; right: -26px; top: -26px; border-radius: 50%; background: radial-gradient(circle, rgba(146,108,255,.25), transparent 62%); }
.topic-card span { color: #aa9bff; font-size: 22px; }
.topic-card strong { font-size: 12px; }
.topic-card small { color: #686f80; font-size: 9px; }

@media (max-width: 1150px) {
  .topbar { grid-template-columns: 200px minmax(240px, 1fr) 110px; padding: 0 22px; }
  .layout { grid-template-columns: 200px minmax(0,1fr); }
  .content { padding-inline: 24px; }
  .hero-copy { width: 62%; padding-inline: 34px; }
  .hero-planet { right: -110px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topic-row { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  .topbar { grid-template-columns: 1fr auto; height: 68px; }
  .search { display: none; }
  .layout { display: block; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 25; min-height: 0; height: auto; border-right: 0; border-top: 1px solid var(--line); padding: 8px; background: rgba(6,7,12,.93); backdrop-filter: blur(18px); }
  .sidebar .nav-section { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
  .sidebar .nav-section:nth-of-type(2), .nav-title, .sidebar-note, .sidebar-footer, .nav-divider { display: none; }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 9px; }
  .nav-item span { width: auto; font-size: 14px; }
  .content { padding: 18px 14px 100px; }
  .hero { min-height: 490px; }
  .hero-copy { width: 100%; padding: 32px 24px; }
  .hero-planet { right: -170px; top: 67%; width: 390px; height: 390px; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero-copy p { max-width: 92%; }
  .section { padding-top: 36px; }
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .topic-row { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 21px; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 14px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .hero { border-radius: 22px; }
  .hero-actions { flex-wrap: wrap; }
  .btn { width: 100%; }
  .hero-planet { right: -190px; top: 70%; }
  .topic-row { grid-template-columns: 1fr; }
}
