:root {
  --background: #ffffff;
  --foreground: #111111;
  --wine: #ff3d12;
  --wine-dark: #111111;
  --brick: #ff3d12;
  --cream: #ffffff;
  --peach: #fff1ec;
  --ink-muted: #1f1f1f;
  --line: rgba(255, 61, 18, 0.22);
  --shadow: 0 24px 70px rgba(255, 61, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 236, 0.9)),
    radial-gradient(circle at top left, rgba(255, 61, 18, 0.2), transparent 34rem);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero-section {
  min-height: 86vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 236, 0.86)),
    linear-gradient(90deg, transparent 0 48px, rgba(255, 61, 18, 0.08) 48px 49px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--wine), #111111);
  color: white;
}

.brand {
  display: flex;
  min-width: 236px;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: white;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.brand span {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover,
.category-cloud a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.topbar-search {
  flex: 1 1 260px;
  max-width: 360px;
}

.topbar-search label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.topbar-search div {
  display: flex;
  gap: 6px;
}

.topbar-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  outline: none;
  padding: 0 12px;
}

.topbar-search button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
  gap: 34px;
  align-items: center;
  min-height: calc(66vh - 96px);
  padding: 32px 28px 34px;
}

.ad-slider {
  position: relative;
  overflow: hidden;
  margin: 18px 10px 0;
  aspect-ratio: 1600 / 620;
  border: 1px solid rgba(255, 61, 18, 0.26);
  border-radius: 8px;
  background: #080408;
  box-shadow: 0 18px 44px rgba(255, 61, 18, 0.1);
}

.ad-track {
  display: flex;
  width: 100%;
  height: 100%;
  animation: adSlide 28s ease-in-out infinite;
}

.ad-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  height: 100%;
  background: transparent;
}

.ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ad-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.ad-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.18);
}

@keyframes adSlide {
  0%, 18% {
    transform: translateX(0);
  }
  88%, 100% {
    transform: translateX(calc(-100% * (var(--slide-count) - 1)));
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 720px;
  align-self: start;
  padding-top: 14px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--wine-dark);
  font-size: clamp(58px, 10vw, 136px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: clamp(52px, 5.7vw, 92px);
  line-height: 0.9;
  overflow-wrap: normal;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 610px;
  color: var(--ink-muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  padding: 0 22px;
  background: var(--wine);
  color: white;
  box-shadow: 0 12px 30px rgba(255, 61, 18, 0.28);
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--wine-dark);
}

.feature-panel,
.notice-card,
.promo-card,
.member-card,
.friend-panel,
.music-panel,
.album-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.feature-panel {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.ticker-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--brick);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.feature-panel p,
.notice-card p,
.promo-card p {
  color: var(--ink-muted);
  line-height: 1.7;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.stat-row div {
  padding: 12px;
  border-radius: 6px;
  background: white;
}

.stat-row strong {
  display: block;
  color: var(--wine-dark);
  font-size: 24px;
}

.stat-row span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.announcement-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--wine);
  color: white;
}

.announcement-strip strong {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 13px;
}

.announcement-strip span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 24px;
}

.main-column,
.groups-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.notice-card h2,
.promo-card h2 {
  margin-bottom: 0;
  color: var(--wine-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.sort-pills {
  display: flex;
  gap: 8px;
}

.sort-pills button,
.sort-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.sort-pills button:first-child,
.sort-pills a:first-child {
  background: var(--wine-dark);
  color: white;
}

.search-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 900;
}

.search-panel div {
  display: flex;
  gap: 10px;
}

.search-panel input,
.login-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--foreground);
  font-size: 14px;
  outline: none;
  padding: 0 12px;
}

.search-panel input:focus,
.login-box input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(255, 61, 18, 0.14);
}

.search-panel button,
.login-box button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.friend-intent-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.friend-intent-box h3,
.friend-intent-box p {
  margin: 0;
}

.friend-filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.friend-filter-form label {
  color: var(--wine-dark);
  font-size: 12px;
  font-weight: 900;
}

.friend-filter-form select {
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--foreground);
  font-weight: 800;
  padding: 0 10px;
}

