@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0f0617;
  --bg-secondary: #1a0a2e;
  --bg-card: #1e1435;
  --accent-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-solid: #8b5cf6;
  --accent-red: #e50914;
  --text: #ffffff;
  --text2: #9ca3af;
  --text3: #6b7280;
  --glass-bg: rgba(26, 10, 46, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-solid); border-radius: 4px; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-primary);
}
.loading-logo {
  font-size: 3.5rem; font-weight: 900;
  background: var(--accent-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 2rem;
}
.spinner-ring {
  width: 48px; height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--accent-solid);
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}
.spinner-ring.small { width: 22px; height: 22px; border-width: 2px; }
.loading-text { color: var(--text2); font-size: 14px; margin-top: 1.5rem; }

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #2e104e 0%, var(--bg-primary) 70%);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 420px; padding: 3rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px; text-align: center;
  animation: fadeInUp 0.6s ease-out;
}
.login-logo {
  font-size: 3rem; font-weight: 900;
  background: var(--accent-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.login-tagline { color: var(--text2); font-size: 14px; margin-bottom: 2.5rem; }
.login-form { display: flex; flex-direction: column; gap: 0; }
.input-group {
  position: relative; margin-bottom: 14px;
}
.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--text3); pointer-events: none;
}
.login-card input {
  width: 100%; padding: 16px 16px 16px 48px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border); border-radius: 14px;
  color: var(--text); font-size: 16px; font-family: inherit;
  outline: none; transition: var(--transition);
}
.login-card input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.login-btn {
  width: 100%; padding: 16px; margin-top: 8px;
  background: var(--accent-primary); color: var(--text);
  border: none; border-radius: 14px;
  font-size: 17px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover { filter: brightness(1.15); transform: translateY(-2px); }
.login-btn:disabled { opacity: 0.6; cursor: wait; }
.login-error { color: var(--accent-red); font-size: 14px; margin-top: 14px; text-align: center; }

/* ==================== SIDEBAR (Desktop/TV) ==================== */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: 60px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  z-index: 1000; display: none; flex-direction: column;
  padding: 1.5rem 0; overflow: hidden;
  transition: width var(--transition);
}
.sidebar.visible { display: flex; }
.sidebar:hover { width: 220px; }
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px; margin-bottom: 2rem; white-space: nowrap;
}
.logo-icon {
  font-size: 28px; min-width: 24px; text-align: center;
  background: var(--accent-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text {
  font-size: 20px; font-weight: 800; opacity: 0;
  background: var(--accent-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; transition: opacity var(--transition);
}
.sidebar:hover .logo-text { opacity: 1; }
.sidebar-menu { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; color: var(--text2);
  text-decoration: none; border-radius: 0;
  transition: var(--transition); white-space: nowrap;
  border-left: 3px solid transparent;
}
.sidebar-item:hover, .sidebar-item:focus-visible {
  color: var(--text); background: rgba(255,255,255,0.05);
}
.sidebar-item.active {
  color: var(--text);
  border-left-color: var(--accent-solid);
  background: rgba(139, 92, 246, 0.1);
}
.sidebar-icon { font-size: 20px; min-width: 24px; text-align: center; }
.sidebar-label {
  font-size: 14px; font-weight: 500; opacity: 0;
  transition: opacity var(--transition);
}
.sidebar:hover .sidebar-label { opacity: 1; }

/* ==================== APP SHELL ==================== */
.app { display: none; min-height: 100vh; }
.app.active { display: block; }
.main-content {
  margin-left: 60px; min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative; width: 100%; height: 70vh; min-height: 420px;
  overflow: hidden; display: flex; align-items: flex-end;
  animation: heroFade 0.8s ease-out;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: background-image 0.8s ease;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,6,23,0.95) 0%, rgba(15,6,23,0.5) 40%, transparent 70%),
    linear-gradient(0deg, var(--bg-primary) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 4rem 4rem;
  max-width: 600px; animation: fadeInUp 0.8s ease-out;
}
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 4px;
  background: var(--accent-primary); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 52px); font-weight: 900;
  line-height: 1.1; margin-bottom: 12px;
}
.hero-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px; font-size: 14px; color: var(--text2);
}
.rating-badge {
  background: rgba(255,255,255,0.1); padding: 3px 8px;
  border-radius: 4px; font-weight: 600; color: #fbbf24; font-size: 13px;
}
.quality-badge {
  background: rgba(255,255,255,0.08); padding: 2px 8px;
  border-radius: 3px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
}
.year { color: var(--text2); }
.hero-desc {
  color: var(--text2); font-size: 14px; line-height: 1.6;
  margin-bottom: 24px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; align-items: center; gap: 14px; }
