:root {
  --page: #f7f7f9;
  --rail: #f1f1f4;
  --surface: #fcfcfd;
  --surface-soft: #eeeeF2;
  --surface-deep: #e7e7ed;
  --ink: #17171b;
  --text: #3b3b43;
  --muted: #898a95;
  --quiet: #b8b9c2;
  --purple: #694cff;
  --blueviolet: #7b2cff;
  --mango: #ee25b6;
  --cyan: #19e0dc;
  --success: #35d08a;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --font-heading: "Avenir Next", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}

button, input { font-family: var(--font-body); }
button { border: 0; cursor: pointer; }

/* ========== APP LAYOUT ========== */
.app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 24px;
  background: var(--surface);
  overflow-y: auto;
  transition: transform .3s ease;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(0,0,0,.45);
  display: none;
}

.sidebar-overlay.open { display: block; }

.brand {
  display: flex;
  align-items: center;
  height: 44px;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  cursor: pointer;
  gap: 1px;
}

.logo-yolo {
  font-family: "Righteous", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--purple), var(--blueviolet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-live {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.2px;
  background: linear-gradient(135deg, var(--mango), #ff6bb5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
}

.logo-text-sm .logo-yolo { font-size: 22px; }
.logo-text-sm .logo-live { font-size: 15px; }

.logo-text-auth .logo-yolo { font-size: 32px; }
.logo-text-auth .logo-live { font-size: 21px; }

.logo-text:hover .logo-yolo {
  background: linear-gradient(135deg, var(--blueviolet), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-text:hover .logo-live {
  background: linear-gradient(135deg, #ff6bb5, var(--mango));
  -webkit-background-clip: text;
  background-clip: text;
}

.store-badges { display: flex; gap: 12px; }

.store-badge {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #14141a, #09090c);
  overflow: hidden;
  color: white;
  text-decoration: none;
}

.store-badge svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.store-badge svg.android-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.apple-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 21px;
  line-height: 1;
  color: white;
}

.store-copy { display: none; }

.side-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  font-size: 15px;
  text-align: left;
  opacity: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  width: 100%;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  color: currentColor;
  transition: color .18s ease, transform .18s ease;
  flex-shrink: 0;
}

.nav-item:hover {
  background: #eeedff;
  color: var(--blueviolet);
  opacity: 1;
}

.nav-item:hover svg {
  color: currentColor;
  transform: scale(1.04);
}

.nav-item.active {
  background: #e8e6ff;
  color: var(--blueviolet);
  font-weight: 500;
  opacity: 1;
}

.nav-item.active svg { color: currentColor; }

.side-meta {
  margin-top: auto;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.7;
}

/* ========== MAIN ========== */
.main {
  min-width: 0;
  height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  background: var(--page);
  margin-left: var(--sidebar-w);
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 14px;
  background: rgba(252, 252, 253, .88);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.hamburger-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  flex-shrink: 0;
}

.hamburger-btn svg { width: 22px; height: 22px; }

.logo-text-sm {
  flex: 1;
  min-width: 0;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== TOPBAR ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 56px;
  padding: 14px 28px;
  background: rgba(252, 252, 253, .58);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}

.main:not(.home-mode) .topbar { display: none; }

.search {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px 0 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  flex: 0 0 420px;
  max-width: 100%;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search input::placeholder { color: #a0a1ab; }
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.search-btn svg { width: 20px; height: 20px; color: var(--ink); }

.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.search-pill-keyword {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-pill-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d1d1d6;
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.search-pill-clear:hover { background: #b0b0b6; }
.search-pill-clear svg { width: 14px; height: 14px; }

.quick-tabs {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-tabs::-webkit-scrollbar { display: none; }

.quick-tab {
  min-width: 104px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.quick-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  color: #5b5c66;
  font-size: 14px;
  font-weight: 400;
  margin-left: auto;
  flex-shrink: 0;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 7px;
}

.top-link svg { width: 18px; height: 18px; color: #73747e; }
.button-primary svg,
.button-secondary svg { width: 18px; height: 18px; }

.top-items-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.top-items-btn svg { width: 16px; height: 16px; }

.login-btn {
  width: 78px;
  height: 42px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
  font-weight: 500;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 12px 4px 4px;
  border-radius: 12px;
  background: var(--surface-soft);
  transition: background .15s;
}

.user-avatar-wrap {
  position: relative;
  cursor: pointer;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  transition: border-color .15s;
}
.user-avatar-wrap:hover .user-avatar-img { border-color: var(--purple); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 50;
}
.user-avatar-wrap.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
}
.dropdown-user:hover { background: #f5f5f7; }

.dropdown-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dropdown-user-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-balance {
  font-size: 12px;
  color: #898a95;
  display: flex;
  align-items: center;
  gap: 3px;
}
.dropdown-balance .diamond {
  width: 13px;
  height: 13px;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #898a95;
  flex-shrink: 0;
}

.dropdown-links {
  padding: 4px 0;
  margin: 4px 0;
  border-top: 1px solid #f0f0f2;
  border-bottom: 1px solid #f0f0f2;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-align: left;
}
.dropdown-item:hover { background: #f5f5f7; }
.dropdown-item svg { width: 16px; height: 16px; color: #73747e; }

.dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ff3b30;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-align: left;
}
.dropdown-logout:hover { background: #fff1f0; }
.dropdown-logout svg { width: 16px; height: 16px; }

/* ========== LOGIN MODAL ========== */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(15, 15, 18, .28);
  backdrop-filter: blur(10px);
}

.login-modal.open { display: grid; }
.order-modal.open { display: grid; }

.login-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 32px;
  background: var(--surface);
  position: relative;
  text-align: center;
}

.login-panel .input-box { margin-top: 14px; }
.login-panel .button-primary,
.login-panel .button-secondary { width: 100%; margin-top: 14px; }

.modal-view { display: none; }
.modal-view.active { display: block; }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--page);
  color: var(--text);
}

.modal-back {
  position: absolute;
  top: 20px;
  left: 20px;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--page);
  color: var(--text);
}

.login-panel.has-back .modal-back { display: grid; }

.auth-logo {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 2px 48px 12px;
}

.order-panel {
  width: min(920px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 34px;
  background: var(--surface);
}

.order-panel .checkout { grid-template-columns: 330px minmax(420px, 1fr); }
.order-panel .preview-card { min-height: 360px; }
.order-panel .preview-visual { width: 210px; height: 210px; }

.login-panel h2 { margin-top: 10px; }

.auth-methods,
.auth-stack { display: grid; gap: 12px; margin-top: 22px; }

.auth-method {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

.auth-method i,
.auth-method svg { width: 19px; height: 19px; color: var(--blueviolet); }

.brand-auth-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.brand-auth-icon svg { display: block; }

.brand-auth-icon.google { color: #4285f4; }
.brand-auth-icon.apple { color: #111114; }
.brand-auth-icon.facebook { color: #1877f2; }

.auth-foot {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--blueviolet);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
}

.auth-foot button {
  color: var(--blueviolet);
  background: transparent;
  padding: 0;
  font-weight: 400;
}

.step-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
}

.step-line span { display: grid; place-items: center; gap: 6px; }

.step-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 13px;
}

.phone-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  margin-top: 18px;
  border-radius: 16px;
  background: var(--page);
  position: relative;
}

.country-select,
.phone-field {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.phone-field { color: var(--muted); }

.country-menu {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 3;
  display: none;
  width: 210px;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
}

.country-menu.open { display: grid; }

.country-menu button {
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 400;
}

.country-menu button:hover { background: var(--page); }

.code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.code-box { height: 58px; border-radius: 16px; background: var(--page); }

.resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.code-send-btn.counting {
  color: var(--muted);
  background: var(--surface-soft);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  height: 54px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--page);
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-deep);
}

/* ========== VIEWS ========== */
.view { display: none; padding: 12px 28px 44px 24px; }
.view.active { display: block; }

/* ========== LIVE ROOM (independent overlay) ========== */
#live-room {
  position: fixed;
  inset: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  display: none;
  padding: 0;
  overflow: hidden;
  background: #000;
  transform-origin: top left;
  border-radius: 0;
  will-change: transform, opacity, border-radius;
}

#live-room.active {
  display: block;
  animation: liveRoomPageIn .3s linear both;
}

#live-room.room-exiting {
  display: block;
  animation: liveRoomPageOut .3s linear both;
}

@media (max-width: 991.98px) {
  #live-room.active {
    animation: mobileSlideIn .32s cubic-bezier(.4, 0, .2, 1) both;
  }
  #live-room.room-exiting {
    display: block;
    animation: mobileSlideOut .32s cubic-bezier(.4, 0, .2, 1) both;
  }
}

@keyframes liveRoomPageIn {
  0% {
    opacity: .96;
    border-radius: var(--room-start-radius, 24px);
    transform: translate3d(var(--room-start-x, 0px), var(--room-start-y, 0px), 0)
      scale(var(--room-start-scale-x, 1), var(--room-start-scale-y, 1));
  }
  50% {
    opacity: 1;
    border-radius: 18px;
    transform: translate3d(var(--room-mid-x, 0px), var(--room-mid-y, 0px), 0)
      scale(var(--room-mid-scale-x, 1), var(--room-mid-scale-y, 1));
  }
  75% {
    opacity: 1;
    border-radius: 10px;
    transform: translate3d(var(--room-end-x, 0px), var(--room-end-y, 0px), 0)
      scale(var(--room-end-scale-x, 1), var(--room-end-scale-y, 1));
  }
  99% { opacity: 1; border-radius: 2px; transform: scale(1); }
  100% { opacity: 1; border-radius: 0; transform: scale(1); }
}

@keyframes liveRoomPageOut {
  0% { opacity: 1; border-radius: 0; transform: scale(1); }
  1% { opacity: 1; border-radius: 2px; transform: scale(1); }
  25% {
    opacity: 1;
    border-radius: 10px;
    transform: translate3d(var(--room-end-x, 0px), var(--room-end-y, 0px), 0)
      scale(var(--room-end-scale-x, 1), var(--room-end-scale-y, 1));
  }
  50% {
    opacity: 1;
    border-radius: 18px;
    transform: translate3d(var(--room-mid-x, 0px), var(--room-mid-y, 0px), 0)
      scale(var(--room-mid-scale-x, 1), var(--room-mid-scale-y, 1));
  }
  100% {
    opacity: .96;
    border-radius: var(--room-start-radius, 24px);
    transform: translate3d(var(--room-start-x, 0px), var(--room-start-y, 0px), 0)
      scale(var(--room-start-scale-x, 1), var(--room-start-scale-y, 1));
  }
}

@keyframes mobileSlideIn {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

@keyframes mobileSlideOut {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  #live-room.active { animation: none; }
}

/* ========== HOME ========== */
.home-grid {
  display: grid;
  grid-template-columns: minmax(660px, 1fr) 320px;
  gap: 24px;
  align-items: start;
  max-width: 100%;
}

.home-grid > div {
  min-width: 0;
  overflow: hidden;
}

.more-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
}
.more-bar:hover { background: #ededf1; }

.explore-shell {
  padding: 20px 0;
}

.explore-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 16px;
  color: #898a95;
  font-size: 15px;
  grid-column: 1 / -1;
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: #c7c8cc;
}

.explore-shell .live-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(280px, .6fr) 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}