.friend-filter-form button {
  align-self: end;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.album-card {
  overflow: hidden;
}

.album-art {
  display: grid;
  min-height: 160px;
  place-items: end start;
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 44px;
  font-weight: 900;
}

.album-art.coral {
  background: linear-gradient(135deg, #ff3d12, #111111);
}

.album-art.mint {
  background: linear-gradient(135deg, #111111, #ff3d12);
}

.album-art.wine {
  background: linear-gradient(135deg, #ff3d12, #ff7a55);
}

.album-art.blue {
  background: linear-gradient(135deg, #111111, #ff7a55);
}

.album-art.gold {
  background: linear-gradient(135deg, #ff3d12, #ffffff);
  color: #111111;
}

.album-art.green {
  background: linear-gradient(135deg, #ffffff, #ff3d12);
  color: #111111;
}

.album-body {
  padding: 16px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 900;
}

.album-body h3 {
  margin-bottom: 8px;
  color: var(--wine-dark);
  font-size: 21px;
}

.album-body p,
.album-meta {
  color: var(--ink-muted);
  font-size: 14px;
}

.album-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.side-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.notice-card,
.promo-card,
.member-card,
.friend-panel,
.music-panel {
  padding: 22px;
}

.promo-card {
  background: var(--wine-dark);
  color: white;
}

.promo-card span {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 900;
}

.promo-card h2,
.promo-card p {
  color: white;
}

.member-card h2 {
  margin-bottom: 14px;
  color: var(--wine-dark);
  font-size: 26px;
}

.member-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brick);
  font-weight: 900;
}

.login-box {
  display: grid;
  gap: 8px;
}

.groups-section {
  margin-top: 24px;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-cloud a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--peach);
  color: var(--wine-dark);
  font-weight: 800;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.friend-list {
  display: grid;
  gap: 10px;
}

.friend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 6px;
  background: white;
}

.friend-row span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.friend-row .online {
  background: #ff3d12;
}

.friend-row .away {
  background: #111111;
}

.friend-row strong {
  color: var(--wine-dark);
}

.friend-row small {
  color: var(--ink-muted);
  font-weight: 800;
}

.friend-row em {
  grid-column: 2 / -1;
  color: var(--wine);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.friend-tags,
.profile-friend-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-tags {
  margin: 8px 0;
}

.friend-tags span,
.profile-friend-intent span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
}

.track-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.track-list li {
  padding: 12px;
  border-radius: 6px;
  background: white;
  color: var(--wine-dark);
  font-weight: 800;
}

.music-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.music-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.music-card > a {
  position: relative;
  display: block;
  background: #111111;
}

.music-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.music-card > a span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.music-card > div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.music-card h3 {
  margin-bottom: 0;
  color: var(--wine-dark);
  font-size: 18px;
}

.music-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.music-artist {
  color: var(--wine) !important;
  font-weight: 900;
}

.search-page {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.search-page h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
}

.search-intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.7;
}

.search-page-form {
  margin-top: 18px;
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  color: white;
}

.search-summary strong {
  color: var(--wine);
  font-size: 34px;
  line-height: 1;
}

.search-section {
  margin-top: 24px;
}

.search-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search-card.with-thumb {
  grid-template-columns: 150px minmax(0, 1fr);
}

.search-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--peach);
}

.member-result {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
}

.member-result img {
  aspect-ratio: 1;
  border-radius: 999px;
}

.search-card h3 {
  margin-bottom: 6px;
  color: var(--wine-dark);
  font-size: 20px;
  line-height: 1.2;
}

.search-card p,
.search-card small {
  display: block;
  margin-bottom: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.search-list {
  display: grid;
  gap: 10px;
}

.search-list-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search-list-item strong {
  color: var(--wine-dark);
}

.search-list-item span {
  color: var(--ink-muted);
  line-height: 1.5;
}

.cinema-hero,
.cinema-detail,
.cinema-player,
.ticket-panel,
.cinema-history,
.cinema-admin {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.cinema-hero {
  padding: 32px;
}

.cinema-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.95;
}

.cinema-hero p {
  max-width: 780px;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.7;
}

.cinema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cinema-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cinema-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111111;
}

.cinema-card div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.cinema-card h3,
.movie-admin-card h3 {
  margin-bottom: 0;
}

.cinema-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.cinema-detail {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.cinema-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #111111;
}

.cinema-info h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
}

