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

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #07040a;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #07040a;
  color: #f7f6f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.leaving {
  opacity: 0;
  transform: translateY(6px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 14% 12%, rgba(225, 29, 72, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 86% 22%, rgba(147, 51, 234, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(88, 28, 135, 0.12) 0%, transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button, input, textarea {
  font: inherit;
  touch-action: manipulation;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

/* ── Animated Stars (Crimson & Violet Accents) ── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0 !important;
  opacity: 0.65 !important;
  perspective: 900px;
}

.stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fce7f3;
  box-shadow: 0 0 8px rgba(253, 232, 241, 0.55);
  opacity: 0.35;
  transform: translate3d(calc(var(--mx, 0) * var(--z) * 18px), calc(var(--my, 0) * var(--z) * 18px), 0);
  animation: realStar 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1);
  will-change: transform, opacity, filter;
}

.stars i:nth-child(3n) {
  background: #ff2a5f;
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.85);
}

.stars i:nth-child(5n) {
  background: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.85);
}

@keyframes realStar {
  0% { opacity: 0.12; filter: brightness(0.8); }
  50% { opacity: 0.65; filter: brightness(1.4); }
  100% { opacity: 0.85; filter: brightness(1.9); }
}

/* ── Top Navigation (Sharp, Frosted Obsidian & Ruby Glow) ── */
.nav-shell {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(7, 4, 10, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(225, 29, 72, 0.22) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 19px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:active {
  transform: scale(0.98);
}

.brand span {
  background: linear-gradient(135deg, #ffffff 30%, #ff2a5f 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 10px rgba(225, 29, 72, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  flex-shrink: 0;
}

.brand:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 16px rgba(244, 63, 94, 0.7));
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: auto;
  font-size: 13px;
  font-weight: 600;
  color: #a197aa;
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff2a5f, #c084fc);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* ── Sharp, Tactile Smooth Buttons ── */
.button {
  border: 1px solid rgba(225, 29, 72, 0.25);
  background: #110716;
  color: #f3eff6;
  border-radius: 9px;
  height: 40px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background 0.2s ease,
              filter 0.2s ease;
  user-select: none;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.55);
  background: #170a1e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(225, 29, 72, 0.25);
}

.button:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  transition-duration: 0.06s;
  filter: brightness(0.92);
}

.button-primary {
  background: linear-gradient(135deg, #ff2a5f 0%, #e11d48 40%, #9333ea 80%, #7928ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 8px 24px rgba(225, 29, 72, 0.42),
              0 0 18px rgba(147, 51, 234, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 12px 36px rgba(244, 63, 94, 0.65),
              0 0 28px rgba(168, 85, 247, 0.45);
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.button-primary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
  transition-duration: 0.06s;
  filter: brightness(0.95);
}

.wide {
  width: 100%;
}

/* ── Hero Section ── */
.hero {
  padding: 96px 0 64px;
}

.eyebrow, .section-kicker, .panel-label, .mini-label, .catalog-tools {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bf98ab;
  font-weight: 600;
}

.status-dot, .presence {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a5f;
  box-shadow: 0 0 12px #ff2a5f, 0 0 20px rgba(255, 42, 95, 0.6);
  margin-right: 8px;
  animation: livePulseRuby 1.5s ease-in-out infinite;
}

@keyframes livePulseRuby {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(255, 42, 95, 0);
  }
}

.hero h1, .page-hero h1 {
  font-size: clamp(48px, 6.8vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  margin: 18px 0 24px;
  font-weight: 900;
}

.hero h1 span, .page-hero h1 span {
  background: linear-gradient(135deg, #ffffff 20%, #ff2a5f 60%, #c084fc 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(244, 63, 94, 0.35));
}

.type-hero {
  min-height: 120px;
}

.type-caret {
  display: inline-block;
  font-size: 0.75em;
  margin-left: 6px;
  color: #ff2a5f;
  text-shadow: 0 0 16px #ff2a5f, 0 0 30px #c084fc;
  animation: caretBlink 0.72s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.hero-copy, .page-hero p {
  max-width: 680px;
  color: #aba1b5;
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  color: #7a6e84;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-proof b {
  color: #ff2a5f;
  font-weight: 700;
}

.hero-proof i {
  width: 48px;
  height: 1px;
  background: rgba(225, 29, 72, 0.25);
}

/* ── Preview Stage & Window (Sharp Obsidian Glass) ── */
.preview {
  padding-bottom: 56px;
}

.window {
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0511;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.75),
              0 0 45px rgba(225, 29, 72, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.window-bar {
  height: 48px;
  border-bottom: 1px solid rgba(225, 29, 72, 0.18);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
  background: rgba(14, 7, 20, 0.85);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b1536;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.address {
  margin: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #8f7e9a;
}

.address b {
  color: #ff4d79;
}

.live {
  font-size: 10px;
  color: #b19ebc;
  display: flex;
  align-items: center;
}

.watch-shell {
  display: grid;
  grid-template-columns: 1fr 310px;
  min-height: 560px;
}

.stage {
  position: relative;
  min-height: 560px;
  background: linear-gradient(180deg, rgba(7, 4, 10, 0.2), rgba(7, 4, 10, 0.92)), url('../img/posters/interstellar.jpg') center/cover;
  display: flex;
  align-items: flex-end;
  padding: 42px;
}

.stage-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 9px;
  background: rgba(11, 5, 17, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(225, 29, 72, 0.4);
  font: 10px 'JetBrains Mono', monospace;
  color: #ff4d79;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(225, 29, 72, 0.25);
}

.stage-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.6));
  flex-shrink: 0;
}

.stage h3 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 8px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.stage p {
  color: #c9bed2;
  font-size: 13px;
}

.side-panel, .room-sidebar {
  background: #09040d;
  border-left: 1px solid rgba(225, 29, 72, 0.18);
  padding: 24px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
}

.panel-top small, .panel-top strong {
  display: block;
}

.panel-top strong {
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
  color: #fff;
  letter-spacing: 0.05em;
}

.room-code, .tag, .pro-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(225, 29, 72, 0.45);
  border-radius: 7px;
  color: #ff4d79;
  background: rgba(225, 29, 72, 0.08);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.panel-label {
  display: block;
  margin: 22px 0 12px;
}

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.avatar-img, .member img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 1px solid rgba(225, 29, 72, 0.3) !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.avatar, .tiny-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2a5f, #a855f7);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
}

.avatar.b {
  background: linear-gradient(135deg, #9333ea, #db2777);
}

.avatar.c {
  background: linear-gradient(135deg, #e11d48, #c026d3);
}

.member div {
  flex: 1;
}

.member strong, .member small {
  display: block;
}

.member strong {
  font-size: 12px;
  font-weight: 700;
  color: #eee9f4;
}

.member small {
  font-size: 10px;
  color: #8b7d95;
  margin-top: 3px;
}

.presence {
  width: 6px;
  height: 6px;
  margin: 0;
}

.chat {
  margin-top: 18px;
}

.bubble {
  font-size: 11px;
  color: #aba1b5;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bubble b {
  color: #f7f6f9;
  font-weight: 700;
}

/* ── Section Structure ── */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.045em;
  margin: 16px 0 0;
}

.section-head p {
  max-width: 470px;
  color: #8f819b;
  line-height: 1.7;
  font-size: 14px;
}

.section-index {
  color: #ff2a5f;
  text-shadow: 0 0 14px rgba(255, 42, 95, 0.5);
  margin-right: 8px;
  font-weight: 700;
}

.catalog-tools {
  border-top: 1px solid rgba(225, 29, 72, 0.18);
  border-bottom: 1px solid rgba(225, 29, 72, 0.18);
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
}

/* ── Movie Tiles Grid (Sharp Corners & Smooth Elevate) ── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.movie-tile {
  min-width: 0;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.movie-tile:hover {
  transform: translateY(-5px);
}

.movie-tile:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: 0.06s;
}

.movie-tile img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(225, 29, 72, 0.25);
  background: #110717;
  display: block;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.movie-tile:hover img {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 14px 35px rgba(225, 29, 72, 0.35), 0 0 18px rgba(168, 85, 247, 0.2);
  filter: brightness(1.1);
}

.movie-tile strong {
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eee9f4;
}

.movie-tile span {
  font-size: 9px;
  color: #8c7c98;
}

/* ── Public Rooms (Sharp Geometric Glass) ── */
.room-grid, .discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.public-room {
  border: 1px solid rgba(225, 29, 72, 0.22);
  background: #0c0612;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease;
  outline: none;
}

.public-room:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 18px 45px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(225, 29, 72, 0.25),
              0 0 18px rgba(168, 85, 247, 0.18);
}

.public-room:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.06s;
}

.room-cover {
  height: 185px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(225, 29, 72, 0.15);
}

.room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.public-room:hover .room-cover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

.watchers {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(7, 4, 10, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(225, 29, 72, 0.3);
  font: 9px 'JetBrains Mono', monospace;
  color: #f7f6f9;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.room-info {
  padding: 18px;
}

.room-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.room-info p {
  margin: 0;
  color: #8c7d97;
  font-size: 12px;
}

.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.profile-stack {
  display: flex;
  align-items: center;
}

.profile-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0c0612;
  margin-left: -6px;
  background: #180a22;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-stack img:first-child {
  margin-left: 0;
}

.profile-stack img:hover {
  transform: translateY(-3px) scale(1.15);
  z-index: 4;
}

.more-people {
  height: 28px;
  min-width: 38px;
  padding: 0 8px;
  margin-left: -5px;
  border-radius: 999px;
  border: 2px solid #0c0612;
  background: #180a22;
  display: grid;
  place-items: center;
  font: 8px 'JetBrains Mono', monospace;
  color: #d1b4c9;
  font-weight: 700;
}

/* ── Discover & Filter Tools ── */
.page-hero {
  padding: 88px 0 24px;
}

.page-hero h1 {
  font-size: clamp(52px, 7vw, 76px);
  letter-spacing: -0.06em;
}

.discover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.discover-top strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.discover-top span {
  display: block;
  color: #8f809b;
  font-size: 11px;
  margin-top: 4px;
}

.discover-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discover-search {
  width: 280px;
  height: 40px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  background: #0d0614;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discover-search:focus-within {
  border-color: #ff2a5f;
  box-shadow: 0 0 0 3px rgba(255, 42, 95, 0.22);
}

.discover-search span {
  font-size: 18px;
  color: #8c7c98;
}

.discover-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f7f6f9;
  outline: 0;
  font-size: 11px;
}

.discover-search input::placeholder {
  color: #6b5c77;
}

.discover-filters {
  display: flex;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(225, 29, 72, 0.22);
  background: #0e0716;
  color: #9d8fa9;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip:hover {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.chip:active {
  transform: scale(0.96);
}

.chip.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.28), rgba(147, 51, 234, 0.25));
  border-color: #ff2a5f;
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.3);
}