.hero-strip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.hero-media {
  min-height: 100px;
  background: center/cover no-repeat;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 24px;
}

.intro-panel h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

.hero-cta-arrow {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  color: var(--purple);
  transition: transform .2s;
}

.hero-strip:hover .hero-cta-arrow {
  transform: translateX(4px);
}

.home-stream-player {
  position: relative;
  margin-bottom: 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 380px);
}

.home-stream-player .video-js {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 18px;
}

.home-stream-player .vjs-big-play-button {
  display: none;
}

.home-stream-player .vjs-control-bar {
  display: flex;
  align-items: center;
  height: 4em !important;
  padding: 0 14px;
}

.home-stream-player .vjs-control {
  width: 4em;
  height: 100%;
}

.home-stream-player .vjs-icon-placeholder:before {
  font-size: 1.8em;
  line-height: inherit;
  position: static;
  width: auto;
  height: auto;
}

.home-stream-player .vjs-control .vjs-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-stream-player .vjs-volume-panel {
  margin-left: .5em;
  height: 100%;
}

.home-stream-player .vjs-volume-panel .vjs-volume-bar {
  margin: 0;
}

.home-stream-player .vjs-volume-panel .vjs-volume-control {
  height: 4em;
}

.home-stream-player .vjs-picture-in-picture-control {
  order: 100;
  margin-left: auto;
}