.cinema-info p {
  color: var(--ink-muted);
  line-height: 1.7;
}

.cinema-player,
.ticket-panel,
.cinema-admin {
  padding: 24px;
}

.cinema-player video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  background: #111111;
}

.movie-admin-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.movie-admin-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.movie-edit-form {
  display: grid;
  gap: 10px;
}

.movie-edit-form input,
.movie-edit-form textarea,
.movie-edit-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.movie-edit-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.site-footer .brand-logo {
  background: var(--wine);
  border-color: var(--wine);
}

.site-footer p {
  margin-bottom: 0;
  font-weight: 800;
  text-align: right;
}

.flash,
.empty-state,
.form-card,
.post-detail,
.comments-panel,
.admin-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(255, 61, 18, 0.1);
}

.flash {
  padding: 12px 14px;
  color: #ff3d12;
  font-weight: 900;
}

.flash.error {
  color: #111111;
}

.empty-state {
  padding: 34px;
  text-align: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.form-card,
.admin-panel,
.comments-panel {
  padding: 24px;
}

.form-card.wide {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.google-login-box {
  position: relative;
  display: grid;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
  height: fit-content;
  min-height: 0;
  gap: 16px;
  overflow: hidden;
  border-color: rgba(255, 61, 18, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 239, 0.9)),
    #ffffff;
  box-shadow: 0 22px 48px rgba(255, 61, 18, 0.1);
}

.google-login-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--wine), #ff8618, #111111);
}

.google-login-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.google-login-header .eyebrow {
  margin: 0 0 3px;
}

.google-login-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
}

.google-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 61, 18, 0.28);
  border-radius: 50%;
  background: #ffffff;
  color: var(--wine);
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
}

.google-login-copy {
  margin: 0;
  color: #111111;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.65;
}

.google-login-box .form-note {
  margin: 0;
}

.google-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 15px !important;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.google-button:hover {
  transform: translateY(-1px);
  border-color: var(--wine) !important;
  box-shadow: 0 18px 34px rgba(255, 61, 18, 0.18);
}

.google-button::before {
  content: "G";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  font-weight: 900;
}

.payment-preview-panel code {
  display: block;
  overflow-wrap: anywhere;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--wine-dark);
  font-weight: 900;
}

.rules-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 61, 18, 0.26);
  border-left: 5px solid var(--wine);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 239, 0.86));
  color: var(--foreground);
  padding: 16px;
}

.rules-box h3 {
  margin: 0;
  color: var(--wine-dark);
  font-size: 18px;
  line-height: 1.35;
}

.rules-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.rules-box li {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.form-card form,
.form-card,
.comment-form {
  display: grid;
  gap: 14px;
}

.form-card label,
.comment-form {
  color: var(--wine-dark);
  font-size: 14px;
  font-weight: 900;
}

.form-card input,
.form-card select,
.form-card textarea,
.comment-form textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--foreground);
  outline: none;
  padding: 10px 12px;
}

.form-card input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
}

.check-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.signup-upgrade-box,
.terms-accept {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 241, 236, 0.72);
}

.signup-upgrade-box h3 {
  margin-bottom: 0;
  color: var(--wine-dark);
}

.signup-promo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signup-promo-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #111111;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.payment-qr-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 540px;
  padding: 10px;
  border: 1px solid rgba(255, 61, 18, 0.28);
  border-radius: 8px;
  background: #ffffff;
}

.payment-qr-card.compact {
  grid-template-columns: 92px minmax(0, 1fr);
  max-width: 500px;
}

.payment-qr-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ff8618;
}

.payment-qr-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 122px;
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.payment-qr-card div {
  display: grid;
  gap: 5px;
}

.payment-qr-card strong {
  color: var(--wine-dark);
  font-size: 16px;
}

.payment-qr-card span {
  color: var(--wine);
  font-weight: 900;
}

.payment-qr-card small {
  color: var(--ink-muted);
  font-weight: 800;
  line-height: 1.5;
}

.terms-accept {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  border-color: var(--wine);
  background: #111111;
  color: white;
}

