:root {
  --bg: #0b0b0b;
  --bar: #1b1b1b;
  --panel: #202020;
  --panel-dark: #171717;
  --line: #303030;
  --text: #f2f2f2;
  --muted: #9c9c9c;
  --orange: #ff9d00;
  --red: #ff3150;
  --yellow: #ffc400;
}

@theme inline {
  --color-background: var(--bg);
  --color-foreground: var(--text);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 26px;
  background: #1c1c1c;
  border-bottom: 1px solid #2d2d2d;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 24px;
}

.header-right {
  gap: 18px;
}

.menu-button {
  display: grid;
  gap: 7px;
  width: 34px;
  padding: 0;
  background: transparent;
}

.menu-button span {
  height: 4px;
  border-radius: 99px;
  background: #cfcfcf;
}

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

.logo strong {
  color: #e8e8e8;
  font-size: 33px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
}

.logo span {
  padding: 5px 8px 4px;
  border-radius: 5px;
  background: var(--orange);
  color: #151515;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.icon-search,
.icon-user {
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  opacity: 0.88;
}

.icon-search::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border: 4px solid #d7d7d7;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 5px;
  width: 13px;
  height: 4px;
  border-radius: 99px;
  background: #d7d7d7;
  transform: rotate(45deg);
}

.icon-user::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #d7d7d7 0 5px, transparent 6px),
    radial-gradient(circle at 50% 76%, #d7d7d7 0 10px, transparent 11px);
}

.notice-bar {
  height: 76px;
  overflow: hidden;
  background: #202020;
  border-bottom: 1px solid var(--line);
}

.notice-bar p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(1600px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.notice-bar p::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 4px;
  border-radius: 4px;
  background: var(--orange);
}

.feature-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px 22px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--line);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #242424;
  color: #d8d8d8;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tag-icon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--orange);
}

.tag-icon-2 {
  border-radius: 50%;
  background: var(--yellow);
}

.tag-icon-3 {
  border-radius: 4px 4px 0 0;
  background: var(--orange);
}

.container {
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 120px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #f5f5f5;
  font-size: 24px;
  font-weight: 950;
}

.section-title::before {
  content: "";
  width: 16px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf33, var(--orange) 54%, #ff3150);
}

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

.video-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel);
  text-align: left;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 6;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at 52% 18%, rgba(255, 238, 207, 0.65), transparent 12%),
    radial-gradient(ellipse at 50% 56%, rgba(242, 188, 151, 0.78), transparent 28%),
    linear-gradient(145deg, #55412e, #171717 72%);
}

