:root {
  --interface-height: 55px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --nav-height: calc(60px + var(--safe-bottom));
  --column-width: 320px;
  --p-m: 1.5rem;
  --p-s: 0.5rem;
  --p-micro: 0.25rem;
  --r-m: 0.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bg: #ebe0cf;
  --surface: #f3e9d6;
  --surface-2: #e3d6c0;
  --header-bg: #1c1d22;
  --text: #2a2723;
  --text-muted: #6b6660;
  --text-faint: #948d83;
  --line: #cfc3ad;
  --line-soft: #d8cdb6;
  --accent-wine: #7a1f4d;
  --accent-wine-2:#93305f;
  --accent-gold: #c0995a;
  --accent-heart: #a52f4f;
  --star-color: #d8a23b;
  --color-1: #f3e9d6;
  --color-2: #e3d6c0;
  --color-2-glass: rgba(227, 214, 192, 0.90);
  --color-3: #cfc3ad;
  --color-4: #7a1f4d;
  --color-5: #2a2723;
  --aqua: #7FDBFF;
  --blue: #0074D9;
  --navy: #001F3F;
  --teal: #39CCCC;
  --green: #2ECC40;
  --olive: #3D9970;
  --lime: #01FF70;
  --yellow: #d8a23b;
  --orange: #FF851B;
  --red: #FF4136;
  --fuchsia:#F012BE;
  --purple: #B10DC9;
  --maroon: #7a1f4d;
  --white: #FFFFFF;
  --silver: #DDDDDD;
  --gray: #948d83;
  --black: #111111;
}

.trz-bt-primary, .trz-bt-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 0.25rem;
  border-width: 1px;
  border-style: solid;
  font-size: 1rem;
  cursor: pointer;
}

.list-search > li.trz-selected, .list-search > li.trz-selected:hover {
  background-color: #444;
  color: #eee;
}

html {
  box-sizing: border-box;
}

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

html {
  margin: 0;
  padding: 0;
  font-size: 17px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.2;
  background-color: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

h2 {
  margin-bottom: 0.25rem;
}

ul {
  margin: 0;
  padding: 0;
}

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

iframe {
  max-width: 100%;
}

input[type=text],
textarea,
select {
  font-size: 16px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-sans);
}

input[type=text],
textarea {
  width: 100%;
}

.trz-genres {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trz-genre {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.trz-bt-primary {
  background-color: var(--accent-wine);
  color: #f5ecdb;
  border-color: var(--accent-wine);
}
.trz-bt-primary:hover {
  background-color: var(--accent-wine-2);
  border-color: var(--accent-wine-2);
}

.trz-bt-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.trz-bt-secondary:hover {
  background-color: var(--surface-2);
}

.trz-filter-options {
  margin-top: var(--p-s);
  margin-left: -4px;
}

.data-row {
  font-size: 80%;
  padding-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.data-row > span {
  display: inline-block;
  margin-right: calc(5px + 0.25em);
}
.data-row > span:last-child {
  margin-right: 0;
}

.nice-to-have, .trz-filter-options {
  font-size: 80%;
}

.fa-solid {
  position: relative;
  top: -1px;
  font-size: 70%;
  color: #999;
  margin-right: calc(2px + 0.15em);
}

.message-text.error {
  color: #c0392b;
  font-weight: bold;
  display: block;
  padding: 1rem 0;
}

.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  line-height: 1.2;
}
.btn.primary {
  background: var(--accent-wine);
  border-color: var(--accent-wine);
  color: #f5ecdb;
}
.btn.primary:hover {
  background: var(--accent-wine-2);
}
.btn-grow {
  flex: 1;
  justify-content: center;
}

.sticky-title {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 14px 16px 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  margin: -14px -16px 0;
}

.search-title-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
}
.search-title-bar .search-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.search-title-bar .search-title-group .search-filter-label {
  margin-left: auto;
}
.search-title-bar #trz-search-chips {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.search-title-bar #trz-search-chips::-webkit-scrollbar {
  display: none;
}
@media (max-width: 419px) {
  .search-title-bar #trz-search-chips .search-chips {
    gap: 4px;
  }
  .search-title-bar #trz-search-chips .search-chip {
    padding: 4px 9px;
  }
}
.search-title-bar .trz-section-title {
  margin: 0;
  flex-shrink: 0;
}
.search-title-bar .search-input-wrap {
  order: 1;
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  display: flex;
}
.search-title-bar #trz-input-search {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  padding: 11px 32px 11px 12px;
  border: 1px solid var(--text-faint);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  outline: 0;
}
.search-title-bar #trz-input-search::placeholder {
  color: var(--text-faint);
}
.search-title-bar #trz-input-search:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: -1px;
  border-color: transparent;
}