.terms-accept span {
  color: white;
  line-height: 1.6;
}

.google-terms {
  gap: 10px;
  padding: 14px;
  border-color: rgba(255, 61, 18, 0.34);
  background: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.google-terms input {
  margin-top: 4px;
  accent-color: var(--wine);
}

.google-terms span {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

.form-note {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.form-card textarea,
.comment-form textarea {
  resize: vertical;
}

.form-card button,
.comment-form button,
.member-card button,
.detail-actions button,
.inline-form button,
.follow-form button,
.admin-actions button,
.moderation-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--peach);
}

.post-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  padding: 18px;
}

.detail-image {
  width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: cover;
}

.detail-copy {
  align-self: center;
  padding: 12px;
}

.detail-copy h1 {
  font-size: clamp(42px, 7vw, 82px);
}

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

.detail-actions form {
  margin: 0;
}

.detail-actions .secondary-lite {
  border: 1px solid var(--line);
  background: white;
  color: var(--wine-dark);
}

.follow-form {
  margin-top: 18px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.notification-item.unread {
  border-left: 5px solid var(--wine);
  background: var(--peach);
}

.notification-item span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.forum-page,
.forum-detail,
.forum-admin-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(255, 61, 18, 0.1);
}

.forum-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.forum-sidebar,
.forum-topic-list,
.forum-main,
.forum-replies,
.forum-category-list {
  display: grid;
  gap: 12px;
}

.forum-sidebar a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--wine-dark);
  font-weight: 900;
}

.forum-sidebar a.active {
  background: #111111;
  color: white;
}

.forum-sidebar span,
.forum-topic-card p,
.forum-topic-meta,
.forum-author,
.forum-reply small {
  color: var(--ink-muted);
  font-weight: 800;
}

.forum-topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.forum-topic-card h3 {
  margin: 8px 0;
  color: var(--wine-dark);
}

.forum-topic-meta {
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: right;
}

.forum-form {
  margin-top: 8px;
}

.forum-detail-card,
.forum-reply {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.forum-detail-card h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.forum-body {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.75;
}

.forum-attachment {
  width: 100%;
  max-height: 580px;
  border-radius: 8px;
  object-fit: cover;
}

.forum-reply.hidden {
  opacity: 0.62;
}

.forum-category-row {
  display: grid;
  grid-template-columns: 1fr 90px 1.3fr auto auto;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.forum-category-row input,
.forum-category-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.gstar-hero,
.gstar-section,
.gstar-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(255, 61, 18, 0.1);
}

.gstar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  padding: 28px;
}

.gstar-hero h1 {
  margin-bottom: 12px;
}

.gstar-wallet {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wine), #111111);
  color: white;
}

.vip-wallet {
  background: var(--wine);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 61, 18, 0.08), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 46px rgba(255, 61, 18, 0.1);
}

.product-hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(52px, 8vw, 120px);
}

.product-wallet {
  background: linear-gradient(135deg, #ff3d12, #111111);
}

.gstar-wallet strong {
  font-size: 54px;
  line-height: 1;
}

.vip-wallet strong {
  font-size: 28px;
}

.gstar-wallet span,
.gstar-wallet small {
  font-weight: 900;
}

.wallet-privacy-panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.wallet-private-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.accounting-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.accounting-actions,
.accounting-date-form,
.accounting-entry-tools {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.accounting-date-form {
  margin: 18px 0;
}

.accounting-date-form label,
.accounting-manual-form label,
.accounting-close-form label {
  flex: 1;
  min-width: 180px;
}

.accounting-print-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.accounting-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.accounting-summary-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7f3;
}

.accounting-summary-grid span {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
}

.accounting-summary-grid strong {
  font-size: 20px;
}

.accounting-closing-note {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.accounting-closing-note.pending {
  background: #111111;
  color: #ffffff;
}

.accounting-entry-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-bottom: 18px;
}

.accounting-table-wrap {
  overflow-x: auto;
}

.accounting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.accounting-table th,
.accounting-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.accounting-table th {
  color: var(--orange);
  font-size: 12px;
  text-transform: uppercase;
}

.accounting-signatures {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  font-weight: 900;
}

.gstar-grid,
.vip-grid,
.referral-grid,
.history-grid,
.payment-settings-grid,
.referral-admin-grid,
.gstar-admin-forms,
.gstar-review-grid,
.gstar-admin-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gstar-panel,
.gstar-section,
.history-panel {
  padding: 22px;
}

.referral-code-panel {
  display: grid;
  gap: 10px;
  align-content: center;
}

.referral-code-panel span {
  color: var(--wine);
  font-weight: 900;
}

.referral-code-panel strong {
  width: fit-content;
  border-radius: 8px;
  background: #111111;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 8px 14px;
}

.level-bar {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: var(--peach);
}

.level-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wine);
}