.discover-empty {
  display: none;
  padding: 70px 0;
  text-align: center;
  color: #847490;
  font-size: 14px;
}

.discover-empty.show {
  display: block;
}

/* ── Room App Layout ── */
.room-app {
  width: min(1320px, calc(100% - 48px));
  margin: 45px auto 90px;
}

.room-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.room-head h1 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.room-head-actions {
  display: flex;
  gap: 10px;
}

.room-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: #09040d;
  min-height: 650px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.player-panel {
  padding: 16px;
}

.player-stage {
  height: 570px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #1a0827, #07030b 60%);
  border: 1px solid rgba(225, 29, 72, 0.18);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.player-empty {
  text-align: center;
  color: #8f819b;
}

.player-empty img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  margin-bottom: 16px !important;
  filter: drop-shadow(0 0 28px rgba(225, 29, 72, 0.6));
  animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 20px rgba(225, 29, 72, 0.45)); }
  100% { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 0 35px rgba(244, 63, 94, 0.75)); }
}

.player-empty h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.url-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.url-bar input, .share-line input, .modal-card input, .gate-input input, .support-card input, .support-card textarea {
  width: 100%;
  border: 1px solid rgba(225, 29, 72, 0.25);
  background: #0c0612;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-bar input:focus, .support-card input:focus, .support-card textarea:focus, .modal-card input:focus, .gate-input input:focus {
  border-color: #ff2a5f;
  box-shadow: 0 0 0 3px rgba(255, 42, 95, 0.22);
}

