:root {
  color-scheme: light;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #18212f;
  background: #edf2f7;

  --accent: #00e676;
  --accent-hover: #00c853;
  --accent-soft: #e3fcef;
  --accent-soft-dark: #0f3d24;
  --accent-ink: #06240f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #000000;
  border-bottom: 1px solid #000000;
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header-right > a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #9aa4b2;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav-link.active {
  color: #ffffff;
}

.ott-badge-group {
  display: flex;
  align-items: center;
  background: #1c1c1c;
  border-radius: 999px;
  padding: 4px;
  border: none;
  cursor: pointer;
}

.ott-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  border: 2px solid #1c1c1c;
  margin-left: -8px;
}

.ott-badge:first-child {
  margin-left: 0;
}

.ott-badge-more {
  background: #3a3a3a;
  font-size: 11px;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover {
  background: #1c1c1c;
}

.icon-button-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-button-accent:hover {
  background: var(--accent-hover);
}

.user-menu {
  position: relative;
}

.avatar-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #3a3a3a;
  color: #ffffff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.avatar-button:hover {
  background: #4a4a4a;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #1c1c1c;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 40%);
  padding: 8px;
  z-index: 20;
}

.user-dropdown-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  border-radius: 12px;
}

.user-dropdown-profile:hover {
  background: #2a2a2a;
}

.user-dropdown-profile .avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #3a3a3a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.profile-nickname {
  flex: 1;
  color: #ffffff;
  font-weight: 700;
}

.user-dropdown-profile svg {
  color: #9aa4b2;
}

.dropdown-divider {
  height: 1px;
  background: #333333;
  margin: 8px 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #e5e8ec;
  font-weight: 600;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #2a2a2a;
}

.dropdown-count {
  color: #9aa4b2;
  font-weight: 700;
}

.flashes {
  list-style: none;
  margin: 16px auto 0;
  padding: 0;
  max-width: 620px;
}

.flashes li {
  padding: 12px 16px;
  border-radius: 10px;
  background: #fde8e8;
  color: #9b2c2c;
  font-weight: 600;
}

.container {
  min-height: calc(100vh - 65px);
  display: grid;
  place-items: center;
  padding: 24px;
}

body.dark-page {
  background: #000000;
}

body.dark-page .container {
  display: block;
  padding: 0;
}

.site-footer {
  padding: 42px 32px 34px;
  border-top: 1px solid #242428;
  color: #8c8c95;
  background: #09090b;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 30px 48px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.site-footer-brand img {
  display: block;
  width: auto;
  height: 36px;
}

.site-footer-brand p,
.site-footer-meta p {
  margin: 12px 0 0;
  line-height: 1.65;
}

.site-footer-brand p {
  max-width: 420px;
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 9px;
}

.site-footer-links a {
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--accent);
}

.site-footer-meta {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #202024;
  font-size: 12px;
}

.site-footer-meta p {
  margin: 0;
}