.mission-grid,
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.product-card,
.topup-package-card,
.product-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.product-card img,
.product-admin-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--wine), #111111);
  color: white;
}

.product-image-placeholder strong {
  font-size: 96px;
  line-height: 1;
}

.product-card-body,
.topup-package-card,
.product-admin-card,
.product-admin-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-card-body p,
.topup-package-card p {
  color: var(--ink-muted);
  line-height: 1.55;
}

.product-card-body small {
  font-weight: 900;
  color: var(--wine);
}

.product-buy-form,
.product-edit-form,
.topup-package-row {
  display: grid;
  gap: 8px;
}

.product-buy-form input,
.product-buy-form textarea,
.product-edit-form input,
.product-edit-form textarea,
.topup-package-row input,
.topup-package-row textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.product-buy-form button,
.product-edit-form button,
.topup-package-row button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.product-buy-form button:disabled,
.form-card button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-topup-layout,
.product-admin-grid,
.product-admin-list,
.topup-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topup-package-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.topup-package-card span {
  width: fit-content;
  border-radius: 999px;
  background: #111111;
  color: white;
  font-weight: 900;
  padding: 5px 10px;
}

.topup-package-card strong {
  color: var(--wine);
  font-size: 24px;
}

.topup-package-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mission-card,
.reward-card,
.history-panel,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mission-card,
.reward-card,
.review-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mission-card p,
.reward-card p,
.history-panel p,
.review-card p {
  color: var(--ink-muted);
  line-height: 1.6;
}

.proof-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111111;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.proof-link.small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.proof-missing {
  color: var(--wine) !important;
  font-weight: 900;
}

.mission-card form,
.reward-card form,
.review-form {
  display: grid;
  gap: 10px;
}

.mission-card textarea,
.reward-card input,
.review-form input,
.review-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
}

.mission-card button,
.reward-card button,
.review-form button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.mission-card button:disabled,
.reward-card button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vip-member-row {
  display: grid;
  grid-template-columns: 120px minmax(150px, 1fr) minmax(180px, 1.4fr) 100px auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.benefits-admin-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.benefit-member-list {
  display: grid;
  gap: 10px;
}

.benefit-member-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(150px, 1fr) minmax(180px, 1.15fr) 92px 108px minmax(160px, 1.2fr) auto;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.benefit-member-row strong {
  line-height: 1.25;
}

.benefit-member-row small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.benefit-member-row select,
.benefit-member-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.benefit-member-row button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.benefit-log-panel {
  background: white;
}

.vip-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.vip-package-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.vip-package-card strong {
  color: var(--wine);
  font-size: 20px;
}

.vip-package-card p,
.vip-package-card li {
  color: var(--ink-muted);
  line-height: 1.5;
}

.vip-package-card ul {
  margin: 0;
  padding-left: 18px;
}

.vip-package-row,
.vip-promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.vip-admin-form {
  margin-bottom: 14px;
}

.vip-package-row textarea,
.vip-promo-row textarea,
.vip-package-row input,
.vip-promo-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.vip-package-row button,
.vip-promo-row button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.vip-member-row select,
.vip-member-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.vip-member-row button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.history-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.gstar-admin {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.referral-admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.referral-campaign-list {
  display: grid;
  gap: 12px;
}

.referral-campaign-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 96px 96px 0.85fr 0.85fr;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.referral-campaign-row textarea {
  grid-column: span 3;
  min-height: 72px;
}

.referral-campaign-row input,
.referral-campaign-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.payment-settings-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.payment-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-item {
  padding: 14px;
  border-radius: 6px;
  background: var(--cream);
}

.comment-item p {
  margin-bottom: 6px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.comment-item small {
  color: var(--ink-muted);
  font-weight: 800;
}

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

.admin-command-center {
  display: grid;
  gap: 18px;
  margin: 20px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 61, 18, 0.08), #fff 56%);
}

.admin-command-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
}

.admin-command-head h3 {
  margin: 4px 0 0;
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.admin-search-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.admin-search-form label span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-search-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-menu-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 61, 18, 0.22);
  border-radius: 8px;
  background: #fff;
}