.room-sidebar {
  padding: 20px;
}

.side-block {
  border-bottom: 1px solid rgba(225, 29, 72, 0.16);
  padding-bottom: 18px;
}

.share-line {
  display: flex;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.share-line input {
  font: 10px 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-line .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Modals & Gates ── */
.modal, .join-gate, .restriction {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.open, .join-gate.open, .restriction.open {
  display: grid;
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 7, 0.82);
  backdrop-filter: blur(14px);
}

.modal-card, .join-card {
  position: relative;
  width: min(460px, 100%);
  background: rgba(14, 7, 20, 0.96);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.modal-card p, .join-card p {
  color: #9d8ea8;
  line-height: 1.65;
  font-size: 13px;
  margin: 8px 0 18px;
}

.modal-card label, .support-card label {
  display: block;
  text-align: left;
  font: 10px 'JetBrains Mono', monospace;
  color: #be99b3;
  margin: 16px 0 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal-icon, .notice-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(147, 51, 234, 0.18));
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #ff2a5f;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 8px;
  background: #110717;
  color: #a395af;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.x:hover {
  border-color: #ff2a5f;
  color: #fff;
  transform: scale(1.08);
}

.x:active {
  transform: scale(0.92);
}

.room-blur {
  position: absolute;
  inset: 0;
  background: rgba(7, 4, 10, 0.4);
  backdrop-filter: blur(18px) saturate(0.8);
}

.gate-step {
  display: none;
}

.gate-step.active {
  display: block;
}

.join-card > img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important;
  margin: 0 auto 16px !important;
  display: block !important;
  filter: drop-shadow(0 8px 24px rgba(225, 29, 72, 0.45));
}

.join-card h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.gate-actions > * {
  flex: 1;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 72, 0.2);
  border-top-color: #ff2a5f;
  animation: spin 0.75s linear infinite;
  margin: 6px auto 16px;
}

