/* ===========================
   NAVRAS — Lists Page CSS
   =========================== */

/* Hero */
.lists-hero {
  padding: 52px 32px 36px;
  border-bottom: 0.5px solid var(--ink3);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.lists-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lists-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 14px;
  text-align: center;
}

.lists-hero-headline em { font-style: italic; color: var(--gold); }

.lists-hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
  text-align: center;
}

.lists-filter-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.lf-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  border: 0.5px solid var(--ink3);
  color: var(--text-muted);
  background: var(--ink2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.lf-btn:hover { color: var(--text); border-color: var(--gold-dim); }
.lf-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.06); }

/* Featured banner */
.featured-list-banner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  background: var(--ink2);
  border-bottom: 0.5px solid var(--gold);
  padding: 32px;
  gap: 32px;
  align-items: center;
}

.flb-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.flb-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.flb-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 480px;
}

.flb-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.flb-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s;
  text-decoration: none;
}

.flb-btn:hover { opacity: 0.85; }

/* Preview ranks */
.flb-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flb-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--ink);
  border-radius: 8px;
  border: 0.5px solid var(--ink3);
}

.flb-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  min-width: 16px;
  font-family: var(--font-display);
}

.flb-mini-poster {
  width: 28px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
}

.flb-film-name {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.flb-film-score {
  font-size: 13px;
  font-weight: 600;
}

.flb-film-score.gold { color: var(--gold); }

/* Lists body */
.lists-body { padding: 0; }

.trending-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: rgba(201,168,76,0.04);
  border-bottom: 0.5px solid var(--ink3);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.tb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tb-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(201,168,76,0.08);
  border: 0.5px solid rgba(201,168,76,0.2);
  transition: background 0.15s;
}

.tb-link:hover { background: rgba(201,168,76,0.15); }

/* Section */
.lists-section {
  padding: 32px;
  border-bottom: 0.5px solid var(--ink3);
}

.ls-head { margin-bottom: 20px; }

.ls-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ls-sub { font-size: 12px; color: var(--text-muted); }

/* List cards grid */
.lists-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.list-card {
  background: var(--ink2);
  border: 0.5px solid var(--ink3);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
  text-decoration: none;
}

.list-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-1px);
}

.list-card.hot { border-color: rgba(201,168,76,0.3); }

.lc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.lc-count {
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
}

.lc-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.lc-badge.new { background: rgba(46,204,113,0.15); color: #2ECC71; border: 0.5px solid rgba(46,204,113,0.3); }
.lc-badge.hot { background: rgba(201,168,76,0.15); color: var(--gold); border: 0.5px solid rgba(201,168,76,0.3); }
.lc-badge.updated { background: rgba(91,155,213,0.15); color: #5B9BD5; border: 0.5px solid rgba(91,155,213,0.3); }
.lc-badge.weekly { background: rgba(155,89,182,0.15); color: #9B59B6; border: 0.5px solid rgba(155,89,182,0.3); }

.lc-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.lc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.lc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-meta { font-size: 10px; color: var(--text-dim); }

.lc-arrow {
  font-size: 14px;
  color: var(--gold-dim);
  transition: color 0.15s;
}

.list-card:hover .lc-arrow { color: var(--gold); }

/* Top films preview inside card */
.lc-films-preview {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.lc-film-chip {
  font-size: 10px;
  color: var(--text-dim);
  background: var(--ink3);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

/* Full list modal */
.list-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,16,14,0.95);
  z-index: 200;
  overflow-y: auto;
}

.list-modal {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.lm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.lm-tag {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 500;
}

.lm-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

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

.lm-close {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 7px;
  border: 0.5px solid var(--ink3);
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-top: 4px;
}

.lm-close:hover { border-color: var(--gold-dim); color: var(--text); }

.lm-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--ink2);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

/* Film rows in list */
.lm-films { display: flex; flex-direction: column; }

.lm-film-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--ink3);
  transition: background 0.15s;
}

.lm-film-row:last-child { border-bottom: none; }
.lm-film-row:hover { background: rgba(201,168,76,0.02); }

.lm-rank {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink3);
  min-width: 36px;
  font-family: var(--font-display);
  text-align: center;
}

