* {
/* ===== Landing Page (temp-home) ===== */
.show-hero { position: relative; background-repeat: no-repeat; background-size: cover; background-position: center; }
.show-hero__spacer { height: 280px; }
.show-hero .embed-responsive { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
* {
  margin: 0;
  padding: 0;
  border: 0;
}


body {
    background-color: #101010;
}

/* 
**  Generel Stylings
******************************/
.darken{
  background: #494949;
}

.form-control {
  border-radius: 0px;
}

label,input, small {
  color:#f5f5f5;
}

/* 
**  Password styles
******************************/


/* 
**  fav / watched / list button styling
******************************/
i {
  cursor: pointer;
}
.icon-white {
  color: white;
}
.icon-green {
  color: green;
}
.icon-red {
  color: red;
}
.icon-blue {
  color: #3563e0;
}

/* 
**  Text styling
******************************/
p {
    color:#f5f5f5;
}
h1, h2, h3,h4,  a {
  color:#f5f5f5;
}



/* 
**  Main Content Wrapper
******************************/

.profile-page {
    position: relative;
}
.profile-page::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(16,16,16,0) 0%, rgba(16,16,16,0.6) 50%, rgba(16,16,16,1) 100%);
  pointer-events: none;
}

/*
**  Profile hero & dashboard
******************************/
.profile-hero {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.profile-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.4) 65%, rgba(0,0,0,.75) 100%);
  pointer-events: none;
}
.profile-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  z-index: 1;
}
.profile-hero__left { display: flex; align-items: center; gap: 18px; }
.profile-hero__file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.profile-hero__avatar-wrap {
  position: relative;
  display: inline-block;
}
.profile-hero__avatar-wrap--editable { cursor: pointer; }
.profile-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.profile-hero__avatar-edit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.24), rgba(0,0,0,.72));
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.profile-hero__avatar-wrap--editable:hover .profile-hero__avatar-edit {
  opacity: 1;
  pointer-events: auto;
}
.profile-hero__avatar-edit i {
  font-size: 13px;
}
.profile-hero__banner-edit {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.profile-hero__banner-edit i {
  font-size: 13px;
}
.profile-hero__banner-edit.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.profile-hero__banner-edit:hover {
  background: rgba(0,0,0,.8);
  border-color: rgba(255,255,255,.7);
}
.profile-hero__meta { color: #fff; }
.profile-hero__name { margin: 0; font-weight: 700; }
.profile-hero__handle { opacity: .85; }
.profile-hero__handle-link { color: #fff; text-decoration: none; }
.profile-hero__handle-link:hover { text-decoration: underline; }
.profile-hero__bio { margin: 6px 0 0 0; max-width: 720px; }
.profile-hero__actions { margin-left: auto; }
.profile-hero__friends { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.profile-hero__friends:hover { opacity: .9; }
.profile-hero__addfriend { margin-left: 12px; }

.profile-verify-banner {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.35);
  background: linear-gradient(135deg, rgba(18,20,40,0.95), rgba(14,16,32,0.9));
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 18px 40px rgba(6,8,20,0.4);
}
.profile-verify-banner__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5ff;
  font-size: 20px;
}
.profile-verify-banner__body h3 {
  margin: 0 0 6px;
  color: #f4f7ff;
  font-size: 18px;
  font-weight: 700;
}
.profile-verify-banner__body p {
  margin: 0 0 10px;
  color: #c8ceff;
  font-size: 14px;
}
.profile-verify-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.profile-verify-banner__actions .btn {
  border-radius: 999px;
  padding: 8px 18px;
}
.profile-verify-banner__status {
  font-size: 13px;
  color: #d0d6ff;
  transition: opacity .2s ease;
}
.profile-verify-banner__status[data-kind="success"] { color: #8ef5c0; }
.profile-verify-banner__status[data-kind="error"] { color: #f6a5a7; }

/* ===== Recommend Button (floating) ===== */
.btn-rec {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  position: relative; /* allow animated ring */
  z-index: 1040;
}
.btn-rec i { margin-right: 6px; }
.btn-rec:hover { filter: brightness(1.05); color: #fff; }
.btn-rec:active { transform: translateY(1px); }


/* Profile personalize CTA (above showcases) */
.profile-showcases-container { position: relative; }
.profile-editBar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-block;
  z-index: 50;
}
.profile-editBar .profile-editBtn {
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-editBar .profile-editBtn i { margin: 0; }
.profile-editBar .profile-editHint {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(15,15,15,.9);
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #eaeaea;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.profile-editBar .profile-editBtn:hover + .profile-editHint {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


/* Subtle rotating glow ring */
/* (glow removed per request) */

/* ===== Recommend Modal readability ===== */
#recommendModal .modal-content { background:#1a1a1a; color:#eaeaea; border:1px solid #2a2a2a; }
#recommendModal .modal-header { border-bottom: 1px solid #2a2a2a; }
#recommendModal .modal-title { color:#f3f6fb; font-weight:700; }
#recommendModal #recommend_context { color:#b3dcff; }
#recommendModal label { color:#cfd7df; font-weight:600; }
#recommendModal .form-control { background:#0f0f0f; color:#eaeaea; border-color:#2a2a2a; }
#recommendModal .form-control::placeholder { color:#9aa4af; }
#recommendModal .text-muted { color:#aeb6c2 !important; }
#recommendModal .dropdown-menu { background:#101010; color:#eaeaea; border:1px solid #2a2a2a; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
#recommendModal .dropdown-item { color:#eaeaea; }
#recommendModal .dropdown-item:hover { background:#1e1e1e; color:#fff; }
#recommendModal .badge.badge-secondary { background:#2e3a4a; color:#dbeafe; border-radius:999px; }
#recommendModal .btn-success { background-color:#22c55e; border-color:#22c55e; font-weight:600; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-card {
  background: #1b1b1b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  color: #eaeaea;
}
.stat-card__label { opacity: .8; margin-bottom: 6px; }
.stat-card__value { font-size: 32px; font-weight: 800; line-height: 1; }
.stat-card__value--sm { font-size: 18px; font-weight: 600; }
.stat-card__sub { opacity: .6; font-size: 13px; margin-top: 2px; }
.stat-pair { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* Profile settings */
.settings-card {
  background: rgba(16,20,38,.94);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  box-shadow: 0 20px 45px rgba(3,10,31,.55);
  margin-top: 16px;
}
.settings-card h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
}
.settings-card p.text {
  color: #c7cee5;
}
.settings-card label {
  color: #e3e9ff;
  font-weight: 500;
}
.settings-card .form-text.text-muted,
.settings-card .text-muted {
  color: #a7b3d8 !important;
}
.settings-card .form-control {
  background: rgba(5,10,24,.94);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 14px;
}
.settings-card .form-control::placeholder {
  color: #6c7397;
}
.settings-card .form-control:focus {
  border-color: #7c5dff;
  box-shadow: 0 0 0 1px rgba(124,93,255,.65);
  background: rgba(7,14,30,.98);
}
.settings-toggle-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
}
.settings-toggle-btn i {
  font-size: 18px;
  transition: transform .15s ease, color .12s ease;
}
.settings-toggle-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.settings-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(124,93,255,.7);
  border-radius: 999px;
}
.settings-toggle-btn:hover {
  background: rgba(15,23,42,.9);
  color: #e3e9ff;
}
.settings-connect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.settings-connect-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px;
  background: rgba(5,10,24,.96);
  color: #e3e9ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.settings-connect-btn[disabled] {
  opacity: .75;
  cursor: default;
}
.settings-connect-btn span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings-connect-btn i {
  font-size: 16px;
}
.settings-connect-status {
  font-size: 12px;
  color: #a7b3d8;
}
.settings-connect-btn--twitter {
  border-color: rgba(29,161,242,.7);
}
.settings-connect-btn--facebook {
  border-color: rgba(59,89,152,.75);
}
.settings-connect-btn--google {
  border-color: rgba(234,67,53,.75);
}
.settings-connect-btn--steam {
  border-color: rgba(27,40,56,.85);
}
.stat-card--movies { background: linear-gradient(180deg, rgba(92,22,137,.25), rgba(20,20,20,.95)); }
.stat-card--shows  { background: linear-gradient(180deg, rgba(137,22,58,.25), rgba(20,20,20,.95)); }
.stat-card--total  { background: linear-gradient(180deg, rgba(22,101,137,.25), rgba(20,20,20,.95)); }

.profile-quicklinks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #151515;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 8px;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
}
.quick-card:hover { transform: translateY(-2px); background: #191919; border-color: rgba(255,255,255,.14); }
.quick-card.is-disabled { opacity: .5; pointer-events: none; }
.quick-card__icon { font-size: 18px; }
.quick-card__text { font-size: 13px; }

/*
**  Navbar search styles
******************************/
#nav_search_form { margin-right: 12px; }
#nav_search {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  border-radius: 9999px;
  height: 34px;
  padding: 4px 12px;
}
#nav_search::placeholder { color: #9a9a9a; }
#nav_search:focus { outline: none; border-color: #444; box-shadow: 0 0 0 2px rgba(255,255,255,0.06); background: #202020; }
#nav_search_results {
  display: none;
}
.nav-search-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  border-radius: 10px;
  min-width: 280px;
  max-height: 380px;
  overflow: auto;
  z-index: 2000;
}
#nav_search_results.show { display: block; }
#nav_search_results .dropdown-header { color: #bdbdbd; }
#nav_search_results .dropdown-item { color: #e0e0e0; }
#nav_search_results .dropdown-item.active, #nav_search_results .dropdown-item:active { background-color: #2b2b2b; color: #fff; }