.spinner.big {
  width: 44px;
  height: 44px;
  border-width: 3px;
}

.success {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #ff4d79;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 22px;
}

.spoiler-box {
  padding: 14px;
  border: 1px dashed rgba(225, 29, 72, 0.4);
  border-radius: 8px;
  font: 10px 'JetBrains Mono', monospace;
  color: #e9a6c7;
  margin-top: 18px;
  letter-spacing: 0.1em;
}

/* ── Pro & Pricing Cards ── */
.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px;
  border: 1px solid rgba(225, 29, 72, 0.35);
  background: linear-gradient(135deg, #120619 0%, #1f092b 50%, #100517 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(225, 29, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 22px;
}

.pricing-card h2 {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
}

.pricing-card h2 small {
  font-size: 14px;
  color: #8c7c98;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-grid-dense {
  grid-template-columns: repeat(3, 1fr);
}

.card, .support-card {
  border: 1px solid rgba(225, 29, 72, 0.22);
  background: #0b0511;
  border-radius: 12px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(225, 29, 72, 0.18);
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  color: #8e809a;
  line-height: 1.7;
  font-size: 13px;
  margin-top: 6px;
}

/* ── Platform Row ── */
.platform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.platform-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(225, 29, 72, 0.25);
  background: #0b0511;
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.5);
}

.platform-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.platform-card strong, .platform-card span {
  display: block;
}

.platform-card strong {
  font-size: 14px;
  font-weight: 800;
}

.platform-card span {
  font-size: 11px;
  color: #8f819b;
  margin-top: 4px;
}

.platform-card b {
  font: 9px 'JetBrains Mono', monospace;
  color: #ff4d79;
  padding: 7px 10px;
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-radius: 7px;
  background: rgba(225, 29, 72, 0.08);
}

/* ── Download Page Layout ── */
.download-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.download-panel {
  border: 1px solid rgba(225, 29, 72, 0.28);
  background: #0c0612;
  border-radius: 14px;
  padding: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.windows-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.windows-lockup img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 28px rgba(225, 29, 72, 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  flex-shrink: 0;
}

.windows-lockup:hover img {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 14px 38px rgba(244, 63, 94, 0.7));
}

.windows-lockup span {
  font: 10px 'JetBrains Mono', monospace;
  color: #be99b3;
  letter-spacing: 0.1em;
}

.windows-lockup h2 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 6px 0;
}

.download-copy {
  color: #9d8ea8;
  line-height: 1.7;
  font-size: 14px;
  margin-top: 14px;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.download-meta span {
  border: 1px solid rgba(225, 29, 72, 0.2);
  background: #110717;
  border-radius: 9px;
  padding: 13px;
  font-size: 11px;
  color: #8f819b;
}

.download-meta b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 13px;
}

.download-main {
  height: 52px;
  width: 100%;
  font-size: 14px;
}

.download-status {
  display: none;
  text-align: center;
  padding: 20px;
  margin-top: 14px;
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 10px;
  background: #110717;
}

.download-status.show {
  display: block;
}

.download-side .card {
  height: 100%;
}

.security-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.security-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(225, 29, 72, 0.2);
  background: #100616;
  border-radius: 9px;
}

.security-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(225, 29, 72, 0.15);
  color: #ff4d79;
  border: 1px solid rgba(225, 29, 72, 0.3);
  display: grid;
  place-items: center;
  font: 10px 'JetBrains Mono', monospace;
  font-weight: 700;
  flex-shrink: 0;
}

.security-row b, .security-row span {
  display: block;
}

.security-row b {
  font-size: 13px;
  color: #f7f6f9;
}

.security-row span {
  font-size: 11px;
  color: #8c7d97;
  line-height: 1.5;
  margin-top: 3px;
}

/* ── Support & Rules Layout ── */
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.support-card textarea {
  resize: vertical;
}

.support-stack {
  display: grid;
  gap: 14px;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rules-list article {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 12px;
  background: #0b0511;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.rules-list article:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.5);
}

.rules-list b {
  font: 11px 'JetBrains Mono', monospace;
  color: #ff2a5f;
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.4);
  font-weight: 700;
}

