:root {
  --bg: #0a0a0a;
  --bg-elev: #181818;
  --card-bg: #1f1f1f;
  --page-max: 1280px;
  --page-gutter: 18px;
  --red: #e50914;
  --red-hover: #f40612;
  --pink: #ff4d8d;
  --white: #ffffff;
  --text: #e5e5e5;
  --text-dim: #b3b3b3;
  --gray: #808080;
  --dark-gray: #2f2f2f;
  --green: #46d369;
  --gold: #ffd700;
}

html, body {
  background: var(--bg);
}

body {
  overflow-x: hidden;
  font-family: "Poppins", -apple-system, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.14), transparent 26%),
    radial-gradient(circle at 80% 12%, rgba(255, 77, 141, 0.08), transparent 22%),
    linear-gradient(180deg, #0b0b0d 0%, #090909 45%, #070707 100%);
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.profile-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}

.profile-screen.active {
  display: flex;
  animation: fadeIn 0.8s ease forwards;
}

.brand-mini {
  margin-bottom: 36px;
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
}

.profile-title {
  margin-bottom: 48px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  max-width: 380px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
}

.profile-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 6px;
  background: var(--dark-gray);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:not(.locked):hover .profile-avatar {
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

.lock-countdown {
  padding: 0 6px;
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 600;
}

.profile-label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.manage-btn {
  margin-top: 44px;
  padding: 9px 22px;
  border: 1px solid var(--gray);
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 3px;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.welcome-screen.active {
  display: flex;
}

.welcome-content {
  padding: 0 30px;
  text-align: center;
}

.welcome-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(229, 9, 20, 0.3);
}

.welcome-greeting {
  margin-bottom: 8px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
}

.welcome-message {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
}

.welcome-loader {
  position: relative;
  width: 60px;
  height: 2px;
  margin: 36px auto 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.welcome-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: loaderFill 1.6s linear forwards;
}

.locked-modal,
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.locked-modal.active,
.detail-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.locked-content,
.detail-content {
  width: min(92vw, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--bg-elev);
}

.locked-content {
  max-width: 320px;
  margin: 0 20px;
  padding: 32px 28px;
  text-align: center;
}

.big-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  font-size: 30px;
}

.countdown-display {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.countdown-cell {
  min-width: 66px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.cd-num {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.cd-label {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.close-modal {
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--red);
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  transition: background 0.3s;
}

.top-header.active {
  display: flex;
}

.top-header.scrolled {
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-header-left,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
  font-weight: 700;
  transform: scaleY(1.05);
}

.days-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 14px;
  background: rgba(229, 9, 20, 0.15);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

.header-icon-btn,
.header-avatar,
.back-btn,
.admin-hint {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 6px;
}

.header-icon-btn,
.back-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
}

.back-btn {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 11;
  display: none;
}

.back-btn.active {
  display: flex;
}

.page {
  display: none;
  min-height: 100vh;
  padding-bottom: 90px;
}

.page.active {
  display: block;
}

#browse-page {
  position: relative;
  isolation: isolate;
}

#browse-page::before,
#browse-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.7;
}

#browse-page::before {
  top: 110px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.24), transparent 70%);
}

#browse-page::after {
  right: -100px;
  bottom: 120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 144, 0.16), transparent 72%);
}

#contentRows,
.search-results,
#mylistContent,
.timeline-section,
.stats-grid,
.mylist-header,
.stats-hero,
.search-bar-wrapper {
  width: min(100%, var(--page-max));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 -120px 120px rgba(0, 0, 0, 0.22);
}

.hero-bg-wrapper,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

.hero-bg-video,
.hero-bg-image {
  width: 100%;
  height: 100%;
}

.hero-bg-image {
  object-fit: cover;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.hero-bg-video-mode {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 55%),
    #000;
  animation: none;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, transparent 30%, transparent 50%, rgba(10, 10, 10, 0.7) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.6) 0%, transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(229, 9, 20, 0.08) 55%, transparent);
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 74% 18%, rgba(229, 9, 20, 0.12), transparent 24%);
  pointer-events: none;
  z-index: 1;
}

@keyframes kenBurns {
  0% { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.15) translateY(-2%); }
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 60px;
  left: 0;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 22px;
  z-index: 2;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -18px auto -18px 0;
  width: min(100%, 470px);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.18), rgba(12, 12, 14, 0.48)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  z-index: -1;
}