.admin-menu-group strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-menu-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-menu-group a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-menu-group a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.admin-search-results {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.admin-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-search-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-search-group h4 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.admin-search-group a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.admin-search-group a:hover {
  outline: 2px solid rgba(255, 61, 18, 0.22);
}

.admin-search-group strong,
.admin-search-group span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-group span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.queue-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.queue-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 14px 28px rgba(255, 61, 18, 0.12);
}

.queue-card strong {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.queue-card span {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.queue-card.has-work {
  border-color: rgba(255, 61, 18, 0.45);
  background: linear-gradient(135deg, rgba(255, 61, 18, 0.12), #fff 62%);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.moderation-queue {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.moderation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.moderation-card p {
  margin: 8px 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.moderation-form {
  display: grid;
  gap: 8px;
}

.moderation-form select,
.moderation-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.ad-slide-admin {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.slide-create-form {
  max-width: none;
}

.slide-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.slide-admin-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.slide-admin-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 4;
  border-radius: 6px;
  object-fit: cover;
  background: var(--peach);
}

.slide-edit-form {
  display: grid;
  gap: 10px;
}

.slide-edit-form label {
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 900;
}

.slide-edit-form input {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.slide-edit-form .check-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.slide-edit-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.gmusic-admin {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.music-create-form {
  max-width: none;
}

.music-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.music-admin-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.music-admin-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: var(--peach);
}

.music-edit-form {
  display: grid;
  gap: 10px;
}

.music-edit-form label {
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 900;
}

.music-edit-form input,
.music-edit-form textarea {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.music-edit-form .check-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.music-edit-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.admin-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--wine-dark);
  font-weight: 900;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.delete-form {
  margin-top: 8px;
}

.inline-form select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--foreground);
}

.inline-form .danger-button {
  background: #111111;
  color: #ffffff;
}

.profile-hero,
.profile-settings,
.profile-gallery,
.contact-lock-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(255, 61, 18, 0.1);
}

.profile-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.profile-avatar {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--wine);
  border-radius: 8px;
  background: var(--wine);
  color: white;
  font-size: 82px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-summary h1 {
  margin-bottom: 8px;
  font-size: clamp(44px, 7vw, 86px);
}

.profile-summary p {
  color: var(--ink-muted);
  line-height: 1.7;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-stats span {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 900;
}

.profile-friend-intent {
  margin-top: 12px;
}

.profile-friend-intent span {
  background: white;
  border: 1px solid var(--line);
}

.contact-lock-panel {
  padding: 22px;
}

.contact-grid,
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-card span {
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: var(--wine-dark);
}

.profile-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
}

.profile-gallery {
  padding: 24px;
}

.empty-state.compact {
  margin-top: 0;
  padding: 18px;
  box-shadow: none;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.profile-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--peach);
}

.profile-photo-card > div {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.photo-tools,
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-tools label {
  flex: 1 1 100%;
  color: var(--wine-dark);
  font-size: 13px;
  font-weight: 900;
}

.photo-tools input,
.photo-tools select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--foreground);
  padding: 8px 10px;
}

.photo-tools input {
  width: 100%;
  margin-top: 6px;
}

.photo-tools button,
.photo-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 12px;
}

.photo-actions .danger-button {
  background: #111111;
}

.profile-post-list {
  display: grid;
  gap: 10px;
}