.container.catalog-container {
  display: block;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.recommendation-section {
  margin-bottom: 44px;
  padding: 28px;
  border-radius: 24px;
  color: #f8fafc;
  background:
    radial-gradient(circle at top right, rgb(99 102 241 / 45%), transparent 38%),
    linear-gradient(145deg, #101827, #1e293b);
  box-shadow: 0 24px 60px rgb(15 23 42 / 20%);
}

.recommendation-heading,
.content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.recommendation-heading h1 {
  font-size: clamp(26px, 4vw, 40px);
}

.recommendation-heading p:not(.recommendation-eyebrow) {
  margin: 10px 0 0;
  color: #cbd5e1;
}

.recommendation-eyebrow {
  margin: 0 0 10px;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.recommendation-refresh {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  color: #ffffff;
  background: rgb(255 255 255 / 10%);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.recommendation-refresh:hover:not(:disabled) {
  background: rgb(255 255 255 / 18%);
}

.recommendation-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.recommendation-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  margin-top: 20px;
  border: 1px dashed rgb(255 255 255 / 20%);
  border-radius: 18px;
  color: #cbd5e1;
}

.recommendation-status[hidden],
.recommendation-grid[hidden],
.recommendation-meta[hidden] {
  display: none;
}

.recommendation-error {
  flex-direction: column;
  color: #fecaca;
}

.recommendation-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgb(255 255 255 / 25%);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: recommendation-spin 0.8s linear infinite;
}

@keyframes recommendation-spin {
  to { transform: rotate(360deg); }
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.recommendation-card {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 18px;
  background: rgb(255 255 255 / 8%);
}

.recommendation-poster-link,
.recommendation-title-link {
  color: inherit;
  text-decoration: none;
}

.recommendation-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
  background: rgb(255 255 255 / 8%);
}

.recommendation-card-body {
  padding: 16px;
}

.recommendation-card h2 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.recommendation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-badge,
.score-badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.provider-badge {
  color: #e0e7ff;
  background: rgb(99 102 241 / 35%);
}

.score-badge {
  color: #d1fae5;
  background: rgb(16 185 129 / 24%);
}

.recommendation-facts,
.recommendation-reason {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.recommendation-reason {
  margin-top: 10px;
  color: #f1f5f9;
}

.recommendation-meta,
.recommendation-attribution {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.recommendation-attribution {
  text-align: right;
}

.content-heading {
  margin-bottom: 24px;
}

.content-heading h1 {
  font-size: clamp(28px, 5vw, 44px);
}

.content-heading p {
  margin: 10px 0 0;
  color: #5d6b7b;
}

.search-form {
  width: min(100%, 420px);
}

.search-form label {
  display: block;
  margin-bottom: 7px;
  color: #5d6b7b;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

.search-row button,
.pagination a {
  padding: 11px 15px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #18212f;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgb(30 55 80 / 8%);
}

.movie-card > a {
  color: inherit;
  text-decoration: none;
}

.movie-poster,
.movie-card .poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #e2e8f0;
  color: #64748b;
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.movie-card-body p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.pagination span {
  color: #94a3b8;
}

.message-box {
  padding: 32px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.card {
  width: min(100%, 620px);
  padding: 48px;
  border: 1px solid #dbe4ee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgb(30 55 80 / 12%);
}

.auth-card {
  text-align: left;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #33475b;
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  font-size: 15px;
}

.auth-switch {
  margin-top: 20px;
  color: #5d6b7b;
}

.auth-switch a {
  color: #18212f;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  color: #52708f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.description {
  margin: 20px 0 32px;
  color: #5d6b7b;
  font-size: 18px;
  line-height: 1.7;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f8fb;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.status-dot.connected {
  background: #16a36a;
  box-shadow: 0 0 0 5px rgb(22 163 106 / 14%);
}

.status-dot.disconnected {
  background: #dc3f4f;
  box-shadow: 0 0 0 5px rgb(220 63 79 / 14%);
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 18px;
  border-radius: 12px;
  color: #ffffff;
  background: #18212f;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.button:hover {
  background: #2b3a4e;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #9aa9ba;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbe4ee;
}

.button-google {
  display: block;
  width: 100%;
  text-align: center;
  background: #ffffff;
  color: #18212f;
  border: 1px solid #dbe4ee;
  margin-top: 0;
}

.button-google:hover {
  background: #f6f8fb;
}

.button-secondary {
  background: #ffffff;
  color: #18212f;
  border: 1px solid #dbe4ee;
}

.button-secondary:hover {
  background: #f6f8fb;
}

.field-error {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fde8e8;
  color: #9b2c2c;
  font-weight: 600;
}

.onboarding-card {
  text-align: left;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.onboarding-form {
  margin-top: 24px;
}

.onboarding-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.onboarding-nav .button {
  margin-top: 0;
  flex: 1;
  text-align: center;
}

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

.option-button {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

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

.date-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.date-select-row select {
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  font-size: 15px;
  background: #ffffff;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.genre-tile {
  position: relative;
  padding: 18px 8px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
}

.genre-tile.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.genre-priority-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 20px;
}

.genre-tile.selected .genre-priority-badge {
  display: block;
}

.ott-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.ott-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}

.ott-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ott-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ott-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}

.ott-name {
  font-size: 13px;
}

.ott-modal {
  border: none;
  border-radius: 20px;
  padding: 28px;
  width: min(90vw, 480px);
  background: #1c1c1c;
  color: #ffffff;
}

.ott-modal::backdrop {
  background: rgb(0 0 0 / 60%);
}

.ott-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ott-modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.ott-modal-close {
  background: none;
  border: none;
  color: #9aa4b2;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.ott-modal-close:hover {
  color: #ffffff;
}

.ott-modal .ott-item {
  border-color: #333333;
  background: #262626;
  color: #ffffff;
}

.ott-modal .ott-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft-dark);
}

.ott-modal-save {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.login-teaser-modal {
  position: relative;
  border: none;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: min(90vw, 380px);
  background: #1c1c1c;
  color: #ffffff;
  text-align: center;
}

.login-teaser-modal::backdrop {
  background: rgb(0 0 0 / 60%);
}

.login-teaser-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.login-teaser-emoji {
  font-size: 56px;
  margin: 8px 0 4px;
}

.login-teaser-modal h2 {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.4;
}

.login-teaser-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0;
}

.login-teaser-dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  border: none;
  color: #9aa4b2;
  font-weight: 600;
  cursor: pointer;
}

.login-teaser-dismiss:hover {
  color: #ffffff;
}

.movie-detail-page {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 80px;
  color: #ffffff;
}

.movie-detail-page .back-link {
  display: inline-block;
  margin: 24px 32px 0;
  color: #9aa4b2;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.movie-detail-page .back-link:hover {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  width: 90%;
  margin: 0 auto;
  min-height: min(560px, 74vh);
  display: flex;
  align-items: center;
  background-color: #0a0a0a;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 15%) 40%, rgb(0 0 0 / 45%) 70%, rgb(0 0 0 / 95%) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 50%) 45%, rgb(0 0 0 / 0%) 80%);
}

.detail-hero-blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 100%) 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 100%) 75%);
  pointer-events: none;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: 40%;
  margin-left: 0;
  padding: 0 32px;
}