.hero-side-actions {
  position: absolute;
  right: 16px;
  bottom: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-side-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
}

.hero-side-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-badge .label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.n-mini {
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
}

.hero-title {
  margin-bottom: 10px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.hero-meta .match {
  padding: 5px 10px;
  border: 1px solid rgba(70, 211, 105, 0.18);
  border-radius: 999px;
  background: rgba(70, 211, 105, 0.08);
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-meta .meta-sep {
  color: var(--text-dim);
}

.hero-tags {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.hero-description {
  max-width: 380px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-buttons {
  display: flex;
  gap: 10px;
}

.btn-play,
.btn-info,
.detail-action-btn,
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-play {
  background: #fff;
  color: #000;
  font-weight: 600;
}

.btn-play:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-play:active {
  transform: scale(0.97);
}

.btn-info,
.detail-action-btn,
.reaction-btn {
  background: rgba(109, 109, 110, 0.72);
  backdrop-filter: blur(10px);
}

.btn-info:hover {
  background: rgba(109, 109, 110, 0.5);
}

.btn-play svg,
.btn-info svg {
  width: 16px;
  height: 16px;
}

#contentRows {
  position: relative;
  z-index: 3;
  margin-top: -18px;
}

.content-section,
.timeline-section {
  padding: 22px 0 6px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin-bottom: 12px;
}

.row-title {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.14);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.16);
}

.row-see-all {
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding-right: 2px;
}

.row-see-all::after {
  content: " ›";
  color: var(--red);
  font-weight: 700;
}

.row-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 18px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
}

.card,
.top10-card,
.search-card {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card-bg);
  touch-action: manipulation;
}

.card {
  scroll-snap-align: start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.06) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 5;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.card.portrait {
  width: 130px;
  height: 195px;
}

.card.landscape {
  width: 220px;
  height: 124px;
}

.card-poster {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  pointer-events: none;
}

.card-media-image,
.search-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-video {
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

.card-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 40%, rgba(0, 0, 0, 0.98));
  pointer-events: none;
}

.card-title {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-sub {
  color: var(--text-dim);
  font-size: 0.6rem;
}

.card-like,
.card-badge {
  position: absolute;
  z-index: 2;
}

.card-like {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  line-height: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  opacity: 0;
}

.card:hover .card-like {
  opacity: 1;
}

.card-like.liked {
  opacity: 1;
  background: var(--red);
}

.card-like:hover {
  transform: scale(1.1);
}

.card-badge {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--red);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.card-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2f3d, var(--red));
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.35);
}

.top10-row {
  padding: 4px 0 12px;
}

.top10-card {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  width: 200px;
  height: 130px;
  margin-right: 4px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
  background: transparent;
}

.top10-card:hover {
  transform: scale(1.05);
  z-index: 5;
}

.top10-card:first-child {
  margin-left: 18px;
}

.top10-card:last-child {
  margin-right: 18px;
}