.home-stream-player .vjs-fullscreen-control {
  order: 101;
}

.home-stream-player .vjs-enter-room-btn {
  order: 102;
  margin-left: .5em;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--purple, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  line-height: 30px;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}

.home-stream-player .vjs-enter-room-btn:hover {
  background: #9333ea;
  transform: scale(1.04);
}

.stream-player-overlay {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15,15,18,.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}

.stream-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b5c;
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.live-stage .video-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
}

.live-stage .video-js .vjs-big-play-button {
  display: none;
}

.live-stage .vjs-control-bar {
  background: rgba(0,0,0,.45);
}

.live-stage .video-js .vjs-progress-control,
.live-stage .video-js .vjs-play-control,
.live-stage .video-js .vjs-time-control,
.live-stage .video-js .vjs-time-divider {
  opacity: 0;
  transition: opacity .3s;
}

.live-stage .video-js:hover .vjs-progress-control,
.live-stage .video-js:hover .vjs-play-control,
.live-stage .video-js.vjs-user-active .vjs-progress-control,
.live-stage .video-js.vjs-user-active .vjs-play-control {
  opacity: 1;
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background: var(--purple, #a855f7);
}

.video-js .vjs-slider {
  background: rgba(255,255,255,.18);
}

.video-js .vjs-control-bar {
  background: rgba(0,0,0,.55);
  height: 4em;
}

.home-stream-player .vjs-time-control,
.home-stream-player .vjs-time-divider {
  display: none !important;
}

.home-stream-player .vjs-volume-panel .vjs-volume-bar {
  background: rgba(255,255,255,.18);
}

.home-stream-player .vjs-volume-panel .vjs-volume-level {
  background: var(--purple, #a855f7);
}

.video-js .vjs-time-control {
  line-height: 4em;
  font-size: 12px;
}

.stage-video { display: none; }

.stream-player-overlay {
  position: absolute;
  left: 20px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15,15,18,.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.stream-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b5c;
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
h1 { margin-top: 6px; font-size: 32px; line-height: 1.15; }
h2 { font-size: 25px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.25; }
p { color: var(--muted); font-size: 15px; line-height: 1.55; font-weight: 400; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 18px;
}

.text-link { color: var(--purple); font-weight: 500; font-size: 14px; }

/* ========== LIVE GRID ========== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.live-card {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-deep);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .28s ease, border-radius .28s ease;
  cursor: pointer;
}

.live-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .36s ease, filter .36s ease;
}

.live-card:hover {
  transform: scale(1.035);
  border-radius: 30px;
}

.live-card:hover > img {
  transform: scale(1.09);
  filter: saturate(1.08);
}

.live-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  z-index: 1;
}

.live-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(15,15,18,.42);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3d6e;
  box-shadow: 0 0 0 0 rgba(255, 61, 110, .5);
  animation: livePulse 1.45s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, .58); }
  70% { box-shadow: 0 0 0 9px rgba(255, 61, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); }
}

.live-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: white;
}

.live-info .avatar { width: 34px; height: 34px; border-radius: 50%; }

.rank-row .avatar-frame:hover,
.chat-avatar[data-people-index]:hover,
.feed-head img:hover {
  filter: brightness(0.85);
  transition: filter .15s;
}

.live-info strong {
  display: block;
  color: white;
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-info span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 400;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}

.viewer svg {
  width: 14px;
  height: 14px;
  color: #ff6b35;
}

.diamond {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
  display: inline-block;
}

/* ========== POPULAR / RANKING ========== */
.popular {
  padding: 30px 24px;
  border-radius: 34px;
  background: var(--surface-soft);
}

.rank-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.rank-tab {
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.rank-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 24px 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
}

.rank-no { color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; }

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 2px;
  background: var(--surface);
  overflow: visible;
  isolation: isolate;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(123, 44, 255, .16);
  transform: scale(.82);
  opacity: .7;
  animation: rankAvatarPulse 1.8s ease-out infinite;
  z-index: -1;
}

@keyframes rankAvatarPulse {
  0% { transform: scale(.82); opacity: .58; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.avatar-frame.gold { background: conic-gradient(from 30deg, #ffd66b, #fff3bc, #d99618, #ffd66b); }
.avatar-frame.silver { background: conic-gradient(from 30deg, #eff2f7, #b5bdcc, #ffffff, #9fa8b8); }
.avatar-frame.bronze { background: conic-gradient(from 30deg, #d59055, #f0c09a, #9f5d2f, #d59055); }

.rank-row .avatar {
  display: block;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-soft);
}

.rank-row strong { font-size: 14px; font-weight: 500; }
.rank-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }

.rank-value {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* ========== PAGINATION ========== */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px;
  border-radius: 24px;
  background: var(--surface);
}

.page-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--page);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.page-btn:hover {
  transform: translateY(-1px);
  background: #eeedff;
  color: var(--blueviolet);
}

.page-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.page-btn svg { width: 17px; height: 17px; }

.page-count { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }

/* ========== SERVICE TILE ========== */
.service-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--surface);
  font-weight: 500;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.service-icon svg { width: 18px; height: 18px; }

/* ========== LIVE ROOM ========== */
.live-room-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 364px;
  gap: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #000;
  transition: grid-template-columns .3s cubic-bezier(.4, 0, .2, 1);
}

.live-room-shell.side-collapsed {
  grid-template-columns: minmax(0, 1fr) 0px;
}

.live-room-shell.side-collapsed .live-room-side {
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}

.live-room-main {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: #050506;
  color: white;
}

.live-room-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(12, 12, 15, .92);
}

.room-back {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

.room-back svg { width: 20px; height: 20px; }

.room-host {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin-right: auto;
}

.room-host img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.room-host strong { display: block; color: white; font-size: 17px; font-weight: 600; }
.room-host span { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 12px; }

.room-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 500;
}

.room-pill svg { width: 15px; height: 15px; }

.room-pill.room-heat svg {
  color: #ff7a1a;
  fill: rgba(255,122,26,.18);
}

#roomSideToggle {
  flex-shrink: 0;
}

#roomSideToggle:hover { background: rgba(255,255,255,.22); }

.live-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.live-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--room-image) center/cover;
  filter: blur(58px) brightness(.42) saturate(1.18);
  transform: scale(1.18);
  opacity: .92;
  z-index: -2;
}

.live-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  z-index: -1;
}