.detail-hero-inner h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: #ffffff;
}

.detail-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-rating-score {
  color: #ffc233;
  font-weight: 800;
  font-size: 14px;
}

.detail-rating-count,
.detail-rating-empty {
  color: #9aa4b2;
  font-size: 12px;
}

.detail-overview-wrap {
  margin-bottom: 14px;
}

.detail-overview {
  margin: 0;
  color: #d6dae0;
  line-height: 1.6;
  font-size: 13px;
}

.detail-overview.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overview-toggle {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: #9aa4b2;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.overview-toggle:hover {
  color: #ffffff;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #e5e8ec;
  font-size: 11px;
  font-weight: 600;
}

.detail-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  margin: 40px 0 0;
  padding: 0 32px;
}

.detail-ott-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 16px;
  background: #101010;
  border: 1px solid #222222;
}

.detail-ott-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #ffffff;
}

.ott-panel-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 14px;
}

.ott-panel-tab {
  padding: 8px 4px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.ott-panel-tab.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.ott-panel-tab-count {
  color: inherit;
  opacity: 0.7;
}

.ott-panel-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ott-panel-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ott-panel-group[hidden] {
  display: none;
}

.ott-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ott-panel-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.ott-panel-name {
  flex: 1;
  min-width: 0;
  color: #e5e8ec;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ott-panel-link {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.ott-panel-link-disabled {
  background: #2a2a2a;
  color: #6b7280;
  cursor: not-allowed;
}

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

.detail-section {
  margin-top: 36px;
}

.detail-section:first-child {
  margin-top: 0;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #ffffff;
}

.detail-section > p {
  color: #c3c9d1;
  line-height: 1.7;
}

.movie-detail-page .helper-text {
  color: #6b7280;
  font-size: 14px;
}

.share-button {
  padding: 10px 4px;
  border: none;
  background: none;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.share-button:hover {
  color: #ffffff;
}

.quick-reaction-section {
  margin-top: 20px;
}

.quick-reaction-buttons {
  display: flex;
  gap: 12px;
}

.quick-reaction-button {
  flex: 1;
  padding: 16px;
  border: 1px solid #333333;
  border-radius: 12px;
  background: #101010;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.quick-reaction-button span {
  margin-right: 6px;
}

.quick-reaction-button:hover {
  border-color: var(--accent);
}

.quick-reaction-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.quick-reaction-button.active.quick-reaction-like {
  background: rgb(0 230 118 / 12%);
  border-color: var(--accent);
  color: #ffffff;
}

.quick-reaction-button.active.quick-reaction-dislike {
  background: rgb(220 63 79 / 12%);
  border-color: #dc3f4f;
  color: #ffffff;
}

.quick-reaction-hint {
  margin-top: 8px;
}

.cast-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #2a2a2a;
}

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

.cast-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cast-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.cast-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.cast-role {
  color: #6b7280;
  font-size: 13px;
}

.cast-more-button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #333333;
  background: #101010;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.cast-more-button:hover {
  border-color: var(--accent);
  color: #ffffff;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.inline-form {
  display: contents;
}

.action-buttons button,
.action-buttons .share-button {
  padding: 10px 4px;
  border: none;
  background: none;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.rating-buttons button {
  padding: 10px 18px;
  border: 1px solid #333333;
  border-radius: 999px;
  background: #1c1c1c;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.action-buttons button:hover,
.action-buttons .share-button:hover {
  color: #ffffff;
}

.rating-buttons button:hover {
  border-color: var(--accent);
  color: #ffffff;
}

.action-buttons button.active {
  background: none;
  border: none;
  color: var(--accent);
}

.rating-buttons button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.action-buttons button:disabled,
.action-buttons .share-button:disabled,
.rating-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.library-page {
  max-width: none;
  margin: 0;
  padding: 48px 32px 80px;
  color: #ffffff;
}

.library-page h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 4vw, 25px);
  color: #ffffff;
}

.library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.library-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid #333333;
  text-decoration: none;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 15px;
}

.library-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.library-ott-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.library-ott-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid #333333;
  text-decoration: none;
  color: #9aa4b2;
  font-weight: 600;
  font-size: 15px;
}

.library-ott-tab.active {
  border-color: var(--accent);
  color: #ffffff;
  background: rgb(0 230 118 / 12%);
}

.library-ott-tab-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 9px;
}

.library-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.library-count {
  color: #9aa4b2;
  font-weight: 600;
}

.library-sort {
  padding: 8px 16px;
  border-radius: 999px;
  background: #1c1c1c;
  color: #e5e8ec;
  font-size: 13px;
  font-weight: 600;
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
}

.library-row {
  display: grid;
  grid-template-columns: 80px 1fr 23px;
  align-items: center;
  gap: 18px;
  height: 130px;
}

