body {
  background:
    radial-gradient(circle at top left, #2b1748, transparent 35%),
    radial-gradient(circle at top right, #173b4d, transparent 35%), #0d0d0f;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: rgba(8, 8, 11, 0.94);
  padding: 22px 35px;
  border-bottom: 1px solid #222;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-button {
  width: 46px;
  height: 42px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #1f1f25;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.header-center {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 1px;
}

.tagline {
  color: #b9b9c7;
  margin-top: 8px;
  margin-bottom: 0;
}

.account-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.top-button,
.small-button,
.auth-submit-button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.top-button {
  padding: 10px 15px;
}

.small-button {
  padding: 10px 14px;
  white-space: nowrap;
}

.logout-button {
  padding: 9px 12px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
}

.username-display {
  color: #ffd700;
  font-weight: bold;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 9990;
}

.sidebar-overlay.show {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background-color: #121216;
  border-right: 1px solid #333;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 9991;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.sidebar-top h2 {
  margin: 0;
  color: #ffd700;
}

.close-sidebar-button {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.sidebar-link {
  width: 100%;
  text-align: left;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #333;
  border-radius: 12px;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

.sidebar-link:hover {
  background-color: #292935;
}

.sidebar-link.active {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.75),
    rgba(37, 99, 235, 0.75)
  );
  border-color: transparent;
  font-weight: bold;
}

main {
  width: 100%;
  box-sizing: border-box;
  padding: 125px 35px 25px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-title,
.rate-section,
.panel {
  background-color: rgba(18, 18, 22, 0.92);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.page-title h2,
.rate-section h2,
.panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.page-title p,
.panel p {
  color: #aaa;
}

.profile-header {
  display: none;
}

.profile-header-main,
.profile-heading-row,
.account-user,
.profile-name-row,
.review-title-line,
.heading-with-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-header-main {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.profile-heading-row h2,
.profile-name-row h3,
.review-title-line span,
.heading-with-avatar span {
  min-width: 0;
}

.profile-heading-row h2 {
  margin: 0;
}

.avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  overflow: hidden;
}

.avatar-small {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.avatar-medium {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.avatar-large {
  width: 88px;
  height: 88px;
  font-size: 34px;
}

.avatar-upload-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-message {
  color: #aaa;
  font-size: 13px;
  min-height: 18px;
}

.avatar-message.error {
  color: #ffb4b4;
}

.avatar-message.success {
  color: #86efac;
}

.avatar-remove-button {
  padding: 9px 12px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.avatar-remove-button:hover {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.avatar-crop-modal {
  width: 430px;
  max-width: 92vw;
  background-color: #15151b;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.avatar-crop-modal p {
  color: #aaa;
  margin-top: 6px;
  font-size: 14px;
}

.avatar-crop-preview-wrap {
  width: 320px;
  height: 320px;
  max-width: 100%;
  margin: 18px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background-color: #0f0f14;
  position: relative;
  cursor: grab;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.02);
}

.avatar-crop-preview-wrap:active {
  cursor: grabbing;
}

#avatar-crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-crop-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-crop-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.avatar-crop-controls input[type="range"] {
  width: 100%;
  accent-color: #7c3aed;
}

.avatar-crop-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.secondary-button {
  padding: 10px 14px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #1f1f25;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.secondary-button:hover {
  background-color: #292935;
}

.profile-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stat-box {
  background-color: #1f1f25;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 16px;
}

.stat-box strong {
  color: #ffd700;
  font-size: 20px;
}

.clickable-stat {
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.clickable-stat:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.45);
}

.no-profile-message {
  background-color: rgba(80, 30, 30, 0.35);
  border: 1px solid rgba(255, 100, 100, 0.25);
  border-radius: 12px;
  padding: 15px;
  color: #ffb4b4;
  margin-bottom: 25px;
  text-align: center;
}

.search-area {
  position: relative;
}

#title-search,
#user-search {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
}

.suggestions {
  position: absolute;
  width: 100%;
  background-color: #1a1a20;
  border: 1px solid #444;
  border-radius: 8px;
  margin-top: 6px;
  overflow: hidden;
  z-index: 100;
  display: none;
}

.suggestion-item {
  padding: 11px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.suggestion-item:hover {
  background-color: #292935;
}

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

.suggestion-title {
  font-weight: bold;
}

.suggestion-meta {
  color: #aaa;
  font-size: 13px;
  margin-top: 3px;
}

.user-suggestion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.user-suggestion-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.follow-button {
  border: none;
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: white;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.follow-button.following {
  background: #263326;
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #86efac;
  cursor: pointer;
}

.follow-button.following:hover {
  background: #3a2020;
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.selected-title {
  margin-top: 15px;
  color: #ffd700;
  font-weight: bold;
  display: none;
}

.rating-form {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.rating-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.rating-form input {
  padding: 9px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
}

.overall-input {
  grid-column: 1 / -1;
}

#save-rating-button {
  display: none;
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.rankings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  width: 100%;
}

.ranking-column {
  background-color: rgba(18, 18, 22, 0.92);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 15px;
  height: 75vh;
  overflow-y: auto;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.ranking-column h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background-color: #121216;
  z-index: 10;
}

.empty-message {
  color: #888;
  font-style: italic;
  margin-top: 15px;
}

.rank-card {
  background-color: rgba(28, 28, 34, 0.95);
  border: 1px solid #383842;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  cursor: pointer;
}

.rank-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  background-color: rgba(34, 34, 42, 0.95);
}

.rank-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.rank-number {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 6px 0;
}

.title {
  font-size: 20px;
  margin: 0;
}

.meta {
  color: #aaa;
  margin: 5px 0 0 0;
  font-size: 14px;
}

.average-score {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

.aspects {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hidden-details {
  display: none;
}

.hidden-details.open {
  display: grid;
}

.aspect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aspect span:last-child {
  font-weight: bold;
}

.story {
  background-color: rgba(100, 70, 180, 0.22);
}
.characters {
  background-color: rgba(60, 160, 110, 0.2);
}
.acting {
  background-color: rgba(190, 80, 80, 0.2);
}
.visuals {
  background-color: rgba(70, 140, 210, 0.2);
}
.rewatchability {
  background-color: rgba(210, 140, 55, 0.2);
}
.music {
  background-color: rgba(180, 80, 180, 0.2);
}

.overall {
  background-color: rgba(230, 190, 70, 0.25);
  grid-column: 1 / -1;
}

.following-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.follow-card {
  background-color: rgba(28, 28, 34, 0.95);
  border: 1px solid #383842;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.follow-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  background-color: rgba(34, 34, 42, 0.95);
}

.follow-card h3 {
  margin: 0 0 10px 0;
  color: #ffd700;
}

.follow-card p {
  margin: 5px 0;
  color: #cfcfe3;
  font-size: 14px;
}

.follow-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.connection-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-column {
  height: 75vh;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.review-main {
  min-width: 0;
}

.review-user-button {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.review-user-button:hover {
  border-color: rgba(255, 215, 0, 0.45);
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}

.like-button {
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.like-button:hover {
  border-color: rgba(255, 90, 130, 0.65);
  background-color: rgba(120, 30, 50, 0.35);
}

.like-button.liked {
  background: linear-gradient(90deg, #e11d48, #be123c);
  border-color: transparent;
  color: white;
}

.like-count {
  color: #cfcfe3;
  font-size: 14px;
}

.comment-button {
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.comment-button:hover {
  border-color: rgba(96, 165, 250, 0.75);
  background-color: rgba(37, 99, 235, 0.22);
}

.show-comments-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.show-comments-button {
  border: none;
  background: transparent;
  color: #cfcfe3;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
}

.show-comments-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.show-comments-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.show-comments-button.open .show-comments-arrow {
  transform: rotate(180deg);
}

.comments-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #333;
  display: none;
}

.comments-section.open {
  display: block;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background-color: rgba(20, 20, 26, 0.75);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 10px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comment-username {
  color: #ffd700;
  font-weight: bold;
  font-size: 14px;
}

.comment-time {
  color: #8f8fa3;
  font-size: 12px;
}

.comment-text {
  color: #e7e7ef;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.delete-comment-button {
  margin-left: auto;
  border: none;
  background: none;
  color: #ff9a9a;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  padding: 0;
}

.delete-comment-button:hover {
  text-decoration: underline;
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 14px;
}

.comment-form button {
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: white;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.feed-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.follow-message {
  color: #ffb4b4;
  min-height: 20px;
  margin-bottom: 0;
}

.follow-message.success {
  color: #86efac;
}

.modal-background {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.login-modal {
  width: 380px;
  max-width: 90vw;
  background-color: #15151b;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-top h2 {
  margin: 0;
}

.close-modal-button {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.auth-tab {
  padding: 10px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  border: none;
  font-weight: bold;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.auth-form.active {
  display: flex;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.auth-form input {
  padding: 11px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
}

.auth-submit-button {
  padding: 12px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  font-size: 15px;
}

.auth-message {
  min-height: 20px;
  color: #ffb4b4;
  font-size: 14px;
  margin: 0;
}

.save-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 170px;
  height: 125px;
  background-color: rgba(22, 163, 74, 0.95);
  color: white;
  border-radius: 22px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 0 35px rgba(22, 163, 74, 0.5);
  text-align: center;
}

.save-toast.show {
  display: flex;
  animation: savePop 0.9s ease;
}

.checkmark {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 6px;
}

@keyframes savePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .account-area {
    justify-content: center;
  }

  .rankings-container,
  .following-layout {
    grid-template-columns: 1fr;
  }

  .ranking-column {
    height: auto;
  }

  .rating-form {
    grid-template-columns: 1fr;
  }

  .profile-header-main {
    align-items: flex-start;
  }

  .avatar-large {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}

/* Feed review card redesign: centered card, side actions, comment panel, flip details */
.feed-review-card {
  cursor: default;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px 0 30px;
  margin-bottom: 24px;
}

.feed-review-card:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.feed-review-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  width: 100%;
}

.feed-review-center-area {
  width: min(430px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 2;
}

.feed-review-flip {
  height: 350px;
  perspective: 1200px;
}

.feed-review-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.feed-review-flip.flipped .feed-review-flip-inner {
  transform: rotateY(180deg);
}

.feed-review-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.18),
      transparent 35%
    ),
    rgba(15, 15, 20, 0.98);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.25);
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.feed-review-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.feed-review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.feed-review-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.feed-review-user-text {
  min-width: 0;
}

.feed-review-username {
  color: #ffd700;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-review-action-text {
  color: #aaa;
  font-size: 13px;
  margin-top: 2px;
}

.feed-review-profile-button {
  padding: 7px 10px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.feed-review-profile-button:hover {
  border-color: rgba(255, 215, 0, 0.5);
}

.feed-review-front-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 20px;
}

.feed-review-title-main {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 14px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.feed-review-score-main {
  color: #ffd700;
  font-size: 62px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.feed-review-meta-center {
  color: #b9b9c7;
  font-size: 14px;
}

.feed-flip-button {
  align-self: center;
  margin-top: auto;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: rgba(31, 31, 37, 0.9);
  color: white;
  cursor: pointer;
  padding: 7px 16px;
  font-weight: bold;
}

.feed-flip-button:hover {
  border-color: rgba(124, 58, 237, 0.8);
  background-color: rgba(124, 58, 237, 0.25);
}

.feed-review-back-title {
  margin: 0 0 12px 0;
  color: #ffd700;
  text-align: center;
}

.feed-rating-details {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.feed-side-actions {
  position: absolute;
  left: calc(50% + 245px);
  top: 50%;
  transform: translateY(-50%);
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.feed-icon-button,
.feed-icon-static {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  margin: 0;
}

.feed-icon-static {
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  cursor: default;
  pointer-events: none;
}

.feed-action-label {
  color: #cfcfe3;
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 6px;
}

.feed-comments-panel {
  position: absolute;
  left: calc(50% + 350px);
  top: 50%;
  transform: translateY(-50%);
  width: 330px;
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px;
  border-top: none;
  border: 1px solid #333;
  border-radius: 16px;
  background-color: rgba(18, 18, 24, 0.98);
  display: none;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow: hidden;
  z-index: 4;
}

.feed-comments-panel.open {
  display: flex;
  animation: commentsSlideIn 0.18s ease;
}

.feed-comments-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffd700;
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.feed-close-comments-button {
  border: none;
  background: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

.feed-close-comments-button:hover {
  color: white;
}

.feed-comments-panel .comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0;
  padding-right: 3px;
}

.feed-comments-panel .comment-form {
  margin-top: auto;
}

@keyframes commentsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 1150px) {
  .feed-review-layout {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: 14px;
  }

  .feed-review-center-area {
    width: min(430px, 100%);
  }

  .feed-review-flip {
    height: 350px;
  }

  .feed-side-actions {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feed-action-label {
    margin-bottom: 0;
    margin-right: 10px;
  }

  .feed-comments-panel {
    position: static;
    transform: none;
    width: min(430px, 100%);
    max-height: none;
  }

  @keyframes commentsSlideIn {
    from {
      opacity: 0;
      transform: translateX(-8px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Fix feed sticky header + comment order layout */
#feed-content.feed-column {
  position: relative;
  overflow-y: auto;
  background-color: rgba(18, 18, 22, 0.92);
}

#feed-content.feed-column h2 {
  position: sticky;
  top: 0;
  z-index: 200;
  margin: -15px -15px 18px -15px;
  padding: 16px 15px 14px 15px;
  background-color: #121216;
  border-bottom: 1px solid #333;
  box-shadow: 0 12px 18px rgba(18, 18, 22, 0.98);
}

#feed-list {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

.feed-review-card,
.feed-review-layout,
.feed-review-center-area,
.feed-side-actions,
.feed-comments-panel {
  z-index: auto;
}

.feed-comments-panel.open {
  z-index: 20;
}

/* Header account layout fix */
header {
  grid-template-columns: 180px minmax(0, 1fr) minmax(260px, max-content);
  column-gap: 18px;
}

.account-area {
  min-width: 0;
  overflow: visible;
}

.account-user {
  min-width: 0;
  max-width: 175px;
}

.username-display {
  display: inline-block;
  min-width: 0;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr;
  }

  .account-user,
  .username-display {
    max-width: 70vw;
  }
}

/* TikTok-style snap scroll for Following Feed only */
#feed-content.feed-column {
  height: calc(100vh - 245px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  scroll-padding-bottom: 78px;
}

#feed-list {
  padding: 58px 0 74px;
}

#feed-content .feed-review-card {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin-bottom: 18px;
  padding: 18px 0;
}

#feed-content .feed-review-layout {
  min-height: 390px;
}

@media (max-width: 1150px) {
  #feed-content.feed-column {
    height: auto;
    max-height: none;
    scroll-snap-type: none;
  }

  #feed-content .feed-review-card {
    min-height: auto;
    scroll-snap-align: none;
  }
}

/* Top ranked pages: centered podium-style cards */
#top-movies-page .ranking-column,
#top-shows-page .ranking-column {
  height: auto;
  min-height: 62vh;
  overflow: visible;
}

#global-movie-rankings,
#global-show-rankings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0 26px;
}

.global-rank-card {
  position: relative;
  width: min(470px, 94%);
  min-height: 255px;
  cursor: default;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.16),
      transparent 36%
    ),
    rgba(15, 15, 20, 0.98);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.25);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.global-rank-card:hover {
  border-color: rgba(255, 215, 0, 0.32);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.2),
      transparent 36%
    ),
    rgba(18, 18, 24, 0.98);
}

.global-rank-card.rank-1 {
  border-color: rgba(255, 215, 0, 0.72);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12);
}

.global-rank-card.rank-2 {
  border-color: rgba(192, 192, 192, 0.65);
  box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
}

.global-rank-card.rank-3 {
  border-color: rgba(205, 127, 50, 0.72);
  box-shadow: 0 0 30px rgba(205, 127, 50, 0.12);
}

.global-rank-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
}

.global-rank-card.rank-2 .global-rank-badge {
  color: #d6d6d6;
}

.global-rank-card.rank-3 .global-rank-badge {
  color: #cd7f32;
}

.global-rank-title {
  font-size: 24px;
  line-height: 1.15;
  margin: 16px 0 12px;
  overflow-wrap: anywhere;
}

.global-rank-score {
  color: #ffd700;
  font-size: 60px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.global-rank-card.rank-2 .global-rank-score {
  color: #d6d6d6;
}

.global-rank-card.rank-3 .global-rank-score {
  color: #cd7f32;
}

.global-rank-meta {
  color: #b9b9c7;
  font-size: 14px;
  margin-bottom: 12px;
}

.global-rank-details-button {
  align-self: center;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: rgba(31, 31, 37, 0.9);
  color: white;
  cursor: pointer;
  padding: 7px 16px;
  font-weight: bold;
}

.global-rank-details-button:hover {
  border-color: rgba(124, 58, 237, 0.8);
  background-color: rgba(124, 58, 237, 0.25);
}

.global-rank-details {
  margin-top: 14px;
  text-align: left;
}

/* Following Feed: cleaner page, bigger cards, faster/stronger snap */
#feed-page {
  margin-top: 0;
}

#feed-content.feed-column {
  height: calc(100vh - 150px);
  min-height: 640px;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: 50%;
  scroll-padding-bottom: 50%;
}

#feed-list {
  padding: 20px 0 36px;
}

#feed-content .feed-review-card {
  min-height: 82vh;
  margin-bottom: 0;
  padding: 0;
}

#feed-content .feed-review-layout {
  min-height: 540px;
}

.feed-review-center-area {
  width: min(516px, 92vw);
}

.feed-review-flip {
  height: 420px;
}

.feed-review-face {
  padding: 22px;
}

.feed-review-title-main {
  font-size: 29px;
}

.feed-review-score-main {
  font-size: 74px;
}

.feed-side-actions {
  left: calc(50% + 300px);
}

.feed-comments-panel {
  left: calc(50% + 408px);
  width: 360px;
  max-height: 405px;
}

/* Header: keep username and logout from overlapping */
header {
  grid-template-columns: 180px minmax(0, 1fr) minmax(330px, max-content);
}

.account-area {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.account-user {
  max-width: 220px;
}

.username-display {
  max-width: 165px;
}

@media (max-width: 1150px) {
  #feed-content.feed-column {
    height: auto;
    min-height: auto;
    scroll-snap-type: none;
  }

  #feed-content .feed-review-card {
    min-height: auto;
    padding: 18px 0;
  }

  .feed-review-center-area {
    width: min(516px, 100%);
  }

  .feed-review-flip {
    height: 420px;
  }
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr;
  }

  .account-user {
    max-width: 72vw;
  }

  .username-display {
    max-width: 48vw;
  }
}

/* Profile/movie-show ranking grids with sort controls */
.profile-ranking-column {
  overflow-y: auto;
}

.profile-rank-section-header {
  position: sticky;
  top: 0;
  z-index: 25;
  margin: -15px -15px 14px -15px;
  padding: 14px 15px;
  background-color: #121216;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.profile-rank-section-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  position: static;
  top: auto;
  background: transparent;
  z-index: auto;
  white-space: nowrap;
}

.profile-rank-sort {
  min-width: 145px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  padding: 8px 12px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
}

.profile-rank-sort:focus {
  border-color: rgba(124, 58, 237, 0.85);
}

.profile-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  align-items: start;
  padding: 6px 0 8px;
}

.profile-rank-tile {
  position: relative;
  min-height: 158px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.13),
      transparent 38%
    ),
    rgba(19, 19, 25, 0.96);
  padding: 18px 16px 16px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.profile-rank-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.33);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.18),
      transparent 38%
    ),
    rgba(23, 23, 30, 0.98);
}

.profile-rank-tile.rank-1 {
  border-color: rgba(255, 215, 0, 0.62);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

.profile-rank-tile.rank-2 {
  border-color: rgba(192, 192, 192, 0.58);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.06);
}

.profile-rank-tile.rank-3 {
  border-color: rgba(205, 127, 50, 0.62);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.08);
}

.profile-rank-tile-rank {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #ffd700;
  font-weight: 900;
  font-size: 18px;
}

.profile-rank-tile.rank-2 .profile-rank-tile-rank,
.profile-rank-tile.rank-2 .profile-rank-tile-score {
  color: #d6d6d6;
}

.profile-rank-tile.rank-3 .profile-rank-tile-rank,
.profile-rank-tile.rank-3 .profile-rank-tile-score {
  color: #cd7f32;
}

.profile-rank-tile-title {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-rank-tile-meta {
  color: #b9b9c7;
  font-size: 13px;
  margin-bottom: 24px;
}

.profile-rank-tile-score {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #ffd700;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}

.profile-rank-tile-details {
  margin-top: 14px;
  text-align: left;
  grid-template-columns: 1fr;
}

.profile-rank-tile-details.open {
  display: grid;
}

@media (max-width: 900px) {
  .profile-rank-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-rank-sort,
  .profile-rank-tag {
    width: 100%;
  }
}

/* Refined profile ranking layout: detailed fixed cards in a real grid */
.profile-ranking-column {
  height: auto;
  min-height: 58vh;
  overflow: visible;
}

.profile-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 8px 0 16px;
}

.profile-rank-tile {
  min-height: 372px;
  padding: 18px;
  justify-content: flex-start;
  text-align: left;
  cursor: default;
}

.profile-rank-tile:hover {
  transform: translateY(-2px);
}

.profile-rank-tile-main {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 10px 8px 14px;
}

.profile-rank-tile-title {
  margin: 12px 0 7px;
  font-size: 19px;
  line-height: 1.13;
  text-align: center;
}

.profile-rank-tile-meta {
  margin-bottom: 8px;
  text-align: center;
}

.profile-rank-tile-score {
  position: static;
  margin-top: 4px;
  text-align: center;
  font-size: 38px;
  line-height: 1;
}

.profile-rank-tile-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  text-align: left;
}

.profile-rank-tile-details .aspect {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 13px;
}

/* Top ranked pages: grid format instead of vertical stack */
#global-movie-rankings,
#global-show-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: stretch;
  padding: 30px 18px 36px;
}

.global-rank-card {
  width: auto;
  min-height: 300px;
  padding: 22px;
  justify-content: center;
  overflow: hidden;
}

.global-rank-title {
  font-size: 24px;
  margin: 18px 0 12px;
}

.global-rank-score {
  font-size: 66px;
  margin-bottom: 12px;
}

.global-rank-details {
  margin-top: 14px;
  max-height: 245px;
  overflow-y: auto;
}

.global-rank-details.open {
  display: grid;
  grid-template-columns: 1fr;
}

.global-rank-details .aspect {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  #global-movie-rankings,
  #global-show-rankings {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  #global-movie-rankings,
  #global-show-rankings,
  .profile-rank-grid {
    grid-template-columns: 1fr;
  }
}

.profile-rank-sort {
  max-width: 190px;
  text-overflow: ellipsis;
}

.profile-rank-tag {
  max-width: 150px;
  text-overflow: ellipsis;
}

.profile-rank-section-header {
  overflow: hidden;
}

/* Final profile/top ranking layout fix: details only after click */
.account-area {
  min-width: 0;
  overflow: hidden;
}

.account-user {
  min-width: 0;
  max-width: 135px;
  overflow: hidden;
}

.account-user .username-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  min-width: 0;
}

.profile-rank-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
  padding: 8px 0 18px;
}

.profile-rank-tile {
  min-height: 250px;
  cursor: pointer;
  transition:
    min-height 0.18s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

.profile-rank-tile-main {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-rank-details-button {
  align-self: center;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: rgba(31, 31, 37, 0.9);
  color: white;
  cursor: pointer;
  padding: 7px 16px;
  font-weight: bold;
  margin: 6px auto 0;
}

.profile-rank-details-button:hover {
  border-color: rgba(124, 58, 237, 0.8);
  background-color: rgba(124, 58, 237, 0.25);
}

.profile-rank-tile-details {
  display: none !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
  animation: detailsDrop 0.16s ease;
}

.profile-rank-tile-details.open {
  display: grid !important;
}

.profile-rank-tile:has(.profile-rank-tile-details.open) {
  min-height: 430px;
}

.profile-rank-tile-details .aspect {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 13px;
}

@keyframes detailsDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Ranked Movies / TV Shows: real grid, not center stack */
#top-movies-page .ranking-column,
#top-shows-page .ranking-column {
  height: auto !important;
  min-height: 62vh;
  overflow: visible !important;
}

#global-movie-rankings,
#global-show-rankings {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: stretch;
  padding: 28px 18px 36px;
}

.global-rank-card {
  width: auto !important;
  min-height: 300px;
  padding: 22px;
  justify-content: center;
  overflow: visible;
}

.global-rank-details {
  display: none !important;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
  animation: detailsDrop 0.16s ease;
}

.global-rank-details.open {
  display: grid !important;
}

.global-rank-card:has(.global-rank-details.open) {
  min-height: 520px;
}

.global-rank-details .aspect {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  #global-movie-rankings,
  #global-show-rankings {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  #global-movie-rankings,
  #global-show-rankings,
  .profile-rank-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-rank-tile-details {
    grid-template-columns: 1fr;
  }
}

/* Discover / Find Titles page */
#discover-title-search {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 25px;
  align-items: start;
}

.discover-search-panel,
.discover-trending-panel {
  background-color: rgba(18, 18, 22, 0.92);
  border: 1px solid #333;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.discover-search-panel {
  position: relative;
  padding-right: 66px;
}

.discover-clear-search-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 26, 0.9);
  color: #f4f4f5;
  font-size: 24px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.discover-clear-search-button.visible {
  display: flex;
}

.discover-clear-search-button:hover {
  border-color: rgba(255, 215, 0, 0.55);
  background: rgba(36, 36, 44, 0.98);
  color: #ffd700;
  transform: translateY(-1px);
}

.discover-clear-search-button:active {
  transform: translateY(0) scale(0.97);
}

.discover-search-panel h2,
.discover-trending-panel h2 {
  margin-top: 0;
}

.discover-rating-form {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.discover-rating-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.discover-rating-form input {
  padding: 9px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 15px;
}

#discover-save-rating-button {
  display: none;
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.trending-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.discover-title-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.14),
      transparent 38%
    ),
    rgba(19, 19, 25, 0.96);
  padding: 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.discover-title-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.2),
      transparent 38%
    ),
    rgba(23, 23, 30, 0.98);
}

.discover-title-rank {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #ffd700;
  font-weight: 900;
  font-size: 18px;
}

.discover-title-card h3 {
  margin: 24px 0 0 0;
  font-size: 19px;
  line-height: 1.15;
}

.discover-title-meta,
.discover-title-count {
  color: #b9b9c7;
  font-size: 13px;
}

.discover-title-score {
  color: #ffd700;
  font-size: 28px;
  font-weight: 900;
  margin-top: auto;
}

.discover-title-button {
  align-self: flex-start;
  margin-top: 6px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  padding: 8px 13px;
  font-weight: bold;
}

.discover-title-button:hover {
  border-color: rgba(124, 58, 237, 0.8);
  background-color: rgba(124, 58, 237, 0.25);
}

.discover-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.discover-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.discover-filters select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #444;
  background-color: #1f1f25;
  color: white;
  font-size: 14px;
  font-weight: bold;
  outline: none;
  cursor: pointer;
}

.discover-filters select:focus {
  border-color: rgba(124, 58, 237, 0.85);
}

.discover-clear-button {
  margin-top: 12px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #1f1f25;
  color: white;
  cursor: pointer;
  padding: 10px 13px;
  font-weight: bold;
}

.discover-clear-button:hover {
  background-color: #292935;
  border-color: rgba(255, 215, 0, 0.45);
}

.discover-results-summary {
  color: #aaa;
  min-height: 20px;
}

.title-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}

.title-tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.055);
  color: #d8d8e5;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.title-tag-chip.franchise-chip {
  border-color: rgba(255, 215, 0, 0.28);
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.075);
}

.title-tags.center-tags {
  justify-content: center;
  margin-top: 8px;
}

.title-tags.left-tags {
  justify-content: flex-start;
  margin-top: 8px;
}

.title-tags.compact-tags {
  gap: 5px;
}

.title-tags.compact-tags .title-tag-chip {
  font-size: 11px;
  padding: 4px 7px;
}

.title-tags.one-line-tags {
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.title-tags.one-line-tags .title-tag-chip {
  flex: 0 0 auto;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-tags.one-line-tags .title-tag-chip.more-chip {
  flex-shrink: 0;
  max-width: none;
}

.title-tag-chip.more-chip {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.035);
}

.suggestion-tags {
  margin-top: 6px;
}

.feed-review-front-center .title-tags,
.global-rank-front-content .title-tags,
.profile-rank-tile-main .title-tags {
  max-width: 100%;
}

/* Watchlist page */
.watchlist-column {
  height: 75vh;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  align-items: start;
  padding: 8px 0 10px;
}

.watchlist-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.13),
      transparent 38%
    ),
    rgba(19, 19, 25, 0.96);
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.watchlist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.48);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.18),
      transparent 38%
    ),
    rgba(23, 23, 30, 0.98);
}

.watchlist-card-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.watchlist-card h3 {
  margin: 0;
  max-width: 82%;
  font-size: 25px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.watchlist-card-meta,
.watchlist-card-added {
  color: #b9b9c7;
  font-size: 14px;
}

.watchlist-card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.watchlist-card-score-block {
  min-width: 0;
}

.watchlist-card-score {
  color: #ffd700;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.watchlist-card-score-label {
  margin-top: 5px;
  color: #8f8fa3;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.watchlist-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.watchlist-rate-button,
.watchlist-remove-button {
  min-width: 86px;
}

.watchlist-remove-button {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.watchlist-remove-button:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background-color: rgba(120, 30, 30, 0.26);
}

.watchlist-empty {
  text-align: center;
  padding: 28px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #b9b9c7;
  background-color: rgba(255, 255, 255, 0.03);
}

@media (max-width: 700px) {
  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-card {
    min-height: 230px;
  }

  .watchlist-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .watchlist-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1000px) {
  .discover-layout {
    grid-template-columns: 1fr;
  }

  .discover-rating-form {
    grid-template-columns: 1fr;
  }
}

/* Global flip-card behavior + latest UX fixes */
.account-profile-button {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-profile-button:hover .username-display {
  text-decoration: underline;
}

.feed-review-flip {
  cursor: pointer;
}

.feed-flip-button,
.global-rank-details-button,
.profile-rank-details-button {
  display: none !important;
}

.profile-rank-tile,
.global-rank-card {
  cursor: pointer;
  perspective: 1200px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 280px;
}

.profile-rank-card-flip,
.global-rank-flip {
  width: 100%;
  min-height: 280px;
  height: 100%;
  perspective: 1200px;
}

.profile-rank-card-flip-inner,
.global-rank-flip-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  transition: transform 0.45s ease;
  transform-style: preserve-3d;
}

.profile-rank-card-flip.flipped .profile-rank-card-flip-inner,
.global-rank-flip.flipped .global-rank-flip-inner {
  transform: rotateY(180deg);
}

.profile-rank-card-face,
.global-rank-face {
  position: absolute;
  inset: 0;
  min-height: 280px;
  backface-visibility: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.16),
      transparent 38%
    ),
    rgba(15, 15, 20, 0.98);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.24);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.profile-rank-card-back,
.global-rank-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.profile-rank-tile.rank-1 .profile-rank-card-face,
.global-rank-card.rank-1 .global-rank-face {
  border-color: rgba(255, 215, 0, 0.72);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12);
}

.profile-rank-tile.rank-2 .profile-rank-card-face,
.global-rank-card.rank-2 .global-rank-face {
  border-color: rgba(192, 192, 192, 0.65);
  box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
}

.profile-rank-tile.rank-3 .profile-rank-card-face,
.global-rank-card.rank-3 .global-rank-face {
  border-color: rgba(205, 127, 50, 0.72);
  box-shadow: 0 0 30px rgba(205, 127, 50, 0.12);
}

.profile-rank-card-face .profile-rank-tile-rank,
.global-rank-face .global-rank-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #ffd700;
  font-weight: 900;
  font-size: 22px;
}

.profile-rank-card-front .profile-rank-tile-main,
.global-rank-front-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 8px 10px;
}

.profile-rank-card-back h3,
.global-rank-back h3 {
  margin: 0 0 14px 0;
  color: #ffd700;
  text-align: center;
}

.profile-rank-card-back .profile-rank-tile-details,
.global-rank-back .global-rank-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

.profile-rank-card-back .aspect,
.global-rank-back .aspect {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 13px;
}

.edit-rating-button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: rgba(31, 31, 37, 0.92);
  color: white;
  cursor: pointer;
  padding: 7px 11px;
  font-weight: bold;
  font-size: 12px;
  z-index: 2;
}

.edit-rating-button:hover {
  border-color: rgba(124, 58, 237, 0.85);
  background-color: rgba(124, 58, 237, 0.25);
}

.profile-rank-grid {
  align-items: start !important;
}

@media (max-width: 760px) {
  .profile-rank-card-back .profile-rank-tile-details,
  .global-rank-back .global-rank-details {
    grid-template-columns: 1fr;
  }
}

/* Polishes: collapse rating editor, no tiny card scrollbars, profile search click */
#rate-section {
  position: relative;
}

.rating-collapse-button {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  font-size: 28px;
  line-height: 20px;
  cursor: pointer;
  opacity: 0.85;
  z-index: 5;
}

.rating-collapse-button:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.profile-rank-card-back,
.global-rank-back {
  overflow-y: visible !important;
}

.profile-rank-card-flip.flipped,
.profile-rank-card-flip.flipped .profile-rank-card-flip-inner,
.profile-rank-card-flip.flipped .profile-rank-card-face {
  min-height: 430px;
}

.profile-rank-tile:has(.profile-rank-card-flip.flipped) {
  min-height: 430px;
}

.global-rank-flip.flipped,
.global-rank-flip.flipped .global-rank-flip-inner,
.global-rank-flip.flipped .global-rank-face {
  min-height: 470px;
}

.global-rank-card:has(.global-rank-flip.flipped) {
  min-height: 470px;
}

.user-suggestion-info.clickable-profile {
  cursor: pointer;
}

.user-suggestion-info.clickable-profile:hover .suggestion-title {
  text-decoration: underline;
}

/* Fixed profile flip-card height + delete rating action */
.rating-card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  z-index: 5;
}

.rating-card-actions .edit-rating-button,
.rating-card-actions .delete-rating-button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: rgba(31, 31, 37, 0.92);
  color: white;
  cursor: pointer;
  padding: 7px 11px;
  font-weight: bold;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.rating-card-actions .edit-rating-button:hover {
  border-color: rgba(124, 58, 237, 0.85);
  background-color: rgba(124, 58, 237, 0.25);
}

.rating-card-actions .delete-rating-button {
  color: #fca5a5;
}

.rating-card-actions .delete-rating-button:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background-color: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.profile-rank-tile,
.profile-rank-card-flip,
.profile-rank-card-flip-inner,
.profile-rank-card-face,
.profile-rank-card-flip.flipped,
.profile-rank-card-flip.flipped .profile-rank-card-flip-inner,
.profile-rank-card-flip.flipped .profile-rank-card-face,
.profile-rank-tile:has(.profile-rank-card-flip.flipped) {
  min-height: 335px !important;
  height: 335px !important;
}

.profile-rank-card-back {
  overflow: hidden !important;
}

.profile-rank-card-back h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 10px 0;
}

.profile-rank-card-back .profile-rank-tile-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

.profile-rank-card-back .profile-rank-tile-details .overall {
  grid-column: 1 / -1;
}

.profile-rank-card-back .aspect {
  min-height: 26px;
  padding: 7px 9px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .profile-rank-card-back .profile-rank-tile-details {
    grid-template-columns: 1fr;
  }
}

/* Top Ranked flip-card fixed height: no growth, no internal scrollbar */
#top-movies-page .global-rank-card,
#top-shows-page .global-rank-card,
#top-movies-page .global-rank-flip,
#top-shows-page .global-rank-flip,
#top-movies-page .global-rank-flip-inner,
#top-shows-page .global-rank-flip-inner,
#top-movies-page .global-rank-face,
#top-shows-page .global-rank-face,
#top-movies-page .global-rank-flip.flipped,
#top-shows-page .global-rank-flip.flipped,
#top-movies-page .global-rank-flip.flipped .global-rank-flip-inner,
#top-shows-page .global-rank-flip.flipped .global-rank-flip-inner,
#top-movies-page .global-rank-flip.flipped .global-rank-face,
#top-shows-page .global-rank-flip.flipped .global-rank-face,
#top-movies-page .global-rank-card:has(.global-rank-flip.flipped),
#top-shows-page .global-rank-card:has(.global-rank-flip.flipped) {
  min-height: 300px !important;
  height: 300px !important;
  max-height: 300px !important;
}

#top-movies-page .global-rank-back,
#top-shows-page .global-rank-back {
  overflow: visible !important;
  justify-content: center;
}

#top-movies-page .global-rank-back h3,
#top-shows-page .global-rank-back h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 10px 0;
}

#top-movies-page .global-rank-back .global-rank-details,
#top-shows-page .global-rank-back .global-rank-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
  max-height: none !important;
  overflow: visible !important;
}

#top-movies-page .global-rank-back .global-rank-details .overall,
#top-shows-page .global-rank-back .global-rank-details .overall {
  grid-column: 1 / -1;
}

#top-movies-page .global-rank-back .aspect,
#top-shows-page .global-rank-back .aspect {
  min-height: 26px;
  padding: 7px 9px;
  font-size: 12px;
}

@media (max-width: 760px) {
  #top-movies-page .global-rank-back .global-rank-details,
  #top-shows-page .global-rank-back .global-rank-details {
    grid-template-columns: 1fr;
  }
}

/* Clean layout tweaks from screenshots */
#profile-header {
  position: relative;
  text-align: center;
  min-height: 188px;
}

#profile-header .profile-header-main {
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

#profile-header #profile-header-name {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

#profile-header #profile-header-name h2 {
  margin: 0;
}

#profile-header .profile-stats {
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

#profile-header .avatar-upload-panel {
  position: absolute;
  top: 48px;
  right: 28px;
  justify-content: flex-end;
}

#discover-page > .page-title,
#following-page > .page-title,
#top-movies-page > .page-title,
#top-shows-page > .page-title {
  display: none !important;
}

#discover-page,
#following-page,
#top-movies-page,
#top-shows-page {
  padding-top: 0;
}

#discover-page #discover-content,
#following-page #following-content,
#top-movies-page .ranking-column,
#top-shows-page .ranking-column {
  margin-top: 0;
}

#feed-content .feed-review-layout {
  transform: translateY(-70px);
}

@media (max-width: 900px) {
  #profile-header {
    min-height: auto;
  }

  #profile-header .avatar-upload-panel {
    position: static;
    justify-content: center;
    margin-top: 6px;
  }

  #feed-content .feed-review-layout {
    transform: none;
  }
}

/* True centered site title in the header */
header {
  position: relative !important;
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box;
  min-height: 90px;
}

.header-center {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(720px, 58vw);
  text-align: center !important;
  pointer-events: none;
}

.header-center h1,
.header-center .tagline {
  pointer-events: auto;
}

#menu-button {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

#account-area {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 900px) {
  header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .header-center {
    position: static !important;
    transform: none !important;
    width: 100%;
    order: 1;
  }

  #menu-button {
    order: 0;
    justify-self: center;
  }

  #account-area {
    order: 2;
    margin-left: 0;
    justify-content: center;
  }
}

/* Center other users' profile header + remove back button space */
#view-profile-page .view-profile-header-card,
#view-profile-page > .page-title {
  position: relative;
  text-align: center;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

#view-profile-name {
  margin: 0 !important;
  width: 100%;
  text-align: center;
}

#view-profile-name .heading-with-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  width: 100%;
}

#view-profile-page .profile-stats {
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

/* Profile info flip-card + Taste Profile */
#profile-header.profile-summary-card,
#view-profile-page .view-profile-header-card.profile-summary-card {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 252px !important;
  overflow: visible;
}

.profile-summary-flip {
  width: 100%;
  min-height: 252px;
  height: 252px;
  perspective: 1200px;
  cursor: pointer;
}

.profile-summary-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.48s ease;
  transform-style: preserve-3d;
}

.profile-summary-flip.flipped .profile-summary-inner {
  transform: rotateY(180deg);
}

.profile-summary-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid #333;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(23, 59, 77, 0.28),
      transparent 34%
    ),
    rgba(18, 18, 22, 0.96);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.profile-summary-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  overflow-y: auto;
  padding: 20px 24px;
}

.profile-summary-front .profile-stats {
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.profile-summary-front .profile-header-main {
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.profile-summary-front #profile-header-name,
.profile-summary-front #view-profile-name .heading-with-avatar {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.profile-summary-front .avatar-upload-panel {
  position: absolute;
  top: 48px;
  right: 28px;
  justify-content: flex-end;
  z-index: 5;
}

.profile-flip-hint {
  color: #8f8fa3;
  font-size: 12px;
  font-weight: bold;
  margin-top: 12px;
  opacity: 0.88;
}

.profile-summary-card:hover .profile-flip-hint {
  color: #ffd700;
}

.profile-taste-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid #333;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.profile-taste-top h2 {
  margin: 0;
  color: #ffd700;
  line-height: 1.15;
}

.profile-taste-content {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #e8e8f0;
}

.taste-insights {
  display: grid;
  gap: 7px;
  color: #d8d8e4;
  font-size: 14px;
  line-height: 1.35;
}

.taste-insight-line::before {
  content: "•";
  color: #ffd700;
  margin-right: 8px;
}

.taste-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.taste-box {
  background-color: rgba(31, 31, 37, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.taste-label {
  color: #aaa;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.taste-value {
  color: white;
  font-weight: bold;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.taste-list {
  margin: 0;
  padding-left: 19px;
  color: white;
  line-height: 1.55;
  font-weight: bold;
}

.taste-list small {
  color: #aaa;
  font-weight: normal;
}

.taste-preference {
  border: 1px solid rgba(255, 215, 0, 0.2);
  background-color: rgba(255, 215, 0, 0.06);
  border-radius: 12px;
  padding: 12px;
  line-height: 1.45;
}

.taste-empty {
  color: #aaa;
  text-align: center;
  padding: 38px 10px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  #profile-header.profile-summary-card,
  #view-profile-page .view-profile-header-card.profile-summary-card {
    min-height: 360px !important;
  }

  .profile-summary-flip {
    min-height: 360px;
    height: 360px;
  }

  .profile-summary-front .avatar-upload-panel {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }

  .profile-taste-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium design refresh: darker, cleaner, less gaming-gradient */
:root {
  --wr-bg: #08080a;
  --wr-surface-1: rgba(15, 15, 18, 0.96);
  --wr-surface-2: rgba(19, 19, 23, 0.96);
  --wr-surface-3: rgba(24, 24, 29, 0.96);
  --wr-border: rgba(255, 255, 255, 0.09);
  --wr-border-strong: rgba(255, 255, 255, 0.14);
  --wr-text: #f4f4f5;
  --wr-muted: #a1a1aa;
  --wr-muted-2: #71717a;
  --wr-gold: #d7b85a;
  --wr-gold-soft: rgba(215, 184, 90, 0.18);
  --wr-danger: #ef4444;
  --wr-success: #86efac;
}

* {
  scrollbar-color: #3f3f46 transparent;
}

body {
  background: linear-gradient(
    180deg,
    #0a0a0d 0%,
    #08080a 42%,
    #050506 100%
  ) !important;
  color: var(--wr-text) !important;
}

header {
  background: rgba(9, 9, 11, 0.92) !important;
  border-bottom: 1px solid var(--wr-border) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

h1 {
  letter-spacing: 0.06em;
  font-weight: 900;
}

.tagline,
.page-title p,
.panel p,
.meta,
.discover-title-meta,
.discover-title-count,
.global-rank-meta,
.profile-rank-tile-meta,
.feed-review-meta-center,
.feed-review-action-text,
.avatar-message,
.discover-results-summary,
.taste-label,
.taste-empty,
.taste-list small {
  color: var(--wr-muted) !important;
}

.sidebar {
  background: #0d0d10 !important;
  border-right: 1px solid var(--wr-border) !important;
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.55) !important;
}

.sidebar-top h2,
.username-display,
.average-score,
.rank-number,
.global-rank-badge,
.global-rank-score,
.global-rank-back h3,
.profile-rank-tile-rank,
.profile-rank-tile-score,
.profile-rank-card-back h3,
.discover-title-rank,
.discover-title-score,
.feed-review-score-main,
.feed-review-back-title,
.feed-review-username,
.feed-comments-title,
.comment-username,
.profile-taste-top h2,
.stat-box strong {
  color: var(--wr-gold) !important;
}

.page-title,
.rate-section,
.panel,
.ranking-column,
.discover-search-panel,
.discover-trending-panel,
.login-modal,
.avatar-crop-modal,
.feed-comments-panel,
.stat-box,
.taste-box {
  background: var(--wr-surface-1) !important;
  border: 1px solid var(--wr-border) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22) !important;
}

.rank-card,
.follow-card,
.comment-item,
.suggestions,
.suggestion-item,
.profile-summary-face,
.feed-review-face,
.global-rank-face,
.profile-rank-card-face,
.discover-title-card {
  background: var(--wr-surface-2) !important;
  border: 1px solid var(--wr-border) !important;
  box-shadow: none !important;
}

.rank-card:hover,
.follow-card:hover,
.discover-title-card:hover,
.global-rank-card:hover .global-rank-face,
.profile-rank-tile:hover .profile-rank-card-face,
.feed-review-face:hover,
.profile-summary-card:hover .profile-summary-face {
  background: var(--wr-surface-3) !important;
  border-color: var(--wr-border-strong) !important;
}

.global-rank-card.rank-1 .global-rank-face,
.profile-rank-tile.rank-1 .profile-rank-card-face {
  border-color: rgba(215, 184, 90, 0.62) !important;
  box-shadow:
    0 0 0 1px rgba(215, 184, 90, 0.1),
    0 22px 55px rgba(0, 0, 0, 0.25) !important;
}

.global-rank-card.rank-2 .global-rank-face,
.profile-rank-tile.rank-2 .profile-rank-card-face {
  border-color: rgba(180, 180, 190, 0.46) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22) !important;
}

.global-rank-card.rank-3 .global-rank-face,
.profile-rank-tile.rank-3 .profile-rank-card-face {
  border-color: rgba(170, 117, 72, 0.52) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22) !important;
}

.global-rank-card.rank-2 .global-rank-score,
.global-rank-card.rank-2 .global-rank-badge,
.profile-rank-tile.rank-2 .profile-rank-tile-rank,
.profile-rank-tile.rank-2 .profile-rank-tile-score {
  color: #c7c7cf !important;
}

.global-rank-card.rank-3 .global-rank-score,
.global-rank-card.rank-3 .global-rank-badge,
.profile-rank-tile.rank-3 .profile-rank-tile-rank,
.profile-rank-tile.rank-3 .profile-rank-tile-score {
  color: #b98557 !important;
}

.top-button,
.small-button,
.auth-submit-button,
#save-rating-button,
#discover-save-rating-button,
.follow-button,
.comment-form button {
  background: #24242a !important;
  border: 1px solid var(--wr-border-strong) !important;
  color: var(--wr-text) !important;
  box-shadow: none !important;
}

.top-button:hover,
.small-button:hover,
.auth-submit-button:hover,
#save-rating-button:hover,
#discover-save-rating-button:hover,
.follow-button:hover,
.comment-form button:hover,
.secondary-button:hover,
.logout-button:hover,
.menu-button:hover,
.avatar-remove-button:hover,
.discover-title-button:hover,
.review-user-button:hover,
.feed-review-profile-button:hover,
.comment-button:hover,
.like-button:hover {
  background: #2e2e35 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.sidebar-link,
.logout-button,
.menu-button,
.secondary-button,
.avatar-remove-button,
.discover-title-button,
.review-user-button,
.feed-review-profile-button,
.comment-button,
.like-button,
.profile-rank-sort,
.profile-rank-tag,
.discover-filter-select,
#title-search,
#user-search,
#discover-title-search,
.rating-form input,
.discover-rating-form input,
.auth-form input,
.comment-form input {
  background: #151519 !important;
  border: 1px solid var(--wr-border) !important;
  color: var(--wr-text) !important;
  box-shadow: none !important;
}

.sidebar-link:hover,
.suggestion-item:hover {
  background: #202026 !important;
  border-color: var(--wr-border-strong) !important;
}

.sidebar-link.active,
.auth-tab.active {
  background: #25252b !important;
  border: 1px solid rgba(215, 184, 90, 0.24) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--wr-gold) !important;
}

.auth-tab {
  background: #151519 !important;
  border: 1px solid var(--wr-border) !important;
  color: var(--wr-muted) !important;
}

.avatar {
  background: #1f1f25 !important;
  border-color: rgba(215, 184, 90, 0.32) !important;
  color: var(--wr-gold) !important;
  box-shadow: none !important;
}

.profile-summary-face,
.feed-review-face,
.global-rank-face,
.profile-rank-card-face,
.discover-title-card,
.rank-card,
.follow-card,
.panel,
.page-title,
.rate-section,
.ranking-column,
.discover-search-panel,
.discover-trending-panel {
  border-radius: 16px !important;
}

.title-tag-chip {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #c9c9d2 !important;
  font-weight: 700 !important;
}

.title-tag-chip.franchise-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(215, 184, 90, 0.24) !important;
  color: #e2cf89 !important;
}

.title-tag-chip.more-chip {
  color: var(--wr-muted) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.aspect {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  color: #dcdce3 !important;
}

.overall {
  background: rgba(215, 184, 90, 0.1) !important;
  border-color: rgba(215, 184, 90, 0.2) !important;
}

.like-button.liked {
  background: #3a1f26 !important;
  border-color: rgba(239, 68, 68, 0.42) !important;
  color: #ffd6d6 !important;
}

.follow-button.following {
  background: #18231c !important;
  border-color: rgba(134, 239, 172, 0.28) !important;
  color: var(--wr-success) !important;
}

.follow-button.following:hover {
  background: #2a1919 !important;
  border-color: rgba(239, 68, 68, 0.34) !important;
  color: #fca5a5 !important;
}

.profile-taste-top,
#feed-content.feed-column h2,
.ranking-column h2,
.profile-rank-section-header,
.feed-comments-title,
.comments-section {
  border-color: var(--wr-border) !important;
  background: rgba(12, 12, 15, 0.98) !important;
}

#feed-content.feed-column h2 {
  box-shadow: 0 16px 24px rgba(8, 8, 10, 0.95) !important;
}

.taste-preference {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.taste-insight-line::before {
  color: var(--wr-gold) !important;
}

.save-toast {
  background: rgba(21, 128, 61, 0.96) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35) !important;
}

input:focus,
select:focus,
button:focus-visible {
  outline: none !important;
  border-color: rgba(215, 184, 90, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(215, 184, 90, 0.08) !important;
}

.no-profile-message,
.auth-message.error,
.avatar-message.error {
  background: rgba(127, 29, 29, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
  color: #fca5a5 !important;
}

.auth-message.success,
.avatar-message.success,
.follow-message.success {
  color: var(--wr-success) !important;
}

@media (max-width: 900px) {
  main {
    padding: 18px 16px !important;
  }

  header {
    padding: 18px 16px !important;
  }
}

/* Title Detail modal + onboarding improvements */
.title-detail-modal {
  width: min(1040px, 94vw);
  max-height: 94vh;
  overflow: hidden;
  background: rgba(12, 12, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.title-detail-content {
  overflow: hidden;
  padding: 0 22px 18px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.title-detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 184, 90, 0.08),
      transparent 36%
    ),
    rgba(18, 18, 22, 0.94);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.title-detail-hero > * {
  position: relative;
  z-index: 2;
}

.title-detail-hero-body {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.title-detail-hero-main {
  min-width: 0;
}

.title-detail-poster {
  width: 96px;
  height: 144px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.title-detail-hero.has-backdrop .title-detail-poster {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.62);
}

.title-detail-release-date {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
  margin: -4px 0 10px;
}

.title-detail-hero.has-backdrop {
  min-height: 185px;
  background: rgba(18, 18, 22, 0.94);
  box-shadow: inset 0 -90px 90px rgba(12, 12, 15, 0.72);
}

.title-detail-hero.has-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--title-backdrop-url);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  opacity: 0.72;
}

.title-detail-hero.has-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 11, 0.96) 0%,
      rgba(8, 8, 11, 0.82) 42%,
      rgba(8, 8, 11, 0.46) 100%
    ),
    linear-gradient(
      0deg,
      rgba(12, 12, 15, 0.9) 0%,
      rgba(12, 12, 15, 0.18) 62%
    );
}

.title-detail-hero.has-backdrop .title-detail-title {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.78);
}

.title-detail-hero.has-backdrop .title-detail-meta {
  color: rgba(255, 255, 255, 0.78);
}

.title-detail-hero.has-backdrop .title-detail-release-date {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.64);
}

.title-detail-hero.has-backdrop .tag-chip {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.title-detail-title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.title-detail-meta {
  color: var(--wr-muted, #aaa);
  font-size: 14px;
  margin-bottom: 10px;
}

.title-detail-score-box {
  min-width: 155px;
  text-align: center;
  border: 1px solid rgba(215, 184, 90, 0.22);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.title-detail-hero.has-backdrop .title-detail-score-box {
  border-color: rgba(215, 184, 90, 0.28);
  background: rgba(16, 16, 20, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.title-detail-score {
  color: var(--wr-gold, #d7b85a);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.title-detail-score-label {
  color: var(--wr-muted, #aaa);
  font-size: 13px;
  font-weight: bold;
  margin-top: 8px;
}

.title-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.title-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.title-detail-side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.title-detail-overview-panel {
  flex: 1 1 auto;
  min-height: 170px;
  max-height: 245px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.title-detail-reviews-panel {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.title-detail-overview-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 14px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
}

.title-detail-overview-empty {
  margin: 0;
  color: var(--wr-muted, #aaa);
  line-height: 1.5;
  font-size: 14px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 6px;
}

.title-detail-panel,
.onboarding-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(18, 18, 22, 0.94);
  padding: 18px;
}

.title-detail-panel h3,
.onboarding-card h3 {
  margin: 0 0 12px;
  color: var(--wr-gold, #d7b85a);
}

.title-detail-community-aspects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.title-detail-own-rating {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.title-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}


.title-detail-overview-text::-webkit-scrollbar,
.title-detail-overview-empty::-webkit-scrollbar,
.title-review-list::-webkit-scrollbar {
  width: 6px;
}

.title-detail-overview-text::-webkit-scrollbar-thumb,
.title-detail-overview-empty::-webkit-scrollbar-thumb,
.title-review-list::-webkit-scrollbar-thumb {
  background: rgba(215, 184, 90, 0.55);
  border-radius: 99px;
}

.title-review-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.title-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.title-review-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.title-review-username {
  color: var(--wr-gold, #d7b85a);
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-review-score {
  color: var(--wr-gold, #d7b85a);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.title-review-meta {
  color: var(--wr-muted, #aaa);
  font-size: 12px;
}


.title-review-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.title-review-card:hover {
  border-color: rgba(255, 216, 77, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.052);
  transform: translateY(-1px);
}

.title-review-user-button {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.title-review-user-button:hover .title-review-username {
  text-decoration: underline;
  text-decoration-color: rgba(255, 216, 77, 0.55);
  text-underline-offset: 3px;
}

.title-review-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.title-review-note {
  margin: 4px 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}

.title-review-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.title-review-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.title-review-score-chip strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
}

.title-review-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.title-review-action-button,
.title-review-action-static {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.title-review-action-static {
  cursor: default;
  pointer-events: none;
}

.title-review-action-button:hover {
  border-color: rgba(255, 216, 77, 0.26);
  background: rgba(255, 216, 77, 0.1);
  color: #fff2bf;
  transform: translateY(-1px);
}

.title-review-like-button.liked {
  color: var(--wr-gold, #d7b85a);
  border-color: rgba(255, 216, 77, 0.26);
  background: rgba(255, 216, 77, 0.1);
}

.title-detail-comments-panel.feed-comments-panel {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  max-height: 260px;
  margin-top: 10px;
  padding: 12px;
  border-top: none;
  border-color: rgba(255, 216, 77, 0.15);
  background: rgba(10, 10, 14, 0.58);
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
}

.title-detail-comments-panel.feed-comments-panel.open {
  display: flex;
  animation: none;
}

.title-detail-comments-panel .feed-comments-title {
  color: var(--wr-gold, #d7b85a);
}

.title-detail-comments-panel .comment-form input {
  min-width: 0;
}

.title-detail-link {
  cursor: pointer;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.title-detail-link:hover {
  color: var(--wr-gold, #d7b85a) !important;
  text-decoration-color: rgba(215, 184, 90, 0.6);
}

.title-detail-clickable {
  cursor: pointer;
}

.onboarding-card {
  text-align: center;
  color: var(--wr-muted, #aaa);
  padding: 26px 18px;
}

.onboarding-card p {
  margin: 8px auto 16px;
  max-width: 440px;
  line-height: 1.45;
}

.onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.empty-message strong {
  color: var(--wr-gold, #d7b85a);
}

@media (max-width: 900px) {
  .title-detail-hero,
  .title-detail-grid {
    grid-template-columns: 1fr;
  }

  .title-detail-content {
    overflow-y: auto;
  }

  .title-detail-side-column {
    height: auto;
  }

  .title-detail-overview-panel {
    min-height: 0;
    max-height: none;
  }


  .title-detail-hero-body {
    align-items: flex-start;
  }

  .title-detail-poster {
    width: 76px;
    height: 114px;
  }

  .title-detail-score-box {
    min-width: 0;
  }

  .title-detail-title {
    font-size: 28px;
  }

  .title-detail-community-aspects {
    grid-template-columns: 1fr;
  }
}

/* Profile rating notes: slide-up sheet over ratings, while title and tags stay visible */
.profile-notes-wrap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  z-index: 8;
}

.profile-notes-toggle,
.profile-notes-sheet-close {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: #1f1f25;
  color: #e9e9ef;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  transition:
    border-color 0.16s ease,
    color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

.profile-notes-toggle:hover,
.profile-notes-sheet-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.48);
  color: #ffd700;
}

.profile-notes-toggle.open {
  opacity: 0;
  pointer-events: none;
}

.profile-notes-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.profile-notes-toggle.open .profile-notes-arrow {
  transform: rotate(180deg);
}

.profile-notes-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 88px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 18px;
  box-sizing: border-box;
  overflow: hidden;
  border-top: none;
  background: transparent;
  box-shadow: none;
  transform: translateY(105%);
  clip-path: inset(100% 0 0 0 round 0 0 18px 18px);
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    clip-path 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-notes-panel.open {
  transform: translateY(0);
  clip-path: inset(0 0 0 0 round 0 0 18px 18px);
}

.profile-notes-sheet-close {
  flex-shrink: 0;
}

.profile-notes-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: #141419;
  color: #e7e7ef;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#profile-page.profile-custom-theme .profile-notes-toggle,
#view-profile-page.profile-custom-theme .profile-notes-toggle,
#profile-page.profile-custom-theme .profile-notes-sheet-close,
#view-profile-page.profile-custom-theme .profile-notes-sheet-close {
  background-color: var(--profile-theme-input, #1f1f25);
  border-color: var(--profile-theme-border, #444);
  color: var(--profile-theme-accent, #ffd700);
}

#profile-page.profile-custom-theme .profile-notes-toggle:hover,
#view-profile-page.profile-custom-theme .profile-notes-toggle:hover,
#profile-page.profile-custom-theme .profile-notes-sheet-close:hover,
#view-profile-page.profile-custom-theme .profile-notes-sheet-close:hover {
  background-color: var(--profile-theme-surface-hover, #292935);
}

#profile-page.profile-custom-theme .profile-notes-panel,
#view-profile-page.profile-custom-theme .profile-notes-panel {
  border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.12));
}

#profile-page.profile-custom-theme .profile-notes-text,
#view-profile-page.profile-custom-theme .profile-notes-text {
  background-color: var(--profile-theme-input, #141419);
}

/* Watchlist button on Top Ranked cards */
.global-rank-face {
  position: relative;
}

.watchlist-icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background-color: rgba(12, 12, 16, 0.78);
  color: #e9e9ef;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 40;
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    background-color 0.14s ease;
}

.watchlist-icon-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.watchlist-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.55);
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.08);
}

.watchlist-icon-button.in-watchlist {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.45);
  background-color: rgba(255, 215, 0, 0.1);
}

.global-rank-front .global-rank-front-content {
  padding-left: 46px;
  padding-right: 46px;
}

.global-rank-back h3 {
  padding-left: 44px;
  padding-right: 44px;
}

/* Narrow fix: Top Ranked watchlist button must not change flip-card layout */
#top-movies-page .global-rank-face,
#top-shows-page .global-rank-face {
  position: absolute !important;
  inset: 0 !important;
}

#top-movies-page .global-rank-face .global-watchlist-button,
#top-shows-page .global-rank-face .global-watchlist-button {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 50 !important;
}

/* Watchlist buttons everywhere else - overlay only, no flip-layout changes */
.discover-title-card .discover-watchlist-button,
.profile-rank-tile > .profile-watchlist-button {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 70 !important;
}

.discover-title-card .discover-watchlist-button {
  top: 14px !important;
  right: 14px !important;
}

.profile-rank-tile > .profile-watchlist-button {
  top: 14px !important;
  right: 14px !important;
}

.discover-title-card h3 {
  padding-right: 40px;
}

.profile-rank-tile:has(.profile-watchlist-button)
  .profile-rank-card-front
  .profile-rank-tile-main {
  padding-right: 34px;
  padding-left: 34px;
}

.profile-rank-tile:has(.profile-watchlist-button) .profile-rank-card-back h3 {
  padding-right: 42px;
  padding-left: 42px;
}

.inline-watchlist-button {
  position: static !important;
  inset: auto !important;
  flex-shrink: 0;
}

.feed-watchlist-button {
  width: 46px;
  height: 46px;
}

.title-detail-actions .title-detail-watchlist-text-button {
  border-color: rgba(255, 215, 0, 0.35);
}

.title-detail-actions .title-detail-watchlist-text-button:hover {
  border-color: rgba(255, 215, 0, 0.65);
  color: #ffd700;
}

@media (max-width: 700px) {
  .discover-search-panel {
    padding-right: 58px;
  }

  .discover-clear-search-button {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}
/* Fixed WatchRank top bar */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important;

  background-color: rgba(8, 8, 11, 0.96) !important;
  border-bottom: 1px solid #222 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Make sidebar appear ABOVE the fixed header */
.sidebar-overlay {
  z-index: 20000 !important;
}

.sidebar {
  z-index: 20001 !important;
}

/* Remove the huge empty gap under the fixed header */
body {
  padding-top: 0 !important;
}

main {
  padding: 95px 35px 25px !important;
}

/* Profile page custom background image */
#profile-page.has-profile-background,
#view-profile-page.has-profile-background {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  margin: -4px -16px 0;
  background-image:
    linear-gradient(180deg, rgba(6, 6, 9, 0.12), rgba(6, 6, 9, 0.38)),
    var(--profile-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#profile-page.has-profile-background::before,
#view-profile-page.has-profile-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

#profile-page.has-profile-background > *,
#view-profile-page.has-profile-background > * {
  position: relative;
  z-index: 1;
}

#profile-page.has-profile-background #rate-section {
  background-color: rgba(18, 18, 22, 0.38) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#profile-page.has-profile-background #rate-section input,
#profile-page.has-profile-background #rate-section select,
#profile-page.has-profile-background #rate-section textarea,
#profile-page.has-profile-background #title-search,
#profile-page.has-profile-background .rating-form input {
  background-color: #15151b !important;
  border-color: #444 !important;
  color: #fff !important;
  opacity: 1 !important;
}

#profile-page.has-profile-background .profile-ranking-column,
#view-profile-page.has-profile-background .profile-ranking-column {
  background-color: rgba(18, 18, 22, 0.34) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#profile-page.has-profile-background .profile-rank-section-header,
#view-profile-page.has-profile-background .profile-rank-section-header {
  background: rgba(12, 12, 15, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#profile-page.has-profile-background .profile-rank-card-face,
#view-profile-page.has-profile-background .profile-rank-card-face {
  background: var(--wr-surface-2) !important;
  opacity: 1 !important;
}

#profile-page.has-profile-background .profile-summary-face,
#view-profile-page.has-profile-background .profile-summary-face {
  background: var(--wr-surface-2) !important;
}

.profile-background-message {
  color: #aaa;
  font-size: 13px;
}

@media (max-width: 800px) {
  #profile-page.has-profile-background,
  #view-profile-page.has-profile-background {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
  }
}

/* Edit profile modal */
.edit-profile-modal {
  width: min(860px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background-color: #15151b;
  border: 1px solid #444;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.75);
}

.edit-profile-top p,
.edit-profile-section p,
.background-crop-modal p {
  color: #aaa;
  margin-top: 6px;
  line-height: 1.45;
}

.edit-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edit-profile-section {
  background-color: rgba(24, 24, 30, 0.95);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 16px;
}

.edit-profile-section-wide {
  grid-column: 1 / -1;
}

.edit-profile-section h3 {
  margin: 0 0 6px;
  color: white;
}

.edit-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.edit-profile-message {
  display: block;
  margin-top: 10px;
}

.edit-profile-slider-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

#profile-transparency-slider {
  width: 100%;
  margin-top: 14px;
  accent-color: #ffd700;
}

#profile-transparency-value {
  color: #ffd700;
  font-size: 18px;
  white-space: nowrap;
}

.profile-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-theme-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #3a3a45;
  border-radius: 12px;
  background-color: #1f1f25;
  color: white;
  padding: 10px 12px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.profile-theme-choice:hover {
  transform: translateY(-1px);
  background-color: #292935;
}

.profile-theme-choice.active {
  border-color: var(--profile-theme-accent, #ffd700);
  box-shadow: 0 0 0 1px var(--profile-theme-border, rgba(255, 215, 0, 0.3));
}

.theme-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.default-theme {
  background: linear-gradient(135deg, #ffd700, #7c3aed);
}
.rose-theme {
  background: linear-gradient(135deg, #fb7185, #f472b6);
}
.sunset-theme {
  background: linear-gradient(135deg, #fb923c, #facc15);
}
.ocean-theme {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.forest-theme {
  background: linear-gradient(135deg, #86efac, #166534);
}
.royal-theme {
  background: linear-gradient(135deg, #a78bfa, #4f46e5);
}
.candy-theme {
  background: linear-gradient(135deg, #f472b6, #22d3ee);
}
.lava-theme {
  background: linear-gradient(135deg, #f87171, #dc2626);
}
.ice-theme {
  background: linear-gradient(135deg, #67e8f9, #e0f2fe);
}
.emerald-theme {
  background: linear-gradient(135deg, #34d399, #14b8a6);
}
.mono-theme {
  background: linear-gradient(135deg, #e5e7eb, #52525b);
}

.background-crop-modal {
  width: min(760px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: #15151b;
  border: 1px solid #444;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.75);
}

.background-crop-preview-wrap {
  width: min(660px, 100%);
  aspect-ratio: 16 / 9;
  margin: 18px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background-color: #0f0f14;
  cursor: grab;
}

.background-crop-preview-wrap:active {
  cursor: grabbing;
}

#background-crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-edit-button-wrap {
  min-width: 0;
}

/* Profile background opacity is now controlled from Edit profile */
#profile-page.has-profile-background #rate-section {
  background-color: var(
    --profile-rate-panel-bg,
    rgba(18, 18, 22, 0.38)
  ) !important;
}

#profile-page.has-profile-background .profile-ranking-column,
#view-profile-page.has-profile-background .profile-ranking-column {
  background-color: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
}

/* Profile theme only changes profile pages, and default stays visually the same */
#profile-page.profile-custom-theme .profile-summary-face,
#view-profile-page.profile-custom-theme .profile-summary-face,
#profile-page.profile-custom-theme .profile-ranking-column,
#view-profile-page.profile-custom-theme .profile-ranking-column,
#profile-page.profile-custom-theme #rate-section,
#view-profile-page.profile-custom-theme .view-profile-header-card {
  border-color: var(--profile-theme-border) !important;
  box-shadow:
    0 0 26px var(--profile-theme-glow),
    0 0 25px rgba(0, 0, 0, 0.35) !important;
}

#profile-page.profile-custom-theme .stat-box strong,
#view-profile-page.profile-custom-theme .stat-box strong,
#profile-page.profile-custom-theme .profile-flip-hint,
#view-profile-page.profile-custom-theme .profile-flip-hint,
#profile-page.profile-custom-theme .profile-rank-section-header h2,
#view-profile-page.profile-custom-theme .profile-rank-section-header h2,
#profile-page.profile-custom-theme .taste-insight-line::before,
#view-profile-page.profile-custom-theme .taste-insight-line::before {
  color: var(--profile-theme-accent) !important;
}

#profile-page.profile-custom-theme .profile-rank-section-header,
#view-profile-page.profile-custom-theme .profile-rank-section-header,
#profile-page.profile-custom-theme .stat-box,
#view-profile-page.profile-custom-theme .stat-box {
  border-color: var(--profile-theme-border) !important;
}

#profile-page.profile-custom-theme .profile-theme-choice.active,
#view-profile-page.profile-custom-theme .profile-theme-choice.active {
  border-color: var(--profile-theme-accent) !important;
}

@media (max-width: 900px) {
  .edit-profile-grid,
  .profile-theme-grid {
    grid-template-columns: 1fr;
  }

  .edit-profile-modal {
    padding: 18px;
  }
}

/* Profile ranking columns: max 3 rows visible, each column scrolls independently */
#profile-page .profile-ranking-column,
#view-profile-page .profile-ranking-column {
  height: auto !important;
  max-height: calc(70px + (335px * 3) + (14px * 2) + 34px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#profile-page .profile-rank-grid,
#view-profile-page .profile-rank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
}

#profile-page .profile-rank-section-header,
#view-profile-page .profile-rank-section-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 35 !important;
}

@media (max-width: 900px) {
  #profile-page .profile-rank-grid,
  #view-profile-page .profile-rank-grid {
    grid-template-columns: 1fr !important;
  }

  #profile-page .profile-ranking-column,
  #view-profile-page .profile-ranking-column {
    max-height: calc(70px + (335px * 3) + (14px * 2) + 34px) !important;
  }
}

/* Profile themes v2: only change the dark surfaces, not text color or border accents */
#profile-page.profile-custom-theme .profile-summary-face,
#view-profile-page.profile-custom-theme .profile-summary-face,
#profile-page.profile-custom-theme .profile-rank-card-face,
#view-profile-page.profile-custom-theme .profile-rank-card-face {
  background: var(--profile-theme-surface, var(--wr-surface-2)) !important;
}

#profile-page.profile-custom-theme
  .profile-summary-card:hover
  .profile-summary-face,
#view-profile-page.profile-custom-theme
  .profile-summary-card:hover
  .profile-summary-face,
#profile-page.profile-custom-theme
  .profile-rank-tile:hover
  .profile-rank-card-face,
#view-profile-page.profile-custom-theme
  .profile-rank-tile:hover
  .profile-rank-card-face {
  background: var(
    --profile-theme-surface-hover,
    var(--wr-surface-3)
  ) !important;
}

#profile-page.profile-custom-theme #rate-section,
#profile-page.profile-custom-theme .profile-ranking-column,
#view-profile-page.profile-custom-theme .profile-ranking-column,
#view-profile-page.profile-custom-theme .view-profile-header-card {
  background-color: var(
    --profile-theme-panel,
    rgba(18, 18, 22, 0.92)
  ) !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35) !important;
}

#profile-page.has-profile-background.profile-custom-theme #rate-section {
  background-color: var(
    --profile-rate-panel-bg,
    rgba(18, 18, 22, 0.38)
  ) !important;
}

#profile-page.has-profile-background.profile-custom-theme
  .profile-ranking-column,
#view-profile-page.has-profile-background.profile-custom-theme
  .profile-ranking-column {
  background-color: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
}

#profile-page.profile-custom-theme .profile-rank-section-header,
#view-profile-page.profile-custom-theme .profile-rank-section-header {
  background: var(--profile-theme-panel-strong, #121216) !important;
}

#profile-page.profile-custom-theme .stat-box,
#view-profile-page.profile-custom-theme .stat-box {
  background-color: var(--profile-theme-stat, #1f1f25) !important;
}

#profile-page.profile-custom-theme #rate-section input,
#profile-page.profile-custom-theme #rate-section select,
#profile-page.profile-custom-theme #rate-section textarea,
#profile-page.profile-custom-theme #title-search,
#profile-page.profile-custom-theme .rating-form input {
  background-color: var(--profile-theme-input, #1f1f25) !important;
}

/* Reset old theme rules so text and border colors stay like the original site */
#profile-page.profile-custom-theme .profile-summary-face,
#view-profile-page.profile-custom-theme .profile-summary-face,
#profile-page.profile-custom-theme .profile-ranking-column,
#view-profile-page.profile-custom-theme .profile-ranking-column,
#profile-page.profile-custom-theme #rate-section,
#view-profile-page.profile-custom-theme .view-profile-header-card,
#profile-page.profile-custom-theme .profile-rank-section-header,
#view-profile-page.profile-custom-theme .profile-rank-section-header,
#profile-page.profile-custom-theme .stat-box,
#view-profile-page.profile-custom-theme .stat-box {
  border-color: var(--wr-border, #333) !important;
}

#profile-page.profile-custom-theme .stat-box strong,
#view-profile-page.profile-custom-theme .stat-box strong,
#profile-page.profile-custom-theme .profile-rank-section-header h2,
#view-profile-page.profile-custom-theme .profile-rank-section-header h2,
#profile-page.profile-custom-theme .taste-insight-line::before,
#view-profile-page.profile-custom-theme .taste-insight-line::before {
  color: #ffd700 !important;
}

#profile-page.profile-custom-theme .profile-flip-hint,
#view-profile-page.profile-custom-theme .profile-flip-hint {
  color: #8f8fa3 !important;
}

#profile-page.profile-custom-theme
  .profile-summary-card:hover
  .profile-flip-hint,
#view-profile-page.profile-custom-theme
  .profile-summary-card:hover
  .profile-flip-hint {
  color: #ffd700 !important;
}

#profile-page.profile-custom-theme
  .profile-rank-tile.rank-1
  .profile-rank-card-face,
#view-profile-page.profile-custom-theme
  .profile-rank-tile.rank-1
  .profile-rank-card-face {
  border-color: rgba(215, 184, 90, 0.62) !important;
}

#profile-page.profile-custom-theme
  .profile-rank-tile.rank-2
  .profile-rank-card-face,
#view-profile-page.profile-custom-theme
  .profile-rank-tile.rank-2
  .profile-rank-card-face {
  border-color: rgba(192, 192, 192, 0.65) !important;
}

#profile-page.profile-custom-theme
  .profile-rank-tile.rank-3
  .profile-rank-card-face,
#view-profile-page.profile-custom-theme
  .profile-rank-tile.rank-3
  .profile-rank-card-face {
  border-color: rgba(205, 127, 50, 0.72) !important;
}

/* Profile tweak: 2 rows, transparent headers/profile card, themed Taste Profile */

/* Your Movies / Your TV Shows: max 2 rows high, with internal scroll */
#profile-page .profile-ranking-column,
#view-profile-page .profile-ranking-column {
  height: auto !important;
  max-height: calc(70px + (335px * 2) + 14px + 34px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  #profile-page .profile-ranking-column,
  #view-profile-page .profile-ranking-column {
    max-height: calc(70px + (335px * 2) + 14px + 34px) !important;
  }
}

/* When a profile background exists, make the whole profile card transparent too */
#profile-page.has-profile-background .profile-summary-face,
#view-profile-page.has-profile-background .profile-summary-face {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Movies / Shows headers should be part of the transparent panel, not solid blocks */
#profile-page.has-profile-background .profile-rank-section-header,
#view-profile-page.has-profile-background .profile-rank-section-header {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Do not let theme rules make the header solid again when a background exists */
#profile-page.has-profile-background.profile-custom-theme
  .profile-rank-section-header,
#view-profile-page.has-profile-background.profile-custom-theme
  .profile-rank-section-header {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
}

/* Taste Profile should follow the selected profile color theme, but keep text/borders unchanged */
#profile-page.profile-custom-theme .profile-summary-back,
#view-profile-page.profile-custom-theme .profile-summary-back {
  background: var(--profile-theme-surface, var(--wr-surface-2)) !important;
}

#profile-page.profile-custom-theme.has-profile-background .profile-summary-back,
#view-profile-page.profile-custom-theme.has-profile-background
  .profile-summary-back {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
}

#profile-page.profile-custom-theme .profile-taste-top,
#view-profile-page.profile-custom-theme .profile-taste-top {
  background: var(
    --profile-theme-panel-strong,
    rgba(12, 12, 15, 0.98)
  ) !important;
}

#profile-page.profile-custom-theme.has-profile-background .profile-taste-top,
#view-profile-page.profile-custom-theme.has-profile-background
  .profile-taste-top {
  background: rgba(0, 0, 0, 0.18) !important;
}

#profile-page.profile-custom-theme .taste-box,
#view-profile-page.profile-custom-theme .taste-box,
#profile-page.profile-custom-theme .taste-preference,
#view-profile-page.profile-custom-theme .taste-preference {
  background: var(--profile-theme-surface, rgba(31, 31, 37, 0.78)) !important;
}

#profile-page.profile-custom-theme.has-profile-background .taste-box,
#view-profile-page.profile-custom-theme.has-profile-background .taste-box,
#profile-page.profile-custom-theme.has-profile-background .taste-preference,
#view-profile-page.profile-custom-theme.has-profile-background
  .taste-preference {
  background: rgba(0, 0, 0, 0.22) !important;
}

/* Profile ranking search + sort/theme polish */
#profile-page .profile-rank-section-header,
#view-profile-page .profile-rank-section-header {
  display: grid !important;
  grid-template-columns: auto minmax(110px, 0.72fr) minmax(115px, auto) auto !important;
  align-items: center !important;
  gap: 12px !important;
}

#profile-page .profile-rank-section-header h2,
#view-profile-page .profile-rank-section-header h2 {
  color: #f4f4f5 !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.profile-rank-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.profile-rank-tag {
  min-width: 115px;
  max-width: 150px;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1f1f25;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.profile-rank-tag:focus {
  border-color: rgba(124, 58, 237, 0.85);
}

.profile-rank-search::placeholder {
  color: #8f8fa3;
}

.profile-rank-search:focus {
  border-color: #555;
  background-color: #23232a;
}

#profile-page.profile-custom-theme .profile-rank-sort,
#view-profile-page.profile-custom-theme .profile-rank-sort,
#profile-page.profile-custom-theme .profile-rank-tag,
#view-profile-page.profile-custom-theme .profile-rank-tag,
#profile-page.profile-custom-theme .profile-rank-search,
#view-profile-page.profile-custom-theme .profile-rank-search {
  background-color: var(--profile-theme-input, #1f1f25) !important;
}

#profile-page.has-profile-background.profile-custom-theme .profile-rank-sort,
#view-profile-page.has-profile-background.profile-custom-theme
  .profile-rank-sort,
#profile-page.has-profile-background.profile-custom-theme .profile-rank-tag,
#view-profile-page.has-profile-background.profile-custom-theme
  .profile-rank-tag,
#profile-page.has-profile-background.profile-custom-theme .profile-rank-search,
#view-profile-page.has-profile-background.profile-custom-theme
  .profile-rank-search {
  background-color: var(--profile-theme-input, #1f1f25) !important;
}

/* Header is slightly taller now because of search, but still max 2 card rows */
#profile-page .profile-ranking-column,
#view-profile-page .profile-ranking-column {
  max-height: calc(76px + (335px * 2) + 14px + 34px) !important;
}

@media (max-width: 900px) {
  #profile-page .profile-rank-section-header,
  #view-profile-page .profile-rank-section-header {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  #profile-page .profile-rank-sort,
  #view-profile-page .profile-rank-sort,
  #profile-page .profile-rank-tag,
  #view-profile-page .profile-rank-tag,
  #profile-page .profile-rank-search,
  #view-profile-page .profile-rank-search {
    width: 100% !important;
  }

  #profile-page .profile-ranking-column,
  #view-profile-page .profile-ranking-column {
    max-height: calc(142px + (335px * 2) + 14px + 34px) !important;
  }
}

/* Profile header text + hover opacity fix */
/* Make Your Movies / Your TV Shows typography match Edit Your Ratings */
#profile-page .profile-rank-section-header h2,
#view-profile-page .profile-rank-section-header h2 {
  color: var(--wr-text, #f4f4f5) !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Do not let profile color themes turn these headings gold */
#profile-page.profile-custom-theme .profile-rank-section-header h2,
#view-profile-page.profile-custom-theme .profile-rank-section-header h2 {
  color: var(--wr-text, #f4f4f5) !important;
}

/* Stop the profile summary card from changing opacity/background on hover */
#profile-page.has-profile-background
  .profile-summary-card:hover
  .profile-summary-face,
#view-profile-page.has-profile-background
  .profile-summary-card:hover
  .profile-summary-face {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
  border-color: var(--wr-border, rgba(255, 255, 255, 0.09)) !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35) !important;
}

/* Same idea if no background image is selected: hover should not visually fade/change the profile card */
#profile-page:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face,
#view-profile-page:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face {
  background: var(--wr-surface-2, rgba(19, 19, 23, 0.96)) !important;
  border-color: var(--wr-border, rgba(255, 255, 255, 0.09)) !important;
  box-shadow: none !important;
}

/* Keep the hint hover color only; the card surface itself stays stable */
#profile-page .profile-summary-card:hover .profile-flip-hint,
#view-profile-page .profile-summary-card:hover .profile-flip-hint {
  color: #ffd700 !important;
}

/* Profile search suggestions + themed profile actions/modal */
#profile-page #rate-section {
  position: relative !important;
  z-index: 12000 !important;
}

#profile-page #profile-rankings-container {
  position: relative !important;
  z-index: 1 !important;
}

#profile-page #suggestions {
  z-index: 13000 !important;
  background-color: var(--profile-theme-input, #1a1a20) !important;
  border-color: var(--wr-border, #444) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55) !important;
}

#profile-page.profile-custom-theme #suggestions,
#profile-page.has-profile-background #suggestions {
  background-color: var(
    --profile-theme-input,
    rgba(15, 20, 26, 0.98)
  ) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

#profile-page #suggestions .suggestion-item {
  background-color: transparent !important;
  color: var(--wr-text, #f4f4f5) !important;
}

#profile-page #suggestions .suggestion-item:hover {
  background-color: var(
    --profile-theme-surface-hover,
    rgba(41, 41, 53, 0.95)
  ) !important;
}

#profile-page.profile-custom-theme #save-rating-button,
#profile-page.profile-custom-theme .edit-profile-button {
  background-color: var(--profile-theme-input, #1f1f25) !important;
  background-image: none !important;
}

#profile-page.profile-custom-theme #save-rating-button:hover,
#profile-page.profile-custom-theme .edit-profile-button:hover {
  background-color: var(--profile-theme-surface-hover, #292935) !important;
}

/* Connections popup instead of page */
.connections-modal {
  width: min(760px, 92vw);
  max-height: 82vh;
  overflow: hidden;
  border: 1px solid var(--wr-border, #333);
  border-radius: 18px;
  background: var(--profile-ranking-panel-bg, rgba(18, 18, 22, 0.88));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
  padding: 0;
  color: var(--wr-text, #f4f4f5);
}

.connections-modal.profile-custom-theme {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.88)
  ) !important;
}

.connections-modal.has-profile-background {
  background: var(
    --profile-ranking-panel-bg,
    rgba(18, 18, 22, 0.34)
  ) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.connections-modal-top {
  margin: 0 !important;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--wr-border, #333);
  background: rgba(0, 0, 0, 0.08);
}

.connections-modal-top h2 {
  margin: 0;
}

.connections-modal-top p {
  margin: 6px 0 0;
  color: var(--wr-text-muted, #aaa);
}

.connections-modal-list {
  max-height: calc(82vh - 86px);
  overflow-y: auto;
  padding: 18px;
}

.connections-modal-list .follow-card {
  background-color: var(
    --profile-theme-surface,
    rgba(28, 28, 34, 0.95)
  ) !important;
}

.connections-modal.has-profile-background .connections-modal-list .follow-card {
  background-color: rgba(10, 10, 13, 0.42) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.connections-modal-list .follow-card:last-child {
  margin-bottom: 0;
}

/* Make the rating editor collapse button follow the selected profile theme */
#profile-page.profile-custom-theme .rating-collapse-button {
  background-color: var(--profile-theme-input, #1f1f25) !important;
  background-image: none !important;
  border: 1px solid var(--wr-border, #333) !important;
  color: var(--wr-text, #f4f4f5) !important;
  opacity: 1 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#profile-page.profile-custom-theme .rating-collapse-button:hover {
  background-color: var(--profile-theme-surface-hover, #292935) !important;
  color: var(--wr-text, #ffffff) !important;
  opacity: 1 !important;
}

#profile-page.has-profile-background.profile-custom-theme
  .rating-collapse-button {
  background-color: var(
    --profile-theme-input,
    rgba(15, 20, 26, 0.96)
  ) !important;
}

/* Header navigation inspired by a persistent top navbar */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important;

  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) minmax(190px, 280px) !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 112px !important;
  padding: 12px 30px 12px !important;
  box-sizing: border-box !important;

  background: linear-gradient(
    180deg,
    rgba(8, 8, 11, 0.98),
    rgba(8, 8, 11, 0.92)
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.36) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.header-center {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  text-align: center !important;
  pointer-events: auto !important;
}

.header-center h1 {
  margin: 0 !important;
  font-size: clamp(30px, 2.3vw, 42px) !important;
  line-height: 1 !important;
  letter-spacing: 1px !important;
}

.header-center .tagline {
  margin: 5px 0 10px !important;
  color: rgba(235, 235, 245, 0.62) !important;
  font-size: 15px !important;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 6px 3px;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.header-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-nav-link.active {
  color: #f5d85e;
  background-color: rgba(245, 216, 94, 0.1);
  border-color: rgba(245, 216, 94, 0.32);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

#menu-button {
  position: relative !important;
  z-index: 5 !important;
  align-self: center !important;
  justify-self: start !important;
}

#account-area {
  position: relative !important;
  z-index: 5 !important;
  justify-self: end !important;
  min-width: 0 !important;
}

/* Header is fixed, so page content must start below it */
main {
  padding: 132px 35px 25px !important;
}

/* Sidebar must stay above the fixed header when opened */
.sidebar-overlay {
  z-index: 20000 !important;
}

.sidebar {
  z-index: 20001 !important;
}

@media (max-width: 1150px) {
  header {
    grid-template-columns: 58px minmax(0, 1fr) minmax(150px, 220px) !important;
    gap: 12px !important;
    padding: 12px 18px !important;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .header-nav-link {
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  header {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    min-height: 118px !important;
  }

  .header-center h1 {
    font-size: 28px !important;
  }

  .header-center .tagline {
    display: none;
  }

  .header-nav {
    margin-top: 8px;
  }

  main {
    padding: 128px 14px 20px !important;
  }
}

/* Header nav only: original hamburger/sidebar menu removed */
.header-left-space {
  min-width: 0 !important;
  height: 1px !important;
}

header {
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr) minmax(
      190px,
      280px
    ) !important;
}

#menu-button,
.sidebar,
.sidebar-overlay {
  display: none !important;
}

@media (max-width: 1150px) {
  header {
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) minmax(
        150px,
        220px
      ) !important;
  }
}

@media (max-width: 760px) {
  header {
    grid-template-columns: 1fr auto !important;
  }

  .header-left-space {
    display: none !important;
  }
}
.site-logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: auto;
}
/* Fix spacing under fixed header for profile pages without background image */
#profile-page:not(.has-profile-background),
#view-profile-page:not(.has-profile-background) {
  padding-top: 22px !important;
}

/* Modal layering + profile theme fixes */
.modal-background,
#modal-background,
#avatar-crop-modal,
#edit-profile-modal,
#background-crop-modal,
#title-detail-modal,
#connections-modal {
  z-index: 50000 !important;
}

#profile-page #rate-section {
  z-index: 1000 !important;
}

#profile-page #suggestions {
  z-index: 3000 !important;
}

/* Profile card should not visually change when hovering, even without background */
#profile-page:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face,
#view-profile-page:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face {
  background: var(
    --profile-theme-surface,
    var(--wr-surface-2, rgba(18, 18, 22, 0.96))
  ) !important;
  border-color: var(
    --profile-theme-border,
    var(--wr-border, rgba(255, 255, 255, 0.09))
  ) !important;
}

#profile-page.profile-custom-theme:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face,
#view-profile-page.profile-custom-theme:not(.has-profile-background)
  .profile-summary-card:hover
  .profile-summary-face {
  background: var(--profile-theme-surface, var(--wr-surface-2)) !important;
  border-color: var(--profile-theme-border, var(--wr-border)) !important;
  box-shadow:
    0 0 26px var(--profile-theme-glow),
    0 0 25px rgba(0, 0, 0, 0.35) !important;
}

/* Edit profile modal follows the selected profile theme */
.edit-profile-modal.profile-themed-modal {
  background-color: var(--profile-theme-panel-strong, #15151b) !important;
  border-color: var(--profile-theme-border, #444) !important;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.75),
    0 0 34px var(--profile-theme-glow, rgba(255, 215, 0, 0.08)) !important;
}

.edit-profile-modal.profile-themed-modal .edit-profile-section {
  background-color: var(
    --profile-theme-surface,
    rgba(24, 24, 30, 0.95)
  ) !important;
  border-color: var(--profile-theme-border, #333) !important;
}

.edit-profile-modal.profile-themed-modal .profile-theme-choice,
.edit-profile-modal.profile-themed-modal .small-button,
.edit-profile-modal.profile-themed-modal .avatar-remove-button,
.edit-profile-modal.profile-themed-modal .secondary-button {
  background-color: var(--profile-theme-input, #1f1f25) !important;
  background-image: none !important;
  border-color: var(--profile-theme-border, #444) !important;
}

.edit-profile-modal.profile-themed-modal .profile-theme-choice:hover,
.edit-profile-modal.profile-themed-modal .small-button:hover,
.edit-profile-modal.profile-themed-modal .avatar-remove-button:hover,
.edit-profile-modal.profile-themed-modal .secondary-button:hover {
  background-color: var(--profile-theme-surface-hover, #292935) !important;
}

.edit-profile-modal.profile-themed-modal .profile-theme-choice.active {
  border-color: var(--profile-theme-accent, #ffd700) !important;
  box-shadow: 0 0 0 1px var(--profile-theme-border, rgba(255, 215, 0, 0.3)) !important;
}

.edit-profile-modal.profile-themed-modal #profile-transparency-slider {
  accent-color: var(--profile-theme-accent, #ffd700) !important;
}

.edit-profile-modal.profile-themed-modal #profile-transparency-value,
.edit-profile-modal.profile-themed-modal .avatar-message.success,
.edit-profile-modal.profile-themed-modal .profile-background-message.success {
  color: var(--profile-theme-accent, #ffd700) !important;
}

/* Shared rating popup */
.rate-search-hint {
  color: #aaa;
  margin: 6px 0 10px;
  font-size: 13px;
}

#rating-modal {
  z-index: 10008;
}

.rating-modal-card {
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--rating-modal-bg, rgba(21, 21, 27, 0.94));
  border: 1px solid var(--profile-theme-border, #444);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.75),
    0 0 34px var(--profile-theme-glow, rgba(124, 58, 237, 0.14));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rating-modal-top {
  align-items: flex-start;
}

.rating-modal-top h2 {
  margin: 0;
}

.rating-modal-top p {
  color: #aaa;
  margin: 7px 0 0;
  line-height: 1.45;
}

.rating-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.rating-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ddd;
  font-size: 14px;
}

.rating-modal-form input,
.rating-modal-form textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--profile-theme-border, #444);
  background-color: var(
    --rating-modal-input-bg,
    var(--profile-theme-input, #1f1f25)
  );
  color: white;
  font-size: 15px;
}

.rating-modal-form textarea {
  min-height: 92px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.rating-notes-input {
  grid-column: 1 / -1;
}

.rating-notes-count {
  align-self: flex-end;
  color: #8f8fa3;
  font-size: 12px;
  font-weight: bold;
}

.rating-modal-form input:focus,
.rating-modal-form textarea:focus {
  outline: none;
  border-color: var(--profile-theme-accent, #ffd700);
  box-shadow: 0 0 0 2px var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.1));
}

.rating-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rating-modal-card.profile-themed-modal {
  border-color: var(--profile-theme-border, #444) !important;
  background-color: var(
    --rating-modal-bg,
    var(--profile-theme-panel-strong, #15151b)
  ) !important;
}

.rating-modal-card.profile-themed-modal .secondary-button,
.rating-modal-card.profile-themed-modal .small-button {
  border: 1px solid var(--profile-theme-border, #444) !important;
}

.rating-modal-card.profile-themed-modal .secondary-button {
  background-color: var(--profile-theme-input, #1f1f25) !important;
}

.rating-modal-card.profile-themed-modal .secondary-button:hover {
  background-color: var(--profile-theme-surface-hover, #292935) !important;
}

.rating-modal-card.profile-themed-modal #rating-modal-save-button {
  background: linear-gradient(
    90deg,
    var(--profile-theme-accent, #7c3aed),
    #2563eb
  ) !important;
}

@media (max-width: 650px) {
  .rating-modal-form {
    grid-template-columns: 1fr;
  }
}

/* Social actions on other users' profile rating cards */
.profile-social-actions {
  position: absolute;
  right: 18px;
  top: 52%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.profile-social-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 24px;
  line-height: 1;
  background-color: rgba(8, 8, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-social-button:hover {
  transform: translateY(-1px) scale(1.03);
}

.profile-like-button {
  font-size: 30px;
}

.profile-comment-button {
  font-size: 22px;
}

.profile-social-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.38);
  color: #e7e7ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-rank-tile:has(.profile-social-actions)
  .profile-rank-card-front
  .profile-rank-tile-main {
  padding-left: 72px !important;
  padding-right: 72px !important;
}

.profile-card-comments-panel {
  position: absolute !important;
  inset: 12px !important;
  left: 12px !important;
  top: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: auto !important;
  max-height: none !important;
  transform: none !important;
  z-index: 95 !important;
  background-color: rgba(13, 13, 18, 0.98) !important;
  border-radius: 18px !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45) !important;
}

.profile-card-comments-panel.open {
  display: flex !important;
  animation: profileCardCommentsSlideIn 0.18s ease !important;
}

.profile-card-comments-panel .comments-list {
  min-height: 0;
}

.profile-card-comments-panel .comment-form {
  flex-wrap: nowrap;
}

.profile-card-comments-panel .comment-form input {
  min-width: 0;
}

@keyframes profileCardCommentsSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#view-profile-page.profile-custom-theme .profile-social-button {
  border-color: var(--profile-theme-border, rgba(255, 215, 0, 0.28));
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.08));
}

#view-profile-page.profile-custom-theme .profile-comment-button:hover,
#view-profile-page.profile-custom-theme .profile-like-button:hover {
  border-color: var(--profile-theme-accent, #ffd700);
}

@media (max-width: 700px) {
  .profile-social-actions {
    right: 12px;
    gap: 3px;
  }

  .profile-social-button {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .profile-like-button {
    font-size: 26px;
  }

  .profile-rank-tile:has(.profile-social-actions)
    .profile-rank-card-front
    .profile-rank-tile-main {
    padding-left: 52px !important;
    padding-right: 52px !important;
  }
}

/* v6: smaller profile social icons, own-profile read-only stats, and profile-themed comments */
.profile-social-button {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.profile-like-button {
  font-size: 25px;
}

.profile-comment-button {
  font-size: 18px;
}

.profile-social-count {
  min-width: 18px;
  padding: 1px 6px;
  font-size: 10px;
}

.profile-social-actions-own {
  gap: 2px;
}

.profile-social-static,
.profile-social-button-own {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  background-color: rgba(8, 8, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #d6d6df;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.profile-social-static {
  cursor: default;
  pointer-events: none;
}

.profile-social-button-own {
  cursor: pointer;
  font-size: 14px;
}

.profile-social-button-own:hover {
  transform: none;
}

.profile-social-count-own {
  min-width: 14px;
  padding: 0 5px;
  font-size: 9px;
  background-color: rgba(0, 0, 0, 0.26);
}

.profile-card-comments-panel {
  inset: auto 18px 18px 18px !important;
  top: 64px !important;
  width: auto !important;
  max-height: none !important;
  transform: none !important;
  z-index: 95 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  gap: 10px !important;
}

.profile-card-comments-panel.open {
  display: flex !important;
  animation: profileCardCommentsSheetUp 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.profile-card-comments-panel .feed-comments-title {
  position: relative;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: #1f1f25;
  color: #ffd700;
  padding: 8px 38px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.profile-card-comments-panel .feed-close-comments-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.profile-card-comments-panel .comments-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: #141419;
}

.profile-card-comments-panel .comment-item {
  background-color: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.profile-card-comments-panel .comment-form {
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: #141419;
}

.profile-card-comments-panel .comment-form input {
  min-width: 0;
  background-color: #1f1f25;
}

.profile-card-comments-readonly .comments-list {
  margin-bottom: 0;
}

#profile-page.profile-custom-theme .profile-social-button,
#view-profile-page.profile-custom-theme .profile-social-button,
#profile-page.profile-custom-theme .profile-social-static,
#view-profile-page.profile-custom-theme .profile-social-static {
  border-color: var(--profile-theme-border, rgba(255, 215, 0, 0.28));
  box-shadow: 0 0 14px var(--profile-theme-glow, rgba(255, 215, 0, 0.08));
}

#profile-page.profile-custom-theme .profile-comment-button:hover,
#view-profile-page.profile-custom-theme .profile-comment-button:hover,
#view-profile-page.profile-custom-theme .profile-like-button:hover {
  border-color: var(--profile-theme-accent, #ffd700);
}

#profile-page.profile-custom-theme
  .profile-card-comments-panel
  .feed-comments-title,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .feed-comments-title {
  background-color: var(--profile-theme-input, #1f1f25);
  border-color: var(--profile-theme-border, #444);
  color: var(--profile-theme-accent, #ffd700);
}

#profile-page.profile-custom-theme .profile-card-comments-panel .comments-list,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comments-list,
#profile-page.profile-custom-theme .profile-card-comments-panel .comment-form,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-form {
  background-color: var(--profile-theme-input, #141419);
  border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.12));
}

#profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-form
  input,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-form
  input {
  background-color: var(--profile-theme-stat, #1f1f25);
  border-color: var(--profile-theme-border, #444);
}

#profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-form
  button,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-form
  button {
  background: linear-gradient(
    90deg,
    var(--profile-theme-accent, #7c3aed),
    #2563eb
  );
}

#profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-username,
#view-profile-page.profile-custom-theme
  .profile-card-comments-panel
  .comment-username {
  color: var(--profile-theme-accent, #ffd700);
}

@keyframes profileCardCommentsSheetUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    clip-path: inset(100% 0 0 0 round 14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0 round 14px);
  }
}

@media (max-width: 700px) {
  .profile-social-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .profile-like-button {
    font-size: 22px;
  }

  .profile-social-static,
  .profile-social-button-own {
    width: 27px;
    height: 27px;
    font-size: 13px;
  }

  .profile-card-comments-panel {
    top: 58px !important;
    inset: auto 12px 14px 12px !important;
  }
}

/* v8: Profile Movies/TV Shows panels have fixed headers and only the card area scrolls */
#profile-page .profile-ranking-column,
#view-profile-page .profile-ranking-column {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: calc(76px + (335px * 2) + 14px + 34px) !important;
  overflow: hidden !important;
  overscroll-behavior: auto !important;
}

#profile-page .profile-rank-section-header,
#view-profile-page .profile-rank-section-header {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
  z-index: 35 !important;
}

#movie-rankings,
#show-rankings,
#view-profile-movies,
#view-profile-shows {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  padding-right: 6px !important;
  margin-right: -6px !important;
}

#movie-rankings .profile-rank-grid,
#show-rankings .profile-rank-grid,
#view-profile-movies .profile-rank-grid,
#view-profile-shows .profile-rank-grid {
  padding-top: 0 !important;
  padding-bottom: 18px !important;
}

@media (max-width: 900px) {
  #profile-page .profile-ranking-column,
  #view-profile-page .profile-ranking-column {
    max-height: calc(142px + (335px * 2) + 14px + 34px) !important;
  }
}

/* v10: lighter logo-inspired default refresh, based on v8.
   Less purple than v9, keeps profile background opacity/theme rules intact. */
:root {
  --wr-bg: #090910;
  --wr-surface-1: rgba(16, 15, 22, 0.96);
  --wr-surface-2: rgba(20, 18, 28, 0.96);
  --wr-surface-3: rgba(27, 24, 37, 0.97);
  --wr-border: rgba(255, 255, 255, 0.1);
  --wr-border-strong: rgba(255, 211, 77, 0.3);
  --wr-text: #f7f3e8;
  --wr-text-muted: #ada7b8;
  --wr-muted: #ada7b8;
  --wr-muted-2: #7f778e;
  --wr-gold: #ffd34d;
  --wr-gold-soft: rgba(255, 211, 77, 0.16);
  --wr-purple-soft: rgba(111, 66, 193, 0.12);
  --wr-danger: #ef4444;
  --wr-success: #86efac;
}

* {
  scrollbar-color: rgba(255, 211, 77, 0.42) rgba(255, 255, 255, 0.035);
}

body {
  background:
    radial-gradient(
      circle at 14% -8%,
      rgba(255, 211, 77, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 0%,
      rgba(111, 66, 193, 0.16),
      transparent 30%
    ),
    linear-gradient(180deg, #11101a 0%, #090910 48%, #050507 100%) !important;
  color: var(--wr-text) !important;
}

header {
  background: linear-gradient(
    180deg,
    rgba(14, 13, 21, 0.96),
    rgba(9, 9, 14, 0.94)
  ) !important;
  border-bottom: 1px solid rgba(255, 211, 77, 0.13) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28) !important;
}

.site-logo {
  border-radius: 15px !important;
  box-shadow:
    0 0 0 1px rgba(255, 211, 77, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.22) !important;
}

.site-logo-title h1,
h1 {
  color: #fff6d0 !important;
  text-shadow: 0 0 18px rgba(255, 211, 77, 0.12) !important;
}

.header-nav-link {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.025) !important;
  color: rgba(247, 243, 232, 0.76) !important;
}

.header-nav-link:hover {
  background-color: rgba(255, 211, 77, 0.08) !important;
  border-color: rgba(255, 211, 77, 0.22) !important;
  color: #fff8dc !important;
}

.header-nav-link.active,
.sidebar-link.active,
.auth-tab.active {
  background: linear-gradient(
    135deg,
    #fff0a3 0%,
    #ffd34d 54%,
    #f1a91f 100%
  ) !important;
  border-color: rgba(255, 211, 77, 0.55) !important;
  color: #251500 !important;
  box-shadow:
    0 8px 20px rgba(255, 211, 77, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.top-button,
.small-button,
.auth-submit-button,
#save-rating-button,
#discover-save-rating-button,
.follow-button,
.comment-form button {
  background: linear-gradient(
    135deg,
    #fff0a3 0%,
    #ffd34d 52%,
    #eda51b 100%
  ) !important;
  border: 1px solid rgba(255, 211, 77, 0.55) !important;
  color: #251500 !important;
  box-shadow:
    0 10px 22px rgba(255, 211, 77, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.top-button:hover,
.small-button:hover,
.auth-submit-button:hover,
#save-rating-button:hover,
#discover-save-rating-button:hover,
.follow-button:hover,
.comment-form button:hover {
  background: linear-gradient(
    135deg,
    #fff5bd 0%,
    #ffdc60 52%,
    #f0ad24 100%
  ) !important;
  border-color: rgba(255, 225, 111, 0.72) !important;
  color: #1d1000 !important;
  transform: translateY(-1px);
}

.secondary-button,
.logout-button,
.menu-button,
.avatar-remove-button,
.discover-title-button,
.review-user-button,
.feed-review-profile-button,
.comment-button,
.like-button,
.profile-rank-sort,
.profile-rank-tag,
.discover-filter-select,
#title-search,
#user-search,
#discover-title-search,
.rating-form input,
.discover-rating-form input,
.auth-form input,
.comment-form input {
  background-color: rgba(15, 14, 21, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  color: var(--wr-text) !important;
}

.secondary-button:hover,
.logout-button:hover,
.menu-button:hover,
.avatar-remove-button:hover,
.discover-title-button:hover,
.review-user-button:hover,
.feed-review-profile-button:hover,
.comment-button:hover,
.like-button:hover {
  background-color: rgba(28, 25, 38, 0.98) !important;
  border-color: rgba(255, 211, 77, 0.26) !important;
  color: #fff8dc !important;
}

.page-title,
.rate-section,
.panel,
.ranking-column,
.discover-search-panel,
.discover-trending-panel,
.login-modal,
.avatar-crop-modal,
.feed-comments-panel,
.stat-box,
.taste-box {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
}

.rank-card,
.follow-card,
.discover-title-card,
.global-rank-face,
.feed-review-face {
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 211, 77, 0.035),
      transparent 28%
    ),
    var(--wr-surface-2) !important;
}

.rank-card:hover,
.follow-card:hover,
.discover-title-card:hover,
.global-rank-card:hover .global-rank-face,
.feed-review-face:hover {
  border-color: rgba(255, 211, 77, 0.28) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25) !important;
}

.title-tag-chip {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #d2ccd9 !important;
}

.title-tag-chip.franchise-chip {
  background: rgba(255, 211, 77, 0.075) !important;
  border-color: rgba(255, 211, 77, 0.28) !important;
  color: #ffe28a !important;
}

.global-rank-badge,
.global-rank-score,
.average-score,
.rank-number,
.profile-rank-tile-rank,
.profile-rank-tile-score,
.discover-title-rank,
.discover-title-score,
.feed-review-score-main,
.comment-username,
.stat-box strong {
  color: var(--wr-gold) !important;
  text-shadow: 0 0 14px rgba(255, 211, 77, 0.1) !important;
}

/* v11 cleanup and People discovery */
#feed-page #feed-content.feed-column {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#feed-page #feed-content.feed-column h2 {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 0 8px 0 !important;
}

#feed-page #feed-list {
  padding-top: 22px !important;
}

#feed-page #feed-content .feed-review-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.feed-review-profile-link {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.feed-review-profile-link .avatar,
.feed-review-profile-link .feed-review-username {
  transition:
    transform 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.feed-review-profile-link:hover .avatar {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 77, 0.42);
}

.feed-review-profile-link:hover .feed-review-username {
  color: var(--wr-gold);
}

.watchlist-grid {
  align-items: stretch !important;
}

.watchlist-card {
  height: 320px !important;
  min-height: 320px !important;
  overflow: hidden;
}

.watchlist-card-main {
  flex: 1;
  overflow: hidden;
}

.watchlist-card h3 {
  max-width: 100% !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watchlist-card .title-tags {
  max-height: 56px;
  overflow: hidden;
}

.watchlist-card-bottom {
  min-height: 82px;
}

.people-discovery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.people-discovery-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.people-discovery-group h3 {
  margin: 0 0 10px;
  color: var(--wr-gold);
  font-size: 17px;
}

.people-discovery-list {
  display: grid;
  gap: 10px;
}

.people-discovery-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.people-discovery-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 77, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.people-discovery-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.people-discovery-text {
  min-width: 0;
}

.people-discovery-name {
  color: #fff4c7;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-discovery-meta {
  margin-top: 2px;
  color: #aaa3b8;
  font-size: 13px;
}

.people-discovery-follow {
  padding: 8px 12px !important;
  flex-shrink: 0;
}

.people-discovery-empty {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 700px) {
  .watchlist-card {
    height: 300px !important;
    min-height: 300px !important;
  }

  .people-discovery-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v12 People page layout + stable page scrollbar */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

#following-content.following-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.following-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.following-top-grid .panel {
  margin-bottom: 0 !important;
  min-height: 170px;
}

.people-search-panel .search-area {
  max-width: 100%;
}

.people-discovery-dashboard {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px !important;
  margin-top: 0 !important;
}

.people-discovery-dashboard .people-discovery-group {
  border-top: none !important;
  padding: 18px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(18, 18, 24, 0.82);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  min-height: 230px;
}

.people-discovery-dashboard .people-discovery-group h3 {
  margin-bottom: 14px !important;
}

.people-discovery-dashboard .people-discovery-list {
  gap: 12px !important;
}

/* Keep Following Feed title clear of the fixed header */
#feed-page {
  padding-top: 30px !important;
}

#feed-page #feed-content.feed-column h2 {
  position: relative;
  z-index: 2;
}

@media (max-width: 1100px) {
  .following-top-grid,
  .people-discovery-dashboard {
    grid-template-columns: 1fr;
  }

  .following-top-grid .panel,
  .people-discovery-dashboard .people-discovery-group {
    min-height: auto;
  }
}

/* v13 spacing + sticky Following Feed title */
main > .page.active:not(#profile-page):not(#view-profile-page):not(#feed-page) {
  padding-top: 32px;
}

/* Keep the feed title visible while the feed itself scrolls */
#feed-page {
  padding-top: 0 !important;
}

#feed-content.feed-column {
  position: relative !important;
  padding: 0 !important;
  overflow-y: auto !important;
  scroll-padding-top: 96px !important;
}

#feed-content.feed-column > h2 {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  margin: 0 !important;
  padding: 18px 22px 16px !important;
  border-radius: 14px 14px 0 0 !important;
  border-bottom: 1px solid rgba(255, 211, 77, 0.18) !important;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 15, 0.98),
    rgba(11, 11, 15, 0.88)
  ) !important;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#feed-list {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  main
    > .page.active:not(#profile-page):not(#view-profile-page):not(#feed-page) {
    padding-top: 22px;
  }

  #feed-content.feed-column > h2 {
    padding: 15px 16px 13px !important;
  }
}

/* v14 Home page + cleanup */
.site-logo-title {
  cursor: pointer;
  border-radius: 18px;
  padding: 3px 8px;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    background-color 0.16s ease;
}

.site-logo-title:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 211, 77, 0.045);
  filter: brightness(1.04);
}

.site-logo-title:focus-visible {
  outline: 2px solid rgba(255, 211, 77, 0.45);
  outline-offset: 4px;
}

#home-page {
  max-width: 1280px;
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
}

.home-hero-copy,
.home-spotlight-card,
.home-profile-preview-card,
.home-feature-card,
.home-preview-card {
  border: 1px solid rgba(255, 211, 77, 0.17);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 211, 77, 0.08),
      transparent 34%
    ),
    rgba(17, 16, 24, 0.88);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.home-hero-copy {
  padding: 42px;
}

.home-kicker {
  margin: 0 0 12px;
  color: var(--wr-gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.home-hero-copy h2 {
  margin: 0;
  color: #fff4c7;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.home-hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: #c8c0d1;
  font-size: 18px;
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-primary-button {
  padding-inline: 20px !important;
}

.home-spotlight-card,
.home-profile-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px;
  isolation: isolate;
}

.home-spotlight-glow,
.home-profile-preview-glow {
  position: absolute;
  inset: -80px -40px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 211, 77, 0.22),
    transparent 68%
  );
  z-index: -1;
}

.home-spotlight-logo-wrap {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 77, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  margin-bottom: 18px;
}

.home-spotlight-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-spotlight-score {
  color: var(--wr-gold);
  font-size: 66px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.home-spotlight-title {
  margin-top: 10px;
  color: #fff4c7;
  font-weight: 900;
  font-size: 20px;
}

.home-spotlight-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.home-spotlight-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #e9e2ef;
  font-size: 12px;
  font-weight: 800;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.home-feature-card {
  padding: 22px;
}

.home-feature-card h3,
.home-preview-card h3 {
  margin: 0 0 8px;
  color: var(--wr-gold);
}

.home-feature-card p {
  margin: 0;
  color: #beb6ca;
  line-height: 1.45;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-preview-card {
  padding: 18px;
  min-height: 290px;
}

.home-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-link-button {
  border: 1px solid rgba(255, 211, 77, 0.22);
  border-radius: 999px;
  background: rgba(255, 211, 77, 0.08);
  color: #ffe68a;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
}

.home-link-button:hover {
  background: rgba(255, 211, 77, 0.14);
}

.home-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-mini-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--wr-text);
  padding: 10px;
  cursor: pointer;
}

.home-mini-row:hover {
  border-color: rgba(255, 211, 77, 0.22);
  background: rgba(255, 211, 77, 0.055);
}

.home-mini-rank {
  width: 34px;
  color: var(--wr-gold);
  font-weight: 950;
}

.home-mini-main {
  flex: 1;
  min-width: 0;
}

.home-mini-title,
.home-mini-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mini-title {
  color: #fff4c7;
  font-weight: 900;
}

.home-mini-meta {
  margin-top: 2px;
  color: #aaa3b8;
  font-size: 12px;
}

.home-mini-score {
  color: var(--wr-gold);
  font-weight: 950;
  font-size: 18px;
}

.home-empty-message {
  margin: 4px 0 0;
}

/* Remove Watchlist intro card and keep the main watchlist panel clean */
#watchlist-page > .page-title {
  display: none !important;
}

/* Move Following Feed further down from the fixed header while keeping its sticky title */
#feed-page {
  padding-top: 42px !important;
}

@media (max-width: 1000px) {
  .home-hero,
  .home-feature-grid,
  .home-preview-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  #feed-page {
    padding-top: 28px !important;
  }

  .home-hero-copy {
    padding: 22px;
  }

  .home-spotlight-card,
  .home-profile-preview-card {
    min-height: 300px;
  }
}

/* v15 Home refinements */
#feed-page {
  padding-top: 70px !important;
}

#feed-content.feed-column > h2 {
  padding-left: clamp(38px, 3.6vw, 76px) !important;
}

.home-hero-copy .home-feature-grid-inside {
  margin-top: 30px;
  margin-bottom: 0;
  gap: 14px;
}

.home-hero-copy .home-feature-card {
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 211, 77, 0.075),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.032);
}

.home-hero-copy .home-feature-card h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.home-hero-copy .home-feature-card p {
  font-size: 14px;
}

.home-spotlight-kicker {
  margin: 0 0 14px;
  color: var(--wr-gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-spotlight-card .home-spotlight-title {
  margin-top: 4px;
  margin-bottom: 8px;
}

.home-sample-breakdown {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 18px;
}

.home-sample-breakdown div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.home-sample-breakdown span {
  color: #cfc7dd;
  font-weight: 800;
}

.home-sample-breakdown strong {
  color: #fff4c7;
  font-weight: 950;
}

.home-popular-row .home-mini-score {
  min-width: 34px;
  text-align: right;
}

@media (max-width: 1000px) {
  .home-hero-copy .home-feature-grid-inside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #feed-page {
    padding-top: 48px !important;
  }

  #feed-content.feed-column > h2 {
    padding-left: 22px !important;
  }
}

/* v16 Home profile preview + popular score fix */
.home-profile-preview-card {
  gap: 12px;
}

.home-profile-preview-loading {
  color: #c8c0d1;
  font-weight: 800;
}

.home-profile-preview-avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 77, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  margin-bottom: 10px;
}

.home-profile-preview-card h3 {
  margin: 0;
  color: #fff4c7;
  font-size: 24px;
  line-height: 1.1;
}

.home-profile-preview-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  width: min(100%, 330px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.home-profile-preview-user:hover {
  border-color: rgba(255, 211, 77, 0.28);
  background: rgba(255, 211, 77, 0.055);
}

.home-profile-preview-user .avatar-large {
  width: 58px;
  height: 58px;
  font-size: 24px;
}

.home-profile-preview-user strong,
.home-profile-preview-user span {
  display: block;
  text-align: left;
}

.home-profile-preview-user strong {
  color: #fff4c7;
  font-size: 18px;
}

.home-profile-preview-user span {
  color: #aaa3b8;
  font-size: 13px;
  margin-top: 3px;
}

.home-profile-fact-label {
  margin-top: 10px;
  color: var(--wr-gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-profile-fact-value {
  color: var(--wr-gold);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-profile-fact-detail {
  width: min(100%, 360px);
  margin: 0;
  color: #c8c0d1;
  line-height: 1.45;
  font-size: 15px;
}

.home-profile-link-button {
  margin-top: 4px;
}

.home-popular-row .home-mini-score {
  min-width: 54px;
}

/* v17 Categories page */
#categories-page {
  max-width: 1500px;
  margin: 0 auto;
}

.categories-title-card {
  margin-bottom: 22px;
}

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

.category-rank-panel {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 211, 77, 0.07),
      transparent 34%
    ),
    rgba(17, 16, 24, 0.92);
  border: 1px solid rgba(255, 211, 77, 0.16);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26);
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

.category-rank-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.category-rank-panel h2 {
  margin: 0;
  color: #fff4c7;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.category-rank-panel p {
  margin: 6px 0 0;
  color: #aaa3b8;
}

.category-rank-controls {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 10px;
  margin-bottom: 14px;
}

.category-rank-select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: #12121a;
  color: #f8f4ff;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.category-rank-select:focus {
  border-color: rgba(255, 211, 77, 0.48);
}

.category-rank-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding-right: 4px;
}

.category-rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.category-rank-row:hover,
.category-rank-row:focus-visible {
  border-color: rgba(255, 211, 77, 0.28);
  background: rgba(255, 211, 77, 0.055);
  transform: translateY(-1px);
  outline: none;
}

.category-rank-number {
  color: var(--wr-gold);
  font-weight: 950;
  font-size: 16px;
}

.category-rank-main {
  min-width: 0;
}

.category-rank-title,
.category-rank-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-rank-title {
  color: #fff4c7;
  font-weight: 900;
  font-size: 15px;
}

.category-rank-meta {
  color: #aaa3b8;
  font-size: 12px;
  margin-top: 3px;
}

.category-rank-tags {
  margin-top: 7px !important;
}

.category-rank-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #aaa3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-rank-score-wrap strong {
  color: var(--wr-gold);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-rank-empty {
  margin: 12px 0 0;
}

@media (max-width: 1180px) {
  .category-rankings-grid {
    grid-template-columns: 1fr;
  }

  .category-rank-panel {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .category-rank-controls {
    grid-template-columns: 1fr;
  }

  .category-rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .category-rank-score-wrap {
    grid-column: 2;
    align-items: flex-start;
    margin-top: 4px;
  }
}

/* v18 refinements */
/* Move Following Feed title a bit further right inside the sticky title bar. */
#feed-page #feed-content.feed-column > h2 {
  padding-left: clamp(58px, 5vw, 112px) !important;
}

/* Categories layout: Story / Characters / Acting, then Visuals / Rewatchability / Music. */
#categories-page .category-rankings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

#categories-page .category-rank-panel {
  min-height: 650px;
}

@media (max-width: 1320px) {
  #categories-page .category-rankings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  #categories-page .category-rankings-grid {
    grid-template-columns: 1fr !important;
  }

  #feed-page #feed-content.feed-column > h2 {
    padding-left: 24px !important;
  }
}

/* v19 Categories: remove intro card and make each panel exactly three rows tall with list-only scrolling */
#categories-page {
  padding-top: 0 !important;
}

#categories-page .categories-title-card {
  display: none !important;
}

#categories-page .category-rankings-grid {
  margin-top: 0 !important;
}

#categories-page .category-rank-panel {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

#categories-page .category-rank-panel-top,
#categories-page .category-rank-controls {
  flex: 0 0 auto !important;
}

#categories-page .category-rank-list {
  flex: 0 0 auto !important;
  max-height: calc((72px * 3) + (9px * 2)) !important;
  min-height: calc((72px * 3) + (9px * 2)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  padding-right: 6px !important;
  margin-right: -6px !important;
}

#categories-page .category-rank-row {
  min-height: 72px !important;
}

@media (max-width: 700px) {
  #categories-page .category-rank-list {
    max-height: calc((92px * 3) + (9px * 2)) !important;
    min-height: calc((92px * 3) + (9px * 2)) !important;
  }
}

/* v20 refinements */
/* Categories need a little more room under the fixed header. */
#categories-page {
  padding-top: 26px !important;
}

#categories-page .category-rankings-grid {
  margin-top: 0 !important;
}

/* Category panels: list area is a little over three rows tall. */
#categories-page .category-rank-list {
  max-height: 302px !important;
  min-height: 302px !important;
}

/* Top Movies / Top TV Shows: compact ranking-list layout like Categories. */
#top-movies-page,
#top-shows-page {
  padding-top: 24px !important;
}

#top-movies-page .global-ranking-column,
#top-shows-page .global-ranking-column {
  width: min(1180px, calc(100vw - 70px));
  margin: 0 auto 34px;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 18px !important;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 211, 77, 0.06),
      transparent 34%
    ),
    rgba(17, 16, 24, 0.92) !important;
  border: 1px solid rgba(255, 211, 77, 0.16) !important;
  border-radius: 20px !important;
}

.global-ranking-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.global-ranking-top h2 {
  margin: 0;
  color: #fff4c7;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.global-ranking-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.85fr) minmax(
      190px,
      1fr
    );
  gap: 10px;
  flex: 1;
  max-width: 720px;
}

.global-ranking-search,
.global-ranking-select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: #12121a;
  color: #f8f4ff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
}

.global-ranking-search::placeholder {
  color: #8f879b;
}

.global-ranking-search:focus,
.global-ranking-select:focus {
  border-color: rgba(255, 211, 77, 0.48);
}

#global-movie-rankings,
#global-show-rankings,
.global-rank-compact-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  align-items: stretch !important;
  padding: 0 !important;
}

#top-movies-page .global-rank-card.global-rank-compact-card,
#top-shows-page .global-rank-card.global-rank-compact-card,
.global-rank-card.global-rank-compact-card {
  width: 100% !important;
  min-height: 78px !important;
  height: auto !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) minmax(82px, auto) !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: left !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  color: inherit;
  font: inherit;
  box-sizing: border-box !important;
  perspective: none !important;
}

#top-movies-page .global-rank-card.global-rank-compact-card:hover,
#top-shows-page .global-rank-card.global-rank-compact-card:hover,
.global-rank-card.global-rank-compact-card:hover {
  border-color: rgba(255, 211, 77, 0.28) !important;
  background: rgba(255, 211, 77, 0.055) !important;
  transform: translateY(-1px);
}

.global-rank-compact-number {
  color: var(--wr-gold) !important;
  font-size: 16px !important;
}

.global-rank-compact-title {
  color: #fff4c7 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

.global-rank-compact-meta {
  color: #aaa3b8 !important;
  font-size: 12px !important;
  margin-top: 3px !important;
}

.global-rank-compact-tags {
  margin-top: 7px !important;
}

.global-rank-compact-score strong {
  color: var(--wr-gold) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.global-rank-compact-score span {
  font-size: 11px !important;
}

#top-movies-page .global-rank-card.rank-1.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-1.global-rank-compact-card {
  border-color: rgba(255, 211, 77, 0.38) !important;
}

#top-movies-page .global-rank-card.rank-2.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-2.global-rank-compact-card,
#top-movies-page .global-rank-card.rank-3.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-3.global-rank-compact-card {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 980px) {
  #global-movie-rankings,
  #global-show-rankings,
  .global-rank-compact-list {
    grid-template-columns: 1fr;
  }

  .global-ranking-top {
    align-items: stretch;
    flex-direction: column;
  }

  .global-ranking-controls {
    max-width: none;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #top-movies-page .global-ranking-column,
  #top-shows-page .global-ranking-column {
    width: calc(100vw - 28px);
  }

  #top-movies-page .global-rank-card.global-rank-compact-card,
  #top-shows-page .global-rank-card.global-rank-compact-card,
  .global-rank-card.global-rank-compact-card {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  .global-rank-compact-score {
    grid-column: 2;
    align-items: flex-start !important;
    margin-top: 4px;
  }
}

/* v21 refinements */
/* Top Movies / TV Shows: search now has a selectable suggestions dropdown. */
.global-ranking-search-area {
  position: relative;
  min-width: 0;
}

.global-ranking-search-area .global-ranking-search {
  width: 100%;
}

.global-rank-suggestions {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  max-height: 330px;
  overflow-y: auto;
  z-index: 9600;
  border-radius: 14px;
  background-color: #15131d;
  border-color: rgba(255, 211, 77, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

/* Keep compact ranking cards from growing just because the +tag chip wraps. */
.global-rank-compact-main {
  min-width: 0 !important;
  overflow: hidden !important;
}

.global-rank-compact-tags {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.global-rank-compact-tags .title-tag-chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* v22 refinements */
/* Category rows: keep tag chips on one clean line so +chips never drop under the card. */
.category-rank-main {
  min-width: 0 !important;
  overflow: hidden !important;
}

.category-rank-tags {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.category-rank-tags .title-tag-chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Top Movies / TV Shows search clear button. */
.global-ranking-search-area {
  position: relative !important;
}

.global-ranking-search-area .global-ranking-search {
  padding-right: 38px !important;
}

.global-ranking-clear-button {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff4c7;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.global-ranking-clear-button:hover {
  background: rgba(255, 211, 77, 0.22);
  color: #ffffff;
}

/* Top Movies / TV Shows: three compact cards across on desktop. */
#top-movies-page .global-ranking-column,
#top-shows-page .global-ranking-column {
  width: min(1500px, calc(100vw - 70px)) !important;
}

#global-movie-rankings,
#global-show-rankings,
.global-rank-compact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#top-movies-page .global-rank-card.global-rank-compact-card,
#top-shows-page .global-rank-card.global-rank-compact-card,
.global-rank-card.global-rank-compact-card {
  grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto) !important;
  gap: 9px !important;
  min-height: 76px !important;
  padding: 9px 10px !important;
}

.global-rank-compact-title {
  font-size: 14px !important;
  line-height: 1.15 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.global-rank-compact-meta {
  font-size: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.global-rank-compact-tags {
  margin-top: 6px !important;
}

.global-rank-compact-score strong {
  font-size: 22px !important;
}

@media (max-width: 1280px) {
  #global-movie-rankings,
  #global-show-rankings,
  .global-rank-compact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #global-movie-rankings,
  #global-show-rankings,
  .global-rank-compact-list {
    grid-template-columns: 1fr !important;
  }
}

/* v23 refinements */
/* More breathing room above the profile card. */
#profile-header.profile-summary-card {
  margin-top: 16px !important;
}

/* Edit profile should look like a profile-theme button, not inherit dark/brown text from global yellow buttons. */
#profile-page .edit-profile-button,
#profile-page.profile-custom-theme .edit-profile-button {
  color: var(--wr-text, #ffffff) !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.18)) !important;
  background-color: var(
    --profile-theme-input,
    rgba(31, 31, 37, 0.92)
  ) !important;
  background-image: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

#profile-page .edit-profile-button:hover,
#profile-page.profile-custom-theme .edit-profile-button:hover {
  color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
  border-color: var(
    --profile-theme-border,
    rgba(255, 211, 77, 0.42)
  ) !important;
  background-color: var(
    --profile-theme-surface-hover,
    rgba(42, 42, 54, 0.95)
  ) !important;
}

/* Medal borders on compact Top Ranked pages. */
#top-movies-page .global-rank-card.rank-1.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-1.global-rank-compact-card {
  border-color: rgba(255, 211, 77, 0.48) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.09) !important;
}

#top-movies-page .global-rank-card.rank-2.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-2.global-rank-compact-card {
  border-color: rgba(214, 221, 231, 0.46) !important;
  box-shadow: inset 0 0 0 1px rgba(214, 221, 231, 0.07) !important;
}

#top-movies-page .global-rank-card.rank-3.global-rank-compact-card,
#top-shows-page .global-rank-card.rank-3.global-rank-compact-card {
  border-color: rgba(205, 127, 50, 0.48) !important;
  box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.07) !important;
}

/* Watchlist buttons on compact ranking cards: place them directly left of the rating/score. */
.category-rank-row,
.global-rank-card.global-rank-compact-card {
  position: relative !important;
}

.category-rank-row:has(.category-rank-watchlist-button) {
  grid-template-columns: 42px minmax(0, 1fr) 30px minmax(82px, auto) !important;
}

#top-movies-page
  .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
#top-shows-page
  .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
.global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button) {
  grid-template-columns: 34px minmax(0, 1fr) 30px minmax(64px, auto) !important;
}

.category-rank-watchlist-button,
.global-rank-watchlist-button {
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  z-index: 30 !important;
  justify-self: center !important;
  align-self: center !important;
}

.category-rank-watchlist-button svg,
.global-rank-watchlist-button svg {
  width: 16px !important;
  height: 16px !important;
}

/* Keep category tags to one clean line inside their row. */
.category-rank-tags {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  max-height: 22px !important;
  line-height: 1 !important;
}

.category-rank-tags .title-tag-chip {
  flex: 0 0 auto !important;
  max-width: 92px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* v26: remove the inherited sticky title background from the Movies/TV Shows top controls header. */
#top-movies-page .global-ranking-top h2,
#top-shows-page .global-ranking-top h2 {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding: 0 !important;
}

/* v27 cleanup: keep edit-profile action buttons readable inside themed profile modals. */
.edit-profile-modal.profile-themed-modal .edit-profile-actions .small-button {
  color: var(--wr-text, #ffffff) !important;
  background: var(--profile-theme-input, rgba(31, 31, 37, 0.92)) !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.18)) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22) !important;
}

.edit-profile-modal.profile-themed-modal
  .edit-profile-actions
  .small-button:hover {
  color: var(--profile-theme-accent, #ffd700) !important;
  background: var(
    --profile-theme-surface-hover,
    rgba(42, 42, 54, 0.95)
  ) !important;
  border-color: var(--profile-theme-accent, rgba(255, 215, 0, 0.55)) !important;
}

/* v28: profile search clear buttons + profile-themed comments sheet header */
.profile-rank-search-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.profile-rank-search-wrap .profile-rank-search {
  padding-right: 38px !important;
}

.profile-rank-clear-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--profile-theme-accent, var(--wr-gold, #ffd447));
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.profile-rank-clear-button:hover {
  background: var(--profile-theme-accent-soft, rgba(255, 211, 77, 0.18));
  color: #ffffff;
}

#profile-page .profile-card-comments-panel .feed-comments-title,
#view-profile-page .profile-card-comments-panel .feed-comments-title {
  background-color: var(--profile-theme-input, #1f1f25) !important;
  border-color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
  color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
  box-shadow:
    0 0 0 1px var(--profile-theme-glow, rgba(255, 211, 77, 0.08)),
    0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

#profile-page .profile-card-comments-panel .feed-close-comments-button,
#view-profile-page .profile-card-comments-panel .feed-close-comments-button {
  color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
}

#profile-page .profile-card-comments-panel .comment-form button,
#view-profile-page .profile-card-comments-panel .comment-form button {
  background: var(--profile-theme-input, #24242a) !important;
  border-color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
  color: var(--profile-theme-accent, var(--wr-gold, #ffd447)) !important;
}

#profile-page .profile-card-comments-panel .comment-form button:hover,
#view-profile-page .profile-card-comments-panel .comment-form button:hover {
  background: var(--profile-theme-accent-soft, rgba(255, 211, 77, 0.18)) !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  #profile-page .profile-rank-search-wrap,
  #view-profile-page .profile-rank-search-wrap {
    width: 100% !important;
  }
}

/* v31: give viewed profiles a little more breathing room below the fixed header */
#view-profile-page .view-profile-header-card.profile-summary-card {
  margin-top: 18px;
}

#view-profile-page.has-profile-background .view-profile-header-card.profile-summary-card {
  margin-top: 20px;
}

@media (max-width: 900px) {
  #view-profile-page .view-profile-header-card.profile-summary-card,
  #view-profile-page.has-profile-background .view-profile-header-card.profile-summary-card {
    margin-top: 12px;
  }
}

/* Taste comparison card on viewed profiles */
.taste-comparison-card {
  display: none;
  background: var(--profile-theme-panel, rgba(18, 18, 22, 0.92));
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.22));
  border-radius: 18px;
  padding: 20px;
  margin: 0 0 25px;
  box-shadow: 0 0 24px var(--profile-theme-glow, rgba(255, 215, 0, 0.10));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.taste-compare-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.taste-compare-kicker {
  margin: 0 0 4px;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.taste-compare-topline h2 {
  margin: 0;
  color: #fff7d6;
}

.taste-compare-subtitle {
  margin: 7px 0 0;
  color: #cfcfe3;
}

.taste-compare-score-badge {
  min-width: 118px;
  padding: 13px 15px;
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.28));
  border-radius: 16px;
  background: var(--profile-theme-input, rgba(15, 15, 20, 0.88));
  text-align: center;
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.12));
}

.taste-compare-score-badge span {
  display: block;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.taste-compare-score-badge small {
  display: block;
  margin-top: 5px;
  color: #bdbdd1;
  font-size: 11px;
  font-weight: 800;
}

.taste-compare-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.taste-compare-toggle-button {
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.28));
  border-radius: 999px;
  background: var(--profile-theme-accent, #ffd700);
  color: #16120a;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 16px;
  box-shadow: 0 0 16px var(--profile-theme-glow, rgba(255, 215, 0, 0.14));
}

.taste-compare-toggle-button:hover {
  filter: brightness(1.07);
}

.taste-compare-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin-top 0.22s ease;
}

.taste-comparison-card.open .taste-compare-details {
  max-height: 950px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 16px;
}

.taste-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.taste-compare-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: var(--profile-theme-input, rgba(13, 13, 18, 0.78));
  padding: 13px;
}

.taste-compare-panel h3 {
  margin: 0 0 10px;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 15px;
}

.taste-compare-title-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: white;
  padding: 10px 11px;
  margin-top: 8px;
  cursor: pointer;
  text-align: left;
}

.taste-compare-title-row:first-of-type {
  margin-top: 0;
}

.taste-compare-title-row:hover {
  border-color: var(--profile-theme-border, rgba(255, 215, 0, 0.34));
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.08));
}

.taste-compare-title-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.taste-compare-title-main strong {
  color: #fff7d6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taste-compare-title-main span,
.taste-compare-score-pair,
.taste-compare-empty {
  color: #bdbdd1;
  font-size: 12px;
}

.taste-compare-score-pair {
  flex-shrink: 0;
  font-weight: 800;
  white-space: nowrap;
}

.taste-compare-empty {
  margin: 0;
  font-style: italic;
}

#view-profile-page.has-profile-background .taste-comparison-card {
  background: rgba(var(--profile-theme-panel-rgb, 18, 18, 22), 0.72);
}

@media (max-width: 900px) {
  .taste-compare-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .taste-compare-actions {
    width: 100%;
    justify-content: stretch;
  }

  .taste-compare-score-badge,
  .taste-compare-toggle-button {
    width: 100%;
    box-sizing: border-box;
  }

  .taste-compare-grid {
    grid-template-columns: 1fr;
  }

  .taste-compare-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .taste-compare-score-pair {
    white-space: normal;
  }
}

/* TMDb search suggestion helpers */
.suggestion-overview {
  color: #9f9fb2;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

/* TMDb search result cards */
.tmdb-suggestion-item {
  padding: 10px !important;
}

.tmdb-suggestion-layout {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.tmdb-suggestion-poster-wrap {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.tmdb-suggestion-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmdb-suggestion-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wr-yellow, #ffd447);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(255, 212, 71, 0.12), rgba(139, 92, 246, 0.12));
}

.tmdb-suggestion-content {
  min-width: 0;
}

.tmdb-suggestion-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.tmdb-suggestion-header .suggestion-title {
  color: var(--wr-text, #f4f4f5);
  font-size: 15px;
  line-height: 1.2;
}

.tmdb-type-pill {
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: rgba(255, 215, 0, 0.08);
  color: var(--wr-yellow, #ffd447);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
}

.tmdb-suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.tmdb-suggestion-dot {
  color: rgba(255, 255, 255, 0.35);
}

.tmdb-suggestion-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
}

.suggestion-overview.muted {
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 640px) {
  .tmdb-suggestion-layout {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .tmdb-suggestion-poster-wrap {
    width: 46px;
  }

  .tmdb-suggestion-header {
    flex-direction: column;
    gap: 5px;
  }
}


/* v42: TMDb posters across title rows and cards */
.title-poster-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.title-poster-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.title-poster-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 244, 199, 0.92);
  font-weight: 950;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.title-poster-wrap.poster-missing .title-poster-placeholder {
  position: static;
}

.home-mini-poster {
  width: 30px;
  height: 45px;
  border-radius: 7px;
}

.home-mini-row {
  gap: 9px !important;
}

.home-mini-rank {
  flex: 0 0 34px;
}

#top-movies-page .global-rank-card.global-rank-compact-card,
#top-shows-page .global-rank-card.global-rank-compact-card,
.global-rank-card.global-rank-compact-card {
  grid-template-columns: 34px 40px minmax(0, 1fr) minmax(64px, auto) !important;
  min-height: 86px !important;
}

#top-movies-page
  .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
#top-shows-page
  .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
.global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button) {
  grid-template-columns: 34px 40px minmax(0, 1fr) 30px minmax(64px, auto) !important;
}

.global-rank-poster,
.category-rank-poster {
  width: 38px;
  height: 57px;
  border-radius: 8px;
  justify-self: center;
}

.category-rank-row {
  grid-template-columns: 42px 38px minmax(0, 1fr) minmax(82px, auto) !important;
  min-height: 82px !important;
}

.category-rank-row:has(.category-rank-watchlist-button) {
  grid-template-columns: 42px 38px minmax(0, 1fr) 30px minmax(82px, auto) !important;
}

.discover-title-main-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  min-width: 0;
}

.discover-title-poster {
  width: 58px;
  height: 87px;
  border-radius: 10px;
}

.discover-title-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.discover-title-card h3 {
  margin: 0 !important;
  max-width: 100%;
}

.profile-rank-poster {
  width: 62px;
  height: 93px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.profile-rank-card-front .profile-rank-tile-main {
  padding-top: 22px !important;
}

.profile-rank-back-heading,
.feed-review-back-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.profile-rank-back-heading h3,
.feed-review-back-heading h3 {
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left !important;
}

.profile-rank-back-poster,
.feed-review-back-poster {
  width: 34px;
  height: 51px;
  border-radius: 7px;
}

.watchlist-card-top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.watchlist-card-poster {
  width: 74px;
  height: 111px;
  border-radius: 12px;
}

.watchlist-card h3 {
  max-width: 100% !important;
}

.feed-review-poster {
  width: 66px;
  height: 99px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.feed-review-title-main {
  margin-bottom: 10px !important;
}

@media (max-width: 760px) {
  #top-movies-page .global-rank-card.global-rank-compact-card,
  #top-shows-page .global-rank-card.global-rank-compact-card,
  .global-rank-card.global-rank-compact-card,
  #top-movies-page
    .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
  #top-shows-page
    .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button),
  .global-rank-card.global-rank-compact-card:has(.global-rank-watchlist-button) {
    grid-template-columns: 34px 38px minmax(0, 1fr) !important;
  }

  .global-rank-compact-score,
  .global-rank-watchlist-button {
    grid-column: 3;
  }

  .category-rank-row,
  .category-rank-row:has(.category-rank-watchlist-button) {
    grid-template-columns: 38px 36px minmax(0, 1fr) !important;
  }

  .category-rank-score-wrap,
  .category-rank-watchlist-button {
    grid-column: 3;
    justify-self: start !important;
    align-items: flex-start !important;
    margin-top: 4px;
  }

  .watchlist-card-top {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .watchlist-card-poster {
    width: 62px;
    height: 93px;
  }

  .profile-rank-poster,
  .feed-review-poster {
    width: 54px;
    height: 81px;
  }
}

/* v43: larger profile posters + vertical poster/title layout for Find Titles and Watchlist */
.profile-rank-poster {
  width: 96px !important;
  height: 144px !important;
  border-radius: 14px !important;
  margin: 18px auto 14px !important;
}

.profile-rank-card-front .profile-rank-tile-main {
  padding-top: 16px !important;
}

.profile-rank-tile-title {
  margin-top: 8px !important;
}

/* TMDb dropdown results in Find Titles */
.tmdb-suggestion-item {
  padding: 12px !important;
}

.tmdb-suggestion-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.tmdb-suggestion-poster-wrap {
  width: 76px !important;
  border-radius: 10px !important;
}

.tmdb-suggestion-content {
  width: 100% !important;
  text-align: center !important;
}

.tmdb-suggestion-header {
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
}

.tmdb-suggestion-header .suggestion-title {
  font-size: 16px !important;
  text-align: center !important;
}

.tmdb-suggestion-meta {
  justify-content: center !important;
}

.suggestion-overview {
  text-align: left !important;
  max-width: 100%;
}

/* Local Find Titles / Discover cards */
.discover-title-card {
  min-height: 330px !important;
  text-align: center !important;
}

.discover-title-main-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 24px !important;
  text-align: center !important;
}

.discover-title-poster {
  width: 86px !important;
  height: 129px !important;
  border-radius: 12px !important;
}

.discover-title-info {
  width: 100% !important;
  align-items: center !important;
  text-align: center !important;
}

.discover-title-card h3 {
  margin: 0 !important;
  text-align: center !important;
}

.discover-title-card .title-tags {
  justify-content: center !important;
}

.discover-title-score {
  text-align: center !important;
}

.discover-title-button {
  align-self: center !important;
}

/* Watchlist cards */
.watchlist-card {
  height: 380px !important;
  min-height: 380px !important;
  text-align: center !important;
}

.watchlist-card-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: center !important;
}

.watchlist-card-poster {
  width: 82px !important;
  height: 123px !important;
  border-radius: 12px !important;
}

.watchlist-card-main {
  width: 100% !important;
  align-items: center !important;
  text-align: center !important;
}

.watchlist-card h3 {
  text-align: center !important;
}

.watchlist-card .title-tags {
  justify-content: center !important;
}

.watchlist-card-bottom {
  width: 100% !important;
}

@media (max-width: 760px) {
  .profile-rank-poster,
  .feed-review-poster {
    width: 78px !important;
    height: 117px !important;
  }

  .tmdb-suggestion-poster-wrap {
    width: 64px !important;
  }

  .discover-title-card {
    min-height: 310px !important;
  }

  .discover-title-poster {
    width: 74px !important;
    height: 111px !important;
  }

  .watchlist-card {
    height: auto !important;
    min-height: 360px !important;
  }

  .watchlist-card-poster {
    width: 74px !important;
    height: 111px !important;
  }
}

/* v44: center Find Titles card text after vertical poster layout */
.discover-title-card .discover-title-info {
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

.discover-title-card .discover-title-info h3,
.discover-title-card h3.title-detail-link {
  width: 100% !important;
  max-width: 190px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-right: 0 !important;
  text-align: center !important;
  text-wrap: balance;
}

.discover-title-card .discover-title-meta,
.discover-title-card .discover-title-count,
.discover-title-card .title-tags {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
}

/* v45: Following Feed poster/score balance */
#feed-page .feed-review-poster {
  width: 106px !important;
  height: 159px !important;
  border-radius: 15px !important;
  margin-bottom: 16px !important;
}

#feed-page .feed-review-score-main {
  font-size: 56px !important;
  line-height: 0.95 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.04em !important;
}

#feed-page .feed-review-front-center {
  padding: 6px 0 14px !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-poster {
    width: 88px !important;
    height: 132px !important;
  }

  #feed-page .feed-review-score-main {
    font-size: 48px !important;
  }
}

/* v46: small Following Feed typography/position tune for long titles */
#feed-page .feed-review-front-center {
  transform: translateY(-12px);
}

#feed-page .feed-review-title-main {
  font-size: 27px !important;
  line-height: 1.12 !important;
  margin-bottom: 8px !important;
}

#feed-page .feed-review-score-main {
  font-size: 54px !important;
  margin-bottom: 8px !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-front-center {
    transform: none;
  }

  #feed-page .feed-review-title-main {
    font-size: 24px !important;
  }

  #feed-page .feed-review-score-main {
    font-size: 46px !important;
  }
}



/* v48: Watchlist bottom spacing + one-line tags, and feed tags stay only on the back side */
.watchlist-card .watchlist-card-tags {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  max-height: 22px !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

.watchlist-card .watchlist-card-tags .title-tag-chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.watchlist-card-main {
  gap: 8px !important;
}

.watchlist-card-added {
  margin-top: 2px !important;
}

.watchlist-card-bottom {
  margin-top: auto !important;
  margin-bottom: 18px !important;
  min-height: 66px !important;
  align-items: center !important;
}

.watchlist-card-score {
  font-size: 34px !important;
}

.watchlist-card-score-label {
  display: none !important;
}

.watchlist-card-actions {
  align-content: center !important;
}

@media (max-width: 760px) {
  .watchlist-card-bottom {
    margin-bottom: 10px !important;
  }
}

/* v49: Keep Watchlist score/actions aligned at the same height on every card */
.watchlist-card {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 56px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.watchlist-card-top {
  min-height: 0 !important;
  overflow: hidden !important;
}

.watchlist-card-bottom {
  align-self: end !important;
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.watchlist-card-score-block {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
}

.watchlist-card-actions {
  align-items: center !important;
  align-content: center !important;
}

@media (max-width: 760px) {
  .watchlist-card {
    display: flex !important;
  }

  .watchlist-card-bottom {
    height: auto !important;
    min-height: 56px !important;
  }
}


/* v52: cleaner Find Titles panel */
.discover-search-panel h2 {
  font-size: 26px !important;
  margin-bottom: 8px !important;
}

.discover-search-panel > p {
  max-width: 380px;
  color: #d7d7df;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  line-height: 1.35;
}

.discover-search-area label {
  font-weight: 800;
  color: #f4f4f5;
}

#discover-title-search {
  padding: 14px 14px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  background: rgba(14, 14, 20, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}

#discover-title-search:focus {
  border-color: rgba(255, 215, 0, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08) !important;
  outline: none !important;
}

.discover-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.discover-search-chips button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7d7df;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.discover-search-chips button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.09);
  color: #ffd700;
}

.discover-filters-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

.discover-filters-compact label {
  gap: 5px !important;
  font-size: 13px !important;
  color: #cfcfda !important;
}

.discover-filters-compact select {
  padding: 10px 11px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.065) !important;
}

@media (max-width: 760px) {
  .discover-filters-compact {
    grid-template-columns: 1fr !important;
  }

  .discover-search-panel > p {
    max-width: none;
  }
}


/* v53: shared filter/dropdown polish across WatchRank */
select.profile-rank-tag,
select.profile-rank-sort,
select.global-ranking-select,
select.category-rank-select,
#discover-type-filter,
#discover-genre-filter,
#discover-sort-filter {
  min-height: 42px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background-color: rgba(15, 14, 21, 0.96) !important;
  color: #f8f4ff !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  outline: none !important;
  cursor: pointer !important;
  color-scheme: dark !important;
}

select.profile-rank-tag option,
select.profile-rank-sort option,
select.global-ranking-select option,
select.category-rank-select option,
#discover-type-filter option,
#discover-genre-filter option,
#discover-sort-filter option {
  background-color: #151519 !important;
  color: #f8f4ff !important;
}

select.profile-rank-tag:hover,
select.profile-rank-sort:hover,
select.global-ranking-select:hover,
select.category-rank-select:hover,
#discover-type-filter:hover,
#discover-genre-filter:hover,
#discover-sort-filter:hover {
  border-color: rgba(255, 211, 77, 0.28) !important;
  background-color: rgba(28, 25, 38, 0.98) !important;
}

select.profile-rank-tag:focus,
select.profile-rank-sort:focus,
select.global-ranking-select:focus,
select.category-rank-select:focus,
#discover-type-filter:focus,
#discover-genre-filter:focus,
#discover-sort-filter:focus {
  border-color: rgba(255, 211, 77, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(255, 211, 77, 0.08) !important;
}

.discover-search-chips {
  display: none !important;
}

.discover-filters-compact {
  margin-top: 14px !important;
}

.discover-filters-compact select {
  width: 100% !important;
}

#profile-page.profile-custom-theme select.profile-rank-tag,
#view-profile-page.profile-custom-theme select.profile-rank-tag,
#profile-page.profile-custom-theme select.profile-rank-sort,
#view-profile-page.profile-custom-theme select.profile-rank-sort {
  background-color: var(--profile-theme-input, rgba(15, 14, 21, 0.96)) !important;
  border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
}

#profile-page.profile-custom-theme select.profile-rank-tag:focus,
#view-profile-page.profile-custom-theme select.profile-rank-tag:focus,
#profile-page.profile-custom-theme select.profile-rank-sort:focus,
#view-profile-page.profile-custom-theme select.profile-rank-sort:focus {
  border-color: var(--profile-theme-accent, #ffd700) !important;
  box-shadow: 0 0 0 3px var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.1)) !important;
}


@media (max-width: 560px) {
  .title-detail-hero-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-detail-poster {
    width: 88px;
    height: 132px;
  }
}

/* v55 rating modal redesign */
.rating-modal-card {
  width: min(700px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.rating-modal-hero {
  position: relative;
  min-height: 166px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 24px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.13)), transparent 34%),
    linear-gradient(135deg, rgba(31, 28, 42, 0.96), rgba(13, 13, 18, 0.98));
  border-bottom: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.11));
}

.rating-modal-hero.has-rating-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--rating-backdrop-url);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.rating-modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 14, 0.78), rgba(10, 10, 14, 0.42) 50%, rgba(10, 10, 14, 0.82)),
    linear-gradient(180deg, rgba(10, 10, 14, 0.12), rgba(10, 10, 14, 0.82));
  pointer-events: none;
}

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

.rating-modal-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.rating-modal-poster-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-modal-poster {
  width: 82px;
  height: 123px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.rating-modal-heading {
  min-width: 0;
  padding-right: 8px;
}

.rating-modal-kicker {
  color: var(--profile-theme-accent, #ffd84d);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rating-modal-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.02;
  color: #fff8d7;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.rating-modal-heading p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.rating-modal-live-score {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--profile-theme-border, rgba(255, 216, 77, 0.32));
  background: rgba(12, 12, 17, 0.72);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rating-modal-live-score-value {
  color: var(--profile-theme-accent, #ffd84d);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.rating-modal-live-score-label {
  margin-top: 8px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.83);
}

.rating-modal-category-average {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rating-modal-form {
  overflow-y: auto;
  padding: 22px 22px 8px;
  margin-top: 0;
  gap: 12px;
}

.rating-modal-full-width {
  grid-column: 1 / -1;
}

.rating-modal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
}

.rating-modal-section-heading h3,
.rating-modal-overall-copy h3 {
  margin: 0;
  color: var(--profile-theme-accent, #ffd84d);
  font-size: 18px;
}

.rating-modal-section-heading p,
.rating-modal-overall-copy p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 13px;
  line-height: 1.38;
}

.rating-score-field {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.rating-score-field input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  text-align: right;
  font-weight: 900;
}

.rating-modal-overall-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--profile-theme-border, rgba(255, 216, 77, 0.22));
  background:
    radial-gradient(circle at 100% 0%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.11)), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.rating-modal-overall-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-overall-field {
  justify-content: center;
  background: rgba(8, 8, 11, 0.42);
  border-color: var(--profile-theme-border, rgba(255, 216, 77, 0.28));
}

.rating-overall-field input {
  color: var(--profile-theme-accent, #ffd84d);
  font-size: 24px;
  line-height: 1;
}

.rating-notes-input {
  position: relative;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.rating-modal-actions {
  padding: 14px 22px 22px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 13, 0.2);
}

.rating-modal-card.profile-themed-modal .rating-modal-live-score,
.rating-modal-card.profile-themed-modal .rating-modal-overall-section,
.rating-modal-card.profile-themed-modal .rating-overall-field {
  border-color: var(--profile-theme-border, rgba(255, 216, 77, 0.32)) !important;
}

@media (max-width: 720px) {
  .rating-modal-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: 52px;
  }

  .rating-modal-live-score {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    text-align: left;
    padding: 12px 14px;
  }

  .rating-modal-live-score-value {
    font-size: 42px;
    grid-row: span 2;
  }

  .rating-modal-category-average {
    white-space: normal;
  }

  .rating-modal-overall-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .rating-modal-card {
    max-height: 94vh;
  }

  .rating-modal-form {
    grid-template-columns: 1fr;
  }

  .rating-modal-poster {
    width: 64px;
    height: 96px;
  }

  .rating-modal-heading h2 {
    font-size: 26px;
  }
}


/* v57 rating modal polish */
.rating-modal-card {
  border-color: rgba(255, 216, 77, 0.18);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 46px rgba(255, 216, 77, 0.08);
}

.rating-modal-hero {
  background:
    radial-gradient(circle at 14% 18%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.2)), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(255, 216, 77, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(36, 28, 47, 0.98), rgba(13, 13, 18, 0.99));
}

.rating-modal-kicker,
.rating-modal-section-heading h3 {
  text-shadow: 0 0 22px var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.18));
}

.rating-score-field {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)),
    radial-gradient(circle at 100% 0%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.045)), transparent 46%);
  border-color: rgba(255, 255, 255, 0.095);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rating-score-field:focus-within {
  border-color: var(--profile-theme-border, rgba(255, 216, 77, 0.44));
  box-shadow:
    0 0 0 1px var(--profile-theme-border, rgba(255, 216, 77, 0.18)),
    0 0 28px var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.10));
}

.rating-score-field input {
  background: rgba(9, 9, 13, 0.34);
  border-color: rgba(255, 255, 255, 0.12);
}

.overall-input {
  position: relative;
}

.overall-input input {
  padding-right: 78px;
}

.overall-input input:placeholder-shown {
  text-align: left;
}

.overall-input input:not(:placeholder-shown) {
  text-align: right;
}

.overall-input input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
  font-weight: 750;
}

.overall-input:has(input:placeholder-shown)::after {
  content: "0-100";
  position: absolute;
  right: 24px;
  bottom: 21px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
  font-size: 15px;
  pointer-events: none;
}

.rating-notes-input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 0% 0%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.045)), transparent 38%);
}

.rating-modal-actions {
  background:
    linear-gradient(180deg, rgba(9, 9, 13, 0.42), rgba(9, 9, 13, 0.72)),
    radial-gradient(circle at 86% 0%, var(--profile-theme-accent-soft, rgba(255, 216, 77, 0.075)), transparent 38%);
}

#rating-modal-save-button {
  box-shadow: 0 12px 28px rgba(255, 196, 38, 0.18);
}

/* v59: Title Details review comments sheet */
.title-review-card .title-detail-comments-panel.feed-comments-panel {
  position: absolute !important;
  inset: 10px !important;
  left: 10px !important;
  top: 10px !important;
  width: auto !important;
  max-height: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 8 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

.title-review-card .title-detail-comments-panel.feed-comments-panel.open {
  display: flex !important;
  animation: profileCardCommentsSheetUp 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.title-review-card .title-detail-comments-panel .feed-comments-title {
  position: relative;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 999px;
  background: rgba(31, 31, 37, 0.98);
  color: var(--wr-gold, #ffd84d);
  padding: 8px 38px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.title-review-card .title-detail-comments-panel .feed-close-comments-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.title-review-card .title-detail-comments-panel .comments-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
  padding: 10px;
  border: 1px solid rgba(255, 216, 77, 0.16);
  border-radius: 12px;
  background: rgba(14, 14, 19, 0.97);
}

.title-review-card .title-detail-comments-panel .comment-item {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.title-review-card .title-detail-comments-panel .comment-form {
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(255, 216, 77, 0.16);
  border-radius: 12px;
  background: rgba(14, 14, 19, 0.97);
}

.title-review-card .title-detail-comments-panel .comment-form input {
  min-width: 0;
  background-color: rgba(31, 31, 37, 0.96);
}


/* v60: TMDb attribution footer */
.tmdb-attribution {
  width: min(1180px, calc(100% - 70px));
  margin: 12px auto 28px;
  padding: 14px 18px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.055), transparent 42%),
    rgba(12, 12, 16, 0.78);
  color: rgba(238, 238, 246, 0.62);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.tmdb-attribution span:first-child {
  color: rgba(255, 216, 77, 0.82);
  font-weight: 800;
}

@media (max-width: 720px) {
  .tmdb-attribution {
    width: calc(100% - 30px);
    margin-bottom: 22px;
    padding: 12px 14px;
  }
}


/* v61: TMDb credits popup */
.tmdb-credits-button {
  appearance: none;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 999px;
  background: rgba(255, 216, 77, 0.08);
  color: rgba(255, 216, 77, 0.88);
  padding: 6px 11px;
  font: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.tmdb-credits-button:hover,
.tmdb-credits-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 216, 77, 0.14);
  border-color: rgba(255, 216, 77, 0.45);
  color: #ffe66b;
  outline: none;
}

.tmdb-credits-modal-card {
  width: min(520px, calc(100vw - 34px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 77, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(32, 25, 48, 0.96), rgba(10, 10, 14, 0.97));
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tmdb-credits-top {
  align-items: flex-start;
  margin-bottom: 16px;
}

.tmdb-credits-top h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.tmdb-credits-top p {
  margin: 5px 0 0;
  color: rgba(238, 238, 246, 0.62);
  font-size: 14px;
}

.tmdb-credits-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.tmdb-credits-logo {
  display: block;
  width: min(230px, 78%);
  height: auto;
}

.tmdb-credits-copy {
  display: grid;
  gap: 10px;
  color: rgba(238, 238, 246, 0.74);
  font-size: 14px;
  line-height: 1.55;
}

.tmdb-credits-copy p {
  margin: 0;
}

.tmdb-credits-copy strong {
  color: rgba(255, 216, 77, 0.94);
}

.tmdb-credits-copy a {
  width: fit-content;
  color: #fff4a8;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 216, 77, 0.42);
}

.tmdb-credits-copy a:hover,
.tmdb-credits-copy a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
  outline: none;
}

@media (max-width: 720px) {
  .tmdb-credits-modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  .tmdb-credits-top h2 {
    font-size: 24px;
  }
}


/* v62: View all reviews modal for Title Details */
.title-review-view-all-button {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: var(--wr-gold, #ffd84d);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.title-review-view-all-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 216, 77, 0.38);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.18), transparent 42%),
    rgba(255, 216, 77, 0.08);
}

#all-title-reviews-modal {
  z-index: 1400;
}

.all-title-reviews-modal-card {
  width: min(760px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 216, 77, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 216, 77, 0.09), transparent 38%),
    rgba(12, 12, 16, 0.985);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.all-title-reviews-top {
  padding: 20px 22px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.all-title-reviews-top h2 {
  margin: 0;
}

.all-title-reviews-top p {
  margin: 6px 0 0;
  color: var(--wr-muted, #aaa);
}

.all-title-reviews-content {
  min-height: 0;
  overflow: hidden;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
}

.all-title-reviews-content .title-review-list {
  max-height: calc(88vh - 124px);
  padding-right: 8px;
}

.all-title-reviews-content .title-review-card {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .all-title-reviews-modal-card {
    max-height: 92vh;
  }

  .all-title-reviews-content {
    padding: 14px;
  }

  .all-title-reviews-content .title-review-list {
    max-height: calc(92vh - 120px);
  }
}

/* v63: mobile-friendly base layout pass */
@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(79, 45, 126, 0.72), transparent 34%),
      radial-gradient(circle at top right, rgba(25, 74, 96, 0.52), transparent 32%),
      #0d0d0f !important;
  }

  header {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px 12px 11px !important;
    align-items: stretch !important;
  }

  .header-left-space {
    display: none !important;
  }

  .header-center {
    min-width: 0 !important;
    width: 100% !important;
    display: grid !important;
    gap: 8px !important;
    justify-items: center !important;
  }

  .site-logo-title {
    justify-content: center !important;
    min-width: 0 !important;
  }

  .site-logo {
    width: 34px !important;
    height: 34px !important;
  }

  h1,
  .header-center h1 {
    font-size: 27px !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
  }

  .tagline {
    display: none !important;
  }

  .header-nav {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 3px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .header-nav::-webkit-scrollbar {
    display: none !important;
  }

  .header-nav-link {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .account-area {
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .account-area .top-button,
  .account-area .logout-button,
  .account-area .small-button {
    min-height: 34px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  .username-display {
    max-width: 140px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  main {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 154px 14px 22px !important;
  }

  .page,
  .page.active,
  #discover-page,
  #profile-page,
  #view-profile-page,
  #watchlist-page,
  #feed-page,
  #top-movies-page,
  #top-shows-page,
  #categories-page,
  #following-page {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-title {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .page-title h2,
  .discover-search-panel h2,
  .discover-trending-panel h2,
  .ranking-column h2,
  .panel h2 {
    font-size: 23px !important;
    line-height: 1.08 !important;
  }

  .page-title p,
  .discover-search-panel p,
  .discover-trending-panel p,
  .panel p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .rankings-container,
  #profile-rankings-container,
  .discover-layout,
  .following-page-layout,
  .following-top-grid,
  .home-feature-grid,
  .home-feature-grid-inside,
  .home-preview-grid,
  .category-rankings-grid,
  .profile-taste-grid,
  .profile-taste-content,
  .edit-profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ranking-column,
  .global-ranking-column,
  .profile-ranking-column,
  .watchlist-column,
  #feed-content.feed-column,
  .discover-search-panel,
  .discover-trending-panel,
  .panel,
  .category-card,
  .home-hero,
  .home-profile-preview-card,
  .home-preview-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    border-radius: 18px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #profile-page.has-profile-background,
  #view-profile-page.has-profile-background {
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .profile-summary-card,
  .view-profile-header-card,
  #profile-header.profile-summary-card {
    width: 100% !important;
    margin: 0 0 14px !important;
    box-sizing: border-box !important;
  }

  .profile-summary-flip,
  .profile-summary-inner,
  .profile-summary-face {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }

  .profile-summary-face {
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .profile-header-main,
  #profile-header .profile-header-main,
  #view-profile-page .profile-header-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    text-align: center !important;
    justify-items: center !important;
    align-items: center !important;
  }

  .profile-heading-row,
  #profile-header-name,
  #view-profile-name {
    justify-content: center !important;
    text-align: center !important;
  }

  .profile-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 9px !important;
    flex-wrap: wrap !important;
  }

  .profile-stats button,
  .stat-box {
    min-width: 0 !important;
  }

  .profile-rank-section-header,
  .global-ranking-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .profile-rank-section-header h2,
  .global-ranking-top h2 {
    margin: 0 !important;
    position: static !important;
  }

  .profile-rank-search-wrap,
  .global-ranking-search-area,
  .search-area,
  .discover-search-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .profile-rank-search,
  .global-ranking-search,
  #discover-title-search,
  #user-search,
  #title-search,
  .auth-form input,
  .comment-form input,
  .discover-rating-form input,
  .rating-form input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    font-size: 16px !important;
  }

  .profile-rank-tag,
  .profile-rank-sort,
  .global-ranking-select,
  .discover-filters select,
  .discover-filter-select,
  select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
  }

  .discover-filters,
  .discover-filters-compact,
  .global-ranking-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .discover-filters label,
  .discover-filters-compact label {
    width: 100% !important;
    min-width: 0 !important;
  }

  .suggestions,
  .global-rank-suggestions {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 58vh !important;
    box-sizing: border-box !important;
    z-index: 9800 !important;
  }

  .tmdb-suggestion-card,
  .discover-title-card,
  .watchlist-card,
  .profile-rank-tile,
  .global-rank-card,
  .category-rank-card,
  .title-review-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .watchlist-grid,
  #watchlist-list,
  #discover-filtered-title-list,
  #global-movie-rankings,
  #global-show-rankings,
  .global-rank-compact-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .watchlist-card {
    min-height: 0 !important;
    padding: 13px !important;
  }

  .watchlist-card-bottom {
    align-items: center !important;
    gap: 10px !important;
  }

  .watchlist-card-actions {
    min-width: 112px !important;
  }

  #top-movies-page .global-ranking-column,
  #top-shows-page .global-ranking-column {
    width: 100% !important;
  }

  #top-movies-page .global-rank-card.global-rank-compact-card,
  #top-shows-page .global-rank-card.global-rank-compact-card,
  .global-rank-card.global-rank-compact-card {
    grid-template-columns: 32px 42px minmax(0, 1fr) minmax(58px, auto) !important;
    gap: 8px !important;
    min-height: 74px !important;
  }

  .global-rank-compact-title,
  .profile-rank-tile-title,
  .watchlist-card h3,
  .discover-title-card h3 {
    overflow-wrap: anywhere !important;
  }

  .category-card {
    max-height: none !important;
  }

  .category-rank-list {
    max-height: 420px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  .feed-review-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 0 18px !important;
    margin-bottom: 10px !important;
  }

  #feed-content .feed-review-layout,
  .feed-review-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    justify-items: center !important;
  }

  .feed-review-center-area,
  .feed-review-flip,
  .feed-review-face {
    width: 100% !important;
    max-width: 100% !important;
  }

  .feed-side-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    position: static !important;
  }

  .feed-action-label {
    display: none !important;
  }

  .following-top-grid > *,
  .people-card,
  .suggested-reviewer-card,
  .recently-active-card,
  .popular-reviewer-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tmdb-attribution {
    width: 100% !important;
    margin: 14px 0 22px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 520px) {
  main {
    padding-top: 148px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .header-nav {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .site-logo {
    width: 30px !important;
    height: 30px !important;
  }

  h1,
  .header-center h1 {
    font-size: 24px !important;
  }

  .header-nav-link {
    min-height: 32px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
  }

  .account-area .top-button,
  .account-area .logout-button,
  .account-area .small-button {
    min-height: 32px !important;
    padding: 7px 10px !important;
  }

  .page-title,
  .ranking-column,
  .global-ranking-column,
  .profile-ranking-column,
  .watchlist-column,
  #feed-content.feed-column,
  .discover-search-panel,
  .discover-trending-panel,
  .panel,
  .category-card {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .profile-summary-face {
    padding: 14px !important;
  }

  .watchlist-card-bottom {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .watchlist-card-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  #top-movies-page .global-rank-card.global-rank-compact-card,
  #top-shows-page .global-rank-card.global-rank-compact-card,
  .global-rank-card.global-rank-compact-card {
    grid-template-columns: 30px 38px minmax(0, 1fr) !important;
  }

  .global-rank-compact-score {
    grid-column: 3 !important;
    align-items: flex-start !important;
    margin-top: 4px !important;
  }
}

/* v64: mobile-friendly popups only. Desktop is intentionally untouched. */
@media (max-width: 760px) {
  .modal-background {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .login-modal,
  .edit-profile-modal,
  .background-crop-modal,
  .connections-modal,
  .profile-connections-modal,
  .tmdb-credits-modal-card,
  .all-title-reviews-modal-card,
  .title-detail-modal,
  .rating-modal-card {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
  }

  .login-modal,
  .edit-profile-modal,
  .background-crop-modal,
  .connections-modal,
  .profile-connections-modal,
  .tmdb-credits-modal-card {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
  }

  .modal-top,
  .edit-profile-top,
  .connections-modal-top,
  .tmdb-credits-top,
  .all-title-reviews-top {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .modal-top h2,
  .edit-profile-top h2,
  .connections-modal-top h2,
  .tmdb-credits-top h2,
  .all-title-reviews-top h2 {
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  .close-modal-button,
  .rating-modal-close-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    line-height: 1 !important;
  }

  /* Rate/Edit rating popup */
  #rating-modal {
    z-index: 10008 !important;
  }

  .rating-modal-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .rating-modal-hero {
    min-height: auto !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 16px 52px 14px 14px !important;
  }

  .rating-modal-poster {
    width: 58px !important;
    height: 87px !important;
    border-radius: 10px !important;
  }

  .rating-modal-kicker {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .rating-modal-heading h2 {
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  .rating-modal-heading p {
    margin-top: 5px !important;
    font-size: 12.5px !important;
  }

  .rating-modal-live-score {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 4px 11px !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border-radius: 14px !important;
  }

  .rating-modal-live-score-value {
    grid-row: 1 / span 2 !important;
    font-size: 38px !important;
    letter-spacing: -0.05em !important;
  }

  .rating-modal-live-score-label {
    margin: 0 !important;
    font-size: 12px !important;
  }

  .rating-modal-category-average {
    margin: 0 !important;
    font-size: 11.5px !important;
    white-space: normal !important;
  }

  .rating-modal-form {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 14px 8px !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rating-modal-section-heading {
    display: block !important;
    margin-bottom: 0 !important;
  }

  .rating-modal-section-heading h3 {
    font-size: 16px !important;
  }

  .rating-modal-section-heading p {
    font-size: 12px !important;
  }

  .rating-score-field,
  .rating-notes-input {
    padding: 9px !important;
    border-radius: 13px !important;
  }

  .rating-score-field input {
    min-height: 38px !important;
    font-size: 16px !important;
    padding: 9px 10px !important;
  }

  .overall-input input {
    padding-right: 70px !important;
  }

  .overall-input input::placeholder {
    font-size: 12px !important;
  }

  .overall-input:has(input:placeholder-shown)::after {
    right: 20px !important;
    bottom: 18px !important;
    font-size: 13px !important;
  }

  .rating-modal-form textarea {
    min-height: 86px !important;
    font-size: 16px !important;
  }

  .rating-modal-actions {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    padding: 12px 14px 14px !important;
  }

  .rating-modal-actions .secondary-button,
  .rating-modal-actions .small-button {
    width: 100% !important;
    min-height: 42px !important;
  }

  /* Title Details popup */
  #title-detail-modal {
    z-index: 10007 !important;
  }

  .title-detail-modal {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .title-detail-modal > .modal-top {
    flex: 0 0 auto !important;
    padding: 14px 14px 10px !important;
  }

  .title-detail-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px 12px !important;
  }

  .title-detail-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
  }

  .title-detail-hero.has-backdrop::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 11, 0.94), rgba(8, 8, 11, 0.58)),
      linear-gradient(0deg, rgba(12, 12, 15, 0.92), rgba(12, 12, 15, 0.2)) !important;
  }

  .title-detail-hero-body {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .title-detail-poster {
    width: 68px !important;
    height: 102px !important;
    border-radius: 10px !important;
  }

  .title-detail-title {
    font-size: 24px !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
  }

  .title-detail-meta,
  .title-detail-release-date {
    font-size: 12px !important;
  }

  .title-detail-score-box {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .title-detail-score {
    font-size: 42px !important;
  }

  .title-detail-score-label {
    margin-top: 0 !important;
    font-size: 12px !important;
  }

  .title-detail-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .title-detail-actions button {
    width: 100% !important;
  }

  .title-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .title-detail-panel {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .title-detail-overview-panel {
    min-height: 0 !important;
    max-height: none !important;
  }

  .title-detail-overview-text,
  .title-detail-overview-empty {
    max-height: 180px !important;
    overflow-y: auto !important;
  }

  .title-review-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .title-review-card {
    padding: 11px !important;
  }

  .title-review-top {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .title-review-score {
    font-size: 20px !important;
  }

  .title-review-score-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  .title-review-score-row::-webkit-scrollbar {
    display: none !important;
  }

  .title-detail-comments-panel.feed-comments-panel {
    max-height: 230px !important;
    padding: 11px !important;
  }

  /* All reviews popup */
  .all-title-reviews-modal-card {
    overflow: hidden !important;
  }

  .all-title-reviews-top {
    flex: 0 0 auto !important;
    padding: 14px 14px 11px !important;
  }

  .all-title-reviews-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px 12px 14px !important;
  }

  .all-title-reviews-content .title-review-list {
    max-height: calc(100dvh - 128px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 4px !important;
  }

  /* Edit profile / connections / credits */
  .edit-profile-grid,
  .profile-theme-grid {
    grid-template-columns: 1fr !important;
  }

  .edit-profile-slider-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .background-crop-preview-wrap {
    border-radius: 14px !important;
    margin: 12px auto !important;
  }

  .connections-modal-list {
    max-height: calc(100dvh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tmdb-credits-logo-wrap {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .tmdb-credits-logo {
    width: min(205px, 82%) !important;
  }
}

@media (max-width: 430px) {
  .rating-modal-hero {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    padding-left: 12px !important;
    padding-bottom: 12px !important;
  }

  .rating-modal-poster {
    width: 50px !important;
    height: 75px !important;
  }

  .rating-modal-heading h2 {
    font-size: 20px !important;
  }

  .rating-modal-live-score-value {
    font-size: 34px !important;
  }

  .rating-modal-actions,
  .title-detail-actions {
    grid-template-columns: 1fr !important;
  }

  .title-detail-hero-body {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .title-detail-poster {
    width: 58px !important;
    height: 87px !important;
  }

  .title-detail-title {
    font-size: 21px !important;
  }

  .title-detail-score {
    font-size: 36px !important;
  }
}


/* v65: scaling pass 1 - safe frontend list limits. */


/* v67: Follow/unfollow button on viewed profiles */
.view-profile-follow-action {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
}

.view-profile-follow-button {
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.34));
  border-radius: 999px;
  background: var(--profile-theme-accent, #ffd700);
  color: #17110a;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 10px 24px;
  min-width: 118px;
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.14));
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.view-profile-follow-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.view-profile-follow-button.following {
  background: var(--profile-theme-input, rgba(15, 15, 20, 0.9));
  color: var(--profile-theme-accent, #ffd700);
  border-color: var(--profile-theme-border, rgba(255, 215, 0, 0.34));
}

.view-profile-follow-button.following:hover {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.58);
}

#view-profile-page.profile-custom-theme .view-profile-follow-button {
  border-color: var(--profile-theme-border, rgba(255, 215, 0, 0.34));
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.14));
}

@media (max-width: 700px) {
  .view-profile-follow-action {
    margin-top: 12px;
  }

  .view-profile-follow-button {
    width: min(220px, 100%);
    padding: 10px 18px;
  }
}

/* v68: targeted mobile card fixes (profile flip, categories rows, home preview width) */
@media (max-width: 760px) {
  /* iOS/Safari fix: make profile flip cards hide the front face fully when flipped. */
  .profile-rank-card-flip,
  .profile-rank-card-flip-inner,
  .profile-rank-card-face {
    -webkit-transform-style: preserve-3d !important;
    transform-style: preserve-3d !important;
  }

  .profile-rank-card-face {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
  }

  .profile-rank-card-front {
    -webkit-transform: rotateY(0deg) translateZ(0) !important;
    transform: rotateY(0deg) translateZ(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .profile-rank-card-back {
    -webkit-transform: rotateY(180deg) translateZ(1px) !important;
    transform: rotateY(180deg) translateZ(1px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .profile-rank-card-flip.flipped .profile-rank-card-front {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .profile-rank-card-flip.flipped .profile-rank-card-back {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .profile-rank-card-flip.flipped .rating-card-actions,
  .profile-rank-card-flip.flipped .profile-social-actions,
  .profile-rank-card-flip.flipped .profile-watchlist-button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Give profile cards enough vertical room so tags and the big score stay inside. */
  .profile-rank-tile,
  .profile-rank-card-flip,
  .profile-rank-card-flip-inner,
  .profile-rank-card-face,
  .profile-rank-card-flip.flipped,
  .profile-rank-card-flip.flipped .profile-rank-card-flip-inner,
  .profile-rank-card-flip.flipped .profile-rank-card-face,
  .profile-rank-tile:has(.profile-rank-card-flip.flipped) {
    min-height: 430px !important;
    height: 430px !important;
  }

  .profile-rank-card-front .profile-rank-tile-main {
    justify-content: flex-start !important;
    padding: 42px 48px 54px !important;
    gap: 5px !important;
  }

  .profile-rank-poster {
    width: 78px !important;
    height: 117px !important;
    margin: 0 auto 10px !important;
  }

  .profile-rank-tile-title {
    margin: 4px 0 3px !important;
    font-size: 22px !important;
    line-height: 1.12 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .profile-rank-tile-meta {
    margin-bottom: 4px !important;
  }

  .profile-rank-card-front .title-tags.one-line-tags {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    margin: 4px 0 0 !important;
  }

  .profile-rank-card-front .title-tags.one-line-tags .title-tag-chip {
    max-width: 84px !important;
  }

  .profile-rank-tile-score {
    bottom: 22px !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    font-size: 56px !important;
  }

  .rating-card-actions {
    top: 10px !important;
    right: 10px !important;
  }

  .profile-social-actions {
    right: 10px !important;
  }

  /* Categories on mobile: use the same roomy, compact-row feel as Top Movies/TV Shows. */
  #categories-page .category-rank-list {
    max-height: calc((154px * 3) + (10px * 2)) !important;
    min-height: calc((154px * 3) + (10px * 2)) !important;
    gap: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 3px !important;
    margin-right: -3px !important;
  }

  #categories-page .category-rank-row,
  #categories-page .category-rank-row:has(.category-rank-watchlist-button) {
    grid-template-columns: 38px 48px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    min-height: 154px !important;
    height: auto !important;
    padding: 13px 12px !important;
    box-sizing: border-box !important;
  }

  #categories-page .category-rank-number {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    font-size: 20px !important;
  }

  #categories-page .category-rank-poster {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 72px !important;
    border-radius: 9px !important;
    align-self: center !important;
  }

  #categories-page .category-rank-main {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #categories-page .category-rank-title {
    font-size: 18px !important;
    line-height: 1.12 !important;
  }

  #categories-page .category-rank-meta {
    font-size: 13px !important;
  }

  #categories-page .category-rank-tags {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    max-width: 100% !important;
    margin-top: 7px !important;
  }

  #categories-page .category-rank-tags .title-tag-chip {
    max-width: 92px !important;
  }

  #categories-page .category-rank-score-wrap {
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-items: flex-start !important;
    margin-top: 4px !important;
    min-width: 0 !important;
  }

  #categories-page .category-rank-score-wrap strong {
    font-size: 40px !important;
  }

  #categories-page .category-rank-watchlist-button {
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: end !important;
  }

  /* Home page preview cards: prevent top-ranked boxes from being wider than the phone. */
  #home-page,
  #home-page * {
    min-width: 0 !important;
  }

  #home-page,
  .home-preview-grid,
  .home-preview-card,
  .home-mini-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .home-preview-card {
    padding: 14px !important;
  }

  .home-preview-top {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .home-preview-top h3 {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .home-link-button {
    flex: 0 0 auto !important;
  }

  .home-mini-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 32px 48px minmax(0, 1fr) minmax(44px, auto) !important;
    gap: 9px !important;
    overflow: hidden !important;
  }

  .home-mini-poster {
    width: 48px !important;
    height: 72px !important;
    border-radius: 9px !important;
  }

  .home-mini-main {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .home-mini-score {
    justify-self: end !important;
    min-width: 42px !important;
    text-align: right !important;
    font-size: 16px !important;
  }
}

@media (max-width: 420px) {
  .home-mini-row {
    grid-template-columns: 28px 42px minmax(0, 1fr) !important;
  }

  .home-mini-poster {
    width: 42px !important;
    height: 63px !important;
  }

  .home-mini-score {
    grid-column: 3 !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
}

/* v70 menu v1: final navigation overrides */
.header-left-space {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-width: 0 !important;
}

#menu-button {
  display: none !important;
}

.header-nav {
  overflow: visible !important;
  flex-wrap: wrap !important;
}

.header-top-ranked-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.header-top-ranked-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.top-ranked-chevron {
  display: inline-block !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transition: transform 0.16s ease !important;
}

.header-top-ranked-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 25000 !important;
  min-width: 158px !important;
  display: none !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(18, 18, 22, 0.98) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.header-top-ranked-menu.open {
  display: flex !important;
}

.header-top-ranked-wrap:has(.header-top-ranked-menu.open) .top-ranked-chevron {
  transform: rotate(180deg) !important;
}

.header-top-ranked-option {
  width: 100% !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  background: transparent !important;
  color: rgba(244, 244, 245, 0.78) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: left !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.header-top-ranked-option:hover,
.header-top-ranked-option.active {
  color: #f5d85e !important;
  background-color: rgba(245, 216, 94, 0.1) !important;
  border-color: rgba(245, 216, 94, 0.28) !important;
}

.sidebar-overlay {
  display: none !important;
  z-index: 30000 !important;
}

.sidebar-overlay.show {
  display: block !important;
}

.sidebar {
  display: flex !important;
  flex-direction: column !important;
  z-index: 30001 !important;
}

.sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.sidebar-bottom {
  margin-top: auto !important;
  padding-top: 18px !important;
}

.mobile-top-ranked-button {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mobile-top-ranked-menu {
  display: none !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: -2px 0 10px 18px !important;
  padding-left: 13px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.mobile-top-ranked-group.open .mobile-top-ranked-menu {
  display: flex !important;
}

.mobile-top-ranked-group.open .mobile-top-ranked-button .top-ranked-chevron {
  transform: rotate(180deg) !important;
}

.mobile-top-ranked-option {
  width: 100% !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  background: transparent !important;
  color: rgba(244, 244, 245, 0.78) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: left !important;
  cursor: pointer !important;
}

.mobile-top-ranked-option:hover,
.mobile-top-ranked-option.active {
  color: #f5d85e !important;
  background-color: rgba(245, 216, 94, 0.1) !important;
  border-color: rgba(245, 216, 94, 0.25) !important;
}

@media (min-width: 761px) {
  .header-left-space {
    visibility: hidden !important;
  }

  .header-nav {
    display: flex !important;
  }

  #menu-button {
    display: none !important;
  }
}

@media (max-width: 760px) {
  header {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    min-height: 62px !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    align-items: center !important;
  }

  .header-left-space {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    min-width: 0 !important;
  }

  #menu-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 22px !important;
  }

  .header-center {
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .site-logo-title {
    gap: 9px !important;
  }

  .site-logo {
    width: 32px !important;
    height: 32px !important;
  }

  h1,
  .header-center h1 {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .tagline,
  .header-center .tagline,
  .header-nav {
    display: none !important;
  }

  .account-area {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .account-profile-button {
    padding: 6px !important;
    min-height: 36px !important;
  }

  .account-profile-button .username-display {
    display: none !important;
  }

  .account-area .top-button,
  .account-area .logout-button,
  .account-area .small-button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  main {
    padding-top: 82px !important;
  }

  .sidebar {
    width: min(84vw, 315px) !important;
    padding: 20px !important;
    transform: translateX(-100%) !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-link {
    margin-bottom: 10px !important;
  }

  .sidebar-bottom .sidebar-link {
    margin-bottom: 0 !important;
  }
}

/* v71: Categories page uses the same compact Top Ranked layout as Movies/TV Shows. */
#categories-page > .page-title {
  display: none !important;
}

#categories-page {
  padding-top: 0;
}

#categories-page .ranking-column {
  height: auto;
  min-height: 62vh;
  overflow: visible;
  margin-top: 0;
}

#categories-page .global-ranking-column {
  width: min(1500px, calc(100vw - 70px)) !important;
}

#categories-page .category-page-controls {
  grid-template-columns: minmax(220px, 1.2fr) minmax(155px, 0.75fr) minmax(150px, 0.75fr) minmax(190px, 1fr);
  max-width: 980px;
}

#category-rankings-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#categories-page .global-rank-card.rank-1.global-rank-compact-card {
  border-color: rgba(255, 211, 77, 0.38) !important;
}

#categories-page .global-rank-card.rank-2.global-rank-compact-card {
  border-color: rgba(214, 221, 231, 0.46) !important;
  box-shadow: inset 0 0 0 1px rgba(214, 221, 231, 0.07) !important;
}

#categories-page .global-rank-card.rank-3.global-rank-compact-card {
  border-color: rgba(205, 127, 50, 0.48) !important;
  box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.07) !important;
}

@media (max-width: 1280px) {
  #category-rankings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  #categories-page .category-page-controls {
    grid-template-columns: 1fr !important;
    max-width: none;
  }
}

@media (max-width: 760px) {
  #categories-page .global-ranking-column {
    width: 100% !important;
  }

  #category-rankings-list {
    grid-template-columns: 1fr !important;
  }
}


/* v74: remove duplicate Find Titles box from profile page. Function remains in main Find Titles page. */
#rate-section {
  display: none !important;
}

/* v74: tighter mobile popups and 2-column score grids. Desktop stays mostly unchanged. */
@media (max-width: 760px) {
  #title-detail-subtitle {
    display: none !important;
  }

  .title-detail-modal > .modal-top {
    padding: 12px 12px 8px !important;
    min-height: 0 !important;
  }

  .title-detail-modal > .modal-top h2 {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .title-detail-community-aspects {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .title-detail-community-aspects .aspect {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    gap: 8px !important;
  }

  .title-detail-community-aspects .aspect span:first-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    width: calc(50% - 4px) !important;
    justify-self: center !important;
    box-sizing: border-box !important;
  }

  .rating-modal-hero {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 12px 48px 10px 12px !important;
  }

  .rating-modal-poster {
    width: 46px !important;
    height: 69px !important;
    border-radius: 9px !important;
  }

  .rating-modal-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .rating-modal-kicker {
    font-size: 10.5px !important;
    margin-bottom: 3px !important;
  }

  .rating-modal-heading h2 {
    font-size: 19px !important;
    line-height: 1.03 !important;
  }

  .rating-modal-heading p {
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  .rating-modal-live-score {
    padding: 8px 10px !important;
    border-radius: 13px !important;
  }

  .rating-modal-live-score-value {
    font-size: 30px !important;
  }

  .rating-modal-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .rating-score-field,
  .rating-notes-input {
    padding: 8px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .rating-score-field input {
    min-height: 36px !important;
    font-size: 15px !important;
    padding: 8px 9px !important;
  }

  .overall-input.rating-score-field {
    grid-column: 1 / -1 !important;
    width: calc(50% - 4px) !important;
    justify-self: center !important;
    box-sizing: border-box !important;
  }

  .overall-input input {
    padding-right: 9px !important;
  }

  .overall-input:has(input:placeholder-shown)::after {
    display: none !important;
  }

  .rating-notes-input {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 430px) {
  .rating-modal-hero {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 10px 46px 9px 10px !important;
  }

  .rating-modal-poster {
    width: 42px !important;
    height: 63px !important;
  }

  .rating-modal-heading h2 {
    font-size: 18px !important;
  }

  .rating-modal-live-score-value {
    font-size: 28px !important;
  }
}


/* v75: mobile popup spacing fixes */
.title-detail-modal-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.title-detail-modal-heading {
  min-width: 0;
}

.title-detail-top-rate-button {
  display: none !important;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .title-detail-modal > .modal-top,
  .title-detail-modal-top {
    position: relative !important;
    z-index: 6 !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(12, 12, 15, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .title-detail-modal-heading {
    flex: 1 1 auto !important;
  }

  .title-detail-modal-top-actions {
    flex: 0 0 auto !important;
    gap: 7px !important;
  }

  .title-detail-top-rate-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .title-detail-modal > .modal-top .close-modal-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .title-detail-hero {
    overflow: hidden !important;
  }

  .title-detail-actions {
    grid-template-columns: 1fr !important;
    margin-top: 10px !important;
  }

  .title-detail-actions .secondary-button:not(.title-detail-watchlist-text-button) {
    display: none !important;
  }

  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }

  .rating-modal-live-score {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 8px 9px !important;
    gap: 3px 9px !important;
  }

  .rating-modal-live-score-value {
    font-size: 28px !important;
    min-width: 0 !important;
  }

  .rating-modal-live-score-label {
    font-size: 11.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .rating-modal-category-average {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
  }

  .overall-input.rating-score-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 430px) {
  .title-detail-top-rate-button {
    padding: 8px 9px !important;
    font-size: 11.5px !important;
  }

  .rating-modal-live-score {
    padding: 7px 8px !important;
    gap: 2px 8px !important;
  }

  .rating-modal-live-score-value {
    font-size: 26px !important;
  }
}


/* v76: mobile title-detail and rating-modal refinements */
.title-detail-top-user-rating {
  display: none;
}

.title-detail-community-heading {
  display: block;
}

.title-detail-community-score-mobile {
  display: none;
}

@media (max-width: 760px) {
  .title-detail-top-user-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(255, 215, 0, 0.28) !important;
    background: rgba(255, 215, 0, 0.08) !important;
    color: #fff7d1 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .title-detail-top-user-rating-label {
    font-size: 11px !important;
    color: #f7df7a !important;
  }

  .title-detail-top-user-rating-value {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffd54a !important;
  }

  .title-detail-modal-top-actions {
    gap: 6px !important;
  }

  .title-detail-top-rate-button {
    min-width: 56px !important;
    padding: 8px 10px !important;
  }

  .title-detail-score-box {
    display: none !important;
  }

  .title-detail-community-heading {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  .title-detail-community-heading h3 {
    margin-bottom: 0 !important;
  }

  .title-detail-community-score-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.22) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.09), rgba(255, 255, 255, 0.03)) !important;
  }

  .title-detail-community-score-mobile-label {
    font-size: 13px !important;
    color: #e9e0aa !important;
  }

  .title-detail-community-score-mobile-value {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffd54a !important;
    line-height: 1 !important;
  }

  .title-detail-own-rating {
    display: none !important;
  }

  .rating-modal-hero {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
  }

  .rating-modal-poster-slot {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .rating-modal-heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  .rating-modal-live-score {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    gap: 2px 10px !important;
  }

  .rating-modal-live-score-value {
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    font-size: 27px !important;
  }

  .rating-modal-live-score-label {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11.5px !important;
  }

  .rating-modal-category-average {
    display: block !important;
    min-width: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}

@media (max-width: 430px) {
  .title-detail-top-user-rating {
    padding: 7px 8px !important;
    gap: 5px !important;
  }

  .title-detail-top-user-rating-label {
    font-size: 10px !important;
  }

  .title-detail-top-user-rating-value {
    font-size: 14px !important;
  }

  .title-detail-top-rate-button {
    min-width: 52px !important;
    padding: 8px 8px !important;
    font-size: 11.5px !important;
  }

  .rating-modal-hero {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
}


/* v77: mobile title-detail tag cap and tiny rating score lift */
@media (max-width: 760px) {
  .title-detail-hero .title-tags.left-tags {
    max-height: 66px !important;
    overflow: hidden !important;
    align-content: flex-start !important;
  }

  .title-detail-hero .title-tag-chip {
    font-size: 11.5px !important;
    padding: 5px 8px !important;
  }

  .rating-modal-live-score {
    transform: translateY(-4px) !important;
    margin-top: 0 !important;
    margin-bottom: -4px !important;
  }
}


/* v78: mobile title details tags lift and rating hero breathing room */
@media (max-width: 760px) {
  .title-detail-hero .title-tags.left-tags {
    margin-top: -6px !important;
    transform: translateY(-4px) !important;
    max-height: 62px !important;
  }

  .title-detail-hero .title-detail-release-date {
    margin-bottom: 2px !important;
  }

  .rating-modal-hero {
    padding-bottom: 18px !important;
    min-height: 164px !important;
  }

  .rating-modal-live-score {
    transform: translateY(-3px) !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
  }
}

@media (max-width: 430px) {
  .rating-modal-hero {
    min-height: 158px !important;
    padding-bottom: 16px !important;
  }
}


/* v79: mobile title-detail hero cleanup and uniform overall tile */
@media (max-width: 760px) {
  .title-detail-community-aspects .aspect.overall {
    min-height: 34px !important;
    height: auto !important;
    padding: 8px 10px !important;
    align-items: center !important;
  }

  .title-detail-hero {
    min-height: 188px !important;
    padding-bottom: 18px !important;
  }

  .title-detail-hero-body {
    min-height: 142px !important;
    align-items: flex-start !important;
  }

  .title-detail-hero .title-tags.left-tags {
    margin-top: -10px !important;
    transform: translateY(-6px) !important;
    max-height: 58px !important;
  }

  .title-detail-actions {
    margin-top: 0 !important;
    min-height: 0 !important;
  }

  .title-detail-actions .small-button {
    display: none !important;
  }

  .rating-modal-hero {
    min-height: 174px !important;
    padding-bottom: 20px !important;
  }

  .rating-modal-live-score {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 430px) {
  .title-detail-hero {
    min-height: 182px !important;
    padding-bottom: 16px !important;
  }

  .rating-modal-hero {
    min-height: 170px !important;
    padding-bottom: 18px !important;
  }
}


/* v80: desktop title-detail top rating polish + mobile title-detail tile fixes */
@media (min-width: 761px) {
  .title-detail-modal-top-actions {
    gap: 12px !important;
  }

  .title-detail-top-user-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    min-height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(215, 184, 90, 0.28) !important;
    background: linear-gradient(135deg, rgba(215, 184, 90, 0.1), rgba(255, 255, 255, 0.03)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  .title-detail-top-user-rating-label {
    font-size: 14px !important;
    color: #ddd7c0 !important;
    line-height: 1 !important;
  }

  .title-detail-top-user-rating-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffd54a !important;
    line-height: 1 !important;
  }
}

@media (max-width: 760px) {
  .title-detail-hero .title-detail-release-date {
    margin-bottom: 8px !important;
  }

  .title-detail-hero .title-tags.left-tags {
    margin-top: 4px !important;
    transform: none !important;
    max-height: 58px !important;
  }

  .title-detail-community-aspects .aspect.overall {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.075) !important;
    min-height: 34px !important;
    height: auto !important;
    padding: 8px 10px !important;
    align-items: center !important;
  }
}


/* v81: remove mobile tag cap and force Overall to match category tile height */
@media (max-width: 760px) {
  .title-detail-hero .title-tags.left-tags {
    max-height: none !important;
    overflow: visible !important;
    margin-top: 4px !important;
    transform: none !important;
  }

  .title-detail-community-aspects .aspect.overall {
    min-height: 51px !important;
    height: 51px !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.075) !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
}


/* v82: Find Titles poster-wall experiment */
#discover-page .discover-poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 18px 14px !important;
  align-items: start !important;
}

#discover-page .discover-poster-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
}

#discover-page .discover-poster-frame {
  position: relative !important;
  width: 100% !important;
  max-width: 126px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

#discover-page .discover-poster-card:hover .discover-poster-frame {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42) !important;
  filter: brightness(1.08) !important;
}

#discover-page .discover-poster-wall-poster {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9px !important;
  border: none !important;
  box-shadow: none !important;
}

#discover-page .discover-poster-rank {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  z-index: 4 !important;
  min-width: 30px !important;
  min-height: 24px !important;
  padding: 4px 7px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border: 1px solid rgba(255, 215, 0, 0.42) !important;
  color: #ffd84a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75) !important;
}

#discover-page .discover-poster-score {
  color: var(--wr-gold, #ffd700) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 0 14px rgba(255, 211, 77, 0.12) !important;
}

@media (min-width: 1100px) {
  #discover-page .discover-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
    gap: 20px 16px !important;
  }

  #discover-page .discover-poster-frame {
    max-width: 140px !important;
  }
}

@media (max-width: 760px) {
  #discover-page .discover-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  #discover-page .discover-poster-frame {
    max-width: none !important;
    border-radius: 8px !important;
  }

  #discover-page .discover-poster-wall-poster {
    border-radius: 8px !important;
  }

  #discover-page .discover-poster-rank {
    top: 5px !important;
    left: 5px !important;
    min-width: 28px !important;
    min-height: 22px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
  }

  #discover-page .discover-poster-score {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  #discover-page .discover-poster-grid {
    gap: 14px 8px !important;
  }

  #discover-page .discover-poster-rank {
    font-size: 11px !important;
  }
}


/* v83: desktop title-detail action cleanup + Overall input alignment */
@media (min-width: 761px) {
  .title-detail-top-rate-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .title-detail-modal-top-actions {
    align-items: center !important;
  }

  .title-detail-hero .title-detail-actions:empty,
  .title-detail-hero .title-detail-actions:not(:has(.title-detail-watchlist-text-button)) {
    display: none !important;
  }
}

.overall-input input:not(:placeholder-shown) {
  padding-right: 12px !important;
  text-align: right !important;
}


/* v84: desktop Recent reviews panel scrolls internally */
@media (min-width: 761px) {
  .title-detail-reviews-panel {
    flex: 0 0 auto !important;
    min-height: 240px !important;
    max-height: 320px !important;
    overflow: hidden !important;
  }

  .title-review-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 6px !important;
  }
}


/* v85: lock background scroll while title/rating modals are open */
html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.modal-scroll-locked {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

#title-detail-modal,
#rating-modal {
  overscroll-behavior: none !important;
  touch-action: none !important;
}

#title-detail-modal .title-detail-modal,
#title-detail-modal .title-detail-content,
#title-detail-modal .title-review-list,
#title-detail-modal .title-detail-overview-text,
#title-detail-modal .title-detail-overview-empty,
#rating-modal .rating-modal-card,
#rating-modal .rating-modal-form {
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}


/* v86: title details fixed desktop layout + cleaner modal backdrop */
html.modal-scroll-locked,
body.modal-scroll-locked {
  background: #050506 !important;
}

body.modal-scroll-locked {
  position: static !important;
  top: auto !important;
}

#title-detail-modal,
#rating-modal {
  background: rgba(0, 0, 0, 0.74) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

@media (min-width: 761px) {
  .title-detail-content {
    overflow: hidden !important;
  }

  .title-detail-fixed-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.85fr) !important;
    grid-template-rows: 400px !important;
    gap: 18px !important;
    min-height: 0 !important;
    height: 400px !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  .title-detail-main-column {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 400px !important;
    display: grid !important;
    grid-template-rows: 190px 192px !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  .title-detail-community-panel,
  .title-detail-overview-panel,
  .title-detail-reviews-panel {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .title-detail-community-panel {
    flex: none !important;
  }

  .title-detail-community-aspects {
    height: calc(100% - 34px) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    align-content: stretch !important;
  }

  .title-detail-community-aspects .aspect {
    min-height: 0 !important;
  }

  .title-detail-overview-panel,
  .title-detail-reviews-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  .title-detail-overview-text,
  .title-detail-overview-empty {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
  }

  .title-detail-reviews-panel {
    min-height: 400px !important;
    max-height: 400px !important;
  }

  .title-review-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 760px) {
  .title-detail-fixed-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    height: auto !important;
    overflow: visible !important;
  }

  .title-detail-main-column {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    height: auto !important;
    overflow: visible !important;
  }
}


/* v87: restore taller desktop title details and fix recent reviews internal scrolling */
@media (min-width: 761px) {
  .title-detail-modal {
    height: min(900px, calc(100vh - 44px)) !important;
    max-height: calc(100vh - 44px) !important;
  }

  .title-detail-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 22px 22px !important;
  }

  .title-detail-hero {
    flex: 0 0 220px !important;
    min-height: 220px !important;
    margin-bottom: 18px !important;
  }

  .title-detail-fixed-layout {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.85fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .title-detail-main-column {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: 240px minmax(0, 1fr) !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  .title-detail-community-panel,
  .title-detail-overview-panel,
  .title-detail-reviews-panel {
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .title-detail-community-panel {
    height: 240px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .title-detail-community-heading {
    flex: 0 0 auto !important;
  }

  .title-detail-community-aspects {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(4, minmax(38px, 1fr)) !important;
    gap: 8px !important;
    align-content: stretch !important;
  }

  .title-detail-community-aspects .aspect {
    min-height: 38px !important;
    height: auto !important;
    padding: 8px 10px !important;
  }

  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    min-height: 38px !important;
    height: auto !important;
  }

  .title-detail-overview-panel {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .title-detail-overview-text,
  .title-detail-overview-empty {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
  }

  .title-detail-reviews-panel {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .title-detail-reviews-panel > h3 {
    flex: 0 0 auto !important;
  }

  .title-review-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
    padding-bottom: 18px !important;
    gap: 12px !important;
  }

  .title-review-card,
  .title-review-item {
    flex: 0 0 auto !important;
    min-height: auto !important;
  }

  .title-review-card {
    overflow: visible !important;
  }
}


/* v88: fix desktop Community averages Overall row overlap */
@media (min-width: 761px) {
  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}


/* v89: taller Community averages, shorter Description, and readable comments split layout */
@media (min-width: 761px) {
  .title-detail-main-column {
    grid-template-rows: 292px minmax(0, 1fr) !important;
  }

  .title-detail-community-panel {
    height: 292px !important;
  }

  .title-detail-community-aspects {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(4, minmax(46px, 1fr)) !important;
    gap: 10px !important;
    align-content: stretch !important;
  }

  .title-detail-community-aspects .aspect,
  .title-detail-community-aspects .aspect.overall {
    min-height: 46px !important;
    height: auto !important;
    padding: 9px 12px !important;
    align-items: center !important;
  }

  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .title-detail-overview-panel {
    height: 100% !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel {
    inset: 12px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 216, 77, 0.22) !important;
    border-radius: 16px !important;
    background: rgba(12, 12, 16, 0.985) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55) !important;
    overflow: hidden !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel.open {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.85fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .title-review-card .title-detail-comments-panel .feed-comments-title {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 8px 38px !important;
    background: rgba(31, 31, 37, 0.98) !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: stretch !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    align-content: center !important;
    padding: 12px !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form .avatar,
  .title-review-card .title-detail-comments-panel .comment-form .avatar-small {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form input {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form button {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .title-review-card .title-detail-comments-panel.feed-comments-panel.open {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list,
  .title-review-card .title-detail-comments-panel .comment-form {
    grid-column: 1 !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list {
    grid-row: 2 !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form {
    grid-row: 3 !important;
  }
}


/* v90: lower community-average rating tiles and reverse v89 comment split layout */
@media (min-width: 761px) {
  .title-detail-community-aspects {
    grid-template-rows: repeat(4, 36px) !important;
    gap: 8px !important;
    align-content: start !important;
  }

  .title-detail-community-aspects .aspect,
  .title-detail-community-aspects .aspect.overall {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 10px !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel {
    position: absolute !important;
    inset: 10px !important;
    left: 10px !important;
    top: 10px !important;
    width: auto !important;
    max-height: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 8 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel.open {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    animation: profileCardCommentsSheetUp 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  .title-review-card .title-detail-comments-panel .feed-comments-title {
    grid-column: auto !important;
    grid-row: auto !important;
    position: relative !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 216, 77, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.98) !important;
    color: var(--wr-gold, #ffd84d) !important;
    padding: 8px 38px !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3) !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list {
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(14, 14, 19, 0.97) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-content: normal !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(14, 14, 19, 0.97) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form .avatar,
  .title-review-card .title-detail-comments-panel .comment-form .avatar-small,
  .title-review-card .title-detail-comments-panel .comment-form input,
  .title-review-card .title-detail-comments-panel .comment-form button {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form input {
    min-width: 0 !important;
    width: auto !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    background-color: rgba(31, 31, 37, 0.96) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form button {
    width: auto !important;
    flex: 0 0 auto !important;
  }
}


/* v91: reduce Community averages panel height, grow Description, and use right-side comments popup on desktop */
@media (min-width: 761px) {
  .title-detail-main-column {
    grid-template-rows: 244px minmax(0, 1fr) !important;
  }

  .title-detail-community-panel {
    height: 244px !important;
    min-height: 244px !important;
  }

  .title-detail-overview-panel {
    height: 100% !important;
    min-height: 0 !important;
  }

  .title-review-card {
    position: relative !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    width: 340px !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 216, 77, 0.22) !important;
    border-radius: 16px !important;
    background: rgba(12, 12, 16, 0.985) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55) !important;
    overflow: hidden !important;
    z-index: 12 !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .title-review-card .title-detail-comments-panel .feed-comments-title {
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 8px 38px !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 216, 77, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.98) !important;
    color: var(--wr-gold, #ffd84d) !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(14, 14, 19, 0.97) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(14, 14, 19, 0.97) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form .avatar,
  .title-review-card .title-detail-comments-panel .comment-form .avatar-small {
    flex: 0 0 auto !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    background: rgba(31, 31, 37, 0.96) !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px !important;
  }
}


/* v97: Title Details reviews — separate read-comments and write-comment overlay */
@media (min-width: 761px) {
  .title-review-actions-row {
    flex-wrap: wrap !important;
  }

  .title-review-write-comment-button {
    border-color: rgba(255, 216, 77, 0.20) !important;
    background: rgba(255, 216, 77, 0.07) !important;
    color: #ffe89b !important;
  }

  .title-review-write-comment-button:hover,
  .title-review-write-comment-button.open {
    border-color: rgba(255, 216, 77, 0.38) !important;
    background: rgba(255, 216, 77, 0.14) !important;
  }

  .title-review-card,
  .title-review-item {
    position: relative !important;
    overflow: visible !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel {
    position: absolute !important;
    inset: 10px !important;
    left: 10px !important;
    top: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    z-index: 16 !important;
    display: none !important;
    gap: 10px !important;
  }

  .title-review-card .title-detail-comments-panel.feed-comments-panel.open {
    display: flex !important;
    flex-direction: column !important;
    animation: none !important;
  }

  .title-review-card .title-detail-comments-panel .feed-comments-title {
    position: relative !important;
    width: 100% !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 8px 38px !important;
    border: 1px solid rgba(255, 216, 77, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.98) !important;
    color: var(--wr-gold, #ffd84d) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  .title-review-card .title-detail-comments-panel .feed-close-comments-button {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .title-review-card .title-detail-comments-panel .comments-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(14, 14, 19, 0.97) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .title-review-card .title-detail-comments-panel .comment-form {
    display: none !important;
  }

  .title-detail-write-comment-panel {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(0.98) !important;
    display: none !important;
    z-index: 22 !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 216, 77, 0.24) !important;
    border-radius: 16px !important;
    background: rgba(10, 10, 14, 0.97) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52) !important;
    box-sizing: border-box !important;
  }

  .title-detail-write-comment-panel.open {
    display: block !important;
    animation: writeCommentPop 0.16s ease forwards !important;
  }

  .title-detail-write-comment-title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    margin-bottom: 10px !important;
    padding: 6px 38px !important;
    border: 1px solid rgba(255, 216, 77, 0.24) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.98) !important;
    color: var(--wr-gold, #ffd84d) !important;
    font-weight: 800 !important;
  }

  .title-detail-write-comment-title .feed-close-comments-button {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .title-detail-write-comment-form {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(14, 14, 19, 0.97) !important;
  }

  .title-detail-write-comment-form input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    background: rgba(31, 31, 37, 0.96) !important;
    box-sizing: border-box !important;
  }

  .title-detail-write-comment-form button {
    min-height: 42px !important;
    min-width: 84px !important;
  }

  @keyframes writeCommentPop {
    from {
      opacity: 0;
      transform: translateY(-50%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(-50%) scale(1);
    }
  }
}


/* v98: Watchlist poster-wall layout with its own filters and oldest-added default */
#watchlist-page {
  padding-top: 24px !important;
}

#watchlist-page .watchlist-column {
  width: min(1180px, calc(100vw - 70px)) !important;
  margin: 0 auto 34px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 18px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.06), transparent 34%),
    rgba(17, 16, 24, 0.92) !important;
  border: 1px solid rgba(255, 211, 77, 0.16) !important;
  border-radius: 20px !important;
}

.watchlist-ranking-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.watchlist-ranking-top h2 {
  margin: 0 !important;
  color: #fff4c7 !important;
  font-size: 26px !important;
  letter-spacing: -0.03em !important;
}

.watchlist-controls {
  max-width: 720px !important;
}

#watchlist-page .watchlist-poster-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 18px 14px !important;
  align-items: start !important;
  padding: 8px 0 10px !important;
}

#watchlist-page .watchlist-poster-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
}

#watchlist-page .watchlist-poster-frame {
  position: relative !important;
  width: 100% !important;
  max-width: 126px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

#watchlist-page .watchlist-poster-card:hover .watchlist-poster-frame {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42) !important;
  filter: brightness(1.08) !important;
}

#watchlist-page .watchlist-poster-wall-poster {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9px !important;
  border: none !important;
  box-shadow: none !important;
}

#watchlist-page .watchlist-poster-score {
  color: var(--wr-gold, #ffd700) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 0 14px rgba(255, 211, 77, 0.12) !important;
}

#watchlist-page .watchlist-empty {
  margin-top: 8px !important;
}

@media (min-width: 1100px) {
  #watchlist-page .watchlist-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
    gap: 20px 16px !important;
  }

  #watchlist-page .watchlist-poster-frame {
    max-width: 140px !important;
  }
}

@media (max-width: 760px) {
  #watchlist-page {
    padding-top: 12px !important;
  }

  #watchlist-page .watchlist-column {
    width: 100% !important;
    margin: 0 0 24px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .watchlist-ranking-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .watchlist-ranking-top h2 {
    font-size: 24px !important;
  }

  .watchlist-controls {
    max-width: none !important;
  }

  #watchlist-page .watchlist-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  #watchlist-page .watchlist-poster-frame {
    max-width: none !important;
    border-radius: 8px !important;
  }

  #watchlist-page .watchlist-poster-wall-poster {
    border-radius: 8px !important;
  }

  #watchlist-page .watchlist-poster-score {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  #watchlist-page .watchlist-poster-grid {
    gap: 14px 8px !important;
  }
}


/* v99: Watchlist type filter + cleaner Watchlist header + mobile Title Details scroll fix */
#watchlist-page .watchlist-column {
  background: rgba(17, 16, 24, 0.92) !important;
}

#watchlist-page .watchlist-ranking-top h2 {
  position: static !important;
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#watchlist-page .watchlist-controls {
  max-width: 860px !important;
}

#watchlist-page #watchlist-type {
  min-width: 130px !important;
}

@media (max-width: 760px) {
  #title-detail-modal {
    align-items: flex-start !important;
    overflow: hidden !important;
  }

  #title-detail-modal .title-detail-modal {
    height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: hidden !important;
  }

  #title-detail-modal .title-detail-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  #title-detail-modal .title-detail-fixed-layout,
  #title-detail-modal .title-detail-main-column,
  #title-detail-modal .title-detail-reviews-panel,
  #title-detail-modal .title-review-list {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-detail-reviews-panel {
    display: block !important;
  }

  #title-detail-modal .title-review-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-right: 0 !important;
    padding-bottom: 24px !important;
  }

  #title-detail-modal .title-review-card,
  #title-detail-modal .title-review-item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #watchlist-page .watchlist-controls {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }

  #watchlist-page #watchlist-type {
    min-width: 0 !important;
  }
}

/* v100: Watchlist width/filter fit + restore natural mobile Title Details flow */
#watchlist-page .watchlist-column {
  width: min(1500px, calc(100vw - 56px)) !important;
}

#watchlist-page .watchlist-ranking-top {
  align-items: flex-start !important;
}

#watchlist-page .watchlist-controls {
  display: grid !important;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(112px, 0.42fr)
    minmax(128px, 0.46fr)
    minmax(146px, 0.52fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 900px !important;
  flex: 0 1 900px !important;
}

#watchlist-page .watchlist-controls .global-ranking-search-area,
#watchlist-page .watchlist-controls .global-ranking-search,
#watchlist-page .watchlist-controls .global-ranking-select {
  min-width: 0 !important;
}

#watchlist-page #watchlist-type,
#watchlist-page #watchlist-tag,
#watchlist-page #watchlist-sort {
  min-width: 0 !important;
}

@media (min-width: 1550px) {
  #watchlist-page .watchlist-column {
    width: min(1560px, calc(100vw - 72px)) !important;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  #watchlist-page .watchlist-ranking-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #watchlist-page .watchlist-controls {
    max-width: none !important;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(118px, 0.5fr)) !important;
  }
}

@media (max-width: 760px) {
  #watchlist-page .watchlist-column {
    width: 100% !important;
  }

  #watchlist-page .watchlist-controls {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    flex-basis: auto !important;
  }

  #title-detail-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  #title-detail-modal .title-detail-modal {
    height: auto !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #title-detail-modal .title-detail-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px calc(18px + env(safe-area-inset-bottom)) !important;
  }

  #title-detail-modal .title-detail-hero {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    margin-bottom: 12px !important;
  }

  #title-detail-modal .title-detail-hero-body {
    min-height: 0 !important;
  }

  #title-detail-modal .title-detail-fixed-layout {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-detail-main-column {
    display: contents !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-detail-community-panel {
    order: 1 !important;
  }

  #title-detail-modal .title-detail-overview-panel {
    order: 2 !important;
  }

  #title-detail-modal .title-detail-reviews-panel {
    order: 3 !important;
    display: block !important;
  }

  #title-detail-modal .title-detail-community-panel,
  #title-detail-modal .title-detail-overview-panel,
  #title-detail-modal .title-detail-reviews-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-detail-community-aspects {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }

  #title-detail-modal .title-detail-community-aspects .aspect,
  #title-detail-modal .title-detail-community-aspects .aspect.overall {
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #title-detail-modal .title-detail-overview-text,
  #title-detail-modal .title-detail-overview-empty {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  #title-detail-modal .title-review-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    padding-bottom: 8px !important;
  }

  #title-detail-modal .title-review-card,
  #title-detail-modal .title-review-item {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-review-score-row {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  #title-detail-modal .title-review-actions-row {
    flex-wrap: wrap !important;
  }

  #title-detail-modal .title-detail-comments-panel.feed-comments-panel {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin-top: 10px !important;
    padding: 11px !important;
    transform: none !important;
    overflow: visible !important;
  }
}

/* v101: Title Details mobile cleanup + hide empty top rating pill */
.title-detail-top-user-rating[hidden],
.title-detail-top-user-rating:not(.has-rating) {
  display: none !important;
}

@media (max-width: 760px) {
  #title-detail-modal {
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  #title-detail-modal .title-detail-modal {
    width: min(420px, calc(100vw - 8px)) !important;
    height: calc(100dvh - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #title-detail-modal .title-detail-modal > .modal-top,
  #title-detail-modal .title-detail-modal-top {
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }

  #title-detail-modal .title-detail-content {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px calc(18px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  #title-detail-modal .title-detail-hero,
  #title-detail-modal .title-detail-fixed-layout,
  #title-detail-modal .title-detail-main-column,
  #title-detail-modal .title-detail-community-panel,
  #title-detail-modal .title-detail-overview-panel,
  #title-detail-modal .title-detail-reviews-panel,
  #title-detail-modal .title-review-list,
  #title-detail-modal .title-review-card,
  #title-detail-modal .title-review-item {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transform: none !important;
  }

  #title-detail-modal .title-detail-hero {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #title-detail-modal .title-detail-hero-body {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  #title-detail-modal .title-detail-poster {
    width: 58px !important;
    height: 87px !important;
    border-radius: 10px !important;
  }

  #title-detail-modal .title-detail-hero-main {
    min-width: 0 !important;
  }

  #title-detail-modal .title-detail-title {
    font-size: 21px !important;
    line-height: 1.1 !important;
    margin: 0 0 6px !important;
    overflow-wrap: anywhere !important;
  }

  #title-detail-modal .title-detail-meta,
  #title-detail-modal .title-detail-release-date {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  #title-detail-modal .title-detail-release-date {
    margin: 0 0 8px !important;
  }

  #title-detail-modal .title-detail-score-box {
    display: none !important;
  }

  #title-detail-modal .title-detail-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  #title-detail-modal .title-detail-actions .small-button {
    display: none !important;
  }

  #title-detail-modal .title-detail-actions .secondary-button,
  #title-detail-modal .title-detail-actions button {
    width: 100% !important;
  }

  #title-detail-modal .title-detail-fixed-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #title-detail-modal .title-detail-main-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #title-detail-modal .title-detail-panel {
    display: block !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #title-detail-modal .title-detail-panel h3 {
    margin: 0 0 12px !important;
  }

  #title-detail-modal .title-detail-community-heading {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 0 10px !important;
  }

  #title-detail-modal .title-detail-community-heading h3 {
    margin: 0 !important;
  }

  #title-detail-modal .title-detail-community-score-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  #title-detail-modal .title-detail-community-aspects {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-content: start !important;
  }

  #title-detail-modal .title-detail-community-aspects .aspect,
  #title-detail-modal .title-detail-community-aspects .aspect.overall {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    align-items: center !important;
  }

  #title-detail-modal .title-detail-community-aspects .aspect.overall {
    grid-column: 1 / -1 !important;
  }

  #title-detail-modal .title-detail-overview-text,
  #title-detail-modal .title-detail-overview-empty {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  #title-detail-modal .title-detail-reviews-panel {
    display: block !important;
  }

  #title-detail-modal .title-review-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-right: 0 !important;
    padding-bottom: 8px !important;
  }

  #title-detail-modal .title-review-score-row,
  #title-detail-modal .title-review-actions-row {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  #title-detail-modal .title-detail-comments-panel.feed-comments-panel {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 10px !important;
    padding: 11px !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
}

/* v102: keep Title Details write-comment panel hidden until the button is pressed */
#title-detail-modal .title-detail-write-comment-panel {
  display: none !important;
}

#title-detail-modal .title-detail-write-comment-panel.open {
  display: block !important;
}

@media (max-width: 760px) {
  #title-detail-modal .title-detail-write-comment-panel {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 216, 77, 0.22) !important;
    border-radius: 16px !important;
    background: rgba(10, 10, 14, 0.97) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
    box-sizing: border-box !important;
  }

  #title-detail-modal .title-detail-write-comment-panel.open {
    display: block !important;
  }

  #title-detail-modal .title-detail-write-comment-title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    margin: 0 0 10px !important;
    padding: 6px 38px !important;
    border: 1px solid rgba(255, 216, 77, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.98) !important;
    color: var(--wr-gold, #ffd84d) !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
  }

  #title-detail-modal .title-detail-write-comment-title .feed-close-comments-button {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  #title-detail-modal .title-detail-write-comment-form {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 216, 77, 0.14) !important;
    border-radius: 14px !important;
    background: rgba(14, 14, 19, 0.97) !important;
    box-sizing: border-box !important;
  }

  #title-detail-modal .title-detail-write-comment-form input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    background: rgba(31, 31, 37, 0.96) !important;
  }

  #title-detail-modal .title-detail-write-comment-form button {
    min-height: 42px !important;
    min-width: 56px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* v103: Top Ranked pages use the same poster-wall feel as Find Titles */
#top-movies-page #global-movie-rankings,
#top-shows-page #global-show-rankings,
#categories-page #category-rankings-list {
  display: block !important;
  padding: 0 !important;
}

#top-movies-page .top-ranked-poster-grid,
#top-shows-page .top-ranked-poster-grid,
#categories-page .top-ranked-poster-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 20px 16px !important;
  align-items: start !important;
  width: 100% !important;
}

.top-ranked-poster-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center !important;
}

.top-ranked-poster-frame {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 140px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 9px !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34) !important;
  isolation: isolate !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease !important;
}

.top-ranked-poster-frame::before {
  content: "" !important;
  position: absolute !important;
  inset: -14px -12px -10px !important;
  z-index: 0 !important;
  border-radius: 16px !important;
  opacity: 0 !important;
  filter: blur(14px) !important;
  transform: scale(0.98) !important;
  pointer-events: none !important;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease !important;
}

.top-ranked-poster-card--gold .top-ranked-poster-frame::before {
  opacity: 0.9 !important;
  background:
    radial-gradient(ellipse at center, rgba(255, 215, 74, 0.72), rgba(255, 176, 0, 0.34) 46%, transparent 76%) !important;
}

.top-ranked-poster-card--silver .top-ranked-poster-frame::before {
  opacity: 0.82 !important;
  background:
    radial-gradient(ellipse at center, rgba(235, 239, 245, 0.66), rgba(166, 176, 190, 0.34) 46%, transparent 76%) !important;
}

.top-ranked-poster-card--bronze .top-ranked-poster-frame::before {
  opacity: 0.84 !important;
  background:
    radial-gradient(ellipse at center, rgba(205, 127, 50, 0.68), rgba(145, 83, 36, 0.34) 48%, transparent 76%) !important;
}

.top-ranked-poster-card:hover .top-ranked-poster-frame {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42) !important;
  filter: brightness(1.08) !important;
}

.top-ranked-poster-card--gold:hover .top-ranked-poster-frame::before,
.top-ranked-poster-card--silver:hover .top-ranked-poster-frame::before,
.top-ranked-poster-card--bronze:hover .top-ranked-poster-frame::before {
  opacity: 1 !important;
  transform: scale(1.04) !important;
}

.top-ranked-poster-image {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 9px !important;
  border: none !important;
  box-shadow: none !important;
}

.top-ranked-poster-rank {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  z-index: 4 !important;
  min-width: 30px !important;
  min-height: 24px !important;
  padding: 4px 7px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border: 1px solid rgba(255, 215, 0, 0.42) !important;
  color: #ffd84a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75) !important;
}

.top-ranked-poster-score {
  color: var(--wr-gold, #ffd700) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-shadow: 0 0 14px rgba(255, 211, 77, 0.12) !important;
}

@media (min-width: 1100px) {
  #top-movies-page .top-ranked-poster-grid,
  #top-shows-page .top-ranked-poster-grid,
  #categories-page .top-ranked-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #top-movies-page .top-ranked-poster-grid,
  #top-shows-page .top-ranked-poster-grid,
  #categories-page .top-ranked-poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  .top-ranked-poster-frame {
    max-width: none !important;
    border-radius: 8px !important;
  }

  .top-ranked-poster-image {
    border-radius: 8px !important;
  }

  .top-ranked-poster-rank {
    top: 5px !important;
    left: 5px !important;
    min-width: 28px !important;
    min-height: 22px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
  }

  .top-ranked-poster-score {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  #top-movies-page .top-ranked-poster-grid,
  #top-shows-page .top-ranked-poster-grid,
  #categories-page .top-ranked-poster-grid {
    gap: 14px 8px !important;
  }

  .top-ranked-poster-rank {
    font-size: 11px !important;
  }
}

/* v105: stronger medal glow on ranked poster walls + profile poster-grid/rating detail modal */
.top-ranked-poster-frame::before {
  inset: -22px -20px -17px !important;
  filter: blur(22px) saturate(1.2) !important;
  transform: scale(1.02) !important;
}

.top-ranked-poster-card--gold .top-ranked-poster-frame::before {
  opacity: 1 !important;
  background:
    radial-gradient(ellipse at center, rgba(255, 223, 87, 0.95), rgba(255, 177, 0, 0.58) 42%, rgba(255, 190, 0, 0.22) 62%, transparent 82%) !important;
}

.top-ranked-poster-card--silver .top-ranked-poster-frame::before {
  opacity: 0.96 !important;
  background:
    radial-gradient(ellipse at center, rgba(245, 247, 255, 0.9), rgba(185, 194, 210, 0.58) 42%, rgba(190, 198, 210, 0.22) 62%, transparent 82%) !important;
}

.top-ranked-poster-card--bronze .top-ranked-poster-frame::before {
  opacity: 0.98 !important;
  background:
    radial-gradient(ellipse at center, rgba(224, 145, 65, 0.92), rgba(170, 93, 39, 0.58) 44%, rgba(170, 100, 48, 0.22) 64%, transparent 82%) !important;
}

.top-ranked-poster-card--gold .top-ranked-poster-frame {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(255, 204, 48, 0.28) !important;
}

.top-ranked-poster-card--silver .top-ranked-poster-frame {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(220, 226, 240, 0.22) !important;
}

.top-ranked-poster-card--bronze .top-ranked-poster-frame {
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(205, 127, 50, 0.24) !important;
}

#profile-page .profile-rank-grid,
#view-profile-page .profile-rank-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 20px 16px !important;
  align-items: start !important;
  width: 100% !important;
}

.profile-poster-rank-card {
  min-height: 0 !important;
  height: auto !important;
}

.profile-poster-rank-frame {
  max-width: 140px !important;
}

.profile-poster-rank-score::before {
  content: "Your score";
  display: block;
  color: var(--wr-muted, #9ca3af);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#view-profile-page .profile-poster-rank-score::before {
  content: "Score";
}

#profile-page .profile-ranking-column,
#view-profile-page .profile-ranking-column {
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#profile-page .rankings-container,
#view-profile-page .rankings-container {
  align-items: start !important;
}

#profile-page.profile-custom-theme .profile-poster-rank-score,
#view-profile-page.profile-custom-theme .profile-poster-rank-score {
  color: var(--profile-theme-accent, #ffd700) !important;
}

#profile-rating-detail-modal {
  padding: 18px !important;
  box-sizing: border-box !important;
  align-items: center !important;
}

.profile-rating-detail-card {
  width: min(940px, 94vw);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.22));
  border-radius: 22px;
  background: var(--profile-theme-panel-strong, #111116);
  box-shadow:
    0 0 40px var(--profile-theme-glow, rgba(255, 215, 0, 0.12)),
    0 28px 80px rgba(0, 0, 0, 0.68);
  color: var(--wr-text, #f4f4f5);
}

.profile-rating-detail-top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 20px 14px;
  margin: 0;
  background: rgba(10, 10, 14, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-rating-detail-top h2 {
  margin: 0;
}

.profile-rating-detail-top p {
  margin: 6px 0 0;
  color: var(--wr-muted, #9ca3af);
  font-size: 13px;
}

.profile-rating-detail-content {
  padding: 20px;
}

.profile-rating-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.86), rgba(12, 12, 18, 0.6)),
    var(--profile-theme-panel, rgba(18, 18, 22, 0.92));
  overflow: hidden;
}

.profile-rating-detail-hero.has-profile-rating-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 8, 0.94), rgba(5, 5, 8, 0.42), rgba(5, 5, 8, 0.82)),
    var(--profile-rating-backdrop-url);
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  z-index: 0;
}

.profile-rating-detail-hero > * {
  position: relative;
  z-index: 1;
}

.profile-rating-detail-poster {
  width: 104px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
}

.profile-rating-detail-main h2 {
  margin: 8px 0 6px;
  color: #fff6c2;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  font-weight: 900;
  max-width: 700px;
}

.profile-rating-detail-main p {
  margin: 0 0 8px;
  color: #d7d7df;
  font-weight: 700;
}

.profile-rating-detail-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--wr-muted, #9ca3af);
  font-size: 13px;
  font-weight: 700;
}

.profile-rating-detail-owner span:nth-child(2) {
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 900;
}

.profile-rating-detail-score-card {
  min-width: 132px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.36));
  background: rgba(8, 8, 12, 0.7);
  text-align: center;
  box-shadow: 0 0 26px var(--profile-theme-glow, rgba(255, 215, 0, 0.12));
}

.profile-rating-detail-score-card strong {
  display: block;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.profile-rating-detail-score-card span {
  display: block;
  margin-top: 8px;
  color: #c7c7d2;
  font-size: 12px;
  font-weight: 800;
}

.profile-rating-detail-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 16px 0;
}

.profile-rating-detail-action-row .small-button {
  background: linear-gradient(90deg, var(--profile-theme-accent, #ffd700), #fff0a3) !important;
  color: #111 !important;
}

.profile-rating-delete-button,
.rating-modal-delete-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.profile-rating-delete-button:hover,
.rating-modal-delete-button:hover {
  background: rgba(153, 27, 27, 0.48);
  border-color: rgba(248, 113, 113, 0.86);
  color: white;
}

.profile-rating-detail-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  background: rgba(15, 15, 20, 0.62);
}

.profile-rating-detail-section h3 {
  margin: 0 0 12px;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 20px;
}

.profile-rating-detail-aspects {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-rating-detail-aspects .overall {
  grid-column: 1 / -1;
}

.profile-rating-detail-notes {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: #f3f3f8;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-rating-detail-notes.empty {
  color: var(--wr-muted, #9ca3af);
  font-style: italic;
}

.profile-rating-detail-social-static,
.profile-rating-detail-social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  color: #e7e7ef;
  font-weight: 800;
}

.profile-rating-detail-comment-count,
.profile-rating-detail-social-static span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.profile-rating-detail-comments {
  display: block !important;
  margin-top: 10px !important;
  padding: 14px !important;
  border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.12)) !important;
  background: rgba(8, 8, 12, 0.54) !important;
}

.profile-rating-detail-comments .feed-close-comments-button {
  display: none !important;
}

.profile-rating-detail-comments .comments-list {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.rating-modal-actions {
  justify-content: flex-end !important;
  align-items: center !important;
}

.rating-modal-action-spacer {
  flex: 1 1 auto;
}

.rating-modal-delete-button {
  margin-right: auto;
}

@media (min-width: 1100px) {
  #profile-page .profile-rank-grid,
  #view-profile-page .profile-rank-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #profile-page .profile-rank-grid,
  #view-profile-page .profile-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  .profile-poster-rank-frame {
    max-width: none !important;
  }

  #profile-rating-detail-modal {
    padding: 8px !important;
    align-items: stretch !important;
  }

  .profile-rating-detail-card {
    width: 100%;
    max-height: 96vh;
    border-radius: 18px;
  }

  .profile-rating-detail-content {
    padding: 14px;
  }

  .profile-rating-detail-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .profile-rating-detail-poster {
    width: 76px;
  }

  .profile-rating-detail-score-card {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 12px 14px;
  }

  .profile-rating-detail-score-card strong {
    font-size: 30px;
  }

  .profile-rating-detail-score-card span {
    margin-top: 0;
  }

  .profile-rating-detail-main h2 {
    font-size: 24px;
    line-height: 1;
  }

  .profile-rating-detail-action-row {
    justify-content: stretch;
  }

  .profile-rating-detail-action-row button {
    flex: 1 1 auto;
  }

  .profile-rating-detail-aspects {
    grid-template-columns: 1fr !important;
  }

  .rating-modal-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .rating-modal-delete-button,
  .rating-modal-action-spacer {
    grid-column: 1 / -1;
  }

  .rating-modal-action-spacer {
    display: none;
  }
}

/* v106: cleaner profile rating details layout */
.profile-rating-detail-top-heading {
  min-width: 0;
}

.profile-rating-detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-rating-detail-title-row h2 {
  flex: 0 0 auto;
}

.profile-rating-top-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.32));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.profile-rating-top-title-button:hover {
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.12));
  border-color: var(--profile-theme-accent, #ffd700);
}

.profile-rating-detail-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.profile-rating-top-delete-button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
}

.profile-rating-detail-ratings-section {
  margin-top: 16px;
}

.profile-rating-detail-edit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-rating-detail-edit-row .small-button {
  background: linear-gradient(90deg, var(--profile-theme-accent, #ffd700), #fff0a3) !important;
  color: #111 !important;
}

.profile-rating-detail-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.profile-rating-detail-bottom-grid .profile-rating-detail-section {
  margin-top: 0;
  min-width: 0;
}

.profile-rating-detail-notes-section,
.profile-rating-detail-social-section {
  display: flex;
  flex-direction: column;
}

.profile-rating-detail-notes {
  flex: 1 1 auto;
  min-height: 160px;
}

.profile-rating-detail-social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-rating-detail-social-header .profile-rating-detail-social-static,
.profile-rating-detail-social-header .profile-rating-detail-social-actions {
  margin: 0;
  width: 100%;
}

.profile-rating-detail-social-section .profile-rating-detail-comments {
  flex: 1 1 auto;
  margin-top: 0 !important;
}

.profile-rating-detail-social-section .feed-comments-title {
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 900;
}

.profile-rating-detail-social-section .comments-list {
  min-height: 88px;
}

@media (max-width: 760px) {
  .profile-rating-detail-top {
    align-items: flex-start;
    gap: 12px;
  }

  .profile-rating-detail-top-actions {
    gap: 6px;
  }

  .profile-rating-top-title-button,
  .profile-rating-top-delete-button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .profile-rating-detail-bottom-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-rating-detail-notes {
    min-height: 120px;
  }

  .profile-rating-detail-edit-row .small-button {
    width: 100%;
  }
}

/* v107: tighten profile rating detail notes, keep comments inside popup, move Edit left */
.profile-rating-detail-notes {
  display: block !important;
  text-align: left !important;
  padding: 12px 14px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.profile-rating-detail-edit-row {
  justify-content: flex-start !important;
}

.profile-rating-detail-comments.feed-comments-panel,
.profile-rating-detail-social-section .profile-rating-detail-comments.feed-comments-panel {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin: 0 !important;
  animation: none !important;
  box-sizing: border-box !important;
  z-index: auto !important;
}

.profile-rating-detail-comments.feed-comments-panel.open,
.profile-rating-detail-social-section .profile-rating-detail-comments.feed-comments-panel.open {
  display: flex !important;
}

.profile-rating-detail-social-section .profile-rating-detail-comments .comments-list {
  max-height: 260px !important;
  overflow: auto !important;
}

/* v108: tighten profile rating notes text and smaller social count pills */
.profile-rating-detail-notes {
  padding: 9px 11px !important;
  text-align: left !important;
  white-space: pre-wrap !important;
}

.profile-rating-detail-notes-section .profile-rating-detail-notes {
  min-height: 150px;
}

.profile-rating-detail-social-header {
  gap: 8px !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

.profile-rating-detail-social-header .profile-rating-detail-social-static,
.profile-rating-detail-social-header .profile-rating-detail-social-actions {
  gap: 8px !important;
}

.profile-rating-detail-social-header .profile-rating-detail-social-static span,
.profile-rating-detail-social-header .profile-rating-detail-comment-count,
.profile-rating-detail-social-header .like-button {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
}


/* v109: home preview sections use poster format too */
#home-page .home-mini-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
  gap: 18px 12px !important;
  align-items: start !important;
  width: 100% !important;
  overflow: visible !important;
}

#home-page .home-poster-card {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
}

#home-page .home-poster-frame {
  max-width: 92px !important;
  border-radius: 9px !important;
}

#home-page .home-poster-image {
  border-radius: 9px !important;
}

#home-page .home-poster-rank {
  top: 5px !important;
  left: 5px !important;
  min-width: 28px !important;
  min-height: 22px !important;
  padding: 4px 6px !important;
  font-size: 12px !important;
}

#home-page .home-poster-score {
  font-size: 16px !important;
}

#home-page .home-preview-card {
  overflow: visible !important;
}

@media (min-width: 1200px) {
  #home-page .home-mini-list {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1000px) {
  #home-page .home-mini-list {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  #home-page .home-mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  #home-page .home-poster-frame {
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  #home-page .home-mini-list {
    gap: 14px 8px !important;
  }

  #home-page .home-poster-score {
    font-size: 15px !important;
  }
}

/* v110: profile header split, mobile profile tabs + filter drawer, and fixed home ranking sort support */
#profile-header.profile-summary-static-card {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  cursor: default !important;
}

.profile-summary-static-grid {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr) !important;
  gap: 18px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.profile-summary-primary-panel,
.profile-facts-panel {
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(23, 59, 77, 0.22), transparent 34%),
    var(--profile-theme-panel, rgba(18, 18, 22, 0.82)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
  box-sizing: border-box !important;
  min-height: 240px !important;
}

.profile-summary-primary-panel {
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-summary-primary-panel .profile-header-main,
#profile-header .profile-summary-primary-panel .profile-header-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  text-align: center !important;
}

.profile-summary-primary-panel #profile-header-name,
#profile-header .profile-summary-primary-panel #profile-header-name {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}

.profile-summary-primary-panel #profile-header-name h2,
#profile-header .profile-summary-primary-panel #profile-header-name h2 {
  margin: 0 !important;
}

.profile-summary-primary-panel .profile-stats,
#profile-header .profile-summary-primary-panel .profile-stats {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.profile-summary-primary-panel .avatar-upload-panel,
#profile-header .profile-summary-primary-panel .avatar-upload-panel {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  justify-content: center !important;
}

.profile-facts-panel {
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.profile-facts-panel h2 {
  margin: 0 0 16px !important;
  color: var(--profile-theme-accent, var(--wr-gold, #ffd700)) !important;
}

.profile-facts-empty {
  flex: 1 1 auto !important;
  min-height: 130px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px dashed var(--profile-theme-border, rgba(255, 255, 255, 0.18)) !important;
  border-radius: 16px !important;
  color: var(--wr-muted, #9ca3af) !important;
  font-weight: 800 !important;
  background: rgba(0, 0, 0, 0.16) !important;
}

#profile-page.profile-custom-theme .profile-summary-primary-panel,
#profile-page.profile-custom-theme .profile-facts-panel {
  border-color: var(--profile-theme-border) !important;
  background: var(--profile-theme-panel, rgba(18, 18, 22, 0.92)) !important;
  box-shadow:
    0 0 26px var(--profile-theme-glow),
    0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

#profile-page.has-profile-background .profile-summary-primary-panel,
#profile-page.has-profile-background .profile-facts-panel {
  background-color: var(--profile-ranking-panel-bg, rgba(18, 18, 22, 0.34)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.profile-mobile-ranking-controls {
  display: none !important;
}

@media (max-width: 760px) {
  #profile-header.profile-summary-static-card {
    margin: 0 0 10px !important;
    width: 100% !important;
  }

  .profile-summary-static-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .profile-facts-panel {
    display: none !important;
  }

  .profile-summary-primary-panel {
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  .profile-summary-primary-panel .profile-header-main,
  #profile-header .profile-summary-primary-panel .profile-header-main {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "name name edit"
      "stats stats stats" !important;
    justify-items: stretch !important;
    align-items: center !important;
    gap: 9px 10px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .profile-summary-primary-panel #profile-header-name,
  #profile-header .profile-summary-primary-panel #profile-header-name {
    grid-area: name !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .profile-summary-primary-panel #profile-header-name .avatar-large,
  #profile-header .profile-summary-primary-panel #profile-header-name .avatar-large {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  .profile-summary-primary-panel #profile-header-name h2,
  #profile-header .profile-summary-primary-panel #profile-header-name h2 {
    font-size: 20px !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .profile-summary-primary-panel .avatar-upload-panel,
  #profile-header .profile-summary-primary-panel .avatar-upload-panel {
    grid-area: edit !important;
    justify-self: end !important;
  }

  .profile-summary-primary-panel .edit-profile-button,
  #profile-header .profile-summary-primary-panel .edit-profile-button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  .profile-summary-primary-panel .profile-stats,
  #profile-header .profile-summary-primary-panel .profile-stats {
    grid-area: stats !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .profile-summary-primary-panel .stat-box,
  #profile-header .profile-summary-primary-panel .stat-box {
    padding: 7px 10px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
  }

  .profile-summary-primary-panel .stat-box strong,
  #profile-header .profile-summary-primary-panel .stat-box strong {
    font-size: 16px !important;
  }

  .profile-summary-primary-panel .stat-box div,
  #profile-header .profile-summary-primary-panel .stat-box div {
    font-size: 12px !important;
  }

  #profile-rankings-container.profile-rankings-container {
    display: block !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .profile-mobile-ranking-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 70 !important;
    padding: 8px !important;
    border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
    border-radius: 16px !important;
    background: rgba(10, 10, 14, 0.78) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .profile-mobile-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .profile-mobile-tab,
  .profile-mobile-filter-button {
    min-height: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.92) !important;
    color: #f5f5f7 !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  .profile-mobile-tab.active,
  .profile-mobile-filter-button.active {
    color: #111 !important;
    border-color: transparent !important;
    background: linear-gradient(180deg, #ffe76a, #ffd13b) !important;
    box-shadow: 0 0 18px rgba(255, 211, 77, 0.18) !important;
  }

  .profile-ranking-column.mobile-hidden {
    display: none !important;
  }

  .profile-ranking-column.mobile-active {
    display: block !important;
  }

  #profile-page .profile-ranking-column,
  #view-profile-page .profile-ranking-column {
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #profile-page .profile-ranking-column:not(.filters-open) .profile-rank-section-header {
    display: none !important;
  }

  #profile-page .profile-ranking-column.filters-open .profile-rank-section-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    position: static !important;
    background: rgba(0, 0, 0, 0.16) !important;
  }

  #profile-page .profile-ranking-column.filters-open .profile-rank-section-header h2 {
    display: none !important;
  }

  #profile-page .profile-ranking-column.filters-open .profile-rank-search-wrap,
  #profile-page .profile-ranking-column.filters-open .profile-rank-tag,
  #profile-page .profile-ranking-column.filters-open .profile-rank-sort {
    width: 100% !important;
    max-width: 100% !important;
  }

  #profile-page .profile-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 8px !important;
  }

  #profile-page .profile-poster-rank-score::before {
    font-size: 8px !important;
    margin-bottom: 2px !important;
  }

  #profile-page .profile-poster-rank-score {
    font-size: 15px !important;
  }
}


/* v111: make mobile profile tabs functional, not just visual.
   Only the active Movies/TV Shows section exists in the mobile layout. */
@media (max-width: 760px) {
  #profile-page #personal-movie-section.profile-ranking-column.mobile-hidden,
  #profile-page #personal-show-section.profile-ranking-column.mobile-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  #profile-page #personal-movie-section.profile-ranking-column.mobile-active,
  #profile-page #personal-show-section.profile-ranking-column.mobile-active {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
  }
}

/* v112: profile tabs polish - theme colors, no "Your", 4-up mobile poster grid */
@media (max-width: 760px) {
  #profile-page .profile-mobile-ranking-controls {
    border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
    background: rgba(var(--profile-theme-panel-rgb, 18, 18, 22), 0.70) !important;
    box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.12)) !important;
  }

  #profile-page .profile-mobile-tab,
  #profile-page .profile-mobile-filter-button {
    min-height: 34px !important;
    padding: 7px 9px !important;
    border-color: var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
    background: var(--profile-theme-input, rgba(31, 31, 37, 0.92)) !important;
    color: #f5f5f7 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  }

  #profile-page .profile-mobile-tab.active,
  #profile-page .profile-mobile-filter-button.active {
    color: #0b0b0f !important;
    border-color: var(--profile-theme-accent, #ffd700) !important;
    background: var(--profile-theme-accent, #ffd700) !important;
    box-shadow:
      0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.16)),
      0 0 0 1px rgba(255, 255, 255, 0.10) inset !important;
  }

  #profile-page .profile-rank-grid,
  #view-profile-page .profile-rank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px 7px !important;
  }

  #profile-page .top-ranked-poster-rank.profile-poster-rank-badge,
  #view-profile-page .top-ranked-poster-rank.profile-poster-rank-badge {
    top: 5px !important;
    left: 5px !important;
    min-width: 22px !important;
    height: 20px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }

  #profile-page .profile-poster-rank-score::before,
  #view-profile-page .profile-poster-rank-score::before {
    font-size: 7px !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 1px !important;
  }

  #profile-page .profile-poster-rank-score,
  #view-profile-page .profile-poster-rank-score {
    font-size: 13px !important;
    line-height: 1.05 !important;
  }
}

/* v113: mobile home cleanup + viewed profile uses the same modern profile layout */
@media (max-width: 760px) {
  #home-page .home-hero {
    display: none !important;
  }
}

#view-profile-header.profile-summary-static-card {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  cursor: default !important;
}

#view-profile-page.profile-custom-theme .profile-summary-primary-panel,
#view-profile-page.profile-custom-theme .profile-facts-panel {
  border-color: var(--profile-theme-border) !important;
  background: var(--profile-theme-panel, rgba(18, 18, 22, 0.92)) !important;
  box-shadow:
    0 0 26px var(--profile-theme-glow),
    0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

#view-profile-page.has-profile-background .profile-summary-primary-panel,
#view-profile-page.has-profile-background .profile-facts-panel {
  background-color: var(--profile-ranking-panel-bg, rgba(18, 18, 22, 0.34)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

#view-profile-header .profile-summary-primary-panel .profile-header-main {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  text-align: center !important;
}

#view-profile-header .profile-summary-primary-panel #view-profile-name {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}

#view-profile-header .profile-summary-primary-panel #view-profile-name h2 {
  margin: 0 !important;
}

#view-profile-header .profile-summary-primary-panel .profile-stats {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#view-profile-header .profile-summary-primary-panel .view-profile-follow-action {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  justify-content: center !important;
}

@media (max-width: 760px) {
  #view-profile-header.profile-summary-static-card {
    margin: 0 0 10px !important;
    width: 100% !important;
  }

  #view-profile-header .profile-summary-primary-panel {
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  #view-profile-header .profile-summary-primary-panel .profile-header-main {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "name name action"
      "stats stats stats" !important;
    justify-items: stretch !important;
    align-items: center !important;
    gap: 9px 10px !important;
    width: 100% !important;
    text-align: left !important;
  }

  #view-profile-header .profile-summary-primary-panel #view-profile-name {
    grid-area: name !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  #view-profile-header .profile-summary-primary-panel #view-profile-name .avatar-large {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  #view-profile-header .profile-summary-primary-panel #view-profile-name h2 {
    font-size: 20px !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #view-profile-header .profile-summary-primary-panel .view-profile-follow-action {
    grid-area: action !important;
    justify-self: end !important;
  }

  #view-profile-header .profile-summary-primary-panel .view-profile-follow-action button,
  #view-profile-header .profile-summary-primary-panel .view-profile-follow-action .follow-button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  #view-profile-header .profile-summary-primary-panel .profile-stats {
    grid-area: stats !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  #view-profile-header .profile-summary-primary-panel .stat-box {
    padding: 7px 10px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
  }

  #view-profile-header .profile-summary-primary-panel .stat-box strong {
    font-size: 16px !important;
  }

  #view-profile-header .profile-summary-primary-panel .stat-box div {
    font-size: 12px !important;
  }

  #view-profile-rankings-container.profile-rankings-container {
    display: block !important;
    width: 100% !important;
    gap: 0 !important;
  }

  #view-profile-page .profile-mobile-ranking-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 70 !important;
    padding: 8px !important;
    border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
    border-radius: 16px !important;
    background: rgba(var(--profile-theme-panel-rgb, 18, 18, 22), 0.70) !important;
    box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.12)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  #view-profile-page .profile-mobile-tab,
  #view-profile-page .profile-mobile-filter-button {
    min-height: 34px !important;
    padding: 7px 9px !important;
    border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
    border-radius: 999px !important;
    background: var(--profile-theme-input, rgba(31, 31, 37, 0.92)) !important;
    color: #f5f5f7 !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  }

  #view-profile-page .profile-mobile-tab.active,
  #view-profile-page .profile-mobile-filter-button.active {
    color: #0b0b0f !important;
    border-color: var(--profile-theme-accent, #ffd700) !important;
    background: var(--profile-theme-accent, #ffd700) !important;
    box-shadow:
      0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.16)),
      0 0 0 1px rgba(255, 255, 255, 0.10) inset !important;
  }

  #view-profile-page #view-movie-section.profile-ranking-column.mobile-hidden,
  #view-profile-page #view-show-section.profile-ranking-column.mobile-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  #view-profile-page #view-movie-section.profile-ranking-column.mobile-active,
  #view-profile-page #view-show-section.profile-ranking-column.mobile-active {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
  }

  #view-profile-page .profile-ranking-column:not(.filters-open) .profile-rank-section-header {
    display: none !important;
  }

  #view-profile-page .profile-ranking-column.filters-open .profile-rank-section-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    position: static !important;
    background: rgba(0, 0, 0, 0.16) !important;
  }

  #view-profile-page .profile-ranking-column.filters-open .profile-rank-section-header h2 {
    display: none !important;
  }

  #view-profile-page .profile-ranking-column.filters-open .profile-rank-search-wrap,
  #view-profile-page .profile-ranking-column.filters-open .profile-rank-tag,
  #view-profile-page .profile-ranking-column.filters-open .profile-rank-sort {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v114: viewed profile cleanup - compact header spacing and standalone themed Compare Taste button */
@media (max-width: 760px) {
  #view-profile-page #view-profile-header.view-profile-header-card.profile-summary-card.profile-summary-static-card {
    min-height: 0 !important;
    margin: 0 0 8px !important;
  }

  #view-profile-page #view-profile-header .profile-summary-static-grid,
  #view-profile-page #view-profile-header .profile-summary-primary-panel,
  #view-profile-page #view-profile-header .profile-header-main {
    min-height: 0 !important;
  }
}

#view-profile-page .taste-comparison-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#view-profile-page .taste-compare-topline {
  justify-content: flex-start !important;
  align-items: center !important;
}

#view-profile-page .taste-compare-topline > div:first-child,
#view-profile-page .taste-compare-score-badge {
  display: none !important;
}

#view-profile-page .taste-compare-actions {
  width: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#view-profile-page .taste-compare-toggle-button {
  width: auto !important;
  min-height: 42px !important;
  padding: 11px 18px !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 215, 0, 0.28)) !important;
  border-radius: 999px !important;
  background: var(--profile-theme-accent, #ffd700) !important;
  color: #0b0b0f !important;
  font-weight: 950 !important;
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.16)) !important;
}

#view-profile-page .taste-comparison-card.open .taste-compare-details {
  margin-top: 12px !important;
}

@media (max-width: 900px) {
  #view-profile-page .taste-compare-actions {
    width: auto !important;
    justify-content: flex-start !important;
  }

  #view-profile-page .taste-compare-toggle-button {
    width: auto !important;
    box-sizing: border-box !important;
  }
}

/* v115: mobile profile facts flip, compact Compare Taste button, and mobile Find Titles filters */
.discover-mobile-filter-button {
  display: none;
}

@media (max-width: 760px) {
  /* Mobile profile cards can flip between profile info and Profile facts. */
  #profile-header.profile-summary-static-card,
  #view-profile-header.profile-summary-static-card {
    cursor: pointer !important;
  }

  #profile-header.profile-summary-static-card.mobile-facts-open .profile-summary-primary-panel,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-summary-primary-panel {
    display: none !important;
  }

  #profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel {
    display: flex !important;
    min-height: 118px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    animation: profileMobileFactsFlipIn 0.22s ease-out both;
  }

  #profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel h2,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel h2 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  #profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-empty,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-empty {
    min-height: 54px !important;
    padding: 10px !important;
    font-size: 13px !important;
  }

  @keyframes profileMobileFactsFlipIn {
    from {
      opacity: 0;
      transform: rotateY(-10deg) scale(0.985);
    }

    to {
      opacity: 1;
      transform: rotateY(0) scale(1);
    }
  }

  /* Wider, lower Compare Taste action on viewed profiles. */
  #view-profile-page .taste-comparison-card {
    margin: 0 0 10px !important;
    width: 100% !important;
  }

  #view-profile-page .taste-compare-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }

  #view-profile-page .taste-compare-toggle-button {
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  /* Find Titles mobile: keep search visible, tuck filters behind a button. */
  #discover-page .discover-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #discover-page .discover-search-panel {
    order: -2 !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  #discover-page .discover-trending-panel {
    order: -1 !important;
  }

  #discover-page .discover-search-panel h2 {
    display: block !important;
    margin: 0 0 10px !important;
    font-size: 24px !important;
  }

  #discover-page .discover-search-panel > p,
  #discover-page .discover-search-area label {
    display: none !important;
  }

  #discover-page #discover-title-search {
    margin-top: 0 !important;
  }

  #discover-page .discover-mobile-filter-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 36px !important;
    margin-top: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(31, 31, 37, 0.92) !important;
    color: #f5f5f7 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
  }

  #discover-page .discover-mobile-filter-button.active {
    color: #0b0b0f !important;
    border-color: #ffd700 !important;
    background: #ffd700 !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.18) !important;
  }

  #discover-page .discover-search-panel .discover-filters-compact,
  #discover-page .discover-search-panel #discover-clear-filters-button {
    display: none !important;
  }

  #discover-page .discover-search-panel.filters-open .discover-filters-compact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  #discover-page .discover-search-panel.filters-open #discover-clear-filters-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 34px !important;
    margin-top: 8px !important;
    border-radius: 999px !important;
  }

  #discover-page .discover-clear-search-button {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* v116: profile grid alignment, profile-only poster under-glow, and cleaner TMDb suggestions */
@media (min-width: 761px) {
  #profile-page .profile-summary-static-grid,
  #view-profile-page .profile-summary-static-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 35px !important;
  }
}

#profile-page .top-ranked-poster-frame::before,
#view-profile-page .top-ranked-poster-frame::before {
  top: auto !important;
  right: -8px !important;
  bottom: -24px !important;
  left: -8px !important;
  height: 58px !important;
  inset: auto -8px -24px -8px !important;
  border-radius: 0 0 22px 22px !important;
  filter: blur(18px) saturate(1.12) !important;
  transform: translateY(9px) scaleX(0.96) !important;
}

#profile-page .top-ranked-poster-card--gold .top-ranked-poster-frame::before,
#view-profile-page .top-ranked-poster-card--gold .top-ranked-poster-frame::before {
  background: radial-gradient(ellipse at center, rgba(255, 223, 87, 0.92), rgba(255, 177, 0, 0.45) 44%, transparent 76%) !important;
}

#profile-page .top-ranked-poster-card--silver .top-ranked-poster-frame::before,
#view-profile-page .top-ranked-poster-card--silver .top-ranked-poster-frame::before {
  background: radial-gradient(ellipse at center, rgba(245, 247, 255, 0.86), rgba(185, 194, 210, 0.42) 44%, transparent 76%) !important;
}

#profile-page .top-ranked-poster-card--bronze .top-ranked-poster-frame::before,
#view-profile-page .top-ranked-poster-card--bronze .top-ranked-poster-frame::before {
  background: radial-gradient(ellipse at center, rgba(224, 145, 65, 0.88), rgba(170, 93, 39, 0.42) 46%, transparent 78%) !important;
}

#profile-page .top-ranked-poster-card--gold .top-ranked-poster-frame,
#view-profile-page .top-ranked-poster-card--gold .top-ranked-poster-frame {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 22px 30px -14px rgba(255, 204, 48, 0.52) !important;
}

#profile-page .top-ranked-poster-card--silver .top-ranked-poster-frame,
#view-profile-page .top-ranked-poster-card--silver .top-ranked-poster-frame {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 22px 30px -14px rgba(220, 226, 240, 0.42) !important;
}

#profile-page .top-ranked-poster-card--bronze .top-ranked-poster-frame,
#view-profile-page .top-ranked-poster-card--bronze .top-ranked-poster-frame {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 22px 30px -14px rgba(205, 127, 50, 0.46) !important;
}

#suggestions,
#discover-suggestions {
  max-height: min(520px, 62vh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

#suggestions .tmdb-suggestion-item,
#discover-suggestions .tmdb-suggestion-item {
  padding: 10px !important;
}

#suggestions .tmdb-suggestion-layout,
#discover-suggestions .tmdb-suggestion-layout {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  min-height: 114px !important;
}

#suggestions .tmdb-suggestion-poster-wrap,
#discover-suggestions .tmdb-suggestion-poster-wrap {
  width: 76px !important;
  height: 114px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
}

#suggestions .tmdb-suggestion-content,
#discover-suggestions .tmdb-suggestion-content {
  width: auto !important;
  min-height: 114px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  min-width: 0 !important;
}

#suggestions .tmdb-suggestion-header,
#discover-suggestions .tmdb-suggestion-header {
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

#suggestions .tmdb-suggestion-header .suggestion-title,
#discover-suggestions .tmdb-suggestion-header .suggestion-title {
  text-align: left !important;
  font-size: 16px !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
}

#suggestions .tmdb-suggestion-meta,
#discover-suggestions .tmdb-suggestion-meta {
  justify-content: flex-start !important;
  margin-top: 6px !important;
  line-height: 1.35 !important;
}

#suggestions .suggestion-overview,
#discover-suggestions .suggestion-overview {
  display: none !important;
}

#suggestions .tmdb-suggestion-status,
#discover-suggestions .tmdb-suggestion-status {
  margin-top: 9px !important;
}

/* v117: stronger TMDb ranking, cyan scrollbar, and Hot Takes / Favorites profile facts */
* {
  scrollbar-color: rgba(56, 189, 248, 0.65) rgba(8, 8, 12, 0.85);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 8, 12, 0.85);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.55);
  border-radius: 999px;
  border: 3px solid rgba(8, 8, 12, 0.85);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.8);
}

.profile-facts-cycle-card {
  cursor: pointer !important;
  user-select: none;
}

.profile-facts-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.profile-facts-top h2 {
  margin: 0 !important;
}

.profile-facts-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.1));
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.profile-facts-edit-button:hover {
  border-color: var(--profile-theme-accent, #ffd700);
  background: var(--profile-theme-glow, rgba(255, 215, 0, 0.16));
}

.profile-facts-content {
  flex: 1 1 auto;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-fact-poster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  width: 100%;
}

.profile-fact-poster-card {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.profile-fact-poster-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.profile-fact-poster-card:hover .profile-fact-poster-frame {
  transform: translateY(-2px);
  border-color: var(--profile-theme-accent, #ffd700);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.18));
}

.profile-fact-poster-image,
.profile-fact-poster-image .title-poster-img,
.profile-fact-poster-image .title-poster-placeholder,
.profile-fact-poster-frame .title-poster-wrap,
.profile-fact-poster-frame .title-poster-img,
.profile-fact-poster-frame .title-poster-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  object-fit: cover !important;
}

.profile-fact-score-line {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: #e8e8f0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.profile-fact-score-line.positive {
  color: var(--profile-theme-accent, #ffd700);
}

.profile-fact-score-line.negative {
  color: #fca5a5;
}

.favorites-modal-card {
  width: min(980px, 94vw);
  max-height: min(760px, 88vh);
  background: var(--profile-theme-panel, rgba(18, 18, 22, 0.96));
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14));
  border-radius: 20px;
  padding: 22px;
  box-shadow:
    0 0 28px var(--profile-theme-glow, rgba(255, 215, 0, 0.1)),
    0 24px 60px rgba(0, 0, 0, 0.62);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.favorites-modal-top p {
  color: var(--wr-muted, #9ca3af);
  margin: 6px 0 0;
}

.favorites-modal-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(170px, 220px);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.favorites-search-wrap {
  width: 100%;
}

.favorites-search,
.favorites-select {
  background: var(--profile-theme-input, #1f1f25) !important;
  border-color: var(--profile-theme-border, #444) !important;
}

.favorites-search:focus,
.favorites-select:focus {
  border-color: var(--profile-theme-accent, #ffd700) !important;
}

.favorites-modal-message {
  min-height: 20px;
  color: var(--profile-theme-accent, #ffd700);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.favorites-modal-message.error {
  color: #fca5a5;
}

.favorites-modal-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.favorites-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
  align-items: start;
}

.favorite-choice-card {
  position: relative;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  background: var(--profile-theme-surface, rgba(19, 19, 25, 0.96));
  color: white;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-align: left;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.favorite-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--profile-theme-accent, #ffd700);
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.16));
}

.favorite-choice-card.selected {
  border-color: var(--profile-theme-accent, #ffd700);
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.1));
  box-shadow: 0 0 22px var(--profile-theme-glow, rgba(255, 215, 0, 0.18));
}

.favorite-choice-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.favorite-choice-poster .title-poster-wrap,
.favorite-choice-poster .title-poster-img,
.favorite-choice-poster .title-poster-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  object-fit: cover !important;
}

.favorite-choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--profile-theme-accent, #ffd700);
  color: #0b0b0f;
  font-weight: 950;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.favorite-choice-card.selected .favorite-choice-check {
  display: flex;
}

.favorite-choice-title {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.18;
  min-height: 31px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.favorite-choice-meta {
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 950;
  font-size: 18px;
  line-height: 1;
}

.favorites-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--profile-theme-border, rgba(255, 255, 255, 0.18));
  border-radius: 16px;
  color: var(--wr-muted, #9ca3af);
  font-weight: 900;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
  padding: 18px;
}

@media (max-width: 760px) {
  #profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-panel {
    min-height: 226px !important;
    animation: none !important;
  }

  #profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-empty,
  #view-profile-header.profile-summary-static-card.mobile-facts-open .profile-facts-empty {
    min-height: 126px !important;
  }

  .profile-facts-top {
    margin-bottom: 12px !important;
  }

  .profile-fact-poster-grid {
    gap: 7px;
  }

  .profile-fact-score-line {
    font-size: 10px;
  }

  .profile-facts-edit-button {
    min-height: 30px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .favorites-modal-card {
    width: 94vw;
    max-height: 88vh;
    padding: 16px;
    border-radius: 18px;
  }

  .favorites-modal-controls {
    grid-template-columns: 1fr;
  }

  .favorites-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* v118: profile facts carousel header + favorites slot editor */
.profile-facts-panel {
  position: relative !important;
}

.profile-facts-top {
  position: relative !important;
  min-height: 42px !important;
  padding-right: 128px !important;
  align-items: center !important;
}

.profile-facts-top h2 {
  width: 100% !important;
  min-width: 0 !important;
}

.profile-facts-nav {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  line-height: 1.15 !important;
}

.profile-facts-nav-item {
  border: none !important;
  background: transparent !important;
  color: var(--wr-muted, #8f8fa3) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  cursor: pointer !important;
  opacity: 0.82 !important;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    font-size 0.15s ease;
}

.profile-facts-nav-item:hover {
  color: var(--profile-theme-accent, #ffd700) !important;
  opacity: 1 !important;
}

.profile-facts-nav-item.active {
  color: var(--profile-theme-accent, #ffd700) !important;
  font-size: 20px !important;
  opacity: 1 !important;
}

.profile-facts-nav-dot {
  color: var(--wr-muted, #8f8fa3) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  opacity: 0.7 !important;
}

.profile-facts-edit-button {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 4 !important;
}

.profile-facts-content {
  min-height: 174px !important;
}

.profile-facts-empty-action {
  width: 100% !important;
  font: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
}

.profile-facts-empty-action:hover {
  color: var(--profile-theme-accent, #ffd700) !important;
  border-color: var(--profile-theme-accent, #ffd700) !important;
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.08)) !important;
}

.favorites-slots {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 4px 0 16px !important;
  padding: 12px !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
  border-radius: 18px !important;
  background: rgba(0, 0, 0, 0.16) !important;
}

.favorite-slot-card {
  position: relative !important;
  min-width: 0 !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
  border-radius: 14px !important;
  background: var(--profile-theme-surface, rgba(19, 19, 25, 0.96)) !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 7px !important;
}

.favorite-slot-card.empty {
  min-height: 154px !important;
  align-items: center !important;
  justify-content: center !important;
  border-style: dashed !important;
  background: rgba(0, 0, 0, 0.12) !important;
}

.favorite-slot-empty {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.16)) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--wr-muted, #9ca3af) !important;
  font-weight: 950 !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.favorite-slot-remove {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  z-index: 5 !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(248, 113, 113, 0.72) !important;
  background: rgba(127, 29, 29, 0.9) !important;
  color: #fecaca !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

.favorite-slot-remove:hover {
  background: rgba(185, 28, 28, 0.96) !important;
  color: white !important;
}

.favorite-slot-poster {
  border-radius: 10px !important;
}

.favorite-slot-rating {
  text-align: center !important;
  font-size: 15px !important;
}

.favorites-modal-controls {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.favorites-search,
.favorites-select,
.favorites-modal-card select,
.favorites-modal-card input {
  background: var(--profile-theme-input, #1f1f25) !important;
  border-color: var(--profile-theme-border, #444) !important;
  color: white !important;
}

.favorites-search:hover,
.favorites-select:hover,
.favorites-modal-card select:hover,
.favorites-modal-card input:hover {
  border-color: var(--profile-theme-accent, #ffd700) !important;
}

.favorites-search:focus,
.favorites-select:focus,
.favorites-modal-card select:focus,
.favorites-modal-card input:focus {
  border-color: var(--profile-theme-accent, #ffd700) !important;
  box-shadow: 0 0 0 3px var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.12)) !important;
  outline: none !important;
}

.favorites-choice-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 16px !important;
}

.favorite-choice-card {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-align: center !important;
  align-items: stretch !important;
  gap: 7px !important;
}

.favorite-choice-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

.favorite-choice-card:hover .favorite-choice-poster {
  border-color: var(--profile-theme-accent, #ffd700) !important;
  box-shadow: 0 0 18px var(--profile-theme-glow, rgba(255, 215, 0, 0.16)) !important;
}

.favorite-choice-poster {
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.14)) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}

.favorite-choice-title,
.favorite-choice-card .title-tags,
.favorite-choice-check {
  display: none !important;
}

.favorite-choice-meta {
  text-align: center !important;
  color: var(--profile-theme-accent, #ffd700) !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}

@media (max-width: 760px) {
  .profile-facts-top {
    min-height: 54px !important;
    padding-right: 0 !important;
    align-items: flex-start !important;
  }

  .profile-facts-nav {
    gap: 5px !important;
  }

  .profile-facts-nav-item {
    font-size: 10px !important;
  }

  .profile-facts-nav-item.active {
    font-size: 15px !important;
  }

  .profile-facts-edit-button {
    position: static !important;
    margin-left: auto !important;
  }

  .profile-facts-content {
    min-height: 138px !important;
  }

  .favorites-slots {
    grid-template-columns: repeat(5, minmax(56px, 1fr)) !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 10px !important;
  }

  .favorite-slot-card {
    min-width: 56px !important;
    padding: 5px !important;
    border-radius: 10px !important;
  }

  .favorite-slot-card.empty {
    min-height: 98px !important;
  }

  .favorite-slot-remove {
    width: 22px !important;
    height: 22px !important;
    font-size: 17px !important;
  }

  .favorite-slot-rating,
  .favorite-choice-meta {
    font-size: 12px !important;
  }

  .favorites-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* v119: local favorite editor save actions */
.favorites-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.12));
  flex: 0 0 auto;
}

#favorites-save-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 700px) {
  .favorites-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .favorites-modal-actions .secondary-button,
  .favorites-modal-actions .small-button {
    width: 100%;
  }
}

/* v120: stable profile facts height, taller favorites editor, and slot remove position */
@media (min-width: 761px) {
  .profile-facts-panel {
    min-height: 322px !important;
    height: 322px !important;
    max-height: 322px !important;
  }

  .profile-facts-content {
    height: 214px !important;
    min-height: 214px !important;
    max-height: 214px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  .profile-facts-empty,
  .profile-facts-empty-action {
    min-height: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-fact-poster-grid {
    height: 100% !important;
    align-items: center !important;
    align-content: center !important;
  }

  .profile-fact-poster-card {
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
  }

  .profile-fact-poster-frame {
    width: min(100%, 128px) !important;
    max-width: 128px !important;
    flex: 0 0 auto !important;
  }
}

.favorites-modal-card {
  height: min(920px, 94vh) !important;
  max-height: 94vh !important;
}

.favorites-modal-list {
  flex: 1 1 auto !important;
  min-height: 260px !important;
}

.favorite-slot-remove {
  left: auto !important;
  right: 4px !important;
}

@media (max-width: 760px) {
  .favorites-modal-card {
    height: min(94vh, 820px) !important;
    max-height: 94vh !important;
  }

  .favorites-modal-list {
    min-height: 220px !important;
  }

  .favorite-slot-remove {
    left: auto !important;
    right: 3px !important;
  }
}


/* v121: profile facts review clicks + mobile favorite editor polish */
.favorites-mobile-filter-button {
  display: none;
  width: 100%;
  border: 1px solid var(--profile-theme-border, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background: var(--profile-theme-accent-soft, rgba(255, 215, 0, 0.1));
  color: var(--profile-theme-accent, #ffd700);
  font-weight: 950;
  cursor: pointer;
  padding: 11px 14px;
  margin: 0 0 12px;
}

.favorites-mobile-filter-button:hover {
  border-color: var(--profile-theme-accent, #ffd700);
  background: var(--profile-theme-glow, rgba(255, 215, 0, 0.16));
}

@media (max-width: 760px) {
  .favorites-modal-card {
    width: min(96vw, 430px) !important;
    height: min(96vh, 900px) !important;
    max-height: 96vh !important;
    padding: 16px !important;
  }

  .favorites-modal-top {
    margin-bottom: 12px !important;
  }

  .favorites-slots {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding: 8px !important;
    margin: 4px 0 14px !important;
  }

  .favorite-slot-card {
    min-width: 0 !important;
    padding: 5px !important;
    border-radius: 11px !important;
    gap: 5px !important;
  }

  .favorite-slot-card.empty {
    min-height: 126px !important;
  }

  .favorite-slot-empty {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  .favorite-slot-poster {
    border-radius: 8px !important;
  }

  .favorite-slot-rating {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .favorite-slot-remove {
    top: 3px !important;
    right: 3px !important;
    left: auto !important;
    width: 21px !important;
    height: 21px !important;
    font-size: 16px !important;
  }

  .favorites-mobile-filter-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .favorites-modal-controls {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
  }

  .favorites-modal-card.favorites-filters-open .favorites-modal-controls {
    display: grid !important;
  }

  .favorites-modal-message {
    margin-bottom: 8px !important;
  }

  .favorites-modal-list {
    min-height: 260px !important;
  }
}

/* v122: mobile facts nav, tighter mobile poster grids, and home ordering */
@media (max-width: 760px) {
  /* Put the rotating profile fun facts card first on the home page. */
  #home-page .home-hero {
    display: grid !important;
  }

  #home-page .home-profile-preview-card {
    order: -1 !important;
  }

  #home-page .home-hero-copy {
    order: 1 !important;
  }

  /* Keep all mobile home preview sections as five compact posters per row. */
  #home-page .home-mini-list {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
  }

  #home-page .home-poster-card {
    min-width: 0 !important;
  }

  #home-page .home-poster-frame {
    width: 100% !important;
    max-width: none !important;
    border-radius: 8px !important;
  }

  #home-page .home-poster-image,
  #home-page .home-poster-image .title-poster-img,
  #home-page .home-poster-image .title-poster-placeholder {
    border-radius: 8px !important;
  }

  #home-page .home-poster-rank {
    top: 4px !important;
    left: 4px !important;
    min-width: 24px !important;
    min-height: 18px !important;
    padding: 3px 5px !important;
    font-size: 10px !important;
  }

  #home-page .home-poster-score {
    font-size: 13px !important;
    line-height: 1.05 !important;
    margin-top: 5px !important;
  }

  /* Mobile profile facts header: stacked options, no separator dots. */
  .profile-facts-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1px !important;
    line-height: 1.04 !important;
  }

  .profile-facts-nav-dot {
    display: none !important;
  }

  .profile-facts-nav-item {
    font-size: 10px !important;
    line-height: 1.04 !important;
  }

  .profile-facts-nav-item.active {
    font-size: 15px !important;
    line-height: 1.06 !important;
  }

  .profile-facts-top {
    min-height: 54px !important;
  }

  /* Mobile favorites editor: show more choices at once. */
  .favorites-choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
  }

  .favorite-choice-card {
    gap: 5px !important;
  }

  .favorite-choice-poster {
    border-radius: 8px !important;
  }

  .favorite-choice-meta {
    font-size: 11px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 380px) {
  #home-page .home-mini-list,
  .favorites-choice-grid {
    gap: 9px 6px !important;
  }

  #home-page .home-poster-score,
  .favorite-choice-meta {
    font-size: 11px !important;
  }
}

/* v123: mobile home cleanup, compact home preview cards, and mobile filter drawers */
#home-page .home-preview-grid {
  align-items: start !important;
}

#home-page .home-preview-card {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 18px !important;
}

#home-page .home-mini-list {
  margin-bottom: 0 !important;
}

.mobile-filter-drawer-button {
  display: none;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #f6f0ff;
  font-weight: 950;
  cursor: pointer;
  padding: 10px 14px;
  font-family: inherit;
}

.mobile-filter-drawer-button:hover,
.mobile-filter-drawer-button.active {
  border-color: rgba(255, 211, 77, 0.45);
  background: rgba(255, 211, 77, 0.10);
  color: var(--wr-gold, #ffd700);
}

@media (max-width: 760px) {
  /* Remove the big welcome card on mobile, but keep the CTA buttons at the top. */
  #home-page .home-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
  }

  #home-page .home-hero-copy {
    order: -2 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #home-page .home-kicker,
  #home-page .home-hero-copy h2,
  #home-page .home-hero-text,
  #home-page .home-feature-grid-inside {
    display: none !important;
  }

  #home-page .home-hero-actions {
    margin: 0 !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }

  #home-page .home-hero-actions .small-button,
  #home-page .home-hero-actions .secondary-button {
    min-height: 38px !important;
    padding: 9px 15px !important;
    border-radius: 10px !important;
  }

  #home-page .home-profile-preview-card {
    order: -1 !important;
  }

  #home-page .home-preview-card {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 16px !important;
  }

  #home-page .home-preview-top {
    margin-bottom: 12px !important;
  }

  .mobile-filter-drawer-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #watchlist-page .watchlist-controls,
  #top-movies-page .global-ranking-controls,
  #top-shows-page .global-ranking-controls,
  #categories-page .category-page-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
  }

  #watchlist-page .watchlist-controls .global-ranking-search-area,
  #top-movies-page .global-ranking-controls .global-ranking-search-area,
  #top-shows-page .global-ranking-controls .global-ranking-search-area,
  #categories-page .category-page-controls .global-ranking-search-area {
    display: block !important;
  }

  #watchlist-page .watchlist-controls select,
  #top-movies-page .global-ranking-controls select,
  #top-shows-page .global-ranking-controls select,
  #categories-page .category-page-controls select {
    display: none !important;
  }

  #watchlist-page.mobile-filters-open .watchlist-controls select,
  #top-movies-page.mobile-filters-open .global-ranking-controls select,
  #top-shows-page.mobile-filters-open .global-ranking-controls select,
  #categories-page.mobile-filters-open .category-page-controls select {
    display: block !important;
  }
}

/* v124: category type filter, Following Feed review redesign, stable favorites slots */
.favorite-slot-card,
.favorite-slot-card.empty {
  height: 154px !important;
  min-height: 154px !important;
  max-height: 154px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.favorite-slot-poster {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: calc(100% - 24px) !important;
}

.favorite-slot-poster .title-poster-wrap,
.favorite-slot-poster .title-poster-img,
.favorite-slot-poster .title-poster-placeholder {
  width: 100% !important;
  height: 100% !important;
}

#feed-page #feed-content.feed-column {
  height: auto !important;
  min-height: 70vh !important;
  max-height: none !important;
  scroll-snap-type: none !important;
  overflow-y: visible !important;
  scroll-padding: 0 !important;
}

#feed-page #feed-list {
  padding: 8px 0 28px !important;
}

#feed-page .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: 18px 0 !important;
  margin-bottom: 18px !important;
  scroll-snap-align: none !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(560px, 760px) 74px minmax(280px, 360px) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0 !important;
  transform: none !important;
  width: 100% !important;
}

.feed-review-main-panel {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(300px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 410px;
  border: 1px solid rgba(255, 211, 77, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.08), transparent 38%),
    rgba(12, 12, 17, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  padding: 22px;
  box-sizing: border-box;
}

.feed-review-poster-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.feed-review-user-chip {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #f6f0ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 900;
}

.feed-review-user-chip:hover {
  border-color: rgba(255, 211, 77, 0.45);
  color: var(--wr-gold, #ffd700);
}

.feed-review-user-chip span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-review-poster-button {
  width: min(100%, 190px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.feed-review-static-poster,
.feed-review-static-poster .title-poster-wrap,
.feed-review-static-poster .title-poster-img,
.feed-review-static-poster .title-poster-placeholder {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  border-radius: 16px !important;
}

.feed-review-title-block {
  width: 100%;
  text-align: center;
}

#feed-page .feed-review-title-main {
  margin: 0 0 5px !important;
  font-size: 19px !important;
  line-height: 1.12 !important;
  color: #f8f5ff;
}

.feed-review-detail-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

#feed-page .feed-review-score-main {
  font-size: 74px !important;
  line-height: 0.95 !important;
  margin: 0 !important;
  color: var(--wr-gold, #ffd700) !important;
  text-align: center !important;
  text-shadow: 0 0 24px rgba(255, 211, 77, 0.16);
}

.feed-review-notes-box {
  min-height: 108px;
  max-height: 108px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: #eeeaf8;
  padding: 14px 16px;
  box-sizing: border-box;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-review-no-notes {
  color: #9ca3af;
  font-style: italic;
}

.feed-review-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}

.feed-review-score-row,
.feed-review-overall-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: #e8e8f0;
  font-weight: 850;
}

.feed-review-score-row span,
.feed-review-overall-row span {
  color: #cfcfe3;
}

.feed-review-score-row strong,
.feed-review-overall-row strong {
  color: var(--wr-gold, #ffd700);
  font-size: 19px;
}

.feed-review-overall-row {
  justify-content: center;
  gap: 14px;
  margin-top: 2px;
  font-size: 18px;
}

.feed-review-overall-row strong {
  font-size: 24px;
}

.feed-side-actions-redesign,
#feed-page .feed-side-actions-redesign {
  position: static !important;
  transform: none !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 3 !important;
}

.feed-review-action-button,
.feed-side-actions-redesign .feed-icon-button,
.feed-side-actions-redesign .feed-icon-static,
.feed-side-actions-redesign .feed-watchlist-button {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 22px !important;
}

.feed-side-actions-redesign .feed-action-label {
  font-size: 12px !important;
  line-height: 1.15 !important;
  margin: -2px 0 5px !important;
  color: #cfcfe3 !important;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-review-comments-panel,
#feed-page .feed-review-comments-panel {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: 360px !important;
  height: 410px !important;
  max-height: 410px !important;
  margin: 0 !important;
  display: none !important;
  flex-direction: column !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 22px !important;
  background: rgba(12, 12, 17, 0.98) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38) !important;
  padding: 14px !important;
  box-sizing: border-box !important;
}

.feed-review-comments-panel.open,
#feed-page .feed-review-comments-panel.open {
  display: flex !important;
}

.feed-review-comments-panel .comments-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-review-comments-panel .comment-form {
  flex: 0 0 auto;
}

@media (max-width: 1150px) {
  #feed-page .feed-review-layout-redesign,
  #feed-content .feed-review-layout-redesign {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feed-review-main-panel {
    grid-template-columns: minmax(120px, 180px) 1fr;
    width: min(760px, 100%);
    justify-self: center;
    min-height: 360px;
  }

  .feed-side-actions-redesign,
  #feed-page .feed-side-actions-redesign {
    flex-direction: row !important;
    width: min(760px, 100%) !important;
    justify-self: center !important;
  }

  .feed-review-comments-panel,
  #feed-page .feed-review-comments-panel {
    justify-self: center !important;
    max-width: min(760px, 100%) !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .favorite-slot-card,
  .favorite-slot-card.empty {
    height: 126px !important;
    min-height: 126px !important;
    max-height: 126px !important;
  }

  .favorite-slot-poster {
    height: calc(100% - 18px) !important;
  }

  #feed-page .feed-review-card-redesign,
  #feed-content .feed-review-card-redesign {
    padding: 12px 0 !important;
  }

  .feed-review-main-panel {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .feed-review-user-chip {
    padding: 5px 8px;
    font-size: 12px;
  }

  .feed-review-poster-button {
    width: 104px;
  }

  #feed-page .feed-review-title-main {
    font-size: 14px !important;
  }

  .feed-review-meta-center {
    font-size: 11px !important;
  }

  #feed-page .feed-review-score-main {
    font-size: 42px !important;
  }

  .feed-review-notes-box {
    min-height: 76px;
    max-height: 76px;
    border-radius: 14px;
    padding: 10px;
    font-size: 13px;
  }

  .feed-review-score-grid {
    gap: 6px 10px;
  }

  .feed-review-score-row,
  .feed-review-overall-row {
    font-size: 12px;
    gap: 6px;
  }

  .feed-review-score-row strong,
  .feed-review-overall-row strong {
    font-size: 14px;
  }

  .feed-review-overall-row strong {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .feed-review-main-panel {
    grid-template-columns: 1fr;
  }

  .feed-review-poster-button {
    width: min(150px, 60vw);
  }
}

/* v125: Categories controls stay on one desktop row + clean title header. */
@media (min-width: 981px) {
  #categories-page .global-ranking-top {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
  }

  #categories-page .category-page-controls {
    display: grid !important;
    grid-template-columns: minmax(210px, 1.45fr) minmax(128px, 0.65fr) minmax(138px, 0.7fr) minmax(160px, 0.85fr) minmax(180px, 0.95fr) !important;
    gap: 10px !important;
    max-width: none !important;
    width: 100% !important;
    align-items: center !important;
  }

  #categories-page .category-page-controls .global-ranking-search-area,
  #categories-page .category-page-controls .global-ranking-select {
    min-width: 0 !important;
    width: 100% !important;
  }

  #categories-page .category-page-controls .top-ranked-mobile-filter-button,
  #categories-page .category-page-controls .mobile-filter-drawer-button {
    display: none !important;
  }

  #category-ranking-title {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }
}

/* v125: Following Feed review-panel redesign refinements + snap back. */
#feed-page #feed-content.feed-column {
  height: calc(100vh - 150px) !important;
  min-height: 650px !important;
  max-height: none !important;
  overflow-y: auto !important;
  scroll-snap-type: y mandatory !important;
  scroll-behavior: auto !important;
  overscroll-behavior-y: contain !important;
  scroll-padding-top: 50% !important;
  scroll-padding-bottom: 50% !important;
}

#feed-page #feed-list {
  padding: 42px 0 56px !important;
}

#feed-page .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  min-height: 82vh !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  scroll-snap-align: center !important;
  scroll-snap-stop: always !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(680px, 820px) 74px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 590px !important;
  transform: none !important;
  width: 100% !important;
}

#feed-page .feed-review-layout-redesign:has(.feed-review-comments-panel.open),
#feed-content .feed-review-layout-redesign:has(.feed-review-comments-panel.open) {
  grid-template-columns: minmax(680px, 820px) 74px minmax(280px, 360px) !important;
}

.feed-review-main-panel {
  display: grid !important;
  grid-template-columns: minmax(180px, 230px) minmax(360px, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas:
    "poster top"
    "scores scores" !important;
  gap: 20px 28px !important;
  align-items: start !important;
  min-height: 560px !important;
  width: min(820px, 100%) !important;
  justify-self: center !important;
  border-radius: 24px !important;
  padding: 24px !important;
}

.feed-review-poster-column {
  grid-area: poster !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.feed-review-user-chip {
  align-self: flex-start !important;
  max-width: 100% !important;
  padding: 4px 7px !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.feed-review-user-chip .avatar-small {
  width: 24px !important;
  height: 24px !important;
  font-size: 10px !important;
}

.feed-review-user-chip-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
}

.feed-review-user-chip-text strong,
.feed-review-user-chip-text small {
  max-width: 124px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.feed-review-user-chip-text small {
  color: #9ca3af !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.feed-review-poster-button {
  width: min(100%, 210px) !important;
  margin-top: 6px !important;
}

.feed-review-static-poster,
.feed-review-static-poster .title-poster-wrap,
.feed-review-static-poster .title-poster-img,
.feed-review-static-poster .title-poster-placeholder {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  border-radius: 16px !important;
}

.feed-review-title-block,
#feed-page .feed-review-title-main,
.feed-review-meta-center {
  display: none !important;
}

.feed-review-detail-panel {
  grid-area: top !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  padding-top: 8px !important;
}

#feed-page .feed-review-score-main {
  font-size: 84px !important;
  line-height: 0.92 !important;
  margin: 0 !important;
  color: var(--wr-gold, #ffd700) !important;
  text-align: center !important;
}

.feed-review-notes-box {
  min-height: 126px !important;
  max-height: 126px !important;
  overflow-y: auto !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
}

.feed-review-bottom-scores {
  grid-area: scores !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding-top: 18px !important;
  margin-top: 2px !important;
}

.feed-review-bottom-scores .feed-review-score-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 18px !important;
}

.feed-review-bottom-scores .feed-review-overall-row {
  margin-top: 12px !important;
}

.feed-review-comments-panel,
#feed-page .feed-review-comments-panel {
  height: 560px !important;
  max-height: 560px !important;
}

@media (max-width: 1150px) {
  #feed-page #feed-content.feed-column {
    height: auto !important;
    min-height: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
  }

  #feed-page .feed-review-card-redesign,
  #feed-content .feed-review-card-redesign {
    min-height: auto !important;
    padding: 16px 0 !important;
    scroll-snap-align: none !important;
  }

  #feed-page .feed-review-layout-redesign,
  #feed-content .feed-review-layout-redesign,
  #feed-page .feed-review-layout-redesign:has(.feed-review-comments-panel.open),
  #feed-content .feed-review-layout-redesign:has(.feed-review-comments-panel.open) {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    gap: 12px !important;
  }

  .feed-review-main-panel {
    width: min(820px, 100%) !important;
    justify-self: center !important;
  }

  .feed-side-actions-redesign,
  #feed-page .feed-side-actions-redesign {
    flex-direction: row !important;
    width: min(820px, 100%) !important;
    justify-self: center !important;
  }

  .feed-review-comments-panel,
  #feed-page .feed-review-comments-panel {
    justify-self: center !important;
    max-width: min(820px, 100%) !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .feed-review-main-panel {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "poster top"
      "scores scores" !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .feed-review-user-chip {
    font-size: 10px !important;
    padding: 4px 6px !important;
  }

  .feed-review-user-chip .avatar-small {
    width: 22px !important;
    height: 22px !important;
  }

  .feed-review-user-chip-text strong,
  .feed-review-user-chip-text small {
    max-width: 78px !important;
  }

  .feed-review-poster-button {
    width: 104px !important;
  }

  #feed-page .feed-review-score-main {
    font-size: 46px !important;
  }

  .feed-review-notes-box {
    min-height: 78px !important;
    max-height: 78px !important;
    border-radius: 14px !important;
    padding: 10px !important;
    font-size: 13px !important;
  }

  .feed-review-bottom-scores {
    padding-top: 12px !important;
  }

  .feed-review-bottom-scores .feed-review-score-grid {
    gap: 6px 10px !important;
  }
}

/* v126: Following Feed full-height review slide, cleaner score styling, tighter top spacing. */
#feed-page #feed-content.feed-column {
  height: calc(100vh - 142px) !important;
  min-height: calc(100vh - 142px) !important;
  overflow-y: auto !important;
  scroll-snap-type: y mandatory !important;
  scroll-behavior: auto !important;
  overscroll-behavior-y: contain !important;
  scroll-padding-top: 0 !important;
  scroll-padding-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#feed-page #feed-list {
  padding: 0 !important;
}

#feed-page .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  min-height: calc(100vh - 142px) !important;
  height: calc(100vh - 142px) !important;
  padding: 0 !important;
  margin: 0 !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  min-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(860px, 1060px) 78px !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#feed-page .feed-review-layout-redesign:has(.feed-review-comments-panel.open),
#feed-content .feed-review-layout-redesign:has(.feed-review-comments-panel.open) {
  grid-template-columns: minmax(760px, 960px) 78px minmax(300px, 380px) !important;
}

#feed-page .feed-review-main-panel,
#feed-content .feed-review-main-panel {
  align-self: stretch !important;
  width: min(1060px, 100%) !important;
  min-height: 0 !important;
  height: calc(100% - 20px) !important;
  margin: 10px 0 !important;
  display: grid !important;
  grid-template-columns: minmax(285px, 330px) minmax(430px, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "poster top"
    "scores scores" !important;
  gap: 18px 34px !important;
  align-items: stretch !important;
  padding: 26px 30px !important;
  box-sizing: border-box !important;
  border-color: rgba(255, 211, 77, 0.20) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.07), transparent 38%),
    rgba(12, 12, 17, 0.97) !important;
}

#feed-page .feed-review-poster-column,
#feed-content .feed-review-poster-column {
  grid-area: poster !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 9px !important;
}

#feed-page .feed-review-user-chip,
#feed-content .feed-review-user-chip {
  align-self: flex-start !important;
  max-width: 190px !important;
  flex: 0 0 auto !important;
  padding: 4px 7px !important;
  font-size: 10px !important;
  opacity: 0.92 !important;
}

#feed-page .feed-review-poster-button,
#feed-content .feed-review-poster-button {
  width: min(100%, 305px) !important;
  max-height: calc(100% - 42px) !important;
  margin: 0 !important;
  align-self: center !important;
}

#feed-page .feed-review-static-poster,
#feed-page .feed-review-static-poster .title-poster-wrap,
#feed-page .feed-review-static-poster .title-poster-img,
#feed-page .feed-review-static-poster .title-poster-placeholder,
#feed-content .feed-review-static-poster,
#feed-content .feed-review-static-poster .title-poster-wrap,
#feed-content .feed-review-static-poster .title-poster-img,
#feed-content .feed-review-static-poster .title-poster-placeholder {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 18px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  grid-area: top !important;
  min-width: 0 !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 22px !important;
  padding-top: 4px !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  font-size: clamp(88px, 7vw, 122px) !important;
  line-height: 0.86 !important;
  margin: 0 !important;
  text-align: center !important;
  color: var(--wr-gold, #ffd700) !important;
  text-shadow: 0 0 28px rgba(255, 211, 77, 0.14) !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box {
  min-height: 190px !important;
  max-height: 190px !important;
  width: 100% !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #eeeaf8 !important;
  padding: 18px 20px !important;
  box-sizing: border-box !important;
}

#feed-page .feed-review-bottom-scores,
#feed-content .feed-review-bottom-scores {
  grid-area: scores !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 18px !important;
  margin-top: 0 !important;
}

#feed-page .feed-review-bottom-scores .feed-review-score-grid,
#feed-content .feed-review-bottom-scores .feed-review-score-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 14px !important;
}

#feed-page .feed-review-score-row,
#feed-page .feed-review-overall-row,
#feed-content .feed-review-score-row,
#feed-content .feed-review-overall-row {
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: #f4f0ff !important;
  box-sizing: border-box !important;
}

#feed-page .feed-review-score-row.story,
#feed-page .feed-review-score-row.characters,
#feed-page .feed-review-score-row.acting,
#feed-page .feed-review-score-row.visuals,
#feed-page .feed-review-score-row.rewatchability,
#feed-page .feed-review-score-row.music,
#feed-page .feed-review-overall-row.overall,
#feed-content .feed-review-score-row.story,
#feed-content .feed-review-score-row.characters,
#feed-content .feed-review-score-row.acting,
#feed-content .feed-review-score-row.visuals,
#feed-content .feed-review-score-row.rewatchability,
#feed-content .feed-review-score-row.music,
#feed-content .feed-review-overall-row.overall {
  background: rgba(255, 255, 255, 0.045) !important;
}

#feed-page .feed-review-overall-row,
#feed-content .feed-review-overall-row {
  width: min(420px, 100%) !important;
  margin: 12px auto 0 !important;
  justify-content: center !important;
  gap: 18px !important;
  background: rgba(255, 211, 77, 0.07) !important;
  border-color: rgba(255, 211, 77, 0.14) !important;
}

#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  align-self: center !important;
}

#feed-page .feed-review-comments-panel,
#feed-content .feed-review-comments-panel {
  align-self: center !important;
  height: calc(100% - 20px) !important;
  max-height: calc(100% - 20px) !important;
}

@media (max-width: 1150px) {
  #feed-page #feed-content.feed-column {
    height: auto !important;
    min-height: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
  }

  #feed-page .feed-review-card-redesign,
  #feed-content .feed-review-card-redesign {
    height: auto !important;
    min-height: auto !important;
    padding: 14px 0 !important;
  }

  #feed-page .feed-review-layout-redesign,
  #feed-content .feed-review-layout-redesign,
  #feed-page .feed-review-layout-redesign:has(.feed-review-comments-panel.open),
  #feed-content .feed-review-layout-redesign:has(.feed-review-comments-panel.open) {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 12px !important;
  }

  #feed-page .feed-review-main-panel,
  #feed-content .feed-review-main-panel {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    width: min(820px, 100%) !important;
  }
}

@media (max-width: 760px) {
  #feed-page .feed-review-main-panel,
  #feed-content .feed-review-main-panel {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "poster top"
      "scores scores" !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  #feed-page .feed-review-poster-button,
  #feed-content .feed-review-poster-button {
    width: 100% !important;
  }

  #feed-page .feed-review-score-main,
  #feed-content .feed-review-score-main {
    font-size: 46px !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box {
    min-height: 78px !important;
    max-height: 78px !important;
    padding: 10px !important;
  }

  #feed-page .feed-review-score-row,
  #feed-page .feed-review-overall-row,
  #feed-content .feed-review-score-row,
  #feed-content .feed-review-overall-row {
    min-height: 32px !important;
    padding: 6px 8px !important;
  }
}

/* v126: Empty watchlist gets an action button. */
.watchlist-empty-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
}

.watchlist-empty-find-button {
  align-self: center !important;
}

/* v126: Shorter desktop home hero/profile-preview cards. */
@media (min-width: 761px) {
  #home-page .home-hero {
    gap: 22px !important;
    margin-bottom: 20px !important;
  }

  #home-page .home-hero-copy {
    padding: 28px 34px !important;
  }

  #home-page .home-hero-copy h2 {
    font-size: clamp(34px, 4.7vw, 60px) !important;
    line-height: 0.96 !important;
  }

  #home-page .home-hero-text {
    margin-top: 14px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  #home-page .home-hero-actions {
    margin-top: 18px !important;
  }

  #home-page .home-feature-grid-inside {
    gap: 12px !important;
    margin-top: 22px !important;
  }

  #home-page .home-feature-card {
    padding: 14px !important;
  }

  #home-page .home-feature-card h3 {
    margin-bottom: 6px !important;
  }

  #home-page .home-feature-card p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  #home-page .home-profile-preview-card {
    min-height: 290px !important;
    padding: 22px !important;
  }

  #home-page .home-profile-preview-card .home-profile-stat-value,
  #home-page .home-spotlight-score {
    font-size: 54px !important;
  }
}

/* v127: Following Feed fit/spacing/snap tuning. */
#feed-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#feed-page #feed-content.feed-column {
  height: calc(100vh - 138px) !important;
  min-height: calc(100vh - 138px) !important;
  scroll-snap-type: y mandatory !important;
  scroll-behavior: smooth !important;
  scroll-padding-top: 0 !important;
  scroll-padding-bottom: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#feed-page #feed-content.feed-column > h2 {
  position: absolute !important;
  top: 10px !important;
  left: clamp(18px, 3vw, 54px) !important;
  z-index: 90 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

#feed-page #feed-list {
  padding: 0 !important;
  margin: 0 !important;
}

#feed-page .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  height: calc(100vh - 138px) !important;
  min-height: calc(100vh - 138px) !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
  padding: 0 !important;
  margin: 0 !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  gap: 14px !important;
}

#feed-page .feed-review-main-panel,
#feed-content .feed-review-main-panel {
  height: calc(100% - 8px) !important;
  margin: 4px 0 !important;
  grid-template-columns: minmax(245px, 285px) minmax(430px, 1fr) !important;
  gap: 12px 30px !important;
  padding: 18px 26px !important;
  overflow: hidden !important;
}

#feed-page .feed-review-poster-column,
#feed-content .feed-review-poster-column {
  gap: 7px !important;
}

#feed-page .feed-review-user-chip,
#feed-content .feed-review-user-chip {
  max-width: 180px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
}

#feed-page .feed-review-poster-button,
#feed-content .feed-review-poster-button {
  width: min(100%, 262px) !important;
  max-height: calc(100% - 36px) !important;
  align-self: center !important;
}

#feed-page .feed-review-static-poster,
#feed-page .feed-review-static-poster .title-poster-wrap,
#feed-page .feed-review-static-poster .title-poster-img,
#feed-page .feed-review-static-poster .title-poster-placeholder,
#feed-content .feed-review-static-poster,
#feed-content .feed-review-static-poster .title-poster-wrap,
#feed-content .feed-review-static-poster .title-poster-img,
#feed-content .feed-review-static-poster .title-poster-placeholder {
  border-radius: 16px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  gap: 14px !important;
  padding-top: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  font-size: clamp(70px, 6vw, 102px) !important;
  line-height: 0.88 !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box {
  min-height: 142px !important;
  max-height: 142px !important;
  padding: 15px 18px !important;
  border-radius: 18px !important;
}

#feed-page .feed-review-bottom-scores,
#feed-content .feed-review-bottom-scores {
  padding-top: 12px !important;
}

#feed-page .feed-review-bottom-scores .feed-review-score-grid,
#feed-content .feed-review-bottom-scores .feed-review-score-grid {
  gap: 8px 12px !important;
}

#feed-page .feed-review-score-row,
#feed-page .feed-review-overall-row,
#feed-content .feed-review-score-row,
#feed-content .feed-review-overall-row {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 10px !important;
}

#feed-page .feed-review-overall-row,
#feed-content .feed-review-overall-row {
  margin-top: 9px !important;
  min-height: 36px !important;
}

#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  align-self: center !important;
}

@media (max-width: 1150px) {
  #feed-page #feed-content.feed-column {
    height: auto !important;
    min-height: auto !important;
    scroll-behavior: auto !important;
  }

  #feed-page #feed-content.feed-column > h2 {
    position: static !important;
    padding: 0 0 10px !important;
    pointer-events: auto !important;
  }
}


/* v128: Following Feed title removed + refined split layout */
#feed-page #feed-content.feed-column > h2 {
  display: none !important;
}

#feed-page #feed-content.feed-column {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#feed-page .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  height: calc(100vh - 128px) !important;
  min-height: calc(100vh - 128px) !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  min-height: calc(100vh - 128px) !important;
  gap: 12px !important;
}

#feed-page .feed-review-main-panel,
#feed-content .feed-review-main-panel {
  height: calc(100% - 4px) !important;
  min-height: 0 !important;
  width: min(860px, 100%) !important;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "poster top"
    "scores scores" !important;
  gap: 10px 18px !important;
  padding: 14px 16px 14px !important;
  align-items: start !important;
}

#feed-page .feed-review-poster-column,
#feed-content .feed-review-poster-column {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding-top: 0 !important;
}

#feed-page .feed-review-user-chip,
#feed-content .feed-review-user-chip {
  align-self: flex-start !important;
  max-width: 150px !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
}

#feed-page .feed-review-poster-button,
#feed-content .feed-review-poster-button {
  width: min(100%, 260px) !important;
  max-height: 392px !important;
  margin-top: 0 !important;
  align-self: center !important;
}

#feed-page .feed-review-static-poster,
#feed-page .feed-review-static-poster .title-poster-wrap,
#feed-page .feed-review-static-poster .title-poster-img,
#feed-page .feed-review-static-poster .title-poster-placeholder,
#feed-content .feed-review-static-poster,
#feed-content .feed-review-static-poster .title-poster-wrap,
#feed-content .feed-review-static-poster .title-poster-img,
#feed-content .feed-review-static-poster .title-poster-placeholder {
  max-height: 392px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding-top: 24px !important;
  width: 100% !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  width: 100% !important;
  text-align: center !important;
  font-size: clamp(72px, 6vw, 100px) !important;
  line-height: 0.9 !important;
  margin: 12px 0 2px !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box {
  width: min(100%, 90%) !important;
  min-height: 130px !important;
  max-height: 130px !important;
  margin: 8px auto 0 !important;
  padding: 14px 18px !important;
}

#feed-page .feed-review-bottom-scores,
#feed-content .feed-review-bottom-scores {
  padding-top: 10px !important;
  margin-top: -2px !important;
}

#feed-page .feed-review-bottom-scores .feed-review-score-grid,
#feed-content .feed-review-bottom-scores .feed-review-score-grid {
  gap: 8px 12px !important;
}

#feed-page .feed-review-score-row,
#feed-page .feed-review-overall-row,
#feed-content .feed-review-score-row,
#feed-content .feed-review-overall-row {
  min-height: 32px !important;
  padding: 6px 12px !important;
}

#feed-page .feed-review-overall-row,
#feed-content .feed-review-overall-row {
  margin-top: 8px !important;
}

@media (max-width: 1150px) {
  #feed-page #feed-content.feed-column > h2 {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #feed-page .feed-review-main-panel,
  #feed-content .feed-review-main-panel {
    grid-template-columns: minmax(118px, 34%) minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    padding: 12px !important;
  }

  #feed-page .feed-review-poster-button,
  #feed-content .feed-review-poster-button {
    width: min(100%, 138px) !important;
    max-height: none !important;
  }

  #feed-page .feed-review-detail-panel,
  #feed-content .feed-review-detail-panel {
    padding-top: 10px !important;
    gap: 10px !important;
  }

  #feed-page .feed-review-score-main,
  #feed-content .feed-review-score-main {
    font-size: 44px !important;
    margin-top: 0 !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box {
    width: 100% !important;
    min-height: 82px !important;
    max-height: 82px !important;
    margin-top: 4px !important;
  }
}


/* v129: fine-tune following feed positioning */
#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  gap: 6px !important;
}

#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  margin-left: -10px !important;
  gap: 6px !important;
}

#feed-page .feed-review-poster-column,
#feed-content .feed-review-poster-column {
  padding-top: 10px !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}

#feed-page .feed-review-user-chip,
#feed-content .feed-review-user-chip {
  margin-top: 6px !important;
}

#feed-page .feed-review-poster-button,
#feed-content .feed-review-poster-button {
  margin-top: 4px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  min-height: 430px !important;
  padding-top: 26px !important;
  padding-bottom: 6px !important;
  justify-content: space-between !important;
  align-items: center !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  width: min(100%, 86%) !important;
  min-height: 126px !important;
  max-height: 126px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  line-height: 1.45 !important;
}

#feed-page .feed-review-notes-box .feed-review-no-notes,
#feed-content .feed-review-notes-box .feed-review-no-notes {
  align-self: flex-start !important;
}

@media (max-width: 760px) {
  #feed-page .feed-side-actions-redesign,
  #feed-content .feed-side-actions-redesign {
    margin-left: 0 !important;
  }

  #feed-page .feed-review-detail-panel,
  #feed-content .feed-review-detail-panel {
    min-height: auto !important;
    padding-top: 14px !important;
    padding-bottom: 0 !important;
    justify-content: flex-start !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    width: 100% !important;
    margin-top: 6px !important;
  }
}


/* v130: feed spacing/compare tweaks */
#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  gap: 2px !important;
}

#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  margin-left: -26px !important;
  gap: 4px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  min-height: 392px !important;
  padding-top: 42px !important;
  padding-bottom: 0 !important;
  justify-content: flex-start !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  margin-top: 26px !important;
  margin-bottom: 0 !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  min-height: 124px !important;
  max-height: 124px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.feed-review-notes-box .feed-review-no-notes,
#feed-page .feed-review-notes-box .feed-review-no-notes,
#feed-content .feed-review-notes-box .feed-review-no-notes {
  align-self: flex-start !important;
}

#feed-page .feed-review-score-value,
#feed-content .feed-review-score-value,
.profile-rating-detail-aspect-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-diff,
.feed-review-score-diff,
.profile-rating-detail-diff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 228, 150, 0.85);
  opacity: 0.9;
}

.feed-compare-button {
  min-width: 52px;
  padding-inline: 10px;
  font-size: 0.76rem;
}

.feed-review-card-redesign.compare-open .feed-compare-button,
#profile-rating-detail-modal.compare-open #profile-rating-detail-compare-button {
  border-color: rgba(255, 212, 74, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 212, 74, 0.22) inset;
}

#profile-rating-detail-modal .profile-rating-detail-top-actions {
  gap: 8px;
}

#profile-rating-detail-modal .profile-rating-detail-dynamic-action {
  white-space: nowrap;
}

#feed-page #feed-content,
#feed-content {
  scroll-snap-type: y proximity !important;
}

#feed-page #feed-content .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
}


/* v131: compare cleanup + softer Following Feed layout */
.compare-diff[hidden],
.feed-review-score-diff[hidden],
.profile-rating-detail-diff[hidden] {
  display: none !important;
}

#feed-page .feed-review-layout-redesign,
#feed-content .feed-review-layout-redesign {
  gap: 0 !important;
}

#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  margin-left: -92px !important;
  transform: translateX(-24px) !important;
  gap: 4px !important;
  width: 58px !important;
}

#feed-page .feed-side-actions-redesign .feed-action-label,
#feed-content .feed-side-actions-redesign .feed-action-label {
  max-width: 64px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 11px !important;
}

.feed-compare-button,
.feed-side-actions-redesign .feed-compare-button {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

#feed-page .feed-review-detail-panel,
#feed-content .feed-review-detail-panel {
  min-height: 392px !important;
  padding-top: 54px !important;
  padding-bottom: 0 !important;
  justify-content: flex-start !important;
}

#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  margin-top: 34px !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
}

#feed-page .feed-review-main-score-diff,
#feed-content .feed-review-main-score-diff,
.profile-rating-detail-main-diff {
  font-size: 0.17em !important;
  min-width: auto !important;
  transform: translateY(-0.25em);
  color: rgba(255, 228, 150, 0.9) !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  display: block !important;
  margin-top: 58px !important;
  margin-bottom: 0 !important;
  min-height: 116px !important;
  max-height: 116px !important;
  padding: 9px 12px !important;
  text-align: left !important;
  line-height: 1.38 !important;
}

#feed-page #feed-content,
#feed-content {
  scroll-snap-type: y proximity !important;
  scroll-behavior: auto !important;
}

#feed-page #feed-content .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  scroll-snap-stop: normal !important;
}

#profile-rating-detail-modal .profile-rating-detail-main-score-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

#profile-rating-detail-modal .profile-rating-detail-aspect-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

#profile-rating-detail-modal.compare-open .profile-rating-detail-diff[hidden],
.feed-review-card-redesign.compare-open .feed-review-score-diff[hidden] {
  display: inline-flex !important;
}

@media (max-width: 760px) {
  #feed-page .feed-side-actions-redesign,
  #feed-content .feed-side-actions-redesign {
    margin-left: 0 !important;
    transform: none !important;
    width: auto !important;
  }

  #feed-page .feed-review-detail-panel,
  #feed-content .feed-review-detail-panel {
    padding-top: 16px !important;
  }

  #feed-page .feed-review-score-main,
  #feed-content .feed-review-score-main {
    margin-top: 0 !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    margin-top: 8px !important;
    min-height: 78px !important;
    max-height: 78px !important;
  }
}

/* v132: profile rating fix, compare formatting, action spacing, and instant smooth feed snap */
#feed-page .feed-side-actions-redesign,
#feed-content .feed-side-actions-redesign {
  margin-left: -58px !important;
  transform: translateX(0) !important;
  width: 60px !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  display: block !important;
  text-align: left !important;
  align-content: start !important;
  place-content: start !important;
  padding: 6px 9px !important;
  line-height: 1.32 !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.32 !important;
}

#feed-page .feed-review-score-diff,
#feed-content .feed-review-score-diff,
#profile-rating-detail-modal .profile-rating-detail-diff {
  display: none !important;
}

#feed-page .feed-review-card-redesign.compare-open .feed-review-score-diff,
#feed-content .feed-review-card-redesign.compare-open .feed-review-score-diff,
#profile-rating-detail-modal.compare-open .profile-rating-detail-diff {
  display: inline-flex !important;
}

#feed-page .feed-review-main-score-diff,
#feed-content .feed-review-main-score-diff,
#profile-rating-detail-modal .profile-rating-detail-main-diff {
  font-size: 0.17em !important;
  min-width: auto !important;
  transform: translateY(-0.25em) !important;
  white-space: nowrap !important;
}

#feed-page #feed-content,
#feed-content {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

#feed-page #feed-content .feed-review-card-redesign,
#feed-content .feed-review-card-redesign {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

@media (max-width: 760px) {
  #feed-page .feed-side-actions-redesign,
  #feed-content .feed-side-actions-redesign {
    margin-left: 0 !important;
    width: auto !important;
  }
}


/* v133: clean main compare diff + notes box top-left/overflow */
#feed-page .feed-review-score-main,
#feed-content .feed-review-score-main {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

#feed-page .feed-review-main-score-number,
#feed-content .feed-review-main-score-number {
  display: inline-block !important;
  line-height: 0.9 !important;
}

#feed-page .feed-review-main-score-diff,
#feed-content .feed-review-main-score-diff {
  position: static !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 42px !important;
  max-width: 56px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  transform: translateY(-10px) !important;
  margin: 0 2px 0 0 !important;
  text-shadow: none !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  display: block !important;
  box-sizing: border-box !important;
  min-height: 136px !important;
  max-height: 136px !important;
  height: 136px !important;
  padding: 3px 5px !important;
  margin-top: 42px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: auto !important;
  text-align: left !important;
  line-height: 1.28 !important;
  align-content: normal !important;
  place-content: normal !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.28 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-main-score-diff,
  #feed-content .feed-review-main-score-diff {
    min-width: 28px !important;
    max-width: 38px !important;
    font-size: 12px !important;
    transform: translateY(-4px) !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    min-height: 86px !important;
    max-height: 86px !important;
    height: 86px !important;
    padding: 3px 5px !important;
    margin-top: 8px !important;
  }
}


/* v134: feed compare visibility, notes top-left, and backdrop hero area */
#feed-page .feed-review-main-panel,
#feed-content .feed-review-main-panel {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#feed-page .feed-review-main-panel.has-feed-backdrop,
#feed-content .feed-review-main-panel.has-feed-backdrop {
  background: rgba(8, 8, 14, 0.96) !important;
}

#feed-page .feed-review-main-panel.has-feed-backdrop::before,
#feed-content .feed-review-main-panel.has-feed-backdrop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(290px, 60%, 430px);
  background-image:
    linear-gradient(180deg, rgba(5, 5, 10, 0.36) 0%, rgba(5, 5, 10, 0.48) 54%, rgba(5, 5, 10, 0.88) 100%),
    radial-gradient(circle at top left, rgba(255, 211, 77, 0.10), transparent 34%),
    var(--feed-review-backdrop-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

#feed-page .feed-review-main-panel > *,
#feed-content .feed-review-main-panel > * {
  position: relative;
  z-index: 1;
}

#feed-page .feed-review-main-score-diff,
#feed-content .feed-review-main-score-diff {
  display: none !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-right: 6px !important;
}

#feed-page .feed-review-card-redesign.compare-open .feed-review-main-score-diff,
#feed-content .feed-review-card-redesign.compare-open .feed-review-main-score-diff {
  display: inline-flex !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  min-height: 140px !important;
  max-height: 140px !important;
  height: 140px !important;
  overflow: hidden !important;
}

#feed-page .feed-review-notes-scroll,
#feed-content .feed-review-notes-scroll,
.feed-review-notes-scroll {
  position: absolute !important;
  inset: 2px 4px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  scrollbar-gutter: auto !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.2 !important;
  white-space: pre-wrap !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-main-panel.has-feed-backdrop::before,
  #feed-content .feed-review-main-panel.has-feed-backdrop::before {
    height: clamp(160px, 44%, 240px);
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    min-height: 90px !important;
    max-height: 90px !important;
    height: 90px !important;
  }
}


/* v135: final Following Feed backdrop + notes top-left + transparent notes box */
#feed-page .feed-review-main-panel.has-feed-backdrop::before,
#feed-content .feed-review-main-panel.has-feed-backdrop::before {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 10, 0.96) 0%, rgba(5, 5, 10, 0.72) 42%, rgba(5, 5, 10, 0.96) 100%),
    linear-gradient(180deg, rgba(5, 5, 10, 0.45) 0%, rgba(5, 5, 10, 0.82) 65%, rgba(5, 5, 10, 1) 100%),
    var(--feed-review-backdrop-url) !important;
  opacity: 0.86 !important;
}

#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  position: relative !important;
  display: block !important;

  align-items: unset !important;
  justify-content: unset !important;
  place-items: unset !important;
  place-content: unset !important;
  align-content: unset !important;

  padding: 0 !important;
  margin-top: 42px !important;

  min-height: 140px !important;
  max-height: 140px !important;
  height: 140px !important;

  overflow: hidden !important;

  background: rgba(10, 10, 16, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

#feed-page .feed-review-notes-scroll,
#feed-content .feed-review-notes-scroll,
.feed-review-notes-scroll {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 4px !important;
  bottom: 0 !important;

  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  place-items: unset !important;
  place-content: unset !important;
  align-content: unset !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding: 0 !important;
  margin: 0 !important;

  text-align: left !important;
  scrollbar-gutter: auto !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  display: block !important;
  position: static !important;
  transform: none !important;

  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
  line-height: 1.15 !important;
  white-space: pre-wrap !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: translateY(0) !important;
}

/* Keep compare diff hidden until Compare is active. */
#feed-page .feed-review-main-score-diff,
#feed-content .feed-review-main-score-diff,
#feed-page .feed-review-score-diff,
#feed-content .feed-review-score-diff {
  display: none !important;
}

#feed-page .feed-review-card-redesign.compare-open .feed-review-main-score-diff,
#feed-content .feed-review-card-redesign.compare-open .feed-review-main-score-diff,
#feed-page .feed-review-card-redesign.compare-open .feed-review-score-diff,
#feed-content .feed-review-card-redesign.compare-open .feed-review-score-diff {
  display: inline-flex !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    min-height: 90px !important;
    max-height: 90px !important;
    height: 90px !important;
    margin-top: 8px !important;
  }
}


/* v136: hard fix for Following Feed notes vertical positioning.
   The note markup is now single-line in app.js, and this prevents template whitespace
   from reserving vertical space while preserving user-written line breaks inside notes. */
#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  margin-top: 42px !important;
  overflow: hidden !important;
  text-align: left !important;
  align-items: unset !important;
  justify-content: unset !important;
  place-items: unset !important;
  place-content: unset !important;
  align-content: unset !important;
}

#feed-page .feed-review-notes-scroll,
#feed-content .feed-review-notes-scroll,
.feed-review-notes-scroll {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 4px !important;
  bottom: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  text-align: left !important;
  white-space: normal !important;
  font-size: 0 !important;
  line-height: 0 !important;
  align-items: unset !important;
  justify-content: unset !important;
  place-items: unset !important;
  place-content: unset !important;
  align-content: unset !important;
  scrollbar-gutter: auto !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  display: block !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: pre-wrap !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  vertical-align: top !important;
}

@media (max-width: 760px) {
  #feed-page .feed-review-notes-scroll,
  #feed-content .feed-review-notes-scroll,
  .feed-review-notes-scroll {
    right: 3px !important;
  }

  #feed-page .feed-review-notes-text,
  #feed-content .feed-review-notes-text,
  .feed-review-notes-text,
  #feed-page .feed-review-no-notes,
  #feed-content .feed-review-no-notes,
  .feed-review-no-notes {
    font-size: 14px !important;
  }
}


/* v137: Following Feed notes box color + readable inner padding */
#feed-page .feed-review-notes-box,
#feed-content .feed-review-notes-box,
.feed-review-notes-box {
  background: rgba(24, 24, 32, 0.34) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 10px 28px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
}

#feed-page .feed-review-notes-scroll,
#feed-content .feed-review-notes-scroll,
.feed-review-notes-scroll {
  top: 7px !important;
  left: 10px !important;
  right: 8px !important;
  bottom: 7px !important;
  padding: 0 !important;
}

#feed-page .feed-review-notes-text,
#feed-content .feed-review-notes-text,
.feed-review-notes-text,
#feed-page .feed-review-no-notes,
#feed-content .feed-review-no-notes,
.feed-review-no-notes {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.22 !important;
}


/* v138: mobile Following Feed compact layout + mobile snap + live popup watchlist feedback */
.save-toast {
  z-index: 2147483000 !important;
}

.profile-rating-detail-dynamic-action:disabled {
  opacity: 0.72 !important;
  cursor: wait !important;
}

@media (max-width: 760px) {
  #feed-page #feed-content.feed-column {
    height: calc(100dvh - 68px) !important;
    min-height: calc(100dvh - 68px) !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }

  #feed-page .feed-review-card-redesign,
  #feed-content .feed-review-card-redesign {
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 0 14px !important;
    margin: 0 !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }

  #feed-page .feed-review-layout-redesign,
  #feed-content .feed-review-layout-redesign,
  #feed-page .feed-review-layout-redesign:has(.feed-review-comments-panel.open),
  #feed-content .feed-review-layout-redesign:has(.feed-review-comments-panel.open) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 8px !important;
    align-items: start !important;
    justify-items: center !important;
  }

  #feed-page .feed-review-main-panel,
  #feed-content .feed-review-main-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 10px 12px !important;
    display: grid !important;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "poster top"
      "scores scores" !important;
    gap: 8px 10px !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  #feed-page .feed-review-poster-column,
  #feed-content .feed-review-poster-column {
    gap: 5px !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  #feed-page .feed-review-user-chip,
  #feed-content .feed-review-user-chip {
    margin-top: 0 !important;
    max-width: 120px !important;
    padding: 2px 5px !important;
  }

  #feed-page .feed-review-poster-button,
  #feed-content .feed-review-poster-button {
    width: min(100%, 128px) !important;
    max-height: none !important;
    margin-top: 0 !important;
  }

  #feed-page .feed-review-detail-panel,
  #feed-content .feed-review-detail-panel {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 7px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  #feed-page .feed-review-score-main,
  #feed-content .feed-review-score-main {
    margin: 0 !important;
    font-size: clamp(38px, 14vw, 58px) !important;
    line-height: 0.9 !important;
    gap: 7px !important;
  }

  #feed-page .feed-review-main-score-diff,
  #feed-content .feed-review-main-score-diff {
    min-width: 22px !important;
    max-width: 36px !important;
    font-size: 11px !important;
    transform: translateY(-4px) !important;
    margin-right: 1px !important;
  }

  #feed-page .feed-review-notes-box,
  #feed-content .feed-review-notes-box,
  .feed-review-notes-box {
    width: 100% !important;
    min-height: 76px !important;
    max-height: 76px !important;
    height: 76px !important;
    margin-top: 4px !important;
  }

  #feed-page .feed-review-notes-scroll,
  #feed-content .feed-review-notes-scroll,
  .feed-review-notes-scroll {
    top: 5px !important;
    left: 8px !important;
    right: 6px !important;
    bottom: 5px !important;
  }

  #feed-page .feed-review-bottom-scores,
  #feed-content .feed-review-bottom-scores {
    padding-top: 8px !important;
    margin-top: 2px !important;
  }

  #feed-page .feed-review-bottom-scores .feed-review-score-grid,
  #feed-content .feed-review-bottom-scores .feed-review-score-grid {
    gap: 6px 7px !important;
  }

  #feed-page .feed-review-score-row,
  #feed-page .feed-review-overall-row,
  #feed-content .feed-review-score-row,
  #feed-content .feed-review-overall-row {
    min-height: 30px !important;
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }

  #feed-page .feed-review-overall-row,
  #feed-content .feed-review-overall-row {
    min-height: 32px !important;
    margin-top: 7px !important;
  }

  #feed-page .feed-side-actions-redesign,
  #feed-content .feed-side-actions-redesign {
    margin-left: 0 !important;
    transform: none !important;
    width: auto !important;
    justify-self: center !important;
  }
}

/* v139: performance pass. Visual styling intentionally unchanged. */