.top10-number {
  align-self: flex-end;
  margin-right: -32px;
  color: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-size: 7rem;
  line-height: 0.85;
  letter-spacing: -8px;
  -webkit-text-stroke: 2px var(--text-dim);
  filter: drop-shadow(2px 2px 0 #000);
  user-select: none;
  z-index: 1;
}

.top10-poster,
.search-card .ph,
.search-card-image {
  overflow: hidden;
  border-radius: 4px;
}

.top10-poster {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.top10-poster > div,
.top10-poster > img {
  width: 100%;
  height: 100%;
}

.search-bar-wrapper,
.mylist-header,
.stats-hero {
  padding: 80px 22px 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.search-bar input {
  flex: 1;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.search-grid,
.mylist-grid,
.stats-grid {
  display: grid;
  gap: 8px;
}

.search-grid,
.mylist-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  padding: 0 18px;
}

.search-card .ph {
  height: 100%;
}

.search-card .card-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.search-section-title,
.timeline-title {
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stats-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 88px 22px 20px;
  text-align: left;
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.stats-hero::before {
  content: "";
  position: absolute;
  inset: 24px 22px 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(70, 8, 12, 0.85), rgba(12, 12, 14, 0.92));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.stats-hero > * {
  position: relative;
  z-index: 1;
}

.stats-hero-copy {
  text-align: center;
}

.stats-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.stats-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.stats-hero p {
  max-width: 420px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.stats-hero-counter {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.big-counter {
  margin: 8px 0 0;
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.8rem, 14vw, 7.2rem);
  line-height: 0.9;
  text-shadow:
    0 0 40px rgba(229, 9, 20, 0.38),
    0 0 90px rgba(229, 9, 20, 0.18);
}

.big-counter-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-highlight-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stats-highlight-eyebrow {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stats-highlight-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.stats-highlight-card p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

.stats-highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-highlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(70, 211, 105, 0.18);
  background: rgba(70, 211, 105, 0.08);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 600;
}

.stats-highlight-chip.muted {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  padding: 18px 18px 0;
}

#timelineList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card,
.timeline-item,
.admin-profile-item,
.admin-input-group,
.dev-note {
  background: var(--card-bg);
}

.stat-card {
  position: relative;
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(17, 17, 18, 0.9);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 84px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.stat-card-1 {
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(17, 17, 18, 0.92);
}

.stat-card-2 {
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(17, 17, 18, 0.92);
}

.stat-card-3 {
  background:
    radial-gradient(circle at top right, rgba(70, 211, 105, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(17, 17, 18, 0.92);
}

.stat-card-4 {
  background:
    radial-gradient(circle at top right, rgba(255, 120, 144, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(17, 17, 18, 0.92);
}

.stat-icon,
.stat-value,
.stat-label,
.stat-helper {
  position: relative;
  z-index: 1;
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
}

.stat-value {
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.stat-label {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.stat-helper {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  line-height: 1.5;
}

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  margin-left: 10px;
  margin-bottom: 0;
  padding: 18px 18px 18px 22px;
  border-left: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 0 22px 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(20, 20, 22, 0.94);
}

.timeline-item:not(.locked) {
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(20, 20, 22, 0.94);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
}

.timeline-item.locked::before {
  background: var(--dark-gray);
  box-shadow: none;
}

.timeline-content {
  display: grid;
  gap: 10px;
  width: 100%;
}

.timeline-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-step {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline-content h4 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.1;
}

.timeline-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.6;
}

.timeline-status.unlocked {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(70, 211, 105, 0.15);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
}

.timeline-status.locked {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: none;
  justify-content: space-around;
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
}

.bottom-nav.active {
  display: flex;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-item.active-nav {
  color: #fff;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.admin-hint {
  position: fixed;
  right: 14px;
  bottom: 78px;
  z-index: 13;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
  display: none;
}

.admin-hint.active {
  display: flex;
}

.pin-overlay,
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: var(--bg);
}

.pin-overlay.active,
.admin-panel.active {
  display: flex;
}

.pin-overlay {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pin-display {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.pin-dot.filled {
  border-color: var(--red);
  background: var(--red);
}

.pin-display.shake {
  animation: shake 0.4s;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
}

.pin-key {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.admin-panel {
  flex-direction: column;
  overflow-y: auto;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
}

.admin-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-back-link {
  display: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-back-link:hover {
  color: #fff;
}

.admin-body {
  padding: 20px;
}

.admin-auth-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-auth-card {
  width: min(100%, 540px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.admin-auth-card h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.admin-inline-error {
  margin-top: 10px;
  color: #ff8f96;
  font-size: 0.82rem;
}

.admin-profile-studio {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.admin-profile-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-profile-studio-head h3 {
  color: #fff;
  font-size: 1.2rem;
}

.admin-profile-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-profile-selector-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-profile-selector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.3);
}

.admin-profile-selector-card.active {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.12);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.15) inset;
}

.admin-profile-selector-media {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.admin-profile-selector-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.admin-profile-selector-copy strong {
  color: #fff;
}

.admin-profile-selector-copy span,
.admin-profile-selector-state {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.admin-empty-note-large {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-section-title {
  margin: 24px 0 10px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.admin-profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-input-row,
.admin-quick-grid,
.admin-section-grid {
  display: grid;
  gap: 10px;
}

.admin-quick-grid,
.admin-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.admin-profile-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
}

.ap-thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 6px;
}

.ap-info {
  flex: 1;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--dark-gray);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--red);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.admin-add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px dashed rgba(229, 9, 20, 0.5);
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.1);
  color: var(--red);
  text-align: left;
}

.admin-input-group {
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 10px;
}

.admin-input-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-input-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.admin-input-group select,
.admin-input-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-card h4,
.admin-card h5 {
  color: #fff;
}

.admin-profile-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.admin-tab {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  white-space: nowrap;
}

.admin-tab.active {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(229, 9, 20, 0.16);
  color: #fff;
}

.admin-card-subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-inline-btn,
.admin-danger-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-inline-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-danger-btn {
  background: rgba(229, 9, 20, 0.12);
  color: #ff8f96;
}

.admin-category-grid,
.admin-content-grid {
  display: grid;
  gap: 12px;
}

.admin-category-card,
.admin-content-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-content-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.admin-category-head,
.admin-content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-category-meta,
.admin-content-meta {
  color: var(--text-dim);
  font-size: 0.75rem;
}

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

.admin-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.68rem;
}

.admin-card-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.admin-card-thumb,
.admin-media-preview {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-card-thumb img,
.admin-media-preview img,
.admin-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-empty-note {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text-dim);
  text-align: center;
}

.dev-note {
  padding: 14px;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.7;
}

body.admin-route {
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.18), transparent 34%),
    linear-gradient(180deg, #100102 0%, #060606 46%, #020202 100%);
}

body.admin-route .splash-screen,
body.admin-route .profile-screen,
body.admin-route .welcome-screen,
body.admin-route .top-header,
body.admin-route .back-btn,
body.admin-route .page,
body.admin-route .bottom-nav,
body.admin-route .admin-hint,
body.admin-route .app-footer {
  display: none !important;
}

body.admin-route .admin-back-link {
  display: inline-flex;
}

body.admin-route .admin-panel {
  position: relative;
  inset: auto;
  min-height: 100vh;
  display: flex;
  background: transparent;
}

body.admin-route .admin-panel.active {
  display: flex;
}

body.admin-route .admin-header,
body.admin-route .admin-body {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

body.admin-route .admin-header {
  padding-top: 28px;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.98), rgba(6, 6, 6, 0.92));
  backdrop-filter: blur(18px);
}

body.admin-route .admin-body {
  padding-bottom: 40px;
}

body.admin-route .pin-overlay {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

body.admin-route .admin-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .admin-input-row {
    grid-template-columns: 1fr;
  }

  .admin-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-media-preview {
    width: 100%;
    height: 180px;
  }

  .admin-profile-studio-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-route .admin-header,
  body.admin-route .admin-body {
    width: calc(100vw - 28px);
  }
}

.detail-content {
  max-width: 760px;
  position: relative;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(14, 14, 16, 0.98), rgba(8, 8, 9, 0.99));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
}

.detail-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.detail-content::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 140px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.detail-hero-emoji {
  font-size: 5rem;
}

.detail-hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.detail-modal.media-framed .detail-content {
  width: min(96vw, 980px);
}

.detail-modal.media-framed .detail-hero {
  min-height: 0;
  max-height: min(68vh, 760px);
  padding: 18px 18px 0;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 60%);
}

.detail-modal.media-framed .detail-hero-image,
.detail-modal.media-framed .detail-hero-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 760px);
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.detail-modal.media-framed.media-portrait .detail-hero-image,
.detail-modal.media-framed.media-portrait .detail-hero-video {
  width: min(100%, 460px);
}

.detail-modal.media-framed.media-landscape .detail-hero-image,
.detail-modal.media-framed.media-landscape .detail-hero-video {
  width: 100%;
}

.detail-modal.image-spotlight .detail-content {
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(24, 4, 6, 0.98), rgba(6, 6, 6, 0.98));
}

.detail-modal.image-spotlight .detail-hero {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 60%);
}

.detail-modal.image-spotlight .detail-hero-image,
.detail-modal.image-spotlight .detail-hero-video {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.detail-heart-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.detail-heart-field span {
  position: absolute;
  color: rgba(255, 120, 144, 0.8);
  text-shadow: 0 0 18px rgba(229, 9, 20, 0.42);
  animation: detailHeartFloat 5.8s ease-in-out infinite;
}

.detail-heart-field span:nth-child(1) { top: 11%; left: 9%; font-size: 1rem; animation-delay: 0s; }
.detail-heart-field span:nth-child(2) { top: 18%; right: 12%; font-size: 1.1rem; animation-delay: 0.9s; }
.detail-heart-field span:nth-child(3) { bottom: 17%; left: 14%; font-size: 0.95rem; animation-delay: 1.8s; }
.detail-heart-field span:nth-child(4) { bottom: 10%; right: 16%; font-size: 1rem; animation-delay: 2.7s; }
.detail-heart-field span:nth-child(5) { top: 46%; right: 8%; font-size: 1.25rem; animation-delay: 3.6s; }

.close-detail {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 4;
}

.close-detail:hover {
  transform: scale(1.05);
  background: rgba(229, 9, 20, 0.28);
  border-color: rgba(229, 9, 20, 0.38);
}

.detail-body {
  position: relative;
  padding: 24px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(15, 15, 17, 0.92), rgba(7, 7, 8, 0.98));
}

.detail-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.detail-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.detail-meta .match {
  padding: 5px 10px;
  border: 1px solid rgba(70, 211, 105, 0.18);
  border-radius: 999px;
  background: rgba(70, 211, 105, 0.08);
  color: var(--green);
  font-weight: 700;
}

.detail-meta .meta-sep {
  color: rgba(255, 255, 255, 0.26);
}

.detail-description {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.7;
}

.detail-cast {
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.65;
}

.detail-cast strong {
  color: #fff;
  font-weight: 600;
}

.detail-cast .item {
  color: rgba(255, 255, 255, 0.82);
}

.detail-cast .item:not(:last-child)::after {
  content: " •";
  color: rgba(255, 255, 255, 0.22);
}

.detail-actions,
.reactions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-actions {
  margin-bottom: 18px;
}

.detail-action-btn,
.reaction-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    rgba(109, 109, 110, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-action-btn:hover,
.reaction-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(109, 109, 110, 0.36);
}

.detail-action-btn.active {
  border-color: rgba(229, 9, 20, 0.34);
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.26), rgba(229, 9, 20, 0.12)),
    rgba(109, 109, 110, 0.2);
}

.reaction-btn.active {
  border-color: rgba(255, 120, 144, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 120, 144, 0.24), rgba(255, 120, 144, 0.12)),
    rgba(109, 109, 110, 0.18);
}

.reaction-emoji {
  font-size: 0.95rem;
}

.reaction-count {
  font-weight: 600;
}

.detail-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.detail-modal.video-only .detail-content {
  width: min(94vw, 1100px);
  background: #000;
}

.detail-modal.video-only .detail-hero {
  min-height: min(82vh, 760px);
  aspect-ratio: auto;
}

.detail-modal.video-only.media-framed .detail-content {
  width: min(96vw, 1100px);
}

.detail-modal.video-only.media-framed .detail-hero {
  max-height: min(86vh, 860px);
  padding: 18px;
  background: #000;
}

.detail-modal.video-only.media-framed.media-portrait .detail-content {
  width: min(92vw, 560px);
}

.detail-modal.video-only.media-framed.media-portrait .detail-hero-video {
  width: min(100%, 460px);
  max-height: min(82vh, 860px);
}

.detail-modal.video-only.media-framed.media-landscape .detail-hero-video {
  width: 100%;
  max-height: min(80vh, 760px);
}

.detail-modal.video-only .detail-body {
  display: none;
}

.heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  font-size: 20px;
  animation: heartFloat 1.4s ease-out forwards;
}