.btn-watch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 40px; background: var(--accent-primary);
  border: none; border-radius: 30px;
  color: var(--text); font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: var(--transition);
}
.btn-watch:hover, .btn-watch:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}
.btn-watch:disabled { opacity: 0.5; cursor: wait; }
.btn-icon { font-size: 14px; }
.btn-add {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.btn-add:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }

/* Hero Dots */
.hero-dots {
  position: absolute; bottom: 20px; right: 40px; z-index: 10;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 24px; border-radius: 4px;
  background: var(--accent-solid);
}

/* ==================== LANGUAGE FILTER ==================== */
.lang-filter {
  display: flex; gap: 10px; padding: 20px 4rem;
  overflow-x: auto; scrollbar-width: none;
}
.lang-filter::-webkit-scrollbar { display: none; }
.lang-pill {
  padding: 8px 22px; border-radius: 20px;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: var(--text2); font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: var(--transition);
}
.lang-pill:hover { border-color: var(--text); color: var(--text); }
.lang-pill.active {
  background: var(--accent-primary); border-color: transparent;
  color: var(--text); font-weight: 600;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section { padding: 10px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4rem 8px;
}
.section-title {
  font-size: 20px; font-weight: 700; position: relative;
  padding-bottom: 6px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px; border-radius: 2px;
  background: var(--accent-primary);
}
.section-count { font-size: 13px; color: var(--text3); }

/* Row wrapper with fade edges */
.row-wrapper { position: relative; padding: 0 4rem; }
.row-fade-left, .row-fade-right {
  position: absolute; top: 0; bottom: 0; width: 60px; z-index: 5;
  pointer-events: none;
}
.row-fade-left { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
.row-fade-right { right: 0; background: linear-gradient(-90deg, var(--bg-primary), transparent); }

.movie-row {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 12px 0 20px; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.movie-row::-webkit-scrollbar { display: none; }

/* ==================== MOVIE CARDS ==================== */
.movie-card {
  flex: 0 0 auto; cursor: pointer;
  border-radius: 10px; overflow: hidden; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg-card); outline: none;
}
.movie-card.portrait { width: 160px; height: 240px; }
.movie-card.landscape { width: 280px; height: 160px; border-radius: 12px; }

.card-img-wrapper { width: 100%; height: 100%; position: relative; overflow: hidden; }
.card-poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--transition);
}
.card-poster.error {
  background: var(--bg-card); opacity: 0.3;
}
.card-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); color: var(--text);
  font-size: 32px; opacity: 0;
  transition: opacity var(--transition);
}
.movie-card:hover .card-play-icon,
.movie-card:focus-visible .card-play-icon { opacity: 1; }
.movie-card:hover .card-poster,
.movie-card:focus-visible .card-poster { transform: scale(1.08); }
.movie-card:hover, .movie-card:focus-visible {
  transform: scale(1.06) translateY(-6px); z-index: 10;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.movie-card:focus-visible {
  outline: 2px solid var(--accent-solid);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 12px 40px rgba(0,0,0,0.6);
}
.card-rating {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  background: rgba(0,0,0,0.7); padding: 2px 7px;
  border-radius: 4px; font-size: 11px; font-weight: 700;
  color: #fbbf24;
}
.card-title-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.card-title {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==================== TOP 10 SECTION ==================== */
.top10-section .movie-row { gap: 30px; padding-left: 20px; }
.top10-card {
  display: flex; align-items: flex-end; position: relative;
  width: auto !important; height: auto !important;
  background: transparent !important;
}
.top10-number {
  font-size: 140px; font-weight: 900; line-height: 0.8;
  color: transparent; margin-right: -20px; z-index: 1;
  -webkit-text-stroke: 3px rgba(255,255,255,0.2);
  font-style: italic; user-select: none;
}
.top10-card .card-img-wrapper {
  width: 140px; height: 210px; border-radius: 10px;
  overflow: hidden; position: relative; z-index: 2;
  flex-shrink: 0;
}

/* ==================== DETAIL PAGE ==================== */
.detail-page {
  display: none; position: fixed; inset: 0;
  background: var(--bg-primary); z-index: 2000;
  overflow-y: auto;
}
.detail-page.active { display: block; }
.detail-backdrop {
  position: relative; width: 100%; height: 50vh; min-height: 300px;
  background-size: cover; background-position: center;
  background-color: var(--bg-secondary);
}
.detail-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg-primary) 0%, rgba(15,6,23,0.3) 50%, rgba(0,0,0,0.5) 100%);
}
.btn-back {
  position: absolute; top: 24px; left: 24px; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px; color: var(--text);
  font-size: 14px; font-family: inherit; cursor: pointer;
  transition: var(--transition);
}
.btn-back:hover { background: rgba(255,255,255,0.15); }
.detail-content {
  max-width: 1100px; margin: -100px auto 0;
  padding: 0 40px 80px; position: relative; z-index: 2;
}
.detail-layout { display: flex; gap: 30px; flex-wrap: wrap; }
.detail-poster {
  width: 220px; height: 330px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0; background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 260px; padding-top: 10px; }