.stage-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-stage.room-switch-next .stage-video { animation: roomStreamNext .28s ease-out both; }
.live-stage.room-switch-prev .stage-video { animation: roomStreamPrev .28s ease-out both; }

@keyframes roomStreamNext {
  0% { opacity: .52; transform: translateY(38px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes roomStreamPrev {
  0% { opacity: .52; transform: translateY(-38px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.stage-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: translateX(-50%) scale(1.01);
  border-radius: 0;
  box-shadow: none;
  filter: brightness(.82) saturate(1.04);
  transition: opacity .3s;
}

.stage-photo.stage-photo-hidden {
  opacity: 0;
  pointer-events: none;
}

.stage-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.12) 34%, rgba(0,0,0,.62)),
    rgba(0,0,0,.18);
  transition: opacity .3s;
}

.stage-cover.stage-cover-hidden {
  opacity: 0;
  pointer-events: none;
}

.stage-status {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15,15,18,.48);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 500;
}

.stage-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3d6e;
  box-shadow: 0 0 0 6px rgba(255,61,110,.18);
}

.stage-tools {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.stage-tool {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.stage-tool svg { width: 18px; height: 18px; }

.room-float-banner {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 3;
  width: min(560px, calc(100% - 80px));
  height: 42px;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.room-float-banner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(255,122,26,.84), rgba(238,37,182,.72));
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: roomBannerDrift 6.4s linear infinite;
}

.room-float-banner svg { width: 15px; height: 15px; }

@keyframes roomBannerDrift {
  0% { transform: translateX(112%); }
  100% { transform: translateX(-112%); }
}

.stage-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 158px;
  z-index: 3;
  display: block;
}

.stage-caption h1 { max-width: 620px; margin: 0; color: white; font-size: 30px; }
.stage-caption p { max-width: 560px; margin-top: 8px; color: rgba(255,255,255,.68); font-size: 14px; }

.stage-hover-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stage-hover-prev { left: 0; }
.stage-hover-next { right: 0; }

.stage-hover-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease, background .18s ease;
}

.stage-hover-zone:hover .stage-hover-btn {
  opacity: 1;
  transform: scale(1);
}

.stage-hover-btn:hover { background: rgba(255,255,255,.2); }
.stage-hover-btn svg { width: 24px; height: 24px; }

@media (min-width: 992px) {
  .stage-hover-zone { display: flex; }
}

/* ========== GIFT DOCK ========== */
.gift-dock-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  height: 136px;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.gift-dock-wrap.dock-collapsed {
  transform: translateX(-100%);
}

.gift-dock-toggle {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 100%;
  background: rgba(12, 12, 15, .96);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  touch-action: none;
}

.gift-dock-toggle:hover { color: rgba(255,255,255,.9); }
.gift-dock-toggle svg { width: 20px; height: 20px; }

.gift-dock-stub {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  display: none;
  place-items: center;
  width: 36px;
  height: 136px;
  background: rgba(12, 12, 15, .96);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  touch-action: none;
  border-radius: 0 10px 10px 0;
}

.gift-dock-wrap.dock-collapsed ~ .gift-dock-stub { display: grid; }

.gift-dock-stub svg,
.gift-dock-stub img { width: 22px; height: 22px; }

.gift-dock-stub img { animation: stubWobble 2.4s ease-in-out infinite; }

@keyframes stubWobble {
  0%, 83%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-12deg); }
  89% { transform: rotate(10deg); }
  92% { transform: rotate(-6deg); }
  95% { transform: rotate(4deg); }
  98% { transform: rotate(0deg); }
}

.gift-dock-stub:hover { color: rgba(255,255,255,.9); }
.gift-dock-stub svg { width: 20px; height: 20px; }

.gift-dock {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  height: 136px;
  padding: 16px 280px 20px 20px;
  background: rgba(12, 12, 15, .96);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent 100%);
  scrollbar-width: none;
}

.gift-dock::-webkit-scrollbar { display: none; }

.gift-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  padding: 10px 8px;
  border-radius: 18px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.08);
  font-size: 12px;
}

.gift-item:hover { background: rgba(255,255,255,.14); }

.gift-item strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: #050506;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 10px 22px rgba(0,0,0,.3);
  overflow: hidden;
}

.gift-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.42));
}

.gift-item span { line-height: 1.1; }

.gift-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  line-height: 1;
}

.gift-price svg { width: 12px; height: 12px; color: var(--cyan); }

.gift-wallet {
  position: absolute;
  right: 20px;
  bottom: 140px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(20,20,24,.72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transform: translateY(18px) scale(.92);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.gift-wallet.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gift-wallet.emphasis {
  animation: walletFlash 1.5s ease-in-out 2;
}

@keyframes walletFlash {
  0%, 100% { box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 0 rgba(25,224,220,0); }
  15% { box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 18px 4px rgba(25,224,220,.38); transform: translateY(0) scale(1.04); }
  30% { box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 0 rgba(25,224,220,0); transform: translateY(0) scale(1); }
  45% { box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 14px 3px rgba(105,76,255,.32); transform: translateY(0) scale(1.03); }
  60% { box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 0 rgba(105,76,255,0); transform: translateY(0) scale(1); }
}

.gift-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.gift-balance svg { width: 16px; height: 16px; color: var(--cyan); }

.gift-wallet .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.gift-wallet .button-primary svg { flex: 0 0 auto; }

/* ========== LIVE ROOM SIDE ========== */
.live-room-side {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100vh;
  min-height: 100vh;
  padding: 22px;
  border-radius: 0;
  background: #202024;
  color: white;
  overflow: hidden;
  opacity: 1;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1), padding .3s cubic-bezier(.4, 0, .2, 1);
}

.side-handle { display: none; }

.audience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.audience-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
}