.rules-list h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.rules-list p {
  margin: 0;
  color: #8c7d97;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Accordion System ── */
.accordion-item {
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.accordion-item:hover {
  border-color: rgba(244, 63, 94, 0.45);
  background: #110717;
  transform: translateY(-1px);
}

.accordion-item:active {
  transform: scale(0.99);
}

.accordion-item h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accordion-item p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.35s ease;
}

.accordion-item.open p {
  max-height: 240px;
  opacity: 1;
  margin-top: 12px !important;
}

.accordion-toggle {
  flex: 0 0 auto;
  font: 9px 'JetBrains Mono', monospace;
  color: #ff4d79;
  border: 1px solid rgba(225, 29, 72, 0.35);
  background: #14071b;
  border-radius: 999px;
  padding: 6px 10px;
}

/* ── Footer & Professional Studio Signature ── */
.footer {
  border-top: 1px solid rgba(225, 29, 72, 0.18);
  padding: 44px 0 54px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #8c7d97;
}

.footer p {
  font-size: 11px;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ff4d79;
}

.footer .brand img {
  width: 28px !important;
  height: 28px !important;
}

.security-disclosure {
  max-width: 650px !important;
  margin-top: 10px !important;
  color: #6a5c75 !important;
  font-size: 9px !important;
  line-height: 1.6 !important;
}

.site-signature {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 34px;
  text-align: center;
  border-top: 1px solid rgba(225, 29, 72, 0.12);
}

.developer-bottom {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff2a5f;
  text-shadow: 0 0 24px rgba(255, 42, 95, 0.45);
}

.bottom-tag {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d6b88;
}

/* ── Toast & Status Helpers ── */
.toast {
  position: fixed;
  z-index: 9999;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 42, 95, 0.45);
  border-radius: 12px;
  background: #14071b;
  color: #f7f6f9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(225, 29, 72, 0.35);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  height: auto;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  border-color: rgba(255, 42, 95, 0.7);
  color: #ff3366;
  background: radial-gradient(circle at 50% 50%, #200827, #120417);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 95, 0.45);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.7);
  color: #f87171;
  background: radial-gradient(circle at 50% 50%, #24080e, #140407);
}

.status-success {
  color: #ff4d79 !important;
  border-color: rgba(255, 42, 95, 0.35) !important;
  background: rgba(225, 29, 72, 0.08) !important;
}

.status-error {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.notice.status-success, .notice.status-error {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  margin-top: 14px;
  line-height: 1.5;
  font-size: 12px;
}

/* ── Room Highlight & Gate Details ── */
.host-highlight {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  margin: 0 3px;
  border: 1px solid rgba(255, 42, 95, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.18), rgba(225, 29, 72, 0.08));
  color: #ff4d79;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.2);
  text-shadow: 0 0 14px rgba(255, 42, 95, 0.35);
}

.host-highlight::before, .host-highlight::after {
  content: '✦';
  color: #ff85a2;
  font-size: 0.85em;
}

.host-highlight.unavailable {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  box-shadow: none;
  text-shadow: none;
}

.host-highlight.unavailable::before, .host-highlight.unavailable::after {
  content: '×';
  color: #fca5a5;
}

/* ── Responsive Rules ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .movie-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .room-grid, .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .watch-shell, .room-layout, .download-wrap {
    grid-template-columns: 1fr;
  }
  .side-panel, .room-sidebar {
    border-left: 0;
    border-top: 1px solid rgba(225, 29, 72, 0.18);
  }
  .nav-links {
    display: none;
  }
  .feature-grid-dense {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .rules-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container, .room-app, .site-signature {
    width: min(100% - 28px, 1200px);
  }
  .hero {
    padding-top: 70px;
  }
  .hero h1, .page-hero h1 {
    font-size: 46px;
  }
  .type-hero {
    min-height: 98px;
  }
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .room-grid, .discover-grid, .feature-grid, .support-grid, .feature-grid-dense, .platform-row {
    grid-template-columns: 1fr;
  }
  .section-head, .discover-top, .pricing-card, .room-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .discover-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .discover-search {
    width: 100%;
  }
  .discover-filters {
    flex-wrap: wrap;
  }
  .watch-shell {
    min-height: 500px;
  }
  .stage {
    min-height: 420px;
  }
  .player-stage {
    height: 460px;
  }
  .download-meta {
    grid-template-columns: 1fr;
  }
  .gate-actions {
    flex-direction: column;
  }
  .developer-bottom {
    font-size: 12px;
  }
  .bottom-tag {
    font-size: 8px;
  }
}