.trz-history-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}
.trz-history-btn:hover {
  color: var(--text);
}
.trz-history-btn .fa-solid {
  position: static;
  margin: 0;
  color: inherit;
}
.trz-guest-mode .trz-history-btn {
  display: none;
}

.search-chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 2px;
}
#trz-search-chips > .search-chips {
  margin: 0;
}

.search-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  cursor: pointer;
}
.search-chip.active {
  background: var(--header-bg);
  border-color: var(--header-bg);
  color: #f5ecdb;
}

.search-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 14px 0 0;
}

.search-top-result {
  border-left: 3px solid var(--header-bg);
  margin-top: 4px;
}

.search-filter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.search-filter-label input[type=checkbox] {
  margin: 0;
  accent-color: var(--accent-wine);
  cursor: pointer;
}

.trz-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trz-section-title .title-action {
  font-size: 12px;
  font-weight: 500;
  margin-left: auto;
}

.trz-toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #eee;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}
.trz-toast.trz-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.trz-toast.trz-toast-error {
  background: #a33;
}

.trz-director-line a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.trz-director-line a:hover {
  color: var(--accent-wine);
}

.input-clear-btn {
  background: transparent;
  border: 0;
  padding: 0 2px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
}
.input-clear-btn:hover {
  color: var(--text);
}
.search-input-wrap .input-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.mm-filter-input::-webkit-search-cancel-button {
  display: none;
}

[role=button]:focus-visible,
.panel-back-btn:focus-visible,
.subtab:focus-visible,
.search-chip:focus-visible {
  outline: 2px solid var(--accent-wine);
  outline-offset: 2px;
}

#trz-auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  padding: 40px 32px 60px;
  text-align: center;
}

.trz-auth-container {
  width: 100%;
  max-width: 340px;
}
.trz-auth-container form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trz-auth-container input[type=text],
.trz-auth-container input[type=password] {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.trz-auth-container input[type=text]:focus,
.trz-auth-container input[type=password]:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: -1px;
  border-color: transparent;
}
.trz-auth-container button[type=submit] {
  cursor: pointer;
  font-size: 15px;
  width: 100%;
  padding: 11px 14px;
}

.login-mark {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--text);
}

.login-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.trz-auth-switch {
  text-align: center;
  font-size: 13px;
  margin: 0;
  color: var(--text-muted);
}
.trz-auth-switch a {
  color: var(--accent-wine);
  text-decoration: underline;
  cursor: pointer;
}

.trz-auth-reason {
  font-size: 14px;
  color: var(--text);
  margin: -16px 0 20px;
}

.trz-auth-back {
  margin-top: 20px;
}

.trz-auth-error {
  background-color: #fdecea;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: left;
}

#trz-user-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(14px, var(--safe-right)) 0 max(14px, var(--safe-left));
  background-color: var(--header-bg);
  color: #f5ecdb;
}

.trz-app-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5ecdb;
}

.trz-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.trz-header-right #trz-username {
  color: rgba(245, 236, 219, 0.75);
  font-size: 12px;
}
.trz-header-right #trz-logout {
  color: rgba(245, 236, 219, 0.65);
  text-decoration: none;
  font-size: 12px;
}
.trz-header-right #trz-logout:hover {
  color: #f5ecdb;
}

#trz-section-container {
  position: fixed;
  top: 44px;
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
#trz-section-container section {
  display: none;
  width: 100%;
  min-height: 100%;
  padding: 14px 16px 18px;
  background-color: var(--bg);
}
#trz-section-container section.trz-active {
  display: block;
}

#trz-navigation-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-height);
  z-index: 10;
}
#trz-navigation-container ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 5px calc(6px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(6px + var(--safe-left));
  gap: 2px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  height: 100%;
}
#trz-navigation-container li {
  flex: 1;
}
#trz-navigation-container a.trz-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 2px 5px;
  transition: color 0.15s;
}
#trz-navigation-container a.trz-nav-link svg {
  display: block;
}
#trz-navigation-container a.trz-nav-link.trz-selected {
  color: var(--text);
  border-color: var(--accent-gold);
  background: rgba(192, 153, 90, 0.08);
}

.video-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: var(--p-m);
  margin-top: var(--p-m);
}