.detail-title { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.detail-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.detail-overview {
  color: var(--text2); font-size: 15px; line-height: 1.7;
  margin-bottom: 24px;
}
.detail-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.detail-play-btn {
  display: inline-flex; align-items: center; gap: 8px;
}

/* Links */
.links-section { margin-top: 10px; }
.links-section h3 { font-size: 16px; margin-bottom: 12px; color: var(--text2); }
.links-grid { display: flex; flex-direction: column; gap: 8px; }
.link-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: 10px;
  cursor: pointer; transition: var(--transition);
}
.link-item:hover, .link-item:focus-visible {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-solid);
}
.link-label { font-size: 14px; font-weight: 500; }
.link-engine { font-size: 12px; color: var(--text3); }
.link-quality { font-size: 13px; color: #34d399; font-weight: 700; }

/* ==================== SEARCH PAGE ==================== */
.search-page { display: none; position: fixed; inset: 0; background: var(--bg-primary); z-index: 2000; overflow-y: auto; }
.search-page.active { display: block; }
.search-header { padding: 30px 40px 20px; margin-left: 60px; }
.search-bar {
  position: relative; max-width: 700px; margin: 0 auto;
}
.search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--text3);
}
.search-bar input {
  width: 100%; padding: 18px 24px 18px 56px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 16px; color: var(--text);
  font-size: 18px; font-family: inherit; outline: none;
  transition: var(--transition);
}
.search-bar input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px; padding: 20px 40px 40px; margin-left: 60px;
  max-width: 1200px; margin-left: 100px;
}
.search-results .movie-card { width: 100% !important; height: 220px !important; }
.search-empty {
  text-align: center; color: var(--text3);
  font-size: 16px; padding: 60px 20px;
  grid-column: 1 / -1;
}

/* ==================== PLAYER ==================== */
.player-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: #000; display: none; flex-direction: column;
}
.player-overlay.active { display: flex; }
.player-overlay iframe { width: 100%; height: 100%; border: none; }
.player-close {
  position: fixed; top: 20px; left: 20px; z-index: 10001;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text); font-size: 20px;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.player-close.visible { display: flex; }
.player-close:hover { background: rgba(255,255,255,0.2); }