.app-footer {
  padding: 28px 20px 16px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.heart {
  color: var(--red);
}

.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.ph-content {
  position: relative;
  z-index: 1;
}

.hero-ph {
  font-size: 5rem;
  opacity: 0.4;
}

.ph1 { background: linear-gradient(135deg, #e8927c, #c94b4b); }
.ph2 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.ph3 { background: linear-gradient(135deg, #667eea, #764ba2); }
.ph4 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.ph5 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.ph6 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.ph7 { background: linear-gradient(135deg, #fa709a, #fee140); }
.ph8 { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.ph9 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.ph10 { background: linear-gradient(135deg, #ff6e7f, #bfe9ff); }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes loaderFill {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes heartFloat {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4); opacity: 0; }
}

@keyframes detailHeartFloat {
  0%, 100% { transform: translateY(0) scale(0.96); opacity: 0.4; }
  50% { transform: translateY(-14px) scale(1.08); opacity: 1; }
}

@media (min-width: 600px) {
  .profiles-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 620px;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 960px) {
  :root {
    --page-gutter: 28px;
  }

  .top-header {
    padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2 + var(--page-gutter)));
    padding-left: max(84px, calc((100vw - var(--page-max)) / 2 + 84px));
  }

  .back-btn {
    left: max(12px, calc((100vw - var(--page-max)) / 2 + 12px));
  }

  .admin-hint {
    right: max(14px, calc((100vw - var(--page-max)) / 2 + 14px));
  }

  .hero {
    height: min(84vh, 780px);
    border-radius: 0 0 28px 28px;
  }

  .hero-content {
    left: 50%;
    width: min(100%, var(--page-max));
    padding: 0 var(--page-gutter);
    transform: translateX(-50%);
  }

  .hero-description {
    max-width: 540px;
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
  }

  .hero-title {
    font-size: clamp(4.4rem, 7vw, 6.6rem);
  }

  .hero-meta,
  .hero-tags {
    font-size: 0.9rem;
  }

  .hero-side-actions {
    right: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2 + var(--page-gutter)));
    bottom: 92px;
  }

  .hero-bg-video-mode .hero-bg-video {
    width: 100%;
    height: 100%;
  }

  .row-header {
    padding: 0 var(--page-gutter);
    margin-bottom: 16px;
  }

  .row-title {
    font-size: 1.15rem;
  }

  .row-scroll {
    gap: 12px;
    padding: 6px var(--page-gutter) 18px;
  }

  .card.portrait {
    width: 176px;
    height: 264px;
  }

  .card.landscape {
    width: 320px;
    height: 180px;
  }

  .card-title {
    font-size: 0.86rem;
  }

  .card-sub {
    font-size: 0.72rem;
  }

  .top10-card {
    width: 300px;
    height: 188px;
  }

  .top10-card:first-child {
    margin-left: var(--page-gutter);
  }

  .top10-card:last-child {
    margin-right: var(--page-gutter);
  }

  .top10-number {
    font-size: 10rem;
    margin-right: -42px;
  }

  .top10-poster {
    width: 138px;
    height: 188px;
  }

  .search-bar-wrapper,
  .mylist-header,
  .stats-hero {
    padding: 96px var(--page-gutter) 28px;
  }

  .search-results {
    padding: 12px var(--page-gutter) 30px;
  }

  .search-grid,
  .mylist-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 0;
  }

  .search-card {
    border-radius: 8px;
    aspect-ratio: 0.74;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  }

  .search-section-title,
  .timeline-title {
    margin-bottom: 16px;
    font-size: 0.8rem;
  }

  .stats-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    padding-top: 120px;
    padding-bottom: 28px;
  }

  .stats-hero::before {
    inset: 26px 0 0;
  }

  .stats-hero-copy {
    text-align: left;
    padding-left: var(--page-gutter);
  }

  .stats-hero p {
    margin-left: 0;
  }

  .stats-hero-counter {
    justify-items: start;
    padding-right: var(--page-gutter);
  }

  .stats-highlight-card {
    grid-column: 2;
    margin-right: var(--page-gutter);
  }

  .stats-hero h1,
  .mylist-header h1 {
    font-size: 3.4rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 var(--page-gutter);
  }

  .timeline-section {
    padding: 30px var(--page-gutter) 36px;
  }

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

  .timeline-item {
    margin-left: 10px;
  }

  .detail-content {
    width: min(88vw, 960px);
  }

  .detail-body {
    padding: 28px 30px 30px;
  }

  .detail-modal.image-spotlight .detail-content {
    width: min(92vw, 1120px);
  }

  .detail-modal.image-spotlight.media-landscape .detail-hero {
    max-height: min(72vh, 760px);
  }

  .detail-modal.image-spotlight.media-portrait .detail-hero {
    max-height: min(78vh, 860px);
  }

  .admin-body {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 28px;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    bottom: 74px;
  }

  .content-section:first-child {
    margin-top: 10px;
  }

  .card.portrait {
    width: 188px;
    height: 282px;
  }

  .card.landscape {
    width: 348px;
    height: 196px;
  }

  .search-grid,
  .mylist-grid {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
}

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

.admin-edit-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.admin-edit-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}