.trz-video {
  min-width: 0;
}
.trz-video h4 {
  margin: 0;
}
.trz-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.list-movies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-search > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.15s;
}
.list-search > li:last-child {
  border-bottom: 0;
}
.list-search > li:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.list-search > li:focus-visible {
  outline-offset: -2px;
}
.list-search > li.trz-selected {
  padding-left: 6px;
}
.list-search > li.trz-selected .title,
.list-search > li.trz-selected .release-date,
.list-search > li.trz-selected .text-wrapper * {
  color: inherit;
}
.list-search .image-wrapper {
  width: 46px;
  min-width: 46px;
}
.list-search .text-wrapper {
  margin-top: 2px;
}
.list-search .title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.list-search .release-date {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.list-extended > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.15s;
}
.list-extended > li:last-child {
  border-bottom: 0;
}
.list-extended > li:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
.list-extended > li.trz-selected {
  background-color: rgba(192, 153, 90, 0.08);
}
.list-extended .image-wrapper {
  width: 72px;
  min-width: 72px;
}
.list-extended .text-wrapper {
  margin-top: 2px;
}
.list-extended .title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}
.list-extended .release-date {
  margin: 0;
}

.movie-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.image-wrapper.has-friends-badge {
  display: grid;
  align-content: start;
}
.image-wrapper.has-friends-badge > :first-child, .image-wrapper.has-friends-badge > .trz-friends-badge {
  grid-area: 1/1;
}

.trz-friends-badge {
  align-self: end;
  justify-self: center;
  z-index: 1;
  margin-bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rating-color, var(--text-muted));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.trz-friends-badge .fa-solid {
  top: 0;
  margin-right: 3px;
}
.trz-friends-badge .trz-friends-count {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}

ul.trz-person-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trz-person-list li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.trz-person-clickable {
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.trz-person-clickable:hover {
  opacity: 0.8;
}

.trz-person-name {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 4px 2px;
  color: var(--text);
}

.trz-person-character {
  margin: 0;
  padding: 0 4px 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.mm-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mm-title-row .trz-section-title {
  margin: 0;
  flex-shrink: 0;
}

.mm-filter {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  cursor: text;
}
.mm-filter:focus-within {
  outline: 2px solid var(--accent-gold);
  outline-offset: -1px;
  border-color: transparent;
}
.mm-filter svg {
  flex-shrink: 0;
  color: var(--text-faint);
}

.mm-filter-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-sans);
  padding: 0;
  width: 100%;
}
.mm-filter-input::placeholder {
  color: var(--text-faint);
}

#trz-mm-filter-clear {
  background: transparent;
  border: 0;
  padding: 0 2px;
  font-size: 16px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  flex-shrink: 0;
}
#trz-mm-filter-clear:hover {
  color: var(--text);
}

.subtabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 14px;
}

.subtab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
}
.subtab.active {
  background: var(--header-bg);
  color: #f5ecdb;
}

.subtab-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 600;
}
.subtab.active .subtab-count {
  background: rgba(255, 255, 255, 0.18);
  color: #f5ecdb;
}

.mm-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  cursor: pointer;
}
.mm-row:last-child {
  border-bottom: 0;
}
.mm-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.mm-row-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mm-row-stars {
  color: var(--star-color);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.mm-row-watched {
  font-size: 11px;
  color: var(--accent-wine);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mm-row-comment {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.trz-stars-display {
  margin-bottom: 2px;
}
.trz-stars-display .trz-star {
  color: var(--star-color);
  font-size: 13px;
  position: static;
  top: auto;
  margin-right: 0;
}

.trz-save-panel {
  margin: 0;
  padding: 0;
}

.trz-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
  margin-bottom: 10px;
}
.trz-rating-row label {
  font-size: 14px;
  color: var(--text-muted);
}

.trz-stars-container {
  display: inline-flex;
  gap: 2px;
}

.trz-star {
  color: var(--star-color);
  font-size: 1.1rem;
  position: static;
  top: auto;
  margin-right: 0;
}

.trz-star-interactive {
  cursor: pointer;
  transition: transform 0.15s;
}
.trz-star-interactive:hover {
  transform: scale(1.2);
}

.trz-comment-input {
  display: block;
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.trz-comment-input:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: -1px;
  border-color: transparent;
}

.trz-comment-preview {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.25rem 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trz-watched-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.trz-watched-row label {
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
.trz-watched-row input[type=checkbox] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-wine);
}

.trz-watched-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent-wine);
  font-weight: 500;
  margin-top: 2px;
}

.trz-save-buttons {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: space-between;
}

.trz-bt-save,
.trz-bt-remove {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.trz-bt-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background-color: #c0392b;
  color: #fff;
  border: 1px solid #c0392b;
  cursor: pointer;
}
.trz-bt-danger:hover {
  background-color: #a93226;
}

.popup-scrim,
#trz-save-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 16, 0.45);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 80px;
}

.popup,
#trz-save-popup {
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(20, 12, 4, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.popup-title,
.trz-popup-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

.popup-close,
#trz-save-popup-close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  padding: 4px 8px;
  cursor: pointer;
  position: static;
}
.popup-close:hover,
#trz-save-popup-close:hover {
  opacity: 0.7;
}