.library-row-poster-link {
  display: block;
}

.library-row-poster {
  width: 80px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #1c1c1c;
  display: block;
}

.library-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.library-row-info {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.library-row-info strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-row-meta {
  color: #54585e;
  font-size: 15px;
}

.library-row-remove-form {
  flex-shrink: 0;
}

.library-row-remove {
  width: 23px;
  height: 23px;
  border-radius: 999px;
  border: none;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.library-row-remove:hover {
  background: #3a3a3a;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  max-width: 480px;
}

.rating-radio {
  display: inline-flex;
}

.rating-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-radio span {
  padding: 10px 18px;
  border: 1px solid #333333;
  border-radius: 999px;
  background: #1c1c1c;
  color: #e5e8ec;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.rating-radio input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.review-textarea {
  padding: 12px 14px;
  border: 1px solid #333333;
  border-radius: 12px;
  background: #1c1c1c;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.spoiler-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9aa4b2;
  cursor: pointer;
}

.review-submit {
  align-self: flex-start;
  margin-top: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.review-submit:hover {
  background: var(--accent-hover);
}

.review-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-item {
  padding: 16px 18px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #101010;
}

.review-item-mine {
  border-color: var(--accent);
  background: rgb(0 230 118 / 8%);
}

.review-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-item-header strong {
  color: #ffffff;
}

.review-item-rating {
  color: #ffc233;
  font-weight: 700;
  font-size: 14px;
}

.review-item p {
  margin: 0;
  color: #c3c9d1;
  line-height: 1.6;
}

.review-spoiler summary {
  cursor: pointer;
  color: #ff8a8a;
  font-weight: 600;
  font-size: 14px;
}

.review-spoiler p {
  margin-top: 8px;
}

.search-hero {
  width: min(720px, 92vw);
  background: #101010;
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: #ffffff;
}

.search-hero h1 {
  margin: 0 0 28px;
  font-size: clamp(24px, 4vw, 32px);
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #333333;
  border-radius: 999px;
  background: #1c1c1c;
}

.search-input-wrap svg {
  color: #9aa4b2;
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  padding: 14px 0;
  color: #ffffff;
  font-size: 15px;
}

.search-input-wrap input::placeholder {
  color: #6b7280;
}

.search-submit {
  margin-top: 0;
  padding: 0 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 800;
}

.search-submit:hover {
  background: var(--accent-hover);
}

.search-results {
  width: min(1080px, 94vw);
  margin-top: 32px;
}

.search-status {
  grid-column: 1 / -1;
  text-align: center;
  color: #5d6b7b;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.movie-card {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgb(30 55 80 / 6%);
}

.movie-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.movie-card-title {
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 520px) {
  .card {
    padding: 32px 24px;
  }

  .site-header {
    padding: 16px;
  }

  .container.catalog-container {
    padding: 24px 16px 48px;
  }

  .recommendation-section {
    padding: 22px 16px;
  }

  .recommendation-heading,
  .content-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation-refresh,
  .search-form {
    width: 100%;
  }

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

/* Ranking home */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.home-ranking-page {
  color: #f7f7f8;
  background:
    radial-gradient(circle at 15% -10%, rgb(66 78 118 / 22%), transparent 32rem),
    #070708;
}

body.home-ranking-page .site-header {
  background: rgb(7 7 8 / 88%);
  border-bottom-color: #1d1d20;
  backdrop-filter: blur(18px);
}

body.home-ranking-page .container.home-ranking-container {
  display: block;
  place-items: initial;
  width: min(100%, 1560px);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 18px 128px 80px;
}

.container.home-ranking-container > * {
  width: 100%;
}

.ranking-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 4px 54px;
}

.ranking-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.ranking-hero > div > p:last-child {
  margin: 20px 0 0;
  color: #92929b;
  font-size: 17px;
}

.ranking-kicker,
.ranking-section-eyebrow {
  margin: 0 0 12px;
  color: #00c853;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.ranking-search {
  display: flex;
  align-items: center;
  width: min(100%, 480px);
  padding: 7px 8px 7px 18px;
  border: 1px solid #303036;
  border-radius: 999px;
  background: #141416;
  box-shadow: 0 18px 40px rgb(0 0 0 / 24%);
}

.ranking-search svg {
  flex: 0 0 auto;
  color: #73737d;
}

.ranking-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
}

.ranking-search input::placeholder {
  color: #6e6e77;
}

.ranking-search button,
.ranking-header-button {
  flex: 0 0 auto;
  padding: 11px 19px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #00e676;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ranking-search button:hover,
.ranking-header-button:hover {
  background: #00e676;
}

.ranking-section {
  margin-bottom: 72px;
}

.ranking-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.ranking-section-header h2,
.ott-ranking-intro h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.ranking-section-header > div > p:last-child,
.ott-ranking-intro > p:last-child {
  margin: 9px 0 0;
  color: #85858f;
  font-size: 14px;
}

.ranking-section-eyebrow-purple {
  color: #fafa89;
}

.ranking-header-button {
  border: 1px solid #37373d;
  color: #dddddf;
  background: #171719;
}

.ranking-header-button:hover {
  background: #242428;
}

.ranking-tab-section {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ranking-tab-section .ranking-card-link {
  aspect-ratio: 16 / 11;
}

.home-search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 72px;
  padding: 20px 24px;
  border: 1px solid #252529;
  border-radius: 18px;
  background: #0f0f11;
}

.home-search-section .ranking-search {
  width: min(100%, 760px);
}

.ranking-tab-intro {
  margin-bottom: 20px;
}

/* Full OTT rankings page */
body.rankings-page {
  color: #ffffff;
  background:
    radial-gradient(circle at 72% -16%, rgb(65 105 225 / 13%), transparent 34rem),
    #0a0a0b;
}

body.rankings-page .site-header {
  background: rgb(10 10 11 / 90%);
  border-bottom-color: #242428;
  backdrop-filter: blur(18px);
}

body.rankings-page .container.rankings-container {
  display: block;
  place-items: initial;
  width: min(100%, 1680px);
  min-height: calc(100vh - 65px);
  margin: 0 auto;
  padding: 34px 128px 80px;
}

.rankings-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(218px, 250px) minmax(0, 1fr);
  gap: clamp(26px, 2.5vw, 40px);
  align-items: start;
}

.rankings-sidebar {
  position: sticky;
  top: 96px;
}

.rankings-back-link {
  display: inline-block;
  margin: 0 0 28px;
  color: #74747d;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.rankings-back-link:hover {
  color: #ffffff;
}

.rankings-sidebar-heading {
  padding: 0 12px 24px;
}

.rankings-sidebar-heading p {
  margin: 0 0 8px;
  color: #6f8dff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.rankings-sidebar-heading strong {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.rankings-category-nav {
  display: grid;
  gap: 7px;
}

.rankings-category-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d5d5da;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rankings-category-link:hover {
  color: #ffffff;
  background: #171719;
  transform: translateX(3px);
}

.rankings-category-link.active {
  border-color: #5574ea;
  color: #ffffff;
  background: linear-gradient(135deg, #4169e1, #4c62dc);
  box-shadow: 0 14px 30px rgb(65 105 225 / 18%);
}

.rankings-category-link:focus-visible {
  outline: 3px solid rgb(108 139 234 / 48%);
  outline-offset: 2px;
}

.rankings-category-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 2px solid rgb(255 255 255 / 13%);
  border-radius: 999px;
  color: #ffffff;
  background: var(--provider-color, #404047);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgb(0 0 0 / 26%);
}

.rankings-category-all {
  color: #0e0e10;
  background: #ffffff;
  font-size: 7px;
}

.rankings-category-my {
  background: #7657d8;
  font-size: 8px;
}

.rankings-content {
  min-width: 0;
}

.rankings-content-header {
  margin-bottom: 22px;
}

.rankings-content-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
}

.rankings-content-header p {
  margin: 8px 0 0;
  color: #a8a8b3;
  line-height: 1.6;
}

.rankings-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(330px, 30vw, 440px);
  gap: 14px;
}

@media (min-width: 1101px) and (max-width: 1200px) {
  body.rankings-page .container.rankings-container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .rankings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }

  .rankings-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(340px, 32vw, 410px);
  }
}

