/* --- Variables --- */
:root {
  --accent: #ff3b3b;
  --accent-dark: #c0392b;
  --bg: #0e0e0e;
  --bg2: #181818;
  --bg3: #242424;
  --text: #e5e5e5;
  --muted: #888;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

/* --- Navbar --- */
.navbar {
  background: #111 !important;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.6rem 0;
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: -1px;
}
.nav-link {
  color: #ccc !important;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

/* --- Search --- */
.search-wrap {
  position: relative;
}
.search-wrap input {
  background: #2a2a2a;
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 0.4rem 2.4rem 0.4rem 1rem;
  width: 220px;
  font-size: 0.85rem;
}
.search-wrap input::placeholder {
  color: #777;
}
.search-wrap input:focus {
  outline: none;
  background: #333;
  box-shadow: 0 0 0 2px var(--accent);
}
.search-wrap .bi-search {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 0.85rem;
}

/* --- Page Header (category, watchlist, contact) --- */
.page-header {
  background: linear-gradient(to right, #1a0000, #0e0e0e);
  border-bottom: 1px solid #2a2a2a;
  padding: 1.5rem 0;
}
.breadcrumb-item,
.breadcrumb-item a {
  color: #888;
  font-size: 0.82rem;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: #ccc;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #555;
}

/* --- Buttons --- */
.btn-play {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-play:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn-bookmark {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.btn-bookmark:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-outline-light2 {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline-light2:hover {
  background: #333;
  color: #fff;
  border-color: #777;
}
.btn-play-sm {
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}
.btn-play-sm:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn-remove {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}
.btn-remove:hover {
  background: #3a1212;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-submit {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.btn-submit:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* --- Hero (index.html) --- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0e0e0e 5%, transparent 60%);
}
.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 1rem;
}
.hero-meta span {
  margin-right: 0.8rem;
}
.hero-meta .imdb {
  background: #f5c518;
  color: #000;
  font-weight: 700;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
}

/* --- Hero Backdrop (movie-detail.html) --- */
.hero-backdrop {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.hero-backdrop > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}
.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0e0e0e 10%,
    rgba(14, 14, 14, 0.5) 60%,
    transparent
  );
}
.hero-backdrop .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem;
}

/* --- Topic Pills (index.html) --- */
.topic-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.topic-pill {
  background: var(--bg3);
  color: #ccc;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.topic-pill:hover,
.topic-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Section Header --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.7rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.section-more {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.section-more:hover {
  color: var(--accent);
}

/* --- Horizontal Movie Scroll --- */
.movies-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.movies-scroll::-webkit-scrollbar {
  height: 4px;
}
.movies-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

/* --- Movie Card --- */
.movie-card {
  flex: 0 0 140px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.movie-card:hover {
  transform: scale(1.06);
  z-index: 2;
}
.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 0.5rem 0.5rem 0.4rem;
}
.movie-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card-sub {
  font-size: 0.65rem;
  color: #aaa;
}

/* --- Badges --- */
.badge-ep {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.75);
  color: #f5c518;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.badge-new {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.badge-full {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: #27ae60;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.badge-soon {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: #2980b9;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* --- Sidebar (index.html) --- */
.sidebar-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 1rem;
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.trending-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.trending-item:hover .trending-name {
  color: var(--accent);
}
.trending-rank {
  font-size: 1.3rem;
  font-weight: 900;
  color: #444;
  min-width: 22px;
}
.trending-rank.top3 {
  color: var(--accent);
}
.trending-img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.trending-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}
.trending-meta {
  font-size: 0.7rem;
  color: var(--muted);
}
.social-icons a {
  color: #666;
  font-size: 1.15rem;
  margin-right: 0.7rem;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: var(--accent);
}

/* --- Movie Detail Page --- */
.detail-poster {
  width: 160px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}
.meta-tag {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid #333;
  color: #ccc;
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem;
}
.meta-tag.accent {
  background: rgba(255, 59, 59, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.rating-star {
  color: #f5c518;
}
.info-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 1.2rem;
}
.info-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.85rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  color: var(--muted);
  min-width: 120px;
}
.info-val {
  color: #ddd;
  flex: 1;
}
.nav-tabs-dark {
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 1.2rem;
}
.nav-tabs-dark .nav-link {
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.nav-tabs-dark .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-tabs-dark .nav-link:hover {
  color: #fff;
}
.cast-card {
  background: var(--bg2);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  display: block;
}
.cast-card:hover {
  transform: translateY(-4px);
  color: inherit;
}
.cast-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.review-item {
  background: var(--bg2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.review-author {
  font-weight: 700;
  font-size: 0.85rem;
}
.review-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.review-text {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 0.4rem;
}
.ep-btn {
  background: var(--bg3);
  border: 1px solid #333;
  color: #ccc;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  width: 50px;
  text-align: center;
}
.ep-btn:hover,
.ep-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Category Filter --- */
.filter-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 1.2rem;
}
.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.f-pill {
  background: var(--bg3);
  color: #ccc;
  border: 1px solid #333;
  border-radius: 15px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.f-pill:hover,
.f-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.sort-bar span {
  font-size: 0.85rem;
  color: #aaa;
}
.sort-select {
  background: var(--bg3);
  border: 1px solid #333;
  color: #ccc;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}
.pagination .page-link {
  background: var(--bg2);
  border-color: #333;
  color: #ccc;
  font-size: 0.85rem;
}
.pagination .page-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Watchlist --- */
.wl-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s;
}
.wl-card:hover {
  background: var(--bg3);
}
.wl-poster {
  width: 68px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.wl-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  text-decoration: none;
}
.wl-title:hover {
  color: var(--accent);
}
.wl-meta {
  font-size: 0.78rem;
  color: #aaa;
}
.wl-progress-wrap {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.4rem;
}
.wl-prog {
  background: #333;
  border-radius: 10px;
  height: 3px;
  margin-top: 0.3rem;
  overflow: hidden;
}
.wl-prog-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 10px;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

/* --- Contact --- */
.form-control-dark {
  background: var(--bg3);
  border: 1px solid #333;
  color: #e5e5e5;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}
.form-control-dark:focus {
  background: #2a2a2a;
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.25);
  color: #fff;
}
.form-control-dark::placeholder {
  color: #666;
}
.form-label-dark {
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.info-box {
  background: var(--bg2);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}
.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 59, 59, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.faq-btn {
  background: var(--bg2);
  border: none;
  color: #ccc;
  font-size: 0.9rem;
  text-align: left;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}
.faq-btn:hover,
.faq-btn:not(.collapsed) {
  background: var(--bg3);
  color: #fff;
}
.faq-body {
  background: var(--bg3);
  color: #bbb;
  font-size: 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: 0 0 8px 8px;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.social-big a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg2);
  border: 1px solid #2a2a2a;
  color: #ccc;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0.3rem;
  transition: all 0.2s;
}
.social-big a:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 59, 59, 0.08);
}

/* --- Footer --- */
footer {
  background: #111;
  border-top: 1px solid #222;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
footer .logo-footer {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
footer p {
  font-size: 0.82rem;
  color: #666;
}
footer .footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.82rem;
  margin-right: 1rem;
}
footer .footer-links a:hover {
  color: #fff;
}

/* =====================================================
   TOP PAGE (top.html)
   ===================================================== */

/* ---- Hero ---- */
.lb-hero {
  background: linear-gradient(135deg, #1a0000 0%, #0e0e0e 60%);
  padding: 2.2rem 0 1.8rem;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
  overflow: hidden;
}
.lb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(255, 59, 59, 0.1),
    transparent
  );
  pointer-events: none;
}
.lb-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.lb-stat {
  text-align: center;
}
.lb-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.lb-stat-lbl {
  font-size: 0.72rem;
  color: #666;
  margin-top: 0.2rem;
}

/* ---- Period / Category toggles ---- */
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg2);
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.lb-cats {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.lb-cat {
  background: var(--bg3);
  border: 1px solid #333;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-cat.active,
.lb-cat:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lb-periods {
  display: flex;
  gap: 0.3rem;
}
.lb-period {
  background: none;
  border: 1px solid #333;
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-period.active,
.lb-period:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Leaderboard table ---- */
.lb-table-wrap {
  background: var(--bg2);
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid #222;
}
/* Override Bootstrap's white table defaults */
.lb-table-wrap table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-border-color: #1e1e1e;
  background-color: transparent;
  color: var(--text);
  min-width: 600px;
}
.lb-thead tr {
  background: #161616 !important;
  border-bottom: 2px solid #2a2a2a;
}
.lb-thead th {
  background: #161616 !important;
  color: #666;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  border: none;
}
.lb-row {
  display: table-row;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.lb-row td {
  background: var(--bg2);
  padding: 0.7rem 1rem;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #1e1e1e;
  font-size: 0.85rem;
}
.lb-row:hover td {
  background: var(--bg3) !important;
}
.lb-row:last-child td {
  border-bottom: none;
}
.lb-row.top1 td {
  background: rgba(255, 59, 59, 0.06) !important;
}
.lb-row.top2 td {
  background: rgba(192, 192, 192, 0.05) !important;
}
.lb-row.top3 td {
  background: rgba(205, 127, 50, 0.05) !important;
}
.lb-row.top1:hover td {
  background: rgba(255, 59, 59, 0.12) !important;
}
.lb-row.top2:hover td {
  background: rgba(192, 192, 192, 0.09) !important;
}
.lb-row.top3:hover td {
  background: rgba(205, 127, 50, 0.09) !important;
}

/* rank number cell */
.td-rank {
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  width: 52px;
  color: #333;
}
.td-rank.r1 {
  color: #ff3b3b;
  text-shadow: 0 0 16px rgba(255, 59, 59, 0.5);
}
.td-rank.r2 {
  color: #c0c0c0;
  text-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
}
.td-rank.r3 {
  color: #cd7f32;
  text-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}

/* movie info cell */
.td-movie {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.lb-poster {
  width: 46px;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.lb-movie-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.lb-movie-sub {
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.15rem;
}

/* score cell */
.td-score {
  white-space: nowrap;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(245, 197, 24, 0.12);
  color: #f5c518;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

/* views cell */
.views-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 59, 59, 0.1);
  color: #ff7070;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

/* trend cell */
.trend-up {
  color: #2ecc71;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.trend-down {
  color: #e74c3c;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.trend-new {
  color: #3498db;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.trend-same {
  color: #555;
  font-size: 0.78rem;
}

/* action cell */
.td-actions {
  white-space: nowrap;
}

/* genre badge */
.genre-chip {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid #333;
  color: #bbb;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* country */
.country-chip {
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
}

/* ---- Sidebar ---- */
.lb-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e1e1e;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.lb-sidebar-item:last-child {
  border-bottom: none;
}
.lb-sidebar-item:hover .lbs-name {
  color: var(--accent);
}
.lbs-rank {
  font-size: 1.1rem;
  font-weight: 900;
  min-width: 24px;
  text-align: center;
  color: #333;
  flex-shrink: 0;
}
.lbs-rank.t1 {
  color: var(--accent);
}
.lbs-rank.t2 {
  color: #c0c0c0;
}
.lbs-rank.t3 {
  color: #cd7f32;
}
.lbs-img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.lbs-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ddd;
}
.lbs-sub {
  font-size: 0.67rem;
  color: #666;
  margin-top: 0.1rem;
}

/* ---- Podium summary strip ---- */
.podium-strip {
  display: flex;
  gap: 1px;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.podium-cell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg2);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.podium-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.podium-cell.p1::before {
  background: var(--accent);
}
.podium-cell.p2::before {
  background: #c0c0c0;
}
.podium-cell.p3::before {
  background: #cd7f32;
}
.podium-cell:hover {
  background: var(--bg3);
}
.podium-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.p1 .podium-num {
  color: var(--accent);
}
.p2 .podium-num {
  color: #c0c0c0;
}
.p3 .podium-num {
  color: #cd7f32;
}
.podium-poster {
  width: 40px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.podium-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.podium-meta {
  font-size: 0.7rem;
  color: #888;
  margin-top: 0.1rem;
}