.audience-head svg { width: 16px; height: 16px; }

.ranking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.side-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255,255,255,.1);
}

.ranking-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ranking-title svg { width: 16px; height: 16px; color: #ffd34d; }

.ranking-faces {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 136px;
  justify-content: flex-end;
  padding-right: 2px;
}

.ranking-face {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid var(--rank-color, rgba(255,255,255,.24));
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.ranking-face.top-1 { --rank-color: #ffd34d; --rank-glow: rgba(255,211,77,.36); }
.ranking-face.top-2 { --rank-color: #dfe5f1; --rank-glow: rgba(223,229,241,.26); }
.ranking-face.top-3 { --rank-color: #f2a96a; --rank-glow: rgba(242,169,106,.28); }

.ranking-face img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.ranking-face::before {
  content: "♛";
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  color: var(--rank-color);
  text-shadow: 0 2px 8px var(--rank-glow);
  font-size: 14px;
  line-height: 1;
}

.ranking-face em {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  color: #17171b;
  background: #ffd34d;
  border: 1px solid rgba(0,0,0,.16);
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ranking-face.top-2 em,
.ranking-face.top-3 em { background: var(--rank-color); }

/* ========== LIVE CHAT FEED ========== */
.live-chat-feed {
  position: relative;
  display: block;
  height: 100%;
  min-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 8px;
  scrollbar-width: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0, rgba(0,0,0,.75) 12px, #000 28px, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0, rgba(0,0,0,.75) 12px, #000 28px, #000 100%);
}

.live-chat-feed::-webkit-scrollbar { display: none; }

.live-chat-msg {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-22px);
  animation: chatMsgSlideIn .34s cubic-bezier(.18, .86, .24, 1.08) forwards;
}

.live-chat-msg + .live-chat-msg { margin-top: 12px; }

@keyframes chatMsgSlideIn {
  0% { opacity: 0; transform: translateX(-18px); }
  72% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 1; transform: translateX(0); }
}

.live-chat-msg img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.live-chat-msg div {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.45;
}

.live-chat-msg.system {
  grid-template-columns: 1fr;
}

.live-chat-msg.system div {
  background: rgba(25, 224, 220, .1);
  border: 1px solid rgba(25, 224, 220, .18);
  color: rgba(25, 224, 220, .92);
}

.live-chat-msg strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: white;
  font-size: 12px;
}

.chat-level {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  color: white;
  background: var(--level-bg, linear-gradient(135deg, #7b8294, #51586a));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, var(--level-glow, none);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.chat-level[data-tier="rookie"] { --level-bg: linear-gradient(135deg, #7c879a, #4d5668); }
.chat-level[data-tier="rising"] { --level-bg: linear-gradient(135deg, #35b6d6, #3f6ee8); }
.chat-level[data-tier="elite"] { --level-bg: linear-gradient(135deg, #7b5cff, #d84dff); --level-glow: 0 0 12px rgba(123,92,255,.28); }
.chat-level[data-tier="star"] { --level-bg: linear-gradient(135deg, #ff8a1c, #ff3d7f); --level-glow: 0 0 14px rgba(255,91,55,.34); }
.chat-level[data-tier="royal"] { --level-bg: linear-gradient(135deg, #ffd34d, #ff6b1a 45%, #f022b8); --level-glow: 0 0 18px rgba(255,178,38,.46); }
.chat-level[data-tier="legend"] { --level-bg: linear-gradient(135deg, #fff06a, #ff8a00 34%, #ff2dd4 70%, #7c4dff); --level-glow: 0 0 22px rgba(255,91,210,.56); }

.chat-control-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.chat-control-row .input-box { height: 42px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.38); }

.chat-emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.08);
}

.chat-emoji svg { width: 19px; height: 19px; }

.chat-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.chat-send svg { width: 17px; height: 17px; }

/* ========== STORE / ITEMS ========== */
.content-island {
  width: 100%;
  max-width: none;
  padding: 32px 34px 38px;
  border-radius: 28px;
  background: var(--surface);
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.tabs { display: flex; gap: 12px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  height: 38px;
  min-width: 94px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 500;
  flex-shrink: 0;
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.product-grid,
.owned-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.owned-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  min-height: 0;
  border-radius: 24px;
  background: var(--page);
  text-align: center;
}

.product-card h3,
.owned-card h3 { margin-bottom: 14px; }

.owned-card .price { margin-bottom: 14px; }

.product-visual,
.owned-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f4ecff, #eaeaf1);
  color: var(--purple);
  overflow: hidden;
  transform: translateZ(0);
}

.product-visual img,
.owned-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .36s ease, filter .36s ease;
}

.product-card:hover .product-visual img,
.owned-card:hover .owned-visual img {
  transform: scale(1.09);
  filter: saturate(1.08);
}

.crown { width: 62px; height: 48px; color: currentColor; }

.price { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 400; }

.small-primary {
  min-width: 112px;
  height: 38px;
  margin-top: 17px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
  font-weight: 500;
}

.buy-with-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.buy-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}

.buy-price svg { width: 15px; height: 15px; }

.product-card .small-primary,
.owned-card .small-primary,
.owned-card .button-secondary { margin-top: auto; }

/* ========== CHECKOUT ========== */
.checkout {
  display: grid;
  grid-template-columns: 420px minmax(520px, 1fr);
  gap: 28px;
  width: 100%;
  max-width: none;
}

.preview-card, .order-card, .profile-card { border-radius: 34px; background: var(--surface); }

.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 448px;
  padding: 36px;
  text-align: center;
}

.preview-visual {
  display: grid;
  place-items: center;
  width: 226px;
  height: 214px;
  margin-bottom: 26px;
  border-radius: 34px;
  color: var(--purple);
  background: linear-gradient(145deg, #f3eaff, #ececf2);
  overflow: hidden;
}

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

.order-card { padding: 36px; }

.summary { display: grid; gap: 10px; margin-top: 22px; }

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 17px;
  background: var(--page);
  font-weight: 500;
}

.summary-row span:first-child { color: var(--text); font-weight: 400; }
.summary-row strong { font-weight: 500; }

.actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 28px; }

.button-primary, .button-secondary {
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 500;
}

.button-primary { color: white; background: linear-gradient(135deg, var(--purple), var(--mango)); }
.button-secondary { color: var(--ink); background: var(--surface-soft); }

.owned-card.expired { opacity: .56; background: var(--surface-soft); }

.status-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 62px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
  z-index: 2;
}

.status-chip.gray { color: var(--muted); background: var(--surface); }

.owned-card .small-primary,
.owned-card .button-secondary { width: 100%; margin-top: auto; }

/* ========== PROFILE ========== */
.profile-card {
  width: 100%;
  max-width: none;
  padding: 42px 48px;
  position: relative;
}

.profile-back {
  position: absolute;
  top: 32px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f2;
  border: none;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.profile-back:hover {
  background: #e2e3e8;
}

.profile-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}

.profile-avatar {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-name { font-size: 34px; font-family: var(--font-heading); font-weight: 600; }

.stats { display: flex; gap: 34px; margin: 16px 0 22px; color: var(--text); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--page);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.chip svg { width: 16px; height: 16px; }

.medals { display: flex; gap: 14px; }

.medal {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  color: var(--purple);
  background: transparent;
}

.medal img { width: 64px; height: 64px; object-fit: contain; display: block; }

.profile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
}

.profile-feed {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.profile-feed .moments-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-card {
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 16px;
  border-radius: 26px;
  background: var(--page);
  position: relative;
}

.feed-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.feed-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.feed-head strong { display: block; font-size: 14px; font-weight: 500; }
.feed-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }

.feed-card p { margin-top: 14px; color: var(--text); font-size: 14px; line-height: 1.55; text-align: left; }

.feed-media {
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-soft);
}

.feed-media img { width: 100%; height: auto; display: block; }

.feed-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  position: relative;
}

.feed-action:hover { background: #e8e8ec; color: var(--text); }

.feed-action svg { width: 15px; height: 15px; }

.feed-like.liked { color: #ff2d55; background: #fff0f3; }
.feed-like.liked:hover { background: #ffe4ea; }
.feed-like.liked svg { fill: #ff2d55; }

@keyframes likePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.feed-like.like-pop { animation: likePop .4s ease; }

.feed-comment-input {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease;
  opacity: 0;
  margin-top: 0;
}
.feed-comment-input.open {
  max-height: 80px;
  opacity: 1;
  margin-top: 10px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-input-row input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e5e5e7;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.comment-input-row input:focus { border-color: var(--purple); }

.comment-send-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--mango));
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s;
}
.comment-send-btn:hover { transform: scale(1.08); }
.comment-send-btn svg { width: 16px; height: 16px; }

.feed-share-popup {
  position: fixed;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(.95);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 60;
}
.feed-share-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  transition: background .12s;
}
.share-option:hover { background: #f5f5f7; }

.feed-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 12px;
  background: #1c1c1e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.feed-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.post-btn svg { width: 18px; height: 18px; }
.post-btn { white-space: nowrap; flex-shrink: 0; }

.post-btn.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.post-modal.open { display: grid; }

.post-panel {
  width: min(480px, calc(100vw - 32px));
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
}

.post-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.post-panel-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.post-panel-body {
  padding: 20px 24px;
}

.post-panel-body textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border: 1px solid #e5e5e7;
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}
.post-panel-body textarea:focus { border-color: var(--purple); }

.post-image-area {
  margin-top: 14px;
}

.post-image-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 2px dashed #d1d1d6;
  border-radius: 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.post-image-upload:hover { border-color: var(--purple); color: var(--purple); }
.post-image-upload svg { width: 22px; height: 22px; }
.post-image-upload input { display: none; }

.post-image-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.post-image-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.post-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.post-image-remove:hover { background: rgba(0,0,0,.7); }
.post-image-remove svg { width: 14px; height: 14px; }

.post-panel-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}

.moments-more {
  margin-top: 18px;
}

.moments-feed {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.moments-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========== MESSAGES ========== */
.chat-shell {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.chat-list,
.chat-main { border-radius: 34px; background: var(--surface); overflow: hidden; }

.chat-list-head { padding: 24px 22px 16px; }

.chat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--page);
  color: var(--muted);
  font-size: 14px;
}

.conversation {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  width: 100%;
}

.conversation.active,
.conversation:hover { background: var(--page); }

.conversation img,
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation strong { display: block; font-size: 15px; font-weight: 500; }
.conversation span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.3; font-weight: 400; }

.chat-meta { display: grid; justify-items: end; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }

.unread {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: white;
  background: #ff3d6e;
  font-size: 12px;
  font-weight: 500;
}

.chat-meta .unread {
  display: grid;
  place-items: center;
  margin-top: 0;
  color: white;
  line-height: 1;
  text-align: center;
}

.chat-empty,
.chat-thread { min-height: 100%; }

.chat-empty {
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.chat-empty-icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 36px;
  color: var(--blueviolet);
  background: var(--page);
}

.chat-empty-icon svg { width: 52px; height: 52px; }

.chat-thread { display: none; grid-template-rows: auto 1fr auto; }
.chat-main.has-thread .chat-empty { display: none; }
.chat-main.has-thread .chat-thread { display: grid; }

.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--surface);
}

.chat-thread-head strong { font-size: 18px; font-weight: 500; }

.chat-back-mobile {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--page);
  color: var(--text);
}

.message-area {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 30px 24px;
  background: var(--page);
}

.message-row { display: flex; gap: 10px; align-items: flex-end; }
.message-row.me { justify-content: flex-end; }

.bubble-msg {
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.message-row.me .bubble-msg {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.composer {
  display: grid;
  grid-template-columns: 1fr 48px 96px;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  background: var(--surface);
}

.composer .input-box { height: 52px; }

.composer .icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ========== RECHARGE ========== */
.recharge-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-height: calc(100vh - 156px);
  padding-bottom: 60px;
}

.recharge-card {
  width: 100%;
  padding: 36px;
  border-radius: 34px;
  background: var(--surface);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 12px;
  margin: 18px 0 32px;
}

.input-box {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--page);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 30px;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.package-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 17px;
  background: var(--page);
  font-weight: 500;
}

.package-row.active { background: #f0e8ff; color: var(--ink); }
.package-row strong { font-size: 14px; font-weight: 400; }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}

.pay-item.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--mango));
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: var(--blueviolet);
  background: rgba(255,255,255,.78);
}