.popup-body {
  padding: 4px 16px 16px;
  overflow-y: auto;
  flex: 1;
}

#trz-save-popup .trz-popup-title {
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line-soft);
}
#trz-save-popup #trz-save-popup-content {
  padding: 14px 16px 16px;
  overflow-y: auto;
}
#trz-save-popup #trz-save-popup-close {
  position: absolute;
  top: 10px;
  right: 8px;
}
#trz-save-popup {
  position: relative;
}

.trz-popup-no-poster {
  width: 40px;
  height: 60px;
  background-color: var(--surface-2);
  border-radius: 3px;
  flex-shrink: 0;
}

.trz-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-title .trz-action-buttons {
  margin-bottom: 0;
}

.current-movie-rating {
  margin: 1rem 0 0.25rem;
  font-size: 16px;
}
.current-movie-rating .trz-star {
  color: var(--accent-wine);
  font-size: 12px;
}

.current-movie-comment {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
}

#trz-current-movie-datarow {
  padding: 0 0 0.25rem 0;
}

.tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-wine);
  padding-left: 10px;
  margin: 1rem 0 0.5rem;
  line-height: 1.4;
}

.trz-bt-action {
  padding: 9px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.trz-bt-action i {
  opacity: 0.7;
}
.trz-bt-action:hover {
  background: var(--surface-2);
}
.trz-bt-action#trz-bt-save-action {
  background: var(--accent-wine);
  border-color: var(--accent-wine);
  color: #f5ecdb;
}
.trz-bt-action#trz-bt-save-action i {
  opacity: 1;
}
.trz-bt-action#trz-bt-save-action:hover {
  background: var(--accent-wine-2);
}
.trz-bt-action#trz-bt-save-action.trz-locked {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-muted);
}
.trz-bt-action#trz-bt-save-action.trz-locked i {
  color: var(--accent-wine);
}
.trz-bt-action#trz-bt-save-action.trz-locked:hover {
  background: var(--surface-2);
}

.movie-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.movie-stat {
  display: flex;
  flex-direction: column;
  min-width: 58px;
  padding: 5px 10px 6px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  line-height: 1.2;
}

.movie-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.movie-stat-value .fa-solid {
  top: -2px;
  font-size: 11px;
  margin-right: 4px;
}

.movie-stat-label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.movie-stat.tmdb-rating .fa-solid {
  color: var(--accent-wine);
}

.movie-stat.my-rating .fa-solid {
  color: var(--accent-gold);
}

.movie-stat.friends-rating {
  background: var(--rating-color, var(--surface));
  border-color: transparent;
}
.movie-stat.friends-rating .movie-stat-value,
.movie-stat.friends-rating .fa-solid {
  color: #fff;
}
.movie-stat.friends-rating .movie-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.trz-popup-loading {
  text-align: center;
  padding: var(--p-m);
  color: var(--text-faint);
}

.trz-popup-header {
  display: flex;
  gap: var(--p-m);
  margin-bottom: var(--p-m);
}

.trz-popup-photo {
  width: 100px;
  min-width: 100px;
  border-radius: 6px;
  object-fit: cover;
}

.trz-popup-header-info h2 {
  margin: 0 0 var(--p-s) 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.trz-popup-department {
  margin: 0 0 var(--p-s) 0;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.trz-popup-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.trz-popup-bio {
  margin-bottom: var(--p-m);
}
.trz-popup-bio p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.trz-popup-read-more {
  display: inline-block;
  margin-top: var(--p-s);
  font-size: 13px;
  color: var(--accent-wine);
  cursor: pointer;
  text-decoration: underline;
}

.trz-popup-filmography-title {
  margin: 0 0 var(--p-s) 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.trz-popup-filmography {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trz-popup-filmography li {
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  transition: transform 0.15s ease;
}
.trz-popup-filmography li:hover {
  transform: scale(1.03);
}
.trz-popup-filmography li img {
  width: 100%;
  display: block;
}

.trz-popup-no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background-color: var(--surface-2);
}

.trz-popup-movie-title {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 4px 0;
  font-weight: 600;
  color: var(--text);
}

.trz-popup-movie-year {
  display: block;
  font-size: 10px;
  color: var(--text-faint);
  padding: 0 4px;
}

.trz-popup-movie-rating {
  display: block;
  font-size: 10px;
  color: var(--accent-wine);
  padding: 0 4px 4px;
}
.trz-popup-movie-rating i {
  font-size: 9px;
}

.trz-filmography-bar {
  position: sticky;
  top: -14px;
  z-index: 2;
  padding: 6px 0;
  margin-bottom: var(--p-s);
  background: var(--bg);
}
.trz-filmography-bar .trz-popup-filmography-title {
  margin-bottom: 6px;
}
.trz-filmography-bar .trz-filmography-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trz-filmography-bar .search-chips {
  margin: 0;
  flex-wrap: wrap;
}

.trz-filmography-count {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.trz-filmography-more {
  display: block;
  margin: 16px auto 0;
}

#trz-similar-panel,
#trz-person-panel,
#trz-history-panel {
  position: fixed;
  top: 44px;
  bottom: 0;
  left: 0;
  right: 0;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
#trz-similar-panel.is-open,
#trz-person-panel.is-open,
#trz-history-panel.is-open {
  transform: translateX(0);
}

#trz-similar-panel {
  z-index: 15;
}

#trz-history-panel {
  z-index: 15;
}

#trz-person-panel {
  z-index: 16;
}