.poster::before {
  content: none;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 64%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.poster-2 {
  background:
    radial-gradient(circle at 46% 17%, rgba(255, 230, 215, 0.75), transparent 12%),
    radial-gradient(ellipse at 50% 55%, rgba(242, 186, 172, 0.72), transparent 26%),
    linear-gradient(145deg, #5c4939, #26202a 70%);
}

.poster-3 {
  background:
    radial-gradient(circle at 25% 26%, rgba(239, 219, 192, 0.55), transparent 12%),
    radial-gradient(circle at 76% 22%, rgba(239, 219, 192, 0.48), transparent 10%),
    radial-gradient(ellipse at 52% 60%, rgba(164, 108, 89, 0.64), transparent 30%),
    linear-gradient(145deg, #68573b, #24321f 70%);
}

.poster-4 {
  background:
    radial-gradient(circle at 55% 18%, rgba(255, 232, 210, 0.7), transparent 12%),
    radial-gradient(ellipse at 52% 64%, rgba(236, 171, 145, 0.72), transparent 32%),
    linear-gradient(145deg, #e4d5bd, #4f342c 78%);
}

.poster-5 {
  background:
    radial-gradient(circle at 48% 20%, rgba(245, 224, 197, 0.66), transparent 13%),
    radial-gradient(ellipse at 56% 60%, rgba(170, 100, 130, 0.66), transparent 30%),
    linear-gradient(145deg, #43385a, #1c1c1c 75%);
}

.poster-6 {
  background:
    radial-gradient(circle at 52% 20%, rgba(255, 232, 202, 0.72), transparent 12%),
    radial-gradient(ellipse at 50% 64%, rgba(210, 130, 110, 0.72), transparent 29%),
    linear-gradient(145deg, #70405c, #28313f 75%);
}

.poster-7 {
  background:
    radial-gradient(circle at 45% 24%, rgba(237, 216, 187, 0.66), transparent 13%),
    radial-gradient(ellipse at 50% 62%, rgba(132, 97, 176, 0.64), transparent 30%),
    linear-gradient(145deg, #2d4f55, #241d2c 72%);
}

.poster-8 {
  background:
    radial-gradient(circle at 56% 19%, rgba(255, 225, 188, 0.7), transparent 12%),
    radial-gradient(ellipse at 50% 62%, rgba(228, 128, 92, 0.72), transparent 30%),
    linear-gradient(145deg, #75472d, #211b19 75%);
}

.badge {
  position: absolute;
  z-index: 4;
  top: 10px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 4px;
  color: #191919;
  font-size: 12px;
  font-weight: 950;
}

.vip {
  left: 10px;
  background: #ff4c6a;
  color: #fff;
}

.hd {
  right: 10px;
  background: var(--yellow);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.video-info {
  display: grid;
  min-height: 122px;
  gap: 14px;
  padding: 16px 13px 13px;
}

.video-info strong {
  color: #cfcfcf;
  font-size: 17px;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 3px;
  background: #343434;
  color: #a7a7a7;
  font-size: 12px;
}

.mini-tag:first-child {
  background: rgba(255, 49, 80, 0.24);
  color: #ff627a;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: #767676;
  font-size: 13px;
}

.sticky-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 11px 20px;
  background: rgba(26, 26, 26, 0.97);
  border-top: 1px solid #333;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.footer-title {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.footer-sub {
  margin-top: 4px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 800;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 144px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffab1d, #ff9300);
  color: #131313;
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-shell {
  min-height: 100vh;
  padding: 28px 24px 48px;
  background: #0e0e0e;
  color: var(--text);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #151515;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
}

.admin-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #242424;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.admin-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 49, 80, 0.32);
  border-radius: 8px;
  background: rgba(255, 49, 80, 0.12);
  color: #ff98a8;
  font-size: 14px;
}

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

.admin-groups {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card,
.admin-panel {
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #161616;
}

.admin-stat-card {
  padding: 16px;
}

.admin-stat-card div {
  color: var(--muted);
  font-size: 13px;
}

.admin-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 950;
}

.admin-panel {
  padding: 14px;
  margin-top: 12px;
}

.admin-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.admin-bars {
  display: grid;
  gap: 10px;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.admin-bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #232323;
}

.admin-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9d00, #ff3150);
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-table-panel {
  margin-top: 12px;
}

.admin-table-wrap {
  overflow: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #252525;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #bfbfbf;
  font-size: 12px;
  font-weight: 800;
}

.admin-table td {
  color: #e7e7e7;
}

@media (max-width: 900px) {
  .site-header {
    height: 58px;
    padding: 0 14px;
  }

  .header-left {
    gap: 14px;
  }

  .logo strong {
    font-size: 28px;
  }

  .logo span {
    font-size: 18px;
  }

  .notice-bar {
    height: 44px;
  }

  .notice-bar p {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding-left: 100%;
    font-size: 14px;
    animation: marquee 18s linear infinite;
  }

  @keyframes marquee {
    to {
      transform: translateX(-100%);
    }
  }

  .feature-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 13px 12px;
    scrollbar-width: none;
  }

  .feature-strip::-webkit-scrollbar {
    display: none;
  }

  .feature-tag {
    flex: 0 0 auto;
    min-height: 38px;
    font-size: 14px;
  }

  .container {
    width: 100%;
    padding: 28px 12px 104px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .section-title {
    font-size: 22px;
  }

  .video-info {
    min-height: 104px;
    gap: 10px;
    padding: 12px 10px 10px;
  }

  .video-info strong {
    font-size: 15px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-sub {
    font-size: 14px;
  }

  .footer-btn {
    min-width: 132px;
    min-height: 50px;
    font-size: 18px;
  }

  .admin-shell {
    padding: 18px 12px 28px;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-stats,
  .admin-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .video-grid {
    gap: 9px;
  }

  .poster {
    aspect-ratio: 4 / 5.8;
  }

  .footer-btn {
    min-width: 116px;
    padding: 0 16px;
  }}