.pay-icon svg { width: 16px; height: 16px; }

.pay-item.active .pay-icon { color: var(--purple); background: rgba(255,255,255,.72); }

.recharge-submit { width: 100%; margin-top: 28px; font-size: 14px; }

/* ========== DESIGN SYSTEM ========== */
.component-wrap {
  display: grid;
  gap: 28px;
  max-width: 1180px;
}

.foundation {
  padding: 30px;
  border-radius: 34px;
  background: var(--surface);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.swatch {
  height: 86px;
  border-radius: 22px;
  padding: 12px;
  display: flex;
  align-items: end;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}

.component-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

/* ========== RESPONSIVE: TABLET (lg breakpoint 992px) ========== */
@media (max-width: 1199.98px) {
  .topbar { gap: 18px; }
  .search { flex: 0 0 340px; }
  .quick-tab { min-width: 88px; }
  .top-actions { font-size: 13px; gap: 10px; }
}

@media (max-width: 991.98px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }

  .sidebar.open { transform: translateX(0); }

  .main { margin-left: 0; }

  .mobile-header { display: flex; }

  .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 44px;
    padding: 14px 18px;
    row-gap: 8px;
    position: relative;
    top: auto;
    border-top: 1px solid rgba(0,0,0,.06);
  }

  .search { flex: 1 1 auto; }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .popular { border-radius: 28px; }

  .hero-strip { grid-template-columns: 1fr; border-radius: 22px; }
  .hero-media { min-height: 140px; }
  .home-stream-player { border-radius: 22px; max-width: 100%; max-height: none; }

  .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .explore-shell .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .live-room-shell { grid-template-columns: 1fr; }

  .live-room-shell.side-collapsed { grid-template-columns: 1fr; }

  .live-room-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(100vh - 28px);
    height: auto;
    border-radius: 28px 28px 0 0;
    z-index: 10;
    padding: 0 18px 18px;
    transition: top .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    opacity: 1;
  }

  .live-room-shell:not(.side-collapsed) .live-room-side {
    top: 136px;
  }

  .side-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    cursor: grab;
    touch-action: none;
  }

  .side-handle span {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
  }

  .side-handle:active { cursor: grabbing; }
  .side-handle:active span { background: rgba(255,255,255,.5); }

  .live-room-shell.side-dragging .live-room-side {
    transition: none;
  }

  .live-room-shell.side-collapsed .live-room-side {
    opacity: 1;
    pointer-events: none;
  }

  .live-room-shell.side-collapsed .side-handle {
    pointer-events: auto;
  }

  .live-room-shell.side-collapsed .gift-dock-wrap {
    bottom: 28px;
  }

  .live-room-shell.side-collapsed .gift-wallet {
    bottom: 152px;
  }

  .live-room-shell.side-collapsed .stage-caption {
    bottom: 168px;
  }

  .live-room-main { width: 100%; }

  .gift-dock-wrap { height: 120px; }
  .gift-dock { padding: 12px 12px 16px; height: 120px; }
  .gift-dock-toggle, .gift-dock-stub { height: 120px; }

  .gift-wallet { right: 12px; bottom: 124px; }

  .stage-caption { bottom: 140px; left: 16px; right: 16px; }
  .stage-caption h1 { font-size: 22px; }

  .product-grid,
  .owned-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .checkout { grid-template-columns: 1fr; }

  .preview-card { min-height: auto; }

  .profile-main { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .profile-avatar { width: 160px; height: 160px; margin: 0 auto; }
  .profile-card { padding: 28px 20px; }
  .profile-foot { flex-direction: column; }

  .chat-shell {
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 56px);
  }

  .chat-list {
    border-radius: 0;
    width: 100%;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }

  .chat-shell.thread-open .chat-list {
    transform: translateX(-30%);
    pointer-events: none;
  }

  .chat-main {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    border-radius: 0;
  }

  .chat-shell.thread-open .chat-main {
    transform: translateX(0);
  }

  .chat-main.has-thread .chat-list { display: block; }

  .chat-back-mobile { display: grid; }

  .chat-empty { display: none; }

  .chat-thread { min-height: 100%; }

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

  .package-list { grid-template-columns: 1fr; }

  .swatches { grid-template-columns: repeat(4, 1fr); }

  .moments-feed .moments-col:nth-child(4) { display: none; }

  .order-panel .checkout { grid-template-columns: 1fr; }
}