#trz-history-panel .panel-header {
  padding: 14px 16px 8px;
}

.history-clear-row {
  margin-top: 20px;
  text-align: center;
}
.history-clear-row .trz-bt-secondary {
  font-size: 12px;
  font-weight: 500;
}

.trz-person-result .image-wrapper img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.panel-header {
  flex-shrink: 0;
  padding: 12px 16px 10px;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 14px 16px calc(18px + var(--safe-bottom));
}

#trz-similar-panel .overview {
  font-size: 16px;
}

.panel-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title-bar .trz-section-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-back-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.panel-back-btn .fa-solid {
  font-size: inherit;
  color: inherit;
  opacity: 1;
  top: 0;
  margin: 0;
}
.panel-back-btn:hover {
  color: var(--text);
}

.image-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-popup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.image-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}
.image-popup-close:hover {
  opacity: 0.7;
}

.image-popup-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.image-popup-name {
  margin: 10px 0 0;
  color: #f5ecdb;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.trz-popup-photo {
  cursor: pointer;
  transition: opacity 0.15s;
}
.trz-popup-photo:hover {
  opacity: 0.85;
}

#trz-similar-panel .list-extended .image-wrapper .trz-watched-badge {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 6px;
}
#trz-similar-panel .list-extended .image-wrapper .trz-watched-badge .fa-solid {
  top: 0;
  margin-right: 0;
}
#trz-similar-panel .list-extended > li.is-watched {
  background-color: rgba(0, 0, 0, 0.05);
}
#trz-similar-panel .list-extended > li.is-watched .title,
#trz-similar-panel .list-extended > li.is-watched .overview,
#trz-similar-panel .list-extended > li.is-watched .data-row {
  color: var(--text-faint);
}
#trz-similar-panel .list-extended > li.is-watched .data-row strong {
  color: inherit;
}
#trz-similar-panel .list-extended > li.is-watched .image-wrapper img {
  opacity: 0.6;
}

.trz-profile-prefix {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 1px;
}

#trz-profile-title {
  font-weight: 700;
}

#trz-profile-share-btn,
#trz-share-my-list-btn {
  margin-left: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#trz-profile-share-btn i,
#trz-share-my-list-btn i {
  opacity: 0.75;
}

#trz-navigation-container .trz-nav-lock {
  display: none;
}

body.trz-guest-mode #trz-navigation-container a.trz-nav-link.trz-locked {
  position: relative;
  color: var(--text-faint);
}
body.trz-guest-mode #trz-navigation-container a.trz-nav-link.trz-locked svg,
body.trz-guest-mode #trz-navigation-container a.trz-nav-link.trz-locked span {
  opacity: 0.6;
}
body.trz-guest-mode #trz-navigation-container a.trz-nav-link.trz-locked .trz-nav-lock {
  display: block;
  position: absolute;
  top: 5px;
  left: calc(50% + 6px);
  font-size: 9px;
  color: var(--accent-wine);
}
body.trz-guest-mode #trz-username,
body.trz-guest-mode #trz-logout {
  display: none !important;
}
body.trz-guest-mode #trz-guest-login {
  color: #f5ecdb;
  background: var(--accent-wine);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}
body.trz-guest-mode #trz-guest-login:hover {
  background: var(--accent-wine-2);
}

.trz-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trz-person-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.trz-person-item:last-child {
  border-bottom: 0;
}

.trz-person-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.trz-person-info .trz-person-name {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trz-person-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.trz-follow-btn {
  flex: 0 0 auto;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.trz-follow-btn.is-following {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--line);
  font-size: 12px;
  padding: 4px 10px;
}
.trz-follow-btn.is-following:hover {
  background-color: transparent;
  color: var(--accent-wine);
  border-color: var(--accent-wine);
}

#trz-people-search-row {
  width: 100%;
}