/* ==================== TOAST ==================== */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--accent-primary); color: var(--text);
  padding: 14px 28px; border-radius: 30px;
  font-size: 14px; font-weight: 600; z-index: 99999;
  opacity: 0; transition: all 0.4s ease; pointer-events: none;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== BOTTOM NAV (Mobile) ==================== */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px; z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  justify-content: space-around; align-items: center;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; color: var(--text3); text-decoration: none;
  font-size: 11px; font-weight: 500;
  transition: var(--transition);
}
.bottom-nav-item.active { color: var(--accent-solid); }
.nav-icon { font-size: 22px; }
.nav-logo {
  background: var(--accent-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 28px;
}
.nav-label { font-size: 11px; }

/* ==================== TV MODE ==================== */
.tv-mode .movie-card.portrait { width: 200px; height: 300px; }
.tv-mode .movie-card.landscape { width: 340px; height: 190px; }
.tv-mode .section-title { font-size: 26px; }
.tv-mode .hero-title { font-size: 48px; }
.tv-mode .sidebar { width: 60px; }
.tv-mode .sidebar:hover { width: 240px; }
.tv-mode .btn-watch { font-size: 20px; padding: 18px 48px; }
.tv-mode .login-logo { font-size: 4rem; }
.tv-mode .login-card input { font-size: 20px; padding: 20px 20px 20px 52px; }
.tv-mode .login-btn { font-size: 20px; padding: 20px; }
.tv-mode .movie-card:focus-visible {
  outline: 3px solid var(--accent-solid);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.35), 0 16px 50px rgba(0,0,0,0.7);
  transform: scale(1.1) translateY(-8px);
}
.tv-mode .sidebar-item:focus-visible {
  background: rgba(139, 92, 246, 0.2);
  outline: 2px solid var(--accent-solid);
}
.tv-mode .top10-number { font-size: 160px; }
.tv-mode .top10-card .card-img-wrapper { width: 180px; height: 270px; }

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content { padding: 0 3rem 3rem; }
  .section-header, .row-wrapper, .lang-filter { padding-left: 3rem; padding-right: 3rem; }
  .movie-card.portrait { width: 140px; height: 210px; }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .main-content { margin-left: 0 !important; padding-bottom: 80px; }
  .bottom-nav.visible { display: flex; }
  .search-header { margin-left: 0; padding: 20px 16px; }
  .search-results { margin-left: 0; padding: 10px 16px; }

  .hero { height: 55vh; min-height: 320px; }
  .hero-content { padding: 0 20px 24px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 16px; }
  .btn-watch { padding: 12px 28px; font-size: 14px; }
  .btn-add { width: 40px; height: 40px; font-size: 20px; }
  .hero-dots { right: 20px; bottom: 10px; }
  .hero-badge { font-size: 10px; }

  .section-header, .row-wrapper, .lang-filter { padding-left: 16px; padding-right: 16px; }
  .section-title { font-size: 17px; }
  .movie-row { gap: 10px; }
  .movie-card.portrait { width: 120px; height: 180px; }
  .card-title { font-size: 11px; }

  .top10-number { font-size: 100px; }
  .top10-card .card-img-wrapper { width: 110px; height: 165px; }
  .top10-section .movie-row { gap: 20px; }

  .lang-pill { padding: 6px 16px; font-size: 13px; }

  .detail-backdrop { height: 35vh; }
  .detail-content { margin-top: -60px; padding: 0 16px 80px; }
  .detail-poster { width: 140px; height: 210px; }
  .detail-title { font-size: 24px; }
  .detail-play-btn { width: 100%; justify-content: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero { height: 45vh; min-height: 260px; }
  .hero-title { font-size: 20px; }
  .movie-card.portrait { width: 105px; height: 158px; }
  .card-title-bar { padding: 20px 8px 8px; }
  .card-title { font-size: 10px; }
  .top10-number { font-size: 80px; }
  .top10-card .card-img-wrapper { width: 90px; height: 135px; }
  .search-results { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .search-results .movie-card { height: 160px !important; }
}