/* ========== RESPONSIVE: MOBILE (sm breakpoint 576px) ========== */
@media (max-width: 767.98px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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



  .moments-feed .moments-col:nth-child(4) { display: none; }
  .moments-feed .moments-col:nth-child(3) { display: none; }

  .feed-comment-input.open { max-height: 80px; }
  .comment-input-row input { font-size: 13px; padding: 0 10px; height: 36px; }
  .comment-send-btn { width: 36px; height: 36px; }

  .intro-panel { padding: 20px; }
  .intro-panel h1 { font-size: 24px; }

  .section-head h2 { font-size: 20px; }

  .view { padding: 12px 14px 44px; }

  .content-island { padding: 20px 16px; border-radius: 20px; }

  .rank-row { grid-template-columns: 24px 44px minmax(0, 1fr) auto; gap: 8px; }
  .avatar-frame { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .rank-row .avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }

  .live-room-side { height: 50vh; border-radius: 24px 24px 0 0; padding: 14px; }

  .room-host strong { font-size: 14px; }
  .room-host span { font-size: 10px; }
  .room-pill { height: 30px; padding: 0 10px; font-size: 11px; }

  .stage-caption h1 { font-size: 18px; }
  .stage-caption p { font-size: 12px; }

  .live-room-top { padding: 12px 14px; gap: 10px; }
  .room-back { width: 36px; height: 36px; }
  .room-host img { width: 40px; height: 40px; }

  .field-row { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }

  .login-panel { padding: 22px; border-radius: 24px; }
  .order-panel { padding: 18px; border-radius: 24px; }

  .profile-name { font-size: 26px; }
  .stats { gap: 18px; flex-wrap: wrap; }
  .medals { gap: 8px; }
  .medal { width: 52px; height: 52px; }
  .medal img { width: 48px; height: 48px; }

  .composer { grid-template-columns: 1fr 40px 80px; padding: 14px; }

  .swatches { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .swatch { height: 68px; border-radius: 16px; }

  .component-demo { gap: 10px; }

  .page-btn { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12px; }
}

@media (max-width: 575.98px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .moments-feed .moments-col:nth-child(4) { display: none; }
  .moments-feed .moments-col:nth-child(3) { display: none; }
  .moments-feed .moments-col:nth-child(2) { display: none; }
  .hero-strip { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-media { min-height: 90px; }
  .intro-panel { padding: 12px 14px; }
  .intro-panel h1 { font-size: 18px; }
  .home-stream-player { border-radius: 18px; max-width: 100%; max-height: none; }
  .home-stream-player .video-js { max-width: 100% !important; }

  .popular { padding: 20px 16px; border-radius: 22px; }

  .pagination-row { padding: 10px; gap: 6px; }

  .rank-tabs { gap: 6px; }

  .gift-dock-wrap { height: 110px; }
  .gift-dock { height: 110px; gap: 6px; padding: 10px 8px 14px; }
  .gift-dock-toggle, .gift-dock-stub { height: 110px; }
  .gift-item { width: 80px; height: 80px; padding: 6px; border-radius: 14px; }
  .gift-item strong { width: 34px; height: 34px; border-radius: 10px; }
  .gift-icon { width: 22px; height: 22px; }
  .gift-item span { font-size: 10px; }
  .gift-price { font-size: 10px; }

  .gift-wallet { padding: 8px; gap: 6px; border-radius: 16px; bottom: 114px; }
  .gift-balance { height: 34px; padding: 0 10px; font-size: 12px; }
  .gift-wallet .button-primary { height: 34px; padding: 0 10px; font-size: 12px; }

  .live-room-shell.side-collapsed .gift-wallet {
    bottom: 142px;
  }

  .live-room-shell.side-collapsed .stage-caption {
    bottom: 140px;
  }

  .phone-row { grid-template-columns: 80px 1fr; }
  .code-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ========== News & Events ========== */
.news-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  height: 340px;
}

.news-hero-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.news-hero-card {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  cursor: pointer;
}

.news-hero-card .hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease-out;
}

.news-hero-card.active .hero-img {
  transform: scale(1.06);
}

.news-hero-card .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.05) 60%);
}