.trz-person-latest {
  flex: 1 0 100%;
  display: none;
  gap: 12px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 6px;
}
.trz-person-latest .trz-person-recent {
  flex: 0 0 72px;
  width: 72px;
}

.trz-person-latest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.trz-person-latest-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.trz-person-latest-title {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.trz-person-latest-title:hover {
  color: var(--accent-wine);
}

.trz-person-latest-comment {
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent-wine);
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trz-person-note {
  grid-column: 2/-1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-left: -8px;
  padding: 6px 8px 6px 16px;
  background: var(--surface-2);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}
.trz-person-note .trz-stars-display {
  font-size: 12px;
  color: var(--accent-wine);
}

.trz-person-note-text {
  flex: 1 1 80px;
  min-width: 0;
  font-style: italic;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trz-person-recents {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: start;
  gap: 8px;
  max-width: 440px;
}
.trz-person-recents .trz-person-recent-lead {
  grid-row: 1/span 2;
  aspect-ratio: auto;
  position: relative;
  align-self: stretch;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 4px 0 0 4px;
}
.trz-person-recents .trz-person-recent-lead img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 3px;
}

.trz-person-recent {
  aspect-ratio: 2/3;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.trz-person-recent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.trz-person-recent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trz-person-recents .trz-person-recent {
  width: 100%;
}
.trz-person-recents .trz-person-recent:nth-child(5) {
  display: none;
}

@media (min-width: 594px) {
  .trz-person-latest {
    display: flex;
  }
  .trz-person-recents .trz-person-note,
  .trz-person-recents .trz-person-recent-lead {
    display: none;
  }
  .trz-person-item {
    gap: 12px;
  }
  .trz-person-info {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .trz-people-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    padding-top: 16px;
  }
  .trz-person-item {
    align-content: flex-start;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface);
  }
  .trz-person-item:last-child {
    border-bottom: 1px solid var(--line-soft);
  }
  .trz-people-list > .message-text {
    grid-column: 1/-1;
  }
  .trz-person-recents {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
  .trz-person-recents .trz-person-recent:nth-child(5) {
    display: block;
  }
}
.others-comments {
  margin: 1.5rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}
.others-comments:not([open]) .others-comments-chevron {
  transform: rotate(-90deg);
}

.others-comments-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  list-style: none;
}
.others-comments-summary::-webkit-details-marker {
  display: none;
}
.others-comments-summary:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: var(--r-m);
}

.others-comments:not([open]) .others-comments-summary {
  margin-bottom: 0;
}

.others-comments-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.others-comments-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.others-comments-chevron {
  margin: 0 0 0 auto;
  font-size: 12px;
  top: 0;
  transition: transform 0.15s ease;
}

.comment-group {
  margin-bottom: 0.75rem;
}
.comment-group:last-child {
  margin-bottom: 0;
}

.comment-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0 0 0.4rem;
}

.other-comment {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
}
.other-comment:last-child {
  margin-bottom: 0;
}

.other-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.other-comment-user {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-wine);
  text-decoration: none;
}
.other-comment-user:hover {
  text-decoration: underline;
}

.other-comment-rating .trz-star {
  color: var(--star-color);
  font-size: 11px;
}

.other-comment-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
}

.comment-reactions {
  margin-top: 6px;
}
.comment-reactions[hidden] {
  display: none;
}

.reaction-pill,
.reaction-add {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.reaction-pill:hover,
.reaction-add:hover {
  border-color: var(--accent-gold);
}
.reaction-pill:focus-visible,
.reaction-add:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.reaction-add {
  background: transparent;
  border-color: transparent;
  color: var(--text-faint);
  padding-left: 0;
}
.reaction-add:hover {
  border-color: transparent;
  color: var(--text-muted);
}

.reaction-pill.is-mine {
  border-color: var(--accent-gold);
  background: rgba(192, 153, 90, 0.14);
}

.reaction-pill-emoji {
  font-size: 13px;
}
.reaction-pill-emoji + .reaction-pill-emoji {
  margin-left: -2px;
}

.reaction-pill-count {
  margin-left: 2px;
  font-weight: 600;
}

.reaction-panel {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}

.reaction-options {
  display: flex;
  gap: 4px;
}

.reaction-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
}
.reaction-option:hover {
  border-color: var(--line);
}
.reaction-option.is-mine {
  border-color: var(--accent-gold);
  background: rgba(192, 153, 90, 0.18);
  color: var(--text);
}
.reaction-option:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.reaction-option-emoji {
  font-size: 18px;
  line-height: 1;
}

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

.reaction-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.reaction-options + .reaction-people {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.reaction-people li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reaction-people a {
  color: var(--accent-wine);
  font-weight: 600;
  text-decoration: none;
}
.reaction-people a:hover {
  text-decoration: underline;
}

.trz-activity-count[hidden] {
  display: none;
}

#trz-people-subtabs .subtab {
  flex: 1 1 auto;
  padding-left: 6px;
  padding-right: 6px;
  white-space: nowrap;
}

