:root {
  --bg: #1f2128;
  --panel: #252831;
  --panel-soft: #2b2f39;
  --text: #f2f4f8;
  --muted: #b0b5c3;
  --line: #333746;
  --brand-red: #f3353e;
  --brand-blue: #3554f0;
  --accent: #39d2c0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #1c1f27 0%, #20232c 60%, #1b1d23 100%);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}

.app {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
}

.page {
  padding: 0 0 14px;
}

.hero-banner {
  position: relative;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 10;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 72%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 137, 133, 0.34) 0%, rgba(0, 0, 0, 0.16) 56%, rgba(60, 85, 170, 0.35) 100%);
}

.hero-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

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

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5a66, #ff8144);
  box-shadow: 0 0 10px rgba(255, 90, 102, 0.55);
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.hero-tools {
  display: flex;
  gap: 6px;
}

.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(50, 59, 74, 0.62);
  color: #fff;
  height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
}

.avatar-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.hero-info {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 14px;
}

.hero-info h1,
.hero-info h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.6px;
}

.hero-subtitle {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.25;
  color: #d3d8e3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-bars {
  margin-top: 14px;
  display: flex;
  gap: 6px;
}

.bar {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  padding: 0;
}

.bar.active {
  background: #fff;
}

.mine-wrap,
.list-block {
  padding: 0 12px;
}

.mine-wrap {
  margin-top: 10px;
}

.mine-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mine-left {
  display: flex;
  gap: 9px;
  align-items: center;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4db4ff, #5a72ff);
  font-weight: 700;
  color: #fff;
}

.mine-name {
  font-size: 13px;
  font-weight: 700;
}

.mine-desc {
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
}

.pill-btn {
  border: 1px solid #4e5568;
  background: #2f3542;
  color: #fff;
  height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.list-block {
  margin-top: 14px;
}

.list-block h2,
.list-block h4 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.poster-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 96px);
  gap: 10px;
  overflow-x: auto;
}

.poster {
  cursor: pointer;
}

.poster-cover {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: #1d2230;
  border: 1px solid #3a4152;
}

.poster-title {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.22;
  color: #d9deea;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.site-footer {
  margin: 18px 12px 0;
  padding: 10px 8px;
  text-align: center;
  color: #8f98ac;
  font-size: 12px;
  border-top: 1px solid #2e3442;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(92vw, 420px);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  color: #1f2937;
}

.row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.field {
  display: block;
  margin-top: 8px;
}

.field span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #6b7280;
}

.field input {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
}

button {
  border: 1px solid #c9cfde;
  border-radius: 8px;
  background: #fff;
  height: 34px;
  padding: 0 12px;
}

button.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

button.ghost {
  background: #fff;
}

.msg {
  margin-top: 8px;
  min-height: 16px;
  color: #dc2626;
  font-size: 12px;
}

#upcoming-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: unset;
  overflow: visible;
}

#upcoming-list .poster-cover {
  width: 100%;
}

#upcoming-list .poster-title {
  font-size: 13px;
  min-height: 32px;
}

@media (max-width: 520px) {
  .hero-info h1,
  .hero-info h3 {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .list-block h2,
  .list-block h4 {
    font-size: 17px;
  }
}
