.modal-watch-actions .watch-trailer-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}
.stats-panel.vintage-panel {
  border: 1px solid rgba(48, 72, 120, 0.6);
  background: radial-gradient(circle at top, rgba(17, 31, 56, 0.95), rgba(8, 14, 26, 0.96));
  color: var(--text);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.stats-panel-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.stats-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 0;
}

.stats-heading-icon svg {
  width: 100%;
  height: 100%;
}

.stats-heading-icon .stats-bars-fill {
  fill: rgba(255, 184, 77, 0.7);
}

.stats-heading-icon .stats-line {
  stroke: rgba(245, 158, 11, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-panel-subtitle {
  margin: 0.35rem 0 1.4rem;
  color: #b9c8ff;
  font-size: 0.9rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  border: 1px solid rgba(18, 27, 45, 0.8);
  border-radius: 18px;
  padding: 2.6rem 1.65rem 2rem;
  background: rgba(4, 7, 13, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 35px rgba(5, 7, 15, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stat-value {
  margin: 0;
  font-size: 3.4rem;
  font-weight: 600;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --panel: #171b22;
  --panel-border: #232834;
  --accent: #ffb347;
  --accent-strong: #ffa600;
  --muted: #9aa4bf;
  --text: #f5f7ff;
  --radius: 18px;
  --font: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --stat-accent: #e39b3f;
  --stat-accent-soft: rgba(227, 155, 63, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #142032, #08090c 55%);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  padding: clamp(2.4rem, 6vw, 3rem) clamp(1rem, 5vw, 4rem)
    clamp(1.2rem, 4vw, 2rem);
  text-align: left;
}

.hero + .container {
  margin-top: -0.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.logo-word {
  color: var(--muted);
}

.logo-highlight {
  color: var(--accent);
  letter-spacing: 0.05em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.lede {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.strapline span {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(90deg, #f8e2c0, #f7b862);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  display: inline-block;
  font-weight: 600;
  background: linear-gradient(90deg, #fff6ec, #ffe3bc 55%, #ffd38d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-card {
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(227, 155, 63, 0.6);
  border-radius: 22px;
  padding: 0.85rem 1rem;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  width: min(360px, 50vw);
}

.profile-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  width: 100%;
}

.profile-card__cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.profile-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.profile-card__name {
  margin: 0;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__email {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card--guest .profile-card__name {
  font-size: 0.95rem;
  color: var(--muted);
}

.profile-card__body .profile-cta {
  margin-left: 0;
  align-self: center;
  flex-shrink: 0;
}

.profile-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ffb347, #ff9d42);
  color: #1b1308;
  box-shadow: 0 15px 35px rgba(255, 163, 66, 0.35);
}

.profile-cta.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  box-shadow: none;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffb347, #ffcc67);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1b1308;
  overflow: hidden;
}

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

.profile-avatar-icon {
  font-size: 1.2rem;
}

.profile-avatar--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.hidden {
  display: none;
}

.watchlist.hidden {
  display: none;
}

.modal.hidden {
  display: none;
}

.collections.hidden {
  display: none;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(5, 7, 12, 0.9);
  color: var(--text);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #2d3447;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 120;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  opacity: 0;
  transform: translateY(15px);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure modals actually hide when .hidden is applied */
.modal.hidden {
  display: none;
}

.container {
  padding: 0 clamp(1rem, 5vw, 4rem) 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgb(0 0 0 / 0.2);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-header-tabs {
  align-items: flex-end;
}

.main-tabs {
  display: flex;
  gap: 0.6rem;
}

.tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 26, 0.85);
  color: var(--muted);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.tab:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fdf7e8;
  transform: translateY(-1px);
}

.tab-active {
  background: radial-gradient(circle at top, rgba(255, 199, 107, 0.28), rgba(255, 168, 66, 0.2));
  border-color: rgba(255, 179, 71, 0.65);
  color: #1b1308;
  box-shadow: 0 12px 30px rgba(255, 179, 71, 0.18);
}

.filters select {
  background: #0d1119;
  border: 1px solid #212637;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 22, 0.9);
  color: var(--muted);
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease,
    transform 120ms ease, box-shadow 140ms ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff2cf;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.chip-active {
  background: linear-gradient(135deg, rgba(255, 188, 102, 0.3), rgba(255, 141, 57, 0.25));
  border-color: rgba(255, 179, 71, 0.7);
  color: #1b1308;
  box-shadow: 0 12px 26px rgba(255, 179, 71, 0.18);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 0.22fr) auto;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.search-form input,
.search-form select,
.search-form button {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 16, 0.9);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.search-form button {
  background: linear-gradient(135deg, #ffb347, #ff9249);
  border: none;
  color: #1b1308;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  padding: 0.68rem 1.1rem;
  font-size: 0.92rem;
  border-radius: 12px;
}

.search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgb(255 179 71 / 0.2);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
.search-panel {
  padding: 1.1rem 1.2rem 1.4rem;
}

.app-footer {
  padding: 2.2rem clamp(1rem, 5vw, 4rem) 2.6rem;
  text-align: left;
  color: rgba(245, 247, 255, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: rgba(9, 13, 20, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  margin-top: 1.5rem;
}

.footer-primary {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .footer-primary {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-copy,
.footer-credit {
  margin: 0;
  color: rgba(245, 247, 255, 0.7);
  font-size: 0.85rem;
}

.footer-credit {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  max-width: 480px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-socials-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.footer-socials-row span {
  color: rgba(245, 247, 255, 0.65);
}

.help-toggle {
  background: transparent;
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: fit-content;
  margin-top: 0.75rem;
}

.footer-tech-text {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(245, 247, 255, 0.5);
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-primary > div:first-child {
  display: flex;
  flex-direction: column;
}

.help-toggle:hover {
  border-color: rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.08);
}

.help-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.footer-faq {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
}

.footer-faq.hidden {
  display: none;
}

.faq-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 225, 184, 0.95);
  letter-spacing: 0.02em;
}

.faq-answer {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(245, 247, 255, 0.65);
}

@media (min-width: 720px) {
  .footer-faq {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 71, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 18, 27, 0.95);
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(255, 179, 71, 0.18);
  color: var(--accent);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 200, 120, 0.25), rgba(255, 150, 70, 0.2));
  box-shadow: 0 10px 22px rgba(255, 179, 71, 0.25);
}

.social-pill-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.social-link--text {
  background: rgba(13, 18, 27, 0.95);
  color: #ffc83d;
  border-color: rgba(255, 200, 61, 0.45);
  box-shadow: 0 8px 16px rgba(255, 200, 61, 0.25);
}

.social-link--text:hover {
  background: linear-gradient(135deg, rgba(255, 200, 120, 0.25), rgba(255, 150, 70, 0.2));
  box-shadow: 0 10px 24px rgba(255, 200, 61, 0.35);
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 5vw, 3rem);
  bottom: 2rem;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  background: rgba(13, 18, 27, 0.95);
  border: 1px solid rgba(255, 179, 71, 0.45);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(255, 146, 73, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(255, 200, 120, 0.22), rgba(255, 150, 70, 0.18));
  box-shadow: 0 18px 30px rgba(255, 146, 73, 0.35);
}


.hint.warn {
  color: #ff9580;
}

.search-results {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.search-card,
.watch-card,
.reminder-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: #0d1119;
  padding: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.search-card {
  flex-direction: column;
}

.watch-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  cursor: pointer;
}

.watch-card.dragging {
  opacity: 0.35;
  border: 1px dashed #2d3447;
}

.poster-frame {
  width: 74px;
  height: 112px;
  border-radius: 10px;
  background: #1b2233;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-card-body h3,
.reminder-card h4 {
  margin: 0;
}

.search-card-body .meta,
.reminder-card .meta,
.item-type {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.watch-card-info .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.05rem 0 0.25rem;
}

.search-card-body .overview {
  color: #c6cee2;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ghost-btn {
  background: transparent;
  border: 1px solid #2d3447;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.ghost-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.ghost-btn.disabled,
.ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #2d3447;
  color: var(--muted);
  transform: none;
}

.notes-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.notes-label textarea {
  background: #060910;
  border: 1px solid #1c2130;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.watchlist,
.reminder-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
  border: 1px dashed #2d3447;
  border-radius: 16px;
}

.reminder-panel {
  border: 1px solid rgba(255, 128, 128, 0.3);
  background: linear-gradient(135deg, rgba(255, 128, 128, 0.05) 0%, rgba(255, 179, 71, 0.03) 100%);
}

.reminder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reminder-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reminder-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 128, 128, 0.2);
  border: 2px solid #ff8080;
  color: #ff8080;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulse-warning 2s ease-in-out infinite;
  line-height: 1;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.reminder-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
}

.reminder-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 128, 128, 0.2);
  color: #ff8080;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 128, 128, 0.4);
}

.reminder-summary {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 128, 128, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 128, 128, 0.15);
}

.reminder-message {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.reminder-message strong {
  color: #ff8080;
  font-weight: 600;
}

.reminder-stats {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.stat-grid.compact .stat-card {
  padding: 0.65rem 0.8rem;
}

.stat-card {
  border: 1px solid rgba(38, 53, 78, 0.7);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: linear-gradient(
    150deg,
    rgba(20, 28, 43, 0.95),
    rgba(10, 14, 24, 0.9)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 24px rgba(0, 0, 0, 0.25);
}

.stat-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--stat-accent);
  color: var(--stat-accent);
  position: relative;
  background: var(--stat-accent-soft);
  box-shadow: 0 4px 10px rgba(227, 155, 63, 0.1);
}

/* Film strip icon */
.stat-icon-film::before {
  content: "";
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
  display: block;
  position: relative;
}

.stat-icon-film::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor;
}

/* Checklist icon (Finished this year) */
.stat-icon-checklist::before {
  content: "✓";
  font-size: 1.1rem;
  color: currentColor;
  line-height: 1;
}

.stat-icon-checklist::after {
  display: none;
}

/* Star icon */
.stat-icon-star {
  color: currentColor;
  background: transparent;
}

.stat-icon-star::before {
  content: "★";
  font-size: 1.1rem;
  color: var(--stat-accent);
  line-height: 1;
}

.stat-icon-star::after {
  display: none;
}

/* Plus icon (Finished all time) */
.stat-icon-plus::before,
.stat-icon-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 999px;
}

.stat-icon-plus::before {
  width: 14px;
  height: 3px;
}

.stat-icon-plus::after {
  width: 3px;
  height: 14px;
}

.stat-value {
  margin: 0.5rem 0 0.15rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trailer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  margin-top: 0.4rem;
}

.trailer-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Remove button styling */
.remove-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 128, 128, 0.3);
  background: rgba(255, 128, 128, 0.08);
  color: #ff8080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 180ms ease;
  flex-shrink: 0;
  padding: 0;
}

.remove-btn:hover {
  background: rgba(255, 128, 128, 0.15);
  border-color: rgba(255, 128, 128, 0.5);
  color: #ff9999;
  transform: scale(1.05);
}

.remove-btn:active {
  transform: scale(0.95);
  background: rgba(255, 128, 128, 0.2);
}

.modal-controls .trailer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.7rem;
  align-self: flex-start;
  box-sizing: border-box;
  border-radius: 10px;
}

.reminder-list {
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  grid-template-columns: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 164, 191, 0.3) transparent;
}

.reminder-list::-webkit-scrollbar {
  height: 6px;
}

.reminder-list::-webkit-scrollbar-track {
  background: transparent;
}

.reminder-list::-webkit-scrollbar-thumb {
  background: rgba(154, 164, 191, 0.3);
  border-radius: 3px;
}

.reminder-list::-webkit-scrollbar-thumb:hover {
  background: rgba(154, 164, 191, 0.5);
}

.reminder-card {
  width: 70px;
  min-width: 70px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1c232f;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reminder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 128, 128, 0.3);
}

.reminder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reminder-days-ago {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: rgba(255, 128, 128, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.status-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: capitalize;
  background: rgba(255, 179, 71, 0.15);
  border: 1px solid rgba(255, 179, 71, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* New UI pieces: favorites, modal, collections, rating stars */

.favorite-toggle {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: #f8c6d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease,
    color 0.2s ease;
  backdrop-filter: blur(6px);
}

.favorite-toggle:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.75);
}

.favorite-toggle.active {
  background: rgba(255, 99, 132, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(255, 99, 132, 0.35);
}

.watch-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.watch-card-headline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.item-order {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.4rem;
  opacity: 0.7;
}

.watch-card-headline h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.trailer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.trailer-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.trailer-pill.hidden {
  display: none;
}

.watch-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.watch-actions {
  display: none;
}

.watch-now-btn {
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(244, 196, 140, 0.7);
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  box-shadow: none;
}

.watch-now-btn:hover:not(:disabled) {
  border-color: rgba(255, 179, 71, 0.5);
  color: rgba(244, 196, 140, 0.85);
  background: rgba(255, 179, 71, 0.14);
}

.watch-now-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.watch-icon-wrapper {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watch-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.watch-label {
  white-space: nowrap;
}

.watch-trailer-btn {
  border: 1px solid rgba(255, 179, 71, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: #f0bc6c;
  background: rgba(12, 16, 23, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease,
    color 120ms ease;
}

.watch-trailer-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 179, 71, 0.6);
  color: #ffe0a2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.watch-trailer-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.watch-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.status-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  align-self: center;
}

.status-label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  flex: 1;
}

.tag-chip {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(154, 164, 191, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.tag-chip button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  margin-left: 0.3rem;
  cursor: pointer;
}

.small-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

.ghost-btn-small {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

.danger-btn {
  border-color: #ff8080;
  color: #ff8080;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.tag-suggestions button {
  border: 1px solid #2d3447;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.tag-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-dialog {
  position: relative;
  background: #05070c;
  border-radius: 20px;
  border: 1px solid #262b3b;
  padding: 1rem 1.15rem 1.2rem;
  max-width: 400px;
  width: min(400px, calc(100vw - 1.5rem));
  z-index: 81;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

@media (max-width: 480px) {
  .modal-dialog {
    width: calc(100vw - 1rem);
  }
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-poster {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  overflow: hidden;
  background: #1b2233;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.modal-poster img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-type {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.detail-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.modal-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1rem;
}

.modal-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-controls select,
.modal-controls input {
  background: #060910;
  border-radius: 10px;
  border: 1px solid #1c2130;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
}

.modal-controls input:disabled,
.modal-controls input.input-disabled {
  background: rgba(6, 9, 16, 0.5);
  border-color: rgba(28, 33, 48, 0.5);
  color: rgba(245, 247, 255, 0.4);
  cursor: not-allowed;
  opacity: 0.6;
}

.rating-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-watch-primary {
  grid-column: 1 / -1;
  width: 100%;
}

.modal-watch-primary button {
  width: 100%;
  min-height: 40px;
  padding: 0.22rem 0.9rem;
  font-size: 0.78rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.12);
  color: #f4c48c;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.modal-watch-primary button:hover {
  border-color: rgba(255, 179, 71, 0.7);
  color: #ffe1b8;
  background: rgba(255, 179, 71, 0.2);
}

.modal-status-trailer {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 0.3rem;
  align-items: center;
}

.modal-status-trailer label {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-status-trailer #detail-status {
  width: 100%;
  margin-top: 0.2rem;
}

.modal-status-trailer .trailer-pill {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .modal-status-trailer {
    grid-template-columns: 1fr;
  }
}

.rating-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.rating-stars {
  display: flex;
  gap: 0.2rem;
}

.rating-stars .star {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: #d4ddef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  line-height: 1;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.rating-stars .star.full {
  color: #ffd67a;
  text-shadow: 0 0 6px rgba(255, 214, 122, 0.4);
}

.rating-stars .star.half {
  background: linear-gradient(90deg, #ffd67a 50%, #d4ddef 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(255, 214, 122, 0.35);
}

.tags-group {
  margin-bottom: 1rem;
}

.tags-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.tags-group input {
  width: 100%;
  background: #060910;
  border-radius: 10px;
  border: 1px solid #1c2130;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.collections {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.collection-group {
  border-radius: 16px;
  border: 1px solid #262b3b;
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.65rem;
}

.collection-group h3 {
  margin: 0;
  font-size: 1rem;
}

.collection-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.55rem;
}

.collection-thumb {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  align-items: flex-start;
}

.collection-thumb img {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #1f2533;
}

@media (max-width: 720px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card {
    width: 100%;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .watch-card {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    width: 100%;
    height: 280px;
  }

  .modal-dialog {
    margin: 0 1rem;
  }
}