.trz-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  cursor: pointer;
}
.trz-activity-item:hover {
  border-color: var(--line);
}
.trz-activity-item:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}
.trz-activity-item.is-new {
  border-left: 3px solid var(--accent-wine);
  background: rgba(122, 31, 77, 0.05);
}

.trz-activity-icon {
  flex-shrink: 0;
  width: 18px;
  padding-top: 1px;
  color: var(--accent-wine);
  font-size: 14px;
  text-align: center;
}

.trz-activity-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}
.trz-activity-text strong {
  color: var(--text);
  font-weight: 600;
}

.trz-activity-age {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-faint);
  padding-top: 2px;
}

#trz-navigation-container a.trz-nav-link {
  position: relative;
}

.trz-nav-badge {
  position: absolute;
  top: 3px;
  left: calc(50% + 4px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-wine);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.trz-nav-badge[hidden] {
  display: none;
}

#trz-section-container #trz-section-current-movie {
  position: relative;
}
#trz-section-container #trz-section-current-movie > :not(#trz-current-movie-hero):not(#trz-current-movie-corner):not(#trz-current-movie-poster):not(.sticky-title) {
  position: relative;
  z-index: 1;
}
#trz-section-container #trz-section-current-movie > #trz-current-movie-poster {
  position: relative;
  z-index: 6;
}
#trz-section-container #trz-section-current-movie.title-stuck > #trz-current-movie-poster {
  z-index: 4;
}
#trz-section-container #trz-section-current-movie.has-backdrop {
  padding-top: 150px;
}
#trz-section-container #trz-section-current-movie.has-backdrop .sticky-title {
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.2s;
}
#trz-section-container #trz-section-current-movie.has-backdrop.title-stuck .sticky-title {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
#trz-section-container #trz-section-current-movie.has-backdrop #trz-current-movie-hero {
  display: block;
}

#trz-current-movie-hero {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center 25%;
}
#trz-current-movie-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 10%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 45%, color-mix(in srgb, var(--bg) 88%, transparent) 72%, var(--bg) 92%);
}

@media (max-width: 1023px) {
  #trz-section-container #trz-section-current-movie.has-backdrop .sticky-title {
    padding-right: 112px;
  }
  #trz-section-container #trz-section-current-movie.has-backdrop #trz-current-movie-poster {
    margin-top: -104px;
  }
}
#trz-current-movie-corner {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
}
#trz-current-movie-corner:empty {
  display: none;
}
#trz-current-movie-corner .trz-bt-action {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#trz-current-movie-poster {
  float: right;
  width: 96px;
  margin: 12px 0 12px 14px;
  cursor: zoom-in;
}
#trz-current-movie-poster img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#trz-current-movie-comment,
#trz-current-movie-datarow {
  display: flow-root;
}

#trz-current-movie-tagline {
  margin-top: 0.75rem;
}
#trz-current-movie-tagline:empty {
  display: none;
}

#trz-current-movie-images {
  display: none;
}

#trz-current-movie-others {
  clear: both;
}