.lm-rank.gold { color: var(--gold); }
.lm-rank.silver { color: #A8A8A8; }
.lm-rank.bronze { color: #CD7F32; }

.lm-poster {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  flex-shrink: 0;
}

.lm-info { flex: 1; }

.lm-film-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.lm-film-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.lm-film-verdict {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
}

.lm-rasas { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }

.lm-score {
  text-align: right;
  flex-shrink: 0;
}

.lm-score-num {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
  line-height: 1;
}

.lm-score-label {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .featured-list-banner { grid-template-columns: 1fr; }
  .flb-preview { display: none; }
}

@media (max-width: 600px) {
  .lists-hero { padding: 36px 20px 28px; }
  .featured-list-banner { padding: 20px; }
  .lists-section { padding: 20px; }
  .lists-cards-grid { grid-template-columns: 1fr; }
  .trending-banner { padding: 10px 20px; }
  .list-modal { padding: 20px 16px 48px; }
  .lm-film-row { gap: 10px; }
}

/* Light mode overrides — lists page */
.featured-list-banner { background: var(--ink2); border-bottom-color: var(--gold); box-shadow: var(--shadow); }
.flb-rank-item { background: var(--ink); border-color: var(--ink3); }
.list-card { background: var(--ink2); box-shadow: var(--shadow); }
.list-overlay { background: rgba(250,247,242,0.97); }
body.dark-mode .list-overlay { background: rgba(18,16,14,0.97); }
.list-modal { background: transparent; }
.lm-film-row:hover { background: var(--gold-bg); }
.lm-intro { background: var(--ink2); }

/* ===========================
   LIST CARD COLLAGE — visual
   =========================== */
.list-card {
  background: var(--ink2);
  border: 0.5px solid var(--ink3);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}

.list-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Collage top */
.lc-collage {
  width: 100%; aspect-ratio: 16/9;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px; position: relative; overflow: hidden;
  background: var(--ink3);
}

.lc-collage-cell {
  background-size: cover; background-position: center;
  transition: transform 0.3s;
}

.list-card:hover .lc-collage-cell { transform: scale(1.04); }

.lc-collage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 10px;
}

.lc-count-badge {
  font-size: 12px; font-weight: 700;
  color: #fff; background: var(--gold);
  padding: 3px 10px; border-radius: 4px;
}

.lc-badge-wrap {
  position: absolute; top: 8px; right: 8px;
}

.lc-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  display: inline-block;
}

.lc-badge.hot { background: rgba(231,76,60,0.9); color: #fff; }
.lc-badge.weekly { background: rgba(46,204,113,0.9); color: #fff; }
.lc-badge.language { background: rgba(52,152,219,0.9); color: #fff; }
.lc-badge.awards { background: rgba(201,168,76,0.9); color: #12100E; }

/* Card body */
.lc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }

.lc-tag {
  font-size: 10px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px;
}

.lc-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 6px;
}

.lc-desc {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.lc-films-preview {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px;
}

.lc-film-chip {
  font-size: 10px; color: var(--text-muted);
  background: var(--ink); padding: 2px 8px;
  border-radius: 4px; border: 0.5px solid var(--ink3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100px;
}

.lc-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 10px; border-top: 0.5px solid var(--ink3);
}

.lc-meta { font-size: 10px; color: var(--text-dim); }
.lc-arrow { font-size: 14px; color: var(--gold-dim); }

/* ===========================
   MODAL POSTER FIX
   =========================== */
.lm-poster {
  width: 60px; height: 85px;
  border-radius: 6px; flex-shrink: 0;
  position: relative; overflow: hidden;
}

.lm-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.lm-poster-score {
  position: absolute; bottom: 3px; right: 3px;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 2px 5px; border-radius: 3px;
  z-index: 1;
}

.lm-film-verdict {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; line-height: 1.4;
  margin-bottom: 6px;
}

/* ===========================
   FEATURED LIST BANNER — VISUAL
   Poster collage background
   =========================== */
.featured-list-banner {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center;
  border-bottom: 0.5px solid var(--ink3);
}

.flb-bg-collage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px; opacity: 0.35;
  filter: blur(1px);
}

.flb-bg-poster {
  height: 100%;
  background-size: cover; background-position: center;
  background-color: var(--ink3);
}

.flb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,10,8,0.97) 0%,
    rgba(12,10,8,0.90) 40%,
    rgba(12,10,8,0.75) 70%,
    rgba(12,10,8,0.85) 100%
  );
}

.flb-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 36px 32px;
  align-items: center; width: 100%;
  max-width: 1200px; margin: 0 auto;
}

.flb-tag {
  font-size: 11px; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px;
}

.flb-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600; color: var(--text);
  line-height: 1.2; margin-bottom: 10px;
}

.flb-sub {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 8px;
}

.flb-meta {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 18px;
}

.flb-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--gold); color: var(--ink2);
  border-radius: 8px; font-size: 13px;
  font-weight: 600; text-decoration: none;
  transition: opacity 0.15s;
}

.flb-btn:hover { opacity: 0.85; }

/* Preview list right side */
.flb-preview {
  display: flex; flex-direction: column; gap: 8px;
}

.flb-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}

.flb-rank-item:hover { background: rgba(201,168,76,0.1); }

.flb-num {
  font-size: 18px; font-weight: 700;
  color: var(--text-dim); min-width: 24px;
  font-family: var(--font-display);
}

.flb-num.gold { color: var(--gold); }

.flb-mini-poster {
  width: 34px; height: 48px;
  border-radius: 5px; flex-shrink: 0;
  background-size: cover; background-position: center;
  overflow: hidden; position: relative;
}

.flb-mini-poster img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 5px;
}

.flb-film-info { flex: 1; min-width: 0; }

.flb-film-name {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.flb-film-year {
  font-size: 10px; color: var(--text-muted);
}

.flb-film-score {
  font-size: 16px; font-weight: 700;
  color: #2ECC71; flex-shrink: 0;
  min-width: 28px; text-align: right;
}

@media (max-width: 700px) {
  .flb-inner { grid-template-columns: 1fr; gap: 24px; }
  .flb-preview { display: none; }
  .featured-list-banner { min-height: 240px; }
}