/* Contact form dark styles */
.contact-card .form-control, .contact-card select, .contact-card textarea {
  background: #151515; border: 1px solid #2a2a2a; color: #e0e0e0;
}
.contact-card .form-control:focus, .contact-card select:focus, .contact-card textarea:focus {
  outline: none; border-color: #444; box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}

@media (max-width: 992px) {
  .profile-stats { grid-template-columns: 1fr; }
  .profile-quicklinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .profile-quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 
**  Movie Hover Effects
******************************/
.image-box {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden; /* clip hover overlay to poster bounds */
}
.image-box-hover {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.movie-hover {
  transition: .3s ease;
  opacity: 0;
  position: absolute;
  inset: 0; /* top/right/bottom/left:0 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* keep content at the bottom */
  align-items: center;
  padding: 10px;
  gap: 8px;
  /* Allow clicks to pass through to the poster link,
     except for the action icons which opt back in */
  pointer-events: none;
}
.movie-hover::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.movie-title {
  width: 100%;
  text-align: center;
  color: #ffffff !important; /* ensure strong contrast on hover */
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* clamp to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative; /* above gradient */
  z-index: 1;
  pointer-events: none; /* title itself is not clickable */
}
.movie-actions {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 1;
  pointer-events: auto; /* icons remain clickable */
}
.movie-hover p {
  color: #ffffff !important; /* ensure strong contrast */
  text-align: center;
}
.movie-hover .row {
  pointer-events: auto; /* allow clicks for legacy templates using .row */
}

.image-box:hover .image-box-hover {
  opacity: 0.3;
}

.image-box:hover .movie-hover {
  opacity: 1;
}

/* Make the whole poster area a consistent click target */
.image-box a {
  display: block;
  position: relative; /* anchor becomes positioning context for overlay */
}
.image-box {
  cursor: pointer;
}


.image-box-description {
  position: absolute;
  color: #fff;
  opacity: 0;
}

/* === Preference: Always show Quick Actions ===
   When the viewer enables this setting, keep the overlay with action
   buttons visible without requiring hover. */
body.pref-show-quick-actions .image-box .movie-hover { opacity: 1; }
body.pref-show-quick-actions .image-box:hover .movie-hover { opacity: 1; }
/* Keep poster image at normal opacity (no extra dimming on non-hover) */
body.pref-show-quick-actions .image-box .image-box-hover { opacity: 1; }


/* 
**  Terms of Service styles
******************************/
.text-spacing {
  margin-top:30px;
}
.text-spacing h4{
  margin-top:20px;
}
.text-spacing a {
  color: lightblue;
}





/* 
**  Tooltips
******************************/
/* .movie-hover, .movie-hover * {
  color: #ffffff !important;
} */

/* ========== Stats Page ========== */
.stats-page {
  --accent-1: #a06df2;
  --accent-2: #f06c9b;
  --accent-3: #62c4ff;
  --accent-4: #ff9f43;
  --accent-5: #48e0a4;
  --surface: #161616;
  --surface-2: #1b1b1b;
  --border: #2a2a2a;
  --text: #eaeaea;
  color: var(--text, #eaeaea);
}

.surface { background: var(--surface-2, #1b1b1b); border: 1px solid var(--border, #2a2a2a); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.25); color: var(--text, #eaeaea); }

.stats-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:16px 0 10px; }
.stats-title { margin:0; font-weight:800; }
.stats-subtitle { margin:4px 0 0; color:#bcbcbc; }
.stats-funfacts { display:flex; flex-wrap:wrap; gap:8px; }

.chip { display:inline-flex; align-items:center; gap:8px; background:#1b1f26; color:#d8e5ea; border:1px solid #2d3742; padding:6px 10px; border-radius:999px; font-size:13px; }
.chip--info i { color:#8faaf5; }
.chip--trophy i { color:#f6c453; }

.metric-card { display:flex; align-items:center; gap:12px; padding:14px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)), var(--surface-2); border:1px solid var(--border); }
.metric-card__icon { font-size:20px; color:#bdbdbd; }
.metric-card__label { opacity:.8; font-size:12px; text-transform:uppercase; letter-spacing:.4px; }
.metric-card__value { font-size:28px; font-weight:800; line-height:1; }
.metric-card__hint { opacity:.7; font-size:12px; }

.panel { padding:16px; border-radius:12px; }
.panel__header { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-bottom:10px; }
.panel__header--between { justify-content:space-between; }
.muted { color:#a0a0a0; }

.genre-list { display:flex; flex-direction:column; gap:10px; }
.genre-row { display:grid; grid-template-columns: 120px 1fr auto; gap:10px; align-items:center; }
.genre-row__label { color: var(--text, #eaeaea); font-weight:600; }
.genre-row__value { color:#cfcfcf; font-size:13px; }

.progress { background:#2a2a2a; border-radius:999px; height:12px; overflow:hidden; }
.progress-bar { height:100%; border-radius:999px; transform-origin:left center; animation: grow 700ms ease-out both; }
.progress-bar.accent-1 { background: var(--accent-1); }
.progress-bar.accent-2 { background: var(--accent-2); }
.progress-bar.accent-3 { background: var(--accent-3); }
.progress-bar.accent-4 { background: var(--accent-4); }
.progress-bar.accent-5 { background: var(--accent-5); }

.rewatch { display:flex; gap:14px; align-items:center; }
.poster { width:96px; height:128px; border-radius:8px; background:#111; border:1px solid var(--border); object-fit:cover; }
.ph-poster { background: linear-gradient(135deg, #1a1a1a, #121212); }
.rewatch__title { font-weight:700; font-size:18px; }
.rewatch__year { color:#bdbdbd; margin-top:2px; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; }
.badge-accent { background: rgba(160,109,242,.18); color: #d9c7ff; border:1px solid rgba(160,109,242,.35); }

.stacked-bar { display:flex; width:100%; height:18px; background:#2a2a2a; border-radius:999px; overflow:hidden; margin:8px 0 14px; }
.stacked-bar__segment { display:flex; align-items:center; justify-content:center; color:#0b0b0b; font-weight:700; font-size:12px; }
.stacked-bar__segment--a { background: var(--accent-3); color:#0e1b24; }
.stacked-bar__segment--b { background: var(--accent-1); color:#1a0d2e; }

.mini-card { padding:12px; border-radius:10px; }
.mini-card__label { color:#bdbdbd; font-size:12px; margin-bottom:4px; }
.mini-card__title { font-weight:700; }
.mini-card__value { font-weight:800; font-size:22px; }

.decade-bars { display:flex; align-items:flex-end; gap:14px; min-height:140px; }
.decade { display:flex; flex-direction:column; align-items:center; gap:6px; width:80px; }
.decade__bar { width:100%; height:110px; background:#1c1c1c; border:1px solid var(--border); border-radius:8px; display:flex; align-items:flex-end; overflow:hidden; }
.decade__fill { width:100%; background: linear-gradient(180deg, rgba(160,109,242,.8), rgba(160,109,242,.35)); border-top-left-radius:6px; border-top-right-radius:6px; animation: growY 600ms ease-out both; }
.decade__value { font-weight:700; }
.decade__label { color:#cfcfcf; font-size:12px; }

.ranked-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.ranked-item { display:grid; grid-template-columns: 28px 32px 1fr auto; gap:10px; align-items:center; }
.ranked-item__rank { width:28px; height:28px; display:inline-grid; place-items:center; border-radius:999px; background:#222; color:#cfcfcf; font-weight:700; font-size:12px; }
.avatar { width:32px; height:32px; border-radius:999px; display:inline-grid; place-items:center; background:#2a2a2a; color:#dcdcdc; font-weight:700; font-size:12px; }
.ranked-item__name { font-weight:600; }
.ranked-item__meta { color:#bdbdbd; font-size:12px; }

.metric-large { padding:16px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.0)), var(--surface-2); border:1px solid var(--border); }
.metric-large__label { color:#cfcfcf; font-size:12px; margin-bottom:6px; }
.metric-large__value { font-size:28px; font-weight:800; line-height:1; }
.metric-large__hint { color:#bdbdbd; }

/* Default: visible without animations (progressive enhancement) */
.enter-fade { opacity: 1; transform: none; }
/* When animations are enabled, apply the effect via a root class */
html.has-anim .enter-fade { opacity:0; transform: translateY(6px); animation: fadeUp .5s ease-out forwards; animation-delay: var(--enter-delay, 0s); }

@keyframes fadeUp { to { opacity:1; transform: translateY(0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Accessibility + safety fallback: if user prefers reduced motion
   or the browser blocks animations, ensure content is still visible. */
@media (prefers-reduced-motion: reduce) {
  .enter-fade, html.has-anim .enter-fade { opacity: 1 !important; transform: none !important; animation: none !important; }
}

@media (max-width: 992px) {
  .stats-header { flex-direction:column; align-items:flex-start; }
  .genre-row { grid-template-columns: 100px 1fr auto; }
  .decade { width:64px; }
}
@media (max-width: 576px) {
  .genre-row { grid-template-columns: 80px 1fr auto; }
  .stats-funfacts { gap:6px; }
}

/* Stats overrides per request */
.section-row { margin-top: 0; }
.stats-page .row.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }

/* Stretch decade bars to fill container */
.decade-bars { gap: 18px; justify-content: space-between; width: 100%; min-height: 180px; }
.decade { flex: 1 1 0; width: auto; }
.decade__bar { height: 160px; }

/* Remove extra spacing between mini-cards inside timeline panel */
.panel .row.g-0 > [class^="col-"],
.panel .row.g-0 > [class*=" col-"] { padding-left: 0; padding-right: 0; }

/* Spacing and hero */
.section-row { margin-top: 16px; }
.stats-page .row.g-3 { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }

.rewatch-hero { display:flex; gap:16px; padding:16px; border-radius:12px; border:1px solid var(--border); background: var(--surface-2); }
.hero__media { position:relative; flex:0 0 auto; }
.hero__poster { width:260px; height:150px; border-radius:10px; border:1px solid var(--border); background:#0f0f0f; }
.hero__badge { position:absolute; top:8px; left:8px; background: rgba(160,109,242,.22); color:#e7dbff; border:1px solid rgba(160,109,242,.4); padding:4px 8px; border-radius:999px; font-size:12px; display:inline-flex; gap:6px; align-items:center; }
.hero__content { flex: 1 1 auto; }
.hero__eyebrow { color:#cfcfcf; font-size:13px; margin-bottom:4px; }
.hero__title { font-size:24px; font-weight:800; line-height:1.2; }
.hero__year { color:#bdbdbd; margin-left:6px; }
.hero__meta-row { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:12px; margin-top:12px; }
.meta { background:#1b1b1b; border:1px solid var(--border); border-radius:8px; padding:10px 12px; display:grid; grid-template-columns: 18px 1fr auto; align-items:center; gap:8px; }
.meta i { color:#bdbdbd; }
.meta__label { color:#bdbdbd; font-size:12px; }
.meta__value { font-weight:800; }

@media (max-width: 768px) {
  .hero__poster { width:180px; height:120px; }
  .hero__title { font-size:20px; }
}
@media (max-width: 576px) {
  .rewatch-hero { flex-direction:column; }
  .hero__poster { width:100%; height:160px; }
}

/* Temp preview embed */
.temp-embed { position: relative; width: 100%; height: calc(100vh - 180px); background:#0f0f0f; border:1px solid #2a2a2a; border-radius: 12px; overflow:hidden; }
.temp-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; background:#0f0f0f; }
@media (max-width: 576px){ .temp-embed { height: calc(100vh - 220px); } }

/* Profile personalize hint on edit button */
.profile-editWrapper .profile-editHint{
  display:none;
  margin-right:8px;
  font-size:12px;
  color:#e7eef7;
  opacity:0;
  transition:opacity .12s ease;
}
.profile-editWrapper:hover .profile-editHint{
  display:inline-block;
  opacity:.85;
}

/* Ignore toast */
.dismiss-toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(9,12,20,.94);
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.dismiss-toast.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dismiss-toast__text{
  font-size: 14px;
  font-weight: 500;
}
.dismiss-toast__undo{
  color: #8bd3ff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: transparent;
  border: 0;
  padding: 0;
}
.dismiss-toast__undo:hover,
.dismiss-toast__undo:focus{
  text-decoration: underline;
  color: #b7e8ff;
}

/* ===== Landing Page (temp-home) ===== */