@media (min-width: 1024px) {
  #trz-section-search .search-title-bar {
    flex-wrap: nowrap;
  }
  #trz-section-search .search-title-bar .search-title-group {
    flex: 0 0 auto;
  }
  #trz-section-search .search-title-bar .search-input-wrap {
    order: 0;
    flex-basis: auto;
  }
  #trz-person-panel {
    left: calc(100% - 33.333%);
    bottom: var(--nav-height);
    border-left: 1px solid var(--line);
  }
  #trz-history-panel {
    right: auto;
    width: 33.333%;
    bottom: var(--nav-height);
    transform: translateX(-100%);
    border-right: 1px solid var(--line);
  }
  #trz-history-panel.is-open {
    transform: none;
  }
  #trz-saved-list.list-extended,
  #trz-profile-list.list-extended {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    padding-top: 18px;
  }
  #trz-saved-list.list-extended > li,
  #trz-profile-list.list-extended > li {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    transition: box-shadow 0.15s, transform 0.15s;
  }
  #trz-saved-list.list-extended > li:last-child,
  #trz-profile-list.list-extended > li:last-child {
    border-bottom: 1px solid var(--line-soft);
  }
  #trz-saved-list.list-extended > li:hover,
  #trz-profile-list.list-extended > li:hover {
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
  }
  #trz-saved-list.list-extended > li.message-text,
  #trz-profile-list.list-extended > li.message-text {
    grid-column: 1/-1;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  #trz-saved-list.list-extended > li .image-wrapper,
  #trz-profile-list.list-extended > li .image-wrapper {
    width: 100%;
    min-width: 0;
  }
  #trz-saved-list.list-extended > li .image-wrapper img,
  #trz-profile-list.list-extended > li .image-wrapper img {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
  }
  #trz-saved-list.list-extended > li .image-wrapper .trz-friends-badge,
  #trz-profile-list.list-extended > li .image-wrapper .trz-friends-badge {
    margin-bottom: 12px;
    padding: 4px 11px;
    font-size: 15px;
  }
  #trz-saved-list.list-extended > li .image-wrapper .trz-friends-badge .trz-friends-count,
  #trz-profile-list.list-extended > li .image-wrapper .trz-friends-badge .trz-friends-count {
    font-size: 12px;
  }
  #trz-saved-list.list-extended > li .text-wrapper,
  #trz-profile-list.list-extended > li .text-wrapper {
    margin: 0;
    padding: 10px 12px 12px;
  }
  #trz-saved-list.list-extended > li .title,
  #trz-profile-list.list-extended > li .title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  #trz-saved-list.list-extended > li .trz-comment-preview,
  #trz-profile-list.list-extended > li .trz-comment-preview {
    margin: 10px 0 0;
    padding-left: 9px;
    border-left: 3px solid var(--accent-wine);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    -webkit-line-clamp: 4;
  }
  body.trz-movie-active #trz-section-container {
    right: 33.333%;
  }
  body.trz-movie-active #trz-similar-panel,
  body.trz-movie-active #trz-person-panel {
    left: calc(100% - 33.333%);
    bottom: var(--nav-height);
    border-left: 1px solid var(--line);
  }
  body.trz-movie-active #trz-similar-panel {
    transform: none;
    transition: none;
  }
  body:not(.trz-movie-active) #trz-similar-panel {
    transform: translateX(100%);
  }
  #trz-similar-panel-back,
  #trz-bt-similar-action {
    display: none;
  }
  #trz-section-container #trz-section-current-movie {
    padding-left: 24px;
    padding-right: 24px;
  }
  #trz-section-container #trz-section-current-movie .sticky-title {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 24px 10px;
    margin: -14px -24px 0;
  }
  #trz-section-container #trz-section-current-movie .trz-section-title {
    font-size: 30px;
  }
  #trz-section-container #trz-section-current-movie.has-backdrop {
    padding-top: 240px;
  }
  #trz-section-container #trz-section-current-movie.has-backdrop .sticky-title {
    margin-top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #trz-section-container #trz-section-current-movie.has-backdrop.title-stuck .sticky-title {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  #trz-section-container #trz-section-current-movie.has-backdrop #trz-current-movie-poster {
    margin-top: -170px;
  }
  #trz-current-movie-hero {
    height: 480px;
  }
  #trz-current-movie-poster {
    width: 220px;
    margin: 0 0 20px 28px;
  }
  #trz-current-movie-poster img {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  }
  .data-row {
    justify-content: flex-start;
    gap: 4px 24px;
  }
  #trz-current-movie-body {
    margin-top: 1rem;
  }
  #trz-current-movie-tagline {
    max-width: 75ch;
  }
  #trz-current-movie-details .text-wrapper > p {
    max-width: 75ch;
  }
  #trz-current-movie-details ul.trz-person-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
@media (min-width: 1170px) and (max-width: 1580px) {
  #trz-current-movie-details ul.trz-person-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1400px) {
  #trz-history-panel {
    width: 25%;
  }
  #trz-person-panel {
    left: calc(100% - 25%);
  }
  #trz-navigation-container li:has(> a[href="#trz-section-search"]) {
    display: none;
  }
  body.trz-movie-active #trz-section-container {
    left: 25%;
    right: 25%;
  }
  body.trz-movie-active #trz-similar-panel,
  body.trz-movie-active #trz-person-panel {
    left: calc(100% - 25%);
  }
  body.trz-movie-active #trz-section-container > #trz-section-search {
    display: block;
    position: fixed;
    top: 44px;
    bottom: var(--nav-height);
    left: 0;
    width: 25%;
    min-height: 0;
    padding-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    border-right: 1px solid var(--line);
  }
  body.trz-movie-active #trz-section-container > #trz-section-search .sticky-title {
    margin-top: 0;
  }
  body.trz-movie-active #trz-section-container > #trz-section-search .search-title-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  body.trz-movie-active #trz-section-container > #trz-section-search .search-title-bar .search-title-group {
    flex: 1;
  }
  body.trz-movie-active #trz-section-container > #trz-section-search .search-title-bar .search-input-wrap {
    order: 1;
    flex-basis: 100%;
  }
}

/*# sourceMappingURL=styles.css.map */