.profile-post-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.profile-post-row img {
  width: 74px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.profile-post-row span,
.profile-post-row small {
  color: var(--ink-muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .content-wrap,
  .forum-layout,
  .forum-topic-card,
  .community-grid,
  .auth-grid,
  .settings-grid,
  .post-detail,
  .profile-hero,
  .profile-settings,
  .profile-photo-grid,
  .moderation-card,
  .slide-admin-grid,
  .music-showcase-grid,
  .music-admin-grid,
  .search-result-grid,
  .vip-grid,
  .referral-grid,
  .vip-package-grid,
  .payment-settings-grid,
  .referral-admin-grid,
  .cinema-grid,
  .cinema-detail,
  .product-hero,
  .product-grid,
  .product-topup-layout,
  .product-admin-grid,
  .product-admin-list,
  .topup-admin-list,
  .gstar-hero,
  .gstar-grid,
  .wallet-private-grid,
  .admin-command-head,
  .admin-search-form,
  .admin-menu-grid,
  .admin-search-grid,
  .queue-grid,
  .accounting-summary-grid,
  .accounting-entry-tools,
  .mission-grid,
  .reward-grid,
  .history-grid,
  .gstar-admin-forms,
  .gstar-review-grid,
  .gstar-admin-lists {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .contact-form-grid,
  .forum-category-row,
  .referral-campaign-row,
  .benefit-member-row,
  .topup-package-row,
  .vip-member-row,
  .vip-package-row,
  .vip-promo-row {
    grid-template-columns: 1fr;
  }

  .referral-campaign-row textarea {
    grid-column: auto;
  }

  .forum-topic-meta {
    text-align: left;
  }

  .profile-avatar {
    width: 150px;
  }

  .profile-post-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-post-row span,
  .profile-post-row small {
    grid-column: 2;
  }

  .hero-grid {
    min-height: auto;
    gap: 24px;
    padding: 24px 12px 12px;
  }

  .hero-copy {
    padding-top: 0;
    overflow: visible;
  }

  .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(54px, 13vw, 96px);
    line-height: 0.9;
    white-space: normal;
  }

  .ad-slider {
    margin-right: 0;
    margin-left: 0;
  }

  .content-wrap {
    gap: 16px;
  }

  .topbar-search {
    width: 100%;
    max-width: none;
  }

  .friend-filter-form {
    grid-template-columns: 1fr;
  }

  .payment-qr-card,
  .payment-qr-card.compact {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .google-login-box {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero-section,
  .main-column,
  .groups-section {
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    font-size: 19px;
  }

  .brand span {
    font-size: 12px;
    white-space: normal;
  }

  .album-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 17vw, 72px);
    line-height: 0.92;
  }

  .sort-pills {
    width: 100%;
  }

  .sort-pills button {
    flex: 1;
  }

  .announcement-strip,
  .search-panel div,
  .friend-filter-form,
  .topbar-search div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel button,
  .friend-filter-form button,
  .topbar-search button {
    width: 100%;
  }

  .search-page {
    padding: 14px;
  }

  .search-card.with-thumb,
  .member-result {
    grid-template-columns: 1fr;
  }

  .friend-row {
    grid-template-columns: 12px 1fr;
  }

  .friend-row small {
    grid-column: 2;
  }

  .payment-qr-card,
  .payment-qr-card.compact {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .payment-qr-thumb img {
    max-height: 96px;
  }

  .google-login-box {
    gap: 14px;
    padding: 18px;
  }

  .google-login-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .google-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .google-login-header h2 {
    font-size: 23px;
  }

  .google-login-copy {
    font-size: 14px;
  }

  .google-button {
    min-height: 48px;
  }

  .site-footer p {
    text-align: left;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .topbar,
  .site-header,
  .site-footer,
  .flash-stack,
  .no-print,
  .admin-actions,
  .payment-settings-panel,
  .gstar-admin,
  .product-admin-panel,
  .cinema-admin,
  .music-admin,
  .slide-admin,
  .moderation-panel,
  .forum-admin-panel,
  .media-manager,
  .admin-log-panel,
  .admin-stats {
    display: none !important;
  }

  .admin-panel > :not(.accounting-panel) {
    display: none !important;
  }

  .site-shell,
  .admin-panel,
  .accounting-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
  }

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

  .accounting-table {
    font-size: 11px;
  }

  .accounting-table th,
  .accounting-table td {
    padding: 6px;
  }

  .accounting-signatures {
    page-break-inside: avoid;
  }
}