.rankings-movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #29292e;
  border-radius: 13px;
  background: #161618;
  box-shadow: 0 18px 44px rgb(0 0 0 / 28%);
}

.rankings-movie-featured {
  grid-column: span 2;
}

.rankings-movie-card > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.rankings-movie-card img,
.rankings-movie-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rankings-movie-card img {
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2, .75, .2, 1), filter 250ms ease;
}

.rankings-movie-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.07);
}

.rankings-movie-placeholder {
  display: grid;
  place-items: center;
  color: #555560;
  background: linear-gradient(145deg, #232329, #111114);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.rankings-movie-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 32%) 0%, transparent 25%),
    linear-gradient(0deg, rgb(5 5 7 / 97%) 0%, rgb(5 5 7 / 55%) 18%, transparent 48%);
}

.rankings-movie-number {
  position: absolute;
  top: 7px;
  left: 12px;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(42px, 4.5vw, 69px);
  font-style: italic;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 6px 18px rgb(0 0 0 / 46%);
}

.rankings-movie-providers {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
}

.rankings-movie-providers > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -7px;
  border: 2px solid #101012;
  border-radius: 999px;
  color: #ffffff;
  background: var(--provider-color, #494950);
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 7px 20px rgb(0 0 0 / 40%);
}

.rankings-movie-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  padding: 42px 18px 17px;
}

.rankings-movie-card-with-bookmark .rankings-movie-copy {
  padding-right: 72px;
}

.rankings-movie-copy strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-movie-copy span {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: #a9a9b1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-movie-card > a:focus-visible {
  outline: 3px solid #6f8dff;
  outline-offset: -4px;
}

