:root {
  --bg: #10002b;
  --bg-2: #240046;
  --surface: #3c096c;
  --surface-2: rgba(60, 9, 108, 0.58);
  --hover: #5a189a;
  --cta: #7b2cbf;
  --active: #9d4edd;
  --glow: #e0aaff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 90px rgba(8, 0, 24, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 76% 4%, rgba(224, 170, 255, 0.22), transparent 26rem),
    linear-gradient(to bottom, #10002b, #240046 48%, #3c096c);
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  overflow: hidden;
}

.section-pad {
  padding: 54px clamp(18px, 5vw, 76px);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 5vw, 76px);
  background: rgba(16, 0, 43, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
  padding-block: 12px;
  background: rgba(16, 0, 43, 0.86);
}

.brand,
.nav-actions,
.nav-links,
.hero-cta-row,
.section-heading.split,
.mini-controls,
.action-pack,
.filter-row,
.tabs,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta), var(--active));
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
}

.nav-links {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0;
  transform: scaleX(0.55);
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.profile-button,
.ghost-button,
.text-action,
.category-strip button,
.filter-row button,
.tabs button,
.action-pack button,
.oauth-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
}

.icon-button svg,
.primary-button svg,
.ghost-button svg,
.text-action svg,
.action-pack svg,
.mobile-nav svg {
  width: 18px;
  height: 18px;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--glow);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px 0 5px;
  border-radius: 16px;
  font-weight: 800;
}

.profile-button img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: cover;
}

.hero {
  padding-top: 26px;
}

.hero-slider {
  position: relative;
  min-height: clamp(620px, 78vh, 760px);
  border-radius: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 40px;
  min-height: inherit;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 0, 43, 0.92), rgba(36, 0, 70, 0.58), rgba(16, 0, 43, 0.38)),
    linear-gradient(0deg, rgba(16, 0, 43, 0.72), transparent 54%);
  backdrop-filter: blur(1px);
}

.hero-content {
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Sora, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content p {
  max-width: 550px;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-cta-row {
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--active));
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button.small {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 14px;
}

.primary-button.full {
  width: 100%;
}

.floating-stack {
  position: relative;
  min-height: 440px;
}

.float-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card.large {
  inset: 44px 10px 34px 0;
}

.float-card.small {
  width: 190px;
  height: 130px;
}

.float-card.small.top {
  top: 0;
  right: 0;
}

.float-card.small.bottom {
  bottom: 0;
  left: 22px;
}

.float-card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 900;
}

.slider-controls {
  position: absolute;
  left: clamp(46px, 8vw, 96px);
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 32px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--glow);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading.split {
  justify-content: space-between;
  gap: 20px;
}

.category-strip {
  display: flex;
  gap: 14px;
  padding: 4px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.watch-row::-webkit-scrollbar {
  display: none;
}

.category-strip button {
  position: relative;
  flex: 0 0 auto;
  min-height: 66px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 20px;
  font-weight: 900;
}

.category-strip button::after {
  position: absolute;
  right: 22px;
  bottom: 13px;
  left: 22px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.category-strip button:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.video-card,
.creator-card,
.surface-block,
.auth-card,
.creator-info,
.description-box,
.comments-box,
.video-meta-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(6, 0, 24, 0.22);
}

.video-card {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(16, 0, 43, 0.32);
  transition: opacity 0.22s ease;
}

.play-overlay span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta), var(--active));
}

.video-card:hover,
.creator-card:hover,
.category-strip button:hover,
.icon-button:hover,
.profile-button:hover,
.ghost-button:hover,
.filter-row button:hover,
.tabs button:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 170, 255, 0.4);
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.25);
}

.video-card:hover .thumb img {
  transform: scale(1.07);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--glow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body h3 {
  min-height: 58px;
  margin-bottom: 12px;
  font-size: 18px;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

.text-action {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
}

.watch-row {
  display: grid;
  grid-auto-columns: minmax(260px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.watch-item {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
}

.watch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-item div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.progress i {
  display: block;
  height: 100%;
  background: var(--glow);
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.feature-story {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
}

.feature-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-story div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(16, 0, 43, 0.94));
}

.latest-list {
  display: grid;
  gap: 16px;
}

.latest-mini,
.related-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.latest-mini img,
.related-item img {
  width: 132px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.latest-mini h3,
.related-item h4 {
  margin-bottom: 7px;
  font-size: 16px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.creator-card {
  padding: 20px;
  border-radius: var(--radius);
}

.creator-card img {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border: 3px solid rgba(224, 170, 255, 0.55);
  border-radius: 50%;
  object-fit: cover;
}

.creator-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.creator-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(157, 78, 221, 0.34);
  font-weight: 900;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 24px;
  align-items: start;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.player img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--active));
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.player-bar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  font-weight: 900;
}

.video-meta-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
}

.action-pack {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-pack button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
}

.creator-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
}

.creator-info img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.description-box,
.comments-box {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
}

.description-box summary {
  margin-bottom: 12px;
  font-weight: 900;
  cursor: pointer;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-header select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  background: #240046;
}

.comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 14px;
}

.comment img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.related-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.related-item {
  grid-template-columns: 118px 1fr;
}

.related-item img {
  width: 118px;
}

.discovery-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.surface-block {
  overflow: hidden;
  border-radius: 26px;
}

.banner-strip {
  position: relative;
  min-height: 270px;
  display: grid;
  align-items: end;
  padding: 26px;
  overflow: hidden;
}

.banner-strip img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-strip::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(transparent, rgba(16, 0, 43, 0.92));
}

.filter-row {
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px;
}

.filter-row button,
.tabs button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 900;
}

.filter-row button.active,
.tabs button.active {
  background: rgba(157, 78, 221, 0.38);
  border-color: rgba(224, 170, 255, 0.46);
}

.search-page {
  padding: 24px;
}

.search-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
}

.search-filters {
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--muted);
}

.search-filters label {
  display: flex;
  gap: 9px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(224, 170, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.keyword-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.profile-header {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-2);
}

.profile-cover {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.profile-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 0 28px 22px;
  margin-top: -58px;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border: 5px solid var(--bg-2);
  border-radius: 50%;
  object-fit: cover;
}

.tabs {
  gap: 10px;
  padding: 0 28px 24px;
  overflow-x: auto;
}

.auth-section {
  display: grid;
  place-items: center;
  min-height: 560px;
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 170, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 70% 70%, rgba(123, 44, 191, 0.24), transparent 18rem);
}

.auth-card {
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 26px;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 18px 0;
  border-radius: 16px;
  font-weight: 900;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-card input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding-bottom: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  max-width: 480px;
}

.footer-links {
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 13px;
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(16, 0, 43, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.mobile-nav a {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 52px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mobile-nav a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .navbar {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .floating-stack {
    display: none;
  }

  .video-grid,
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-layout,
  .watch-layout,
  .discovery-pages {
    grid-template-columns: 1fr;
  }

  .related-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .section-pad {
    padding: 38px 16px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .nav-actions .icon-button,
  .profile-button span {
    display: none;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-slide {
    padding: 28px 20px 72px;
    border-radius: 24px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-heading.split,
  .video-meta-panel,
  .creator-info,
  .profile-content,
  .footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .video-grid,
  .creator-grid {
    grid-template-columns: 1fr;
  }

  .feature-story {
    min-height: 420px;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .profile-content {
    align-items: start;
  }

  .mobile-nav {
    display: grid;
  }
}