.news-hero-card .hero-content {
  position: relative;
  z-index: 1;
  padding: 36px;
  color: #fff;
}

.news-hero-card .hero-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, #694cff, #9b6dff);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.news-hero-card .hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-hero-card .hero-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: .85;
  max-width: 600px;
}

.news-hero-card .hero-date {
  font-size: 12px;
  opacity: .55;
  margin-top: 12px;
}

.news-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.news-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}

.news-hero-dot.active {
  background: rgba(255,255,255,.9);
  width: 24px;
  border-radius: 4px;
}

.news-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .2s;
}

.news-hero:hover .news-hero-arrow {
  opacity: 1;
}

.news-hero-arrow:hover {
  background: rgba(0,0,0,.6);
}

.news-hero-arrow.prev { left: 16px; }
.news-hero-arrow.next { right: 16px; }

.news-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.news-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(0,0,0,.05), 0 4px 5px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.news-card .card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-card .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(90deg, #694cff, #9b6dff);
  color: #fff;
  letter-spacing: .3px;
}

.news-card .card-body {
  padding: 18px 20px 52px;
  flex: 1;
  position: relative;
}

.news-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.news-card:hover .card-title {
  color: #694cff;
}

.news-card .card-desc {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-foot {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8a8f99;
}

.news-card .card-more {
  font-size: 12px;
  font-weight: 600;
  color: #694cff;
}

.news-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 10px rgba(0,0,0,.05), 0 4px 5px rgba(0,0,0,.08);
  position: sticky;
  top: 24px;
}

.news-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.news-sidebar-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f2;
  cursor: pointer;
  transition: opacity .2s;
}

.news-sidebar-item:last-child {
  border-bottom: none;
}

.news-sidebar-item:hover {
  opacity: .75;
}

.news-sidebar-item .sb-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.news-sidebar-item .sb-info {
  flex: 1;
  min-width: 0;
}

.news-sidebar-item .sb-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.news-sidebar-item .sb-date {
  font-size: 12px;
  color: #8a8f99;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #8a8f99;
}

.news-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

/* ========== Article View ========== */
.article-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid #f0f0f2;
  position: sticky;
  top: 0;
  z-index: 10;
}

.article-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f2;
  border: none;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.article-back:hover {
  background: #e2e3e8;
}

.article-breadcrumb {
  font-size: 13px;
  color: #6e6e73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.article-breadcrumb a {
  color: #694cff;
  text-decoration: none;
  cursor: pointer;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb .bc-sep {
  margin: 0 6px;
  color: #c4c7cc;
}

.article-breadcrumb .bc-current {
  color: #1d1d1f;
  font-weight: 500;
}

#article .content-island {
  position: relative;
}

.article-hero-img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  margin-bottom: 32px;
}

.article-body {
  padding: 0 8px 48px;
}

.article-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, #694cff, #9b6dff);
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 13px;
  color: #8a8f99;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f2;
}

.article-content {
  font-size: 15px;
  color: #3a3a3f;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .news-sidebar {
    display: none;
  }

  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .news-hero {
    height: 240px;
  }

  .news-hero-card {
    min-height: 240px;
  }

  .news-hero-card .hero-title {
    font-size: 20px;
  }

  .news-hero-card .hero-desc {
    display: none;
  }

  .news-hero-card .hero-content {
    padding: 24px;
  }

  .news-hero-arrow {
    display: none;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-card .card-img {
    height: 160px;
  }

  .article-bar {
    padding: 12px 16px;
  }

  .article-breadcrumb .bc-current {
    display: none;
  }

  .article-hero-img {
    height: 200px;
  }

  .article-body {
    padding: 0 4px 32px;
  }

  .article-title {
    font-size: 22px;
  }
}
