/* =============================================
   CHORKI CLONE – style.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --bg-card:  #161616;
  --bg-hover: #222222;
  --red:      #e5003c;
  --red-dark: #b0002e;
  --text:     #f0f0f0;
  --muted:    #888;
  --border:   #2a2a2a;
  --navbar-h: 68px;
  --font-main: 'Barlow', 'Noto Sans Bengali', sans-serif;
}

/* Prevent any child blowing out horizontal width */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: #0a0a0a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  padding: 6px 9px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}
.nav-search-btn {
  color: #ccc;
  font-size: 16px;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-search-btn:hover { color: #fff; }

/* Search box — full-width overlay on mobile */
.search-box {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  padding: 0 16px;
}
.search-box.open { display: flex; align-items: center; gap: 8px; }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 10px 4px;
  flex: 1;
  font-family: var(--font-main);
}
.search-box input::placeholder { color: #555; }
.search-close {
  color: #888;
  font-size: 16px;
  padding: 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-close:hover { color: #fff; }

.btn-signin {
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-signin:hover { background: var(--red-dark); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  z-index: 999;
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  max-height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  color: #ccc;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; background: rgba(255,255,255,0.06); }
.mobile-menu .mobile-signin {
  background: var(--red);
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 820px;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

/* Desktop: landscape image fills the frame */
.hero-slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-slide-color {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center top;
}

/* Desktop overlay: dark from left + dark from bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.05) 100%),
    linear-gradient(to top,    rgba(10,10,10,1)    0%, rgba(10,10,10,0)    55%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  bottom: 130px;
  left: 5%;
  z-index: 3;
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #aaa;
}
.hero-meta .rating {
  background: var(--red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-play:hover { background: #ddd; transform: scale(1.02); }
.btn-play i { font-size: 15px; }
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 4px;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.btn-more:hover { background: rgba(255,255,255,0.25); }

/* Hero prev/next/dots */
.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 5%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-prev, .hero-next {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.hero-prev:hover, .hero-next:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dot.active { background: var(--red); transform: scale(1.4); }

/* Side thumbnails (desktop only) */
.hero-thumbnails {
  position: absolute;
  right: 28px;
  bottom: 60px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-thumb {
  width: 90px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.55;
  flex-shrink: 0;
}
.hero-thumb:hover, .hero-thumb.active {
  border-color: var(--red);
  opacity: 1;
  transform: scale(1.04);
}
.hero-thumb div, .hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

/* =============================================
   CONTENT ROWS
   ============================================= */
.main-content { padding-bottom: 60px; }

.content-row { padding: 0 0 10px; }

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 14px;
}
.row-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}
.row-see-all {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}
.row-see-all:hover { color: var(--red); }

/* Swiper carousel wrapper — clipped so arrows don't bleed off screen */
.row-carousel-wrapper {
  position: relative;
  padding: 0 10px;
  /* hide Swiper overflow so it never bleeds past viewport */
  overflow: hidden;
}
/* Extra padding so first/last card isn't flush with edge on mobile */
.swiper-wrapper {
  padding: 4px 8px 8px;
}
.row-swiper { overflow: visible; }
.swiper-slide { height: auto; }

/* Content Cards */
.content-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 16/9;
}
.content-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  z-index: 10;
}
.content-card.portrait { aspect-ratio: 2/3; }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.content-card:hover .card-overlay { opacity: 1; }

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 10px 10px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.content-card:hover .card-info { opacity: 1; transform: translateY(0); }

.card-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 10px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-meta .tag {
  background: var(--red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}
.card-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.card-play-btn i { color: #000; font-size: 14px; margin-left: 2px; }
.content-card:hover .card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Swiper navigation arrows */
.swiper-button-next, .swiper-button-prev {
  color: #fff;
  background: rgba(0,0,0,0.75);
  width: 36px !important; height: 36px !important;
  border-radius: 50%;
  top: 50% !important;
  transition: background 0.2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--red); }
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 13px !important;
  font-weight: 900;
}
.swiper-button-disabled { opacity: 0.25 !important; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.footer-logo img { height: 36px; margin-bottom: 10px; }
.footer-logo p {
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #888;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--red); color: #fff; background: var(--red);
}
.footer-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #888; transition: color 0.2s;
}
.footer-phone:hover { color: var(--red); }
.footer-apps { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.app-badge { display: flex; align-items: center; }
.app-badge img { height: 38px; width: auto; border-radius: 6px; transition: opacity 0.2s; }
.app-badge img:hover { opacity: 0.8; }
.app-badge-fallback {
  align-items: center; gap: 8px;
  background: #1a1a1a; border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 7px 12px;
  color: #fff; transition: border-color 0.2s; width: 140px;
}
.app-badge-fallback:hover { border-color: #555; }
.app-badge-fallback i { font-size: 20px; }
.app-badge-fallback div span { font-size: 10px; color: #888; display: block; }
.app-badge-fallback div strong { font-size: 13px; display: block; }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 20px;
}
.footer-bottom p { font-size: 12px; color: #444; }

/* =============================================
   HERO MNEMONIC (logo/title image overlay)
   ============================================= */
.hero-mnemonic { margin-bottom: 14px; }
.hero-mnemonic img {
  max-height: 80px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7));
}

/* Hero meta items */
.hero-meta-item { color: #bbb; }
.hero-meta-sep  { color: #555; margin: 0 2px; }

/* =============================================
   CARD THUMBNAIL (real images + gradient fallback)
   ============================================= */
.card-thumb-wrap {
  width: 100%; height: 100%;
  position: relative; overflow: hidden; background: #111;
}
.card-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block; transition: transform 0.3s;
}
.content-card:hover .card-thumb-img { transform: scale(1.06); }
.card-thumb-grad {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; padding: 10px;
}
.thumb-label {
  font-size: 12px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8); line-height: 1.2;
}
.card-thumb-wrap.thumb-err .card-thumb-img { display: none; }
.card-thumb-wrap.thumb-err::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,#1a0a2e,#4a1942);
}

/* =============================================
   PAGE LOADER
   ============================================= */
#pageLoader {
  position: fixed; inset: 0;
  background: #0a0a0a; z-index: 9000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity 0.4s;
}
#pageLoader img { height: 40px; opacity: 0.9; }
.loader-spinner {
  width: 34px; height: 34px;
  border: 3px solid #222; border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   RESPONSIVE — tablet (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .hero-thumbnails { display: none; }
  .footer-top   { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav   { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — mobile (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Navbar */
  .btn-signin { display: none; }
  .nav-container { padding: 0 14px; }

  /* Hero: shorter, portrait image, bottom-focused overlay */
  .hero-section {
    height: 88vw;         /* portrait-ish proportion on mobile */
    min-height: 520px;
    max-height: 720px;
  }

  /* On mobile, swap to portrait image via object-position */
  .hero-slide-bg {
    object-position: center center;
  }

  /* Mobile overlay: strong from bottom, lighter from sides */
  .hero-overlay {
    background:
      linear-gradient(to top,  rgba(10,10,10,1)   0%,  rgba(10,10,10,0.6) 45%, rgba(10,10,10,0)   75%),
      linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0)   25%);
  }

  /* Hero content: sit higher so it's fully visible */
  .hero-content {
    bottom: 72px;
    left: 0; right: 0;
    max-width: 100%;
    padding: 0 16px;
  }
  .hero-title { font-size: 1.5rem; margin-bottom: 8px; }
  .hero-badge { font-size: 10px; margin-bottom: 8px; }
  .hero-desc  { -webkit-line-clamp: 2; font-size: 13px; margin-bottom: 14px; }
  .hero-meta  { gap: 8px; font-size: 12px; }
  .hero-mnemonic img { max-height: 50px; max-width: 180px; }

  /* Move controls to bottom-right corner on mobile */
  .hero-controls {
    bottom: 16px;
    left: auto;
    right: 14px;
    gap: 8px;
  }
  .hero-prev, .hero-next { width: 28px; height: 28px; font-size: 11px; }

  /* Row headers and carousels */
  .row-header    { padding: 20px 14px 10px; }
  .row-title     { font-size: 15px; }
  .row-carousel-wrapper { padding: 0 4px; }
  .swiper-wrapper { padding: 4px 10px 8px; }

  /* Hide swiper arrows on touch devices */
  .swiper-button-next, .swiper-button-prev { display: none; }

  /* Footer */
  .footer-top    { padding: 32px 16px 24px; gap: 24px; }
  .footer-nav    { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { padding: 16px; }
}

/* =============================================
   RESPONSIVE — small mobile (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-section { height: 105vw; min-height: 380px; max-height: 560px; }
  .hero-content { bottom: 60px; }
  .hero-title   { font-size: 1.3rem; }
  .hero-desc    { display: none; }   /* hide desc on very small screens */
  .hero-actions .btn-more { display: none; } /* keep only Play button */

  .footer-nav   { grid-template-columns: 1fr; }
  .footer-bottom p { font-size: 11px; }
}

/* =============================================
   TOP 10 ROW — Netflix-style rank numbers
   ============================================= */

/* Each slide is a flex row: [number] [card] */
.slide-top10 {
  display: flex !important;
  align-items: flex-end;    /* number sits at bottom, card above */
  position: relative;
}

/* The rank number wrapper sits on the LEFT */
.rank-number-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;               /* behind the card */
  /* Shift it right so it tucks ~40% under the card */
  margin-right: -28px;
  align-self: flex-end;
}

/* SVG fills the wrapper */
.rank-svg {
  display: block;
  width: 100%;
  height: 100%;
  /* Portrait cards get a taller number */
}

/* Landscape number size */
/* Landscape number */
.slide-top10[data-portrait="0"] .rank-number-wrap {
  width: 70px;
  height: 100px;
}
/* Portrait number */
.slide-top10[data-portrait="1"] .rank-number-wrap {
  width: 70px;
  height: 140px;
}

/* The card itself sits on top of the number (z-index 2) */
.card-top10 {
  position: relative;
  z-index: 2;
  flex: 1;                  /* take remaining width */
  min-width: 0;
}

/* Extra left padding so the wrapper row has room for the number */
.top10-wrapper .swiper-wrapper {
  padding-left: 4px;
}

/* On mobile keep numbers slightly smaller */
@media (max-width: 480px) {
  .rank-number-wrap { margin-right: -22px; }
  .slide-top10[data-portrait="0"] .rank-number-wrap { width: 56px; height: 80px; }
  .slide-top10[data-portrait="1"] .rank-number-wrap { width: 56px; height: 112px; }
}

/* =============================================
   TOP 10 ROW — Netflix-style rank numbers
   ============================================= */

/* The carousel wrapper gets extra bottom padding so
   the tall rank numbers don't get clipped */
.top10-wrapper {
  padding-bottom: 16px;
}

/* Each Top-10 slide is a flex row:
   [rank number] [card] — number on left, card on right */
.slide-top10 {
  display: flex !important;
  align-items: flex-end;
  position: relative;
}

/* Rank number container — sits left, partially hidden under card */
.rank-number-wrap {
  flex-shrink: 0;
  /* Negative right margin makes the card overlap the number */
  margin-right: -22px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* vertically aligns with card bottom */
  display: flex;
  align-items: flex-end;
}

/* The SVG scales to fill the wrap */
.rank-svg {
  display: block;
  width: 72px;   /* desktop */
  height: auto;
  overflow: visible;
}

/* Portrait Top-10: taller number */
.portrait ~ .rank-number-wrap .rank-svg,
.slide-top10:has(.portrait) .rank-svg {
  width: 72px;
}

/* The card sits above the number (z-index) */
.card-top10 {
  position: relative;
  z-index: 1;
  flex: 1;        /* fill remaining slide width */
  min-width: 0;
}

/* On hover, lift card above everything */
.card-top10:hover {
  z-index: 20;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
  .rank-svg { width: 52px; }
  .rank-number-wrap { margin-right: -16px; }
}
@media (max-width: 480px) {
  .rank-svg { width: 44px; }
  .rank-number-wrap { margin-right: -12px; }
}