.rankings-page-state {
  display: flex;
  min-height: 430px;
  padding: 70px 28px;
  border: 1px dashed #34343b;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #111113;
}

.rankings-page-state > span {
  color: #6f8dff;
  font-size: 42px;
}

.rankings-page-state h2 {
  margin: 17px 0 0;
  font-size: 24px;
}

.rankings-page-state p {
  margin: 10px 0 0;
  color: #85858f;
}

.rankings-page-state a,
.rankings-page-state button {
  margin-top: 26px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #4169e1;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1100px) {
  body.home-ranking-page .container.home-ranking-container {
    padding-right: 32px;
    padding-left: 32px;
  }

  body.rankings-page .container.rankings-container {
    padding: 28px 22px 64px;
  }

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

  .rankings-sidebar {
    position: sticky;
    top: 77px;
    z-index: 40;
    margin: -8px -22px 0;
    padding: 10px 22px 2px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    background: rgb(10 10 11 / 91%);
    box-shadow: 0 12px 24px rgb(0 0 0 / 20%);
    backdrop-filter: blur(16px);
  }

  .rankings-back-link,
  .rankings-sidebar-heading {
    display: none;
  }

  .rankings-category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 0 8px;
    scrollbar-width: none;
  }

  .rankings-category-nav::-webkit-scrollbar {
    display: none;
  }

  .rankings-category-link {
    min-height: 48px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border-color: #2b2b30;
    border-radius: 999px;
  }

  .rankings-category-link:hover {
    transform: none;
  }

  .rankings-category-symbol {
    width: 25px;
    height: 25px;
  }

  .rankings-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(330px, 43vw, 430px);
  }
}

@media (max-width: 700px) {
  body.rankings-page .container.rankings-container {
    padding: 20px 14px 48px;
  }

  .rankings-layout {
    gap: 24px;
  }

  .rankings-sidebar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .rankings-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min(70vw, 360px);
    gap: 10px;
  }

  .rankings-movie-featured {
    grid-column: span 2;
  }

  .rankings-movie-number {
    font-size: 48px;
  }

  .rankings-movie-copy {
    padding: 36px 12px 13px;
  }

  .rankings-movie-copy strong {
    font-size: 19px;
  }

  .rankings-movie-providers > span {
    width: 28px;
    height: 28px;
  }

  .rankings-page-state {
    min-height: 340px;
  }
}

.ranking-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 10px 4px 10px 14px;
  color: #a7a7b0;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease;
}

.ranking-more-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.ranking-more-link:hover,
.ranking-more-link:focus-visible {
  color: #ffffff;
}

.ranking-more-link:hover svg {
  transform: translateX(3px);
}

.ranking-more-link:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(108 139 234 / 45%);
  outline-offset: 2px;
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.ranking-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid #323238;
  border-radius: 999px;
  color: #c9c9cf;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.ranking-tab:hover {
  border-color: #565660;
  color: #ffffff;
}

.ranking-tab.active,
.ranking-tab[aria-selected="true"] {
  border-color: #00c853;
  color: #ffffff;
  background: #00c853;
}

.ranking-tab:focus-visible {
  outline: 3px solid rgb(108 139 234 / 45%);
  outline-offset: 2px;
}

.ranking-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  color: #ffffff;
  background: var(--provider-color, #48484f);
  font-size: 8px;
  font-weight: 900;
}

.ranking-tab-panel[hidden] {
  display: none;
}

.ranking-tab-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 170px;
  padding: 28px;
  border: 1px dashed #33333a;
  border-radius: 17px;
  background: #141416;
}

.ranking-tab-state strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.ranking-tab-state p {
  margin: 8px 0 0;
  color: #85858f;
  line-height: 1.55;
}

.ranking-tab-state a,
.ranking-tab-state button {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #00c853;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ranking-tab-state a:hover,
.ranking-tab-state button:hover {
  background: #5579e7;
}

.ranking-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.ranking-carousel {
  position: relative;
}

.ranking-carousel-controls button {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  color: #ffffff;
  background: rgb(10 10 12 / 82%);
  box-shadow: 0 10px 26px rgb(0 0 0 / 48%);
  backdrop-filter: blur(9px);
  font: inherit;
  font-size: 31px;
  line-height: 1;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.9);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 180ms ease, transform 180ms ease;
}

.ranking-carousel-arrow {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-carousel-controls [data-ranking-carousel-prev] {
  left: -24px;
}

.ranking-carousel-controls [data-ranking-carousel-next] {
  right: -24px;
}

.ranking-carousel:hover .ranking-carousel-controls button,
.ranking-carousel:focus-within .ranking-carousel-controls button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.ranking-carousel-controls button:hover {
  border-color: #5f7ee8;
  background: #4169e1;
}

.ranking-carousel-controls button:focus-visible {
  outline: 3px solid rgb(108 139 234 / 45%);
  outline-offset: 2px;
}

.ranking-carousel-controls > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: none) {
  .ranking-carousel .ranking-carousel-controls button {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

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

.ranking-card[hidden] {
  display: none;
}

.ranking-carousel [data-ranking-carousel-item]:not([hidden]) {
  animation: ranking-card-enter 220ms ease both;
}

@keyframes ranking-card-enter {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ranking-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #29292d;
  border-radius: 17px;
  background: #151517;
  box-shadow: 0 22px 44px rgb(0 0 0 / 26%);
}

.ranking-card-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
}

.ranking-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.01);
  transition: transform 450ms ease, filter 450ms ease;
}

.ranking-card-placeholder {
  display: grid;
  place-items: center;
  color: #4a4a52;
  background:
    radial-gradient(circle at 70% 20%, #2a3044, transparent 38%),
    linear-gradient(135deg, #16171b, #0d0d0f);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.ranking-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 48%), transparent 42%),
    linear-gradient(0deg, rgb(4 4 5 / 98%) 0%, rgb(4 4 5 / 64%) 30%, transparent 68%);
  transition: background 300ms ease;
}

.ranking-card:hover .ranking-card-image {
  transform: scale(1.055);
  filter: brightness(1.05);
}

.ranking-card:hover .ranking-card-shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / 38%), transparent 42%),
    linear-gradient(0deg, rgb(4 4 5 / 98%) 0%, rgb(4 4 5 / 54%) 32%, transparent 72%);
}

.ranking-number {
  position: absolute;
  top: 13px;
  left: 19px;
  color: #ffffff;
  font-size: clamp(52px, 6vw, 88px);
  font-style: italic;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.09em;
  text-shadow: 0 5px 18px rgb(0 0 0 / 50%);
}

.ranking-provider-stack {
  position: absolute;
  top: 17px;
  right: 17px;
  display: flex;
  flex-direction: row-reverse;
}

.ranking-provider-icon,
.provider-ranking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 3px solid #0b0b0c;
  border-radius: 999px;
  color: #ffffff;
  background: var(--provider-color, #34343a);
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgb(0 0 0 / 38%);
}

.ranking-card-copy {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ranking-card-with-bookmark .ranking-card-copy {
  padding-right: 58px;
}

.ranking-bookmark-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  color: #ffffff;
  background: rgb(18 18 21 / 82%);
  box-shadow: 0 9px 24px rgb(0 0 0 / 38%);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ranking-bookmark-button svg {
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 160ms ease, transform 160ms ease;
}

.ranking-bookmark-button:hover {
  border-color: #6f8dff;
  background: #4169e1;
  transform: translateY(-2px);
}

.ranking-bookmark-button.active {
  border-color: #6f8dff;
  color: #ffffff;
  background: #4169e1;
}

.ranking-bookmark-button.active svg {
  fill: currentColor;
  transform: scale(1.04);
}

.ranking-bookmark-button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.ranking-bookmark-button:focus-visible {
  outline: 3px solid rgb(111 141 255 / 52%);
  outline-offset: 3px;
}

.ranking-card-meta {
  overflow: hidden;
  width: 100%;
  color: #a9a9b0;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card-title {
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 13px;
  border-radius: 9px;
  color: #f1f1f2;
  background: rgb(50 50 54 / 86%);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.ranking-card:hover .ranking-card-action {
  background: #00c853;
}

.ranking-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 180px;
  padding: 30px;
  border: 1px dashed #303036;
  border-radius: 17px;
  color: #85858f;
  background: #101012;
  text-align: center;
}

.ranking-empty > span {
  font-size: 25px;
}

.ranking-empty p {
  margin: 0;
}

.ranking-section-personal {
  padding: 30px;
  border: 1px solid #292235;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgb(121 63 190 / 24%), transparent 34%),
    linear-gradient(145deg, #151218, #0f0f12);
}

.ranking-section-wishlist {
  padding-top: 32px;
  border-top: 1px solid #252529;
}

.ranking-section-random {
  padding-top: 32px;
  border-top: 1px solid #252529;
}

.ranking-section-eyebrow-wishlist {
  color: #ff6f9e;
}

.ranking-section-eyebrow-random {
  color: #69d7ff;
}

.ranking-card-unranked .ranking-card-copy {
  padding-top: 72px;
}

.wishlist-login-card {
  border-color: rgb(255 111 158 / 20%);
  background:
    radial-gradient(circle at 92% 0%, rgb(255 75 135 / 14%), transparent 34%),
    rgb(255 255 255 / 3%);
}

.wishlist-login-icon {
  color: #ffe7ef;
  background: #a92f5c;
}

.wishlist-login-card > a {
  background: #bb3768;
}

.wishlist-login-card > a:hover {
  background: #ce4678;
}

.personal-login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 170px;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: rgb(255 255 255 / 4%);
}

.personal-login-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}

.personal-login-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #f2ddff;
  background: #6f35a5;
  font-size: 24px;
}

.personal-login-card h3 {
  margin: 2px 0 8px;
  font-size: 21px;
}

.personal-login-card p {
  margin: 0;
  color: #96919b;
  line-height: 1.55;
}

.personal-login-card > a {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 10px;
  color: #ffffff;
  background: #7c43b5;
  font-weight: 800;
  text-decoration: none;
}

.ott-ranking-collection {
  margin-top: 90px;
}

.ott-ranking-intro {
  margin-bottom: 42px;
}

.ott-ranking-section {
  padding-top: 28px;
  border-top: 1px solid #242428;
}

.provider-ranking-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.provider-ranking-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-width: 0;
  font-size: 12px;
}

.provider-ranking-title h3 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
}

.provider-ranking-title p {
  margin: 5px 0 0;
  color: #777780;
  font-size: 13px;
}

.ranking-source {
  margin: 10px 0 0;
  color: #56565e;
  font-size: 12px;
  text-align: right;
}

.catalog-search-page {
  min-height: 70vh;
}

.catalog-back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: #9898a1;
  font-weight: 700;
  text-decoration: none;
}

.catalog-back-link:hover {
  color: #ffffff;
}

.catalog-search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.catalog-search-heading h1 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 52px);
}

.catalog-search-heading > div > p:last-child {
  margin: 12px 0 0;
  color: #85858f;
}

.catalog-result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.catalog-result-card-shell {
  min-width: 0;
}

.catalog-result-visual {
  position: relative;
}

.catalog-result-poster-link,
.catalog-result-card-copy {
  display: flex;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.catalog-result-poster-link {
  width: 100%;
}

.catalog-result-poster-link img,
.catalog-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  object-fit: cover;
  color: #777780;
  background: #171719;
}

.catalog-result-card-copy {
  flex-direction: column;
}

.catalog-result-card-copy strong {
  overflow: hidden;
  margin-top: 12px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-result-card-copy > span:last-child {
  margin-top: 5px;
  color: #777780;
  font-size: 12px;
}

.search-bookmark-button {
  right: 12px;
  bottom: 12px;
}

.dark-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}

.dark-pagination a,
.dark-pagination span {
  padding: 9px 14px;
  border-radius: 9px;
  color: #a5a5ad;
  background: #18181b;
  text-decoration: none;
}

.dark-pagination span {
  opacity: 0.45;
}

.search-empty {
  min-height: 300px;
}

@media (max-width: 1080px) {
  .ranking-hero,
  .catalog-search-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-search {
    width: 100%;
  }

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

  .ranking-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .catalog-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 34px 20px 28px;
  }

  .site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .site-footer-links {
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 0;
  }

  .site-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 22px;
  }

  body.home-ranking-page .site-header {
    padding: 12px 14px;
  }

  body.home-ranking-page .site-header-left,
  body.home-ranking-page .site-header-right {
    gap: 9px;
  }

  body.home-ranking-page .logo-img {
    height: 32px;
  }

  body.home-ranking-page .nav-links {
    display: none;
  }

  body.home-ranking-page .container.home-ranking-container {
    padding: 24px 16px 56px;
  }

  .ranking-hero {
    padding: 12px 0 42px;
  }

  .ranking-hero h1 {
    font-size: 48px;
  }

  .ranking-section {
    margin-bottom: 54px;
  }

  .ranking-tab-section {
    margin-bottom: 18px;
  }

  .home-search-section {
    margin-right: -4px;
    margin-bottom: 54px;
    margin-left: -4px;
    padding: 14px;
    border-radius: 16px;
  }

  .ranking-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-tab-section {
    margin-right: -4px;
    margin-left: -4px;
    padding: 22px 16px;
  }

  .ranking-tabs {
    gap: 8px;
  }

  .ranking-tab {
    padding: 8px 12px;
  }

  .ranking-tab-state {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-tab-state a,
  .ranking-tab-state button {
    width: 100%;
    text-align: center;
  }

  .ranking-header-button {
    align-self: flex-start;
  }

  .ranking-grid {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ranking-grid::-webkit-scrollbar {
    display: none;
  }

  .ranking-carousel-controls button {
    width: 44px;
    height: 44px;
  }

  .ranking-carousel-controls [data-ranking-carousel-prev] {
    left: 7px;
  }

  .ranking-carousel-controls [data-ranking-carousel-next] {
    right: 7px;
  }

  .ranking-card,
  .ranking-card:last-child:nth-child(odd) {
    min-width: min(86vw, 440px);
    grid-column: auto;
    scroll-snap-align: start;
  }

  .ranking-card-title {
    font-size: 25px;
  }

  .ranking-bookmark-button {
    right: 13px;
    bottom: 13px;
    width: 42px;
    height: 42px;
  }

  .ranking-section-personal {
    margin-right: -4px;
    margin-left: -4px;
    padding: 22px 16px;
  }

  .ranking-section-wishlist,
  .ranking-section-random {
    padding-top: 24px;
  }

  .personal-login-card {
    align-items: stretch;
    flex-direction: column;
  }

  .personal-login-card > a {
    text-align: center;
  }

  .ott-ranking-collection {
    margin-top: 68px;
  }

  .catalog-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}
