/* ==========================================================================
   Movie ID Finder — Modern Premium Styling
   Aesthetics: Deep Dark Mode, Subtle IMDb Gold Accents, Apple/SaaS Polish
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-app: #090c13;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 33, 51, 0.85);
  --bg-input: rgba(15, 20, 32, 0.8);
  --bg-surface: #141a29;
  --bg-surface-elevated: #1b2336;

  /* Accents */
  --accent-gold: #f5c518;
  --accent-gold-hover: #ffd027;
  --accent-gold-rgb: 245, 197, 24;
  --accent-gold-subtle: rgba(245, 197, 24, 0.12);
  --accent-gold-border: rgba(245, 197, 24, 0.35);

  /* Neutrals & Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-gold: #0a0d14;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 197, 24, 0.6);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(245, 197, 24, 0.12);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Lighting */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.14) 0%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 114, 224, 0.12) 0%, transparent 70%);
  bottom: 5%;
  right: -100px;
}

/* Main Container Layout */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.app-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f5c518 0%, #b88e0b 100%);
  color: #090c13;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.35);
  flex-shrink: 0;
}

.brand-text {
  text-align: left;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.brand-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   TV Login Overlay (Kullanıcı Adı: 777777 / Şifre: 444444)
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #101626 0%, #06080e 100%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: rgba(18, 25, 40, 0.85);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 197, 24, 0.15);
  backdrop-filter: blur(20px);
  text-align: center;
}

.brand-icon-lg {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
}

.login-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-input-lg {
  height: 52px;
  font-size: 1.05rem;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
}

.btn-primary-lg {
  height: 54px;
  background: linear-gradient(135deg, #f5c518 0%, #d4a30e 100%);
  color: #090c13;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.35);
  margin-top: 0.5rem;
}

.btn-primary-lg:hover, .btn-primary-lg:focus-visible {
  background: linear-gradient(135deg, #ffd027 0%, #f5c518 100%);
  box-shadow: 0 6px 25px rgba(245, 197, 24, 0.55);
  transform: translateY(-2px);
  outline: 3px solid #ffffff;
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Header User Actions */
.header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.user-badge-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover, .btn-logout:focus-visible {
  background: #ef4444;
  color: #ffffff;
}

/* Infinite Scroll & Load More Container */
.infinite-scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  width: 100%;
}

.infinite-scroll-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(245, 197, 24, 0.08) 100%);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--accent-gold);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-load-more:hover, .btn-load-more:focus-visible {
  background: var(--accent-gold);
  color: var(--text-on-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 197, 24, 0.35);
  outline: 3px solid #ffffff;
}

/* TV Discovery Navigation Bar (Big Remote-Friendly Buttons) */
.discovery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-discovery {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(20, 27, 44, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.btn-discovery:hover {
  background: rgba(30, 40, 65, 0.9);
  color: #ffffff;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-discovery.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--text-on-gold);
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.35);
}

.btn-discovery:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.disc-icon {
  font-size: 1.1rem;
}

.my-list-counter {
  background: rgba(245, 197, 24, 0.25);
  color: var(--accent-gold);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.btn-discovery.active .my-list-counter {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* Card Quick List Toggle Button (TV Friendly) */
.btn-card-list {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-list:hover, .btn-card-list:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-card-list.in-list {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.btn-card-list.in-list:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Modal List Toggle Button */
.btn-modal-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  min-height: 52px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-modal-list:hover, .btn-modal-list:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  outline: 3px solid #ffffff;
}

.btn-modal-list.in-list {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

/* Ghost Button (API Config) */
.btn-ghost-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  min-height: 36px;
}

.btn-ghost-icon:hover, .btn-ghost-icon:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* TV Remote Focus Glow */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Search Section
   ========================================================================== */
.search-section {
  margin-bottom: 2rem;
}

.search-box-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.35rem 0.5rem 0.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--border-focus);
  background: rgba(18, 25, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18), var(--shadow-lg);
  transform: translateY(-1px);
}

.search-icon-left {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  margin-right: 0.85rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.65rem 0;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.search-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(245, 197, 24, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Quick Trending Chips */
.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.quick-tag-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.quick-chip:hover {
  background: var(--accent-gold-subtle);
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

/* ==========================================================================
   Results Header / Info Bar
   ========================================================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.results-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.results-badge {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-query {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Results Cards (Desktop & Mobile Optimized)
   ========================================================================== */
.content-area {
  flex: 1;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.15rem;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.movie-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.movie-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 0, 0, 0.3);
}

.movie-card:hover::before {
  opacity: 1;
}

/* Left: Poster */
.card-poster-wrap {
  width: 76px;
  height: 104px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.movie-card:hover .card-poster {
  transform: scale(1.05);
}

.card-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #182030, #0f1420);
  color: var(--text-muted);
  gap: 0.35rem;
  font-size: 0.65rem;
}

/* Middle: Info */
.card-middle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  transition: color var(--transition-fast);
}

.movie-card:hover .card-title {
  color: #ffffff;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-year {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
}

.badge-movie {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-series {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-generic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.card-genre-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right: Rating & tt ID */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
  padding-left: 0.5rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.rating-badge.rating-na {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}


.imdb-id-pill:hover {
  background: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.2);
  transform: scale(1.02);
}

.imdb-id-pill:active {
  transform: scale(0.98);
}

.copy-mini-icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.imdb-id-pill:hover .copy-mini-icon {
  opacity: 1;
}

/* ==========================================================================
   Skeleton Loading State
   ========================================================================== */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.15rem;
  display: grid;
  grid-template-columns: 76px 1fr 120px;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.skeleton-poster {
  width: 76px;
  height: 104px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-surface);
}

.skeleton-line.title {
  width: 60%;
  height: 20px;
}

.skeleton-line.meta {
  width: 35%;
}

.skeleton-line.genre {
  width: 45%;
}

.skeleton-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.skeleton-badge {
  width: 65px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.skeleton-id {
  width: 110px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 150%;
  }
}

/* ==========================================================================
   Empty, No Results, and Error States
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 580px;
  margin: 1.5rem auto 0;
  backdrop-filter: blur(12px);
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.empty-icon-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.empty-icon-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

.empty-state code {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent-gold);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.btn-retry {
  margin-top: 1.25rem;
  background: var(--accent-gold);
  color: var(--text-on-gold);
  border: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-retry:hover {
  background: var(--accent-gold-hover);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.4);
}

/* ==========================================================================
   Selected Movie Detail Modal (Sadeleştirilmiş & Mobil Uyumlu)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  transform: scale(0.95) translateY(12px);
  transition: transform var(--transition-spring);
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  gap: 1rem;
}

.modal-poster-wrap {
  width: 140px;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.modal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #151c2e;
  color: var(--text-muted);
  gap: 0.5rem;
  font-size: 0.85rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.badge-year, .badge-runtime {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.modal-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.rating-score {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.modal-actions-footer {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-watch-modal, .btn-modal-list {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-watch-modal {
  background: var(--accent-gold);
  color: #0a0d14;
  border: none;
}

.btn-watch-modal:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-modal-list {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-modal-list:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-modal-list.in-list {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

/* ==========================================================================
   API Settings Modal
   ========================================================================== */
.api-modal-content {
  padding: 1.75rem;
}

.api-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.api-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.25);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.api-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: #090c13;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-gold);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-secondary, .btn-primary {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent-gold);
  border: none;
  color: var(--text-on-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

/* ==========================================================================
   Toast Notification (Copied Feedback)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--accent-gold-border);
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 197, 24, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
             toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.3s;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-id {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  background: rgba(245, 197, 24, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  margin-top: auto;
  padding-top: 3.5rem;
  text-align: center;
}

.footer-content {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-divider {
  opacity: 0.4;
}

/* ==========================================================================
   Watch Now & Play Buttons (TV Remote Optimized)
   ========================================================================== */
.btn-card-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f5c518 0%, #d4a30e 100%);
  color: #090c13;
  border: none;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.btn-card-watch:hover, .btn-card-watch:focus-visible {
  background: linear-gradient(135deg, #ffd027 0%, #f5c518 100%);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.55);
  transform: translateY(-2px);
  outline: 3px solid #ffffff;
}

.btn-card-watch:active {
  transform: translateY(0);
}

.btn-watch-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f5c518 0%, #e5b815 100%);
  color: #090c13;
  border: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  min-height: 52px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 24px rgba(245, 197, 24, 0.45);
}

.btn-watch-modal:hover, .btn-watch-modal:focus-visible {
  background: linear-gradient(135deg, #ffd027 0%, #f5c518 100%);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.65);
  transform: translateY(-2px);
  outline: 3px solid #ffffff;
}

/* ==========================================================================
   Watch View / Cinema Player Page
   ========================================================================== */
.watch-view-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.watch-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-hover);
  transform: translateX(-2px);
}

.watch-top-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-top-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

/* Player Frame Wrapper */
.player-wrapper {
  background: #000000;
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 197, 24, 0.08);
}

.player-aspect-ratio {
  position: relative;
  width: 100%;
  height: 560px;
  background: #05070c;
}

@media (max-width: 900px) {
  .player-aspect-ratio {
    height: 440px;
  }
}

@media (max-width: 600px) {
  .player-aspect-ratio {
    height: 280px;
  }
}

.player-aspect-ratio iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Series Navigator */
.series-navigator {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
}

.series-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.series-nav-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.series-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.now-playing-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.series-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-ep {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-nav-ep:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--border-hover);
}

.btn-nav-ep:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Season Tabs */
.seasons-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.seasons-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.season-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.season-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.season-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.season-tab.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--text-on-gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
}

/* Episodes Grid */
.episodes-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.episodes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episodes-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
}

.episodes-loading {
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.episode-card {
  background: rgba(12, 16, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.episode-card:hover {
  background: rgba(24, 32, 50, 0.9);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.episode-card.active {
  background: rgba(245, 197, 24, 0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.2);
}

/* İzlenen Bölüm Stili (Kullanıcının Nerede Kaldığını Gösterir) */
.episode-card.watched {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

.episode-card.watched .ep-num {
  color: #34d399;
}

.episode-card.watched.active {
  border-color: var(--accent-gold);
  background: rgba(245, 197, 24, 0.14);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.25), 0 0 8px rgba(16, 185, 129, 0.3);
}

.ep-watched-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.ep-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.ep-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
}

.ep-rating {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.ep-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card.active .ep-title {
  color: #ffffff;
}

/* Watch Details Card */
.watch-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watch-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.watch-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.watch-plot {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.watch-credits {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.watch-genre-tag {
  color: var(--text-secondary);
  font-weight: 500;
}

.watch-credits-divider {
  opacity: 0.4;
}

/* ==========================================================================
   Responsive Adaptations (Mobile First-Class Citizen & Zero Overflow)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .app-container {
    padding: 1.25rem 0.75rem 2.5rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .header-top {
    flex-direction: column;
    gap: 0.75rem;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-desc {
    font-size: 0.9rem;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  .search-input {
    font-size: 16px !important;
  }

  .discovery-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .btn-discovery {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
    justify-content: center;
  }

  /* Mobile Movie Card */
  .movie-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .card-poster-wrap {
    width: 64px;
    height: 90px;
    border-radius: var(--radius-sm);
  }

  .card-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .card-title {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .card-meta-row {
    font-size: 0.78rem;
    gap: 0.4rem;
  }

  .card-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.5rem;
  }

  .card-actions-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .btn-card-watch, .btn-card-list {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Modal on Mobile */
  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-card {
    max-width: 95vw;
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .modal-layout {
    padding: 1.5rem 1rem 1.25rem;
    gap: 0.85rem;
  }

  .modal-poster-wrap {
    width: 130px;
    height: 190px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-actions-footer {
    flex-direction: row;
    gap: 0.5rem;
  }

  .btn-watch-modal, .btn-modal-list {
    font-size: 0.88rem;
    padding: 0.75rem;
  }

  /* Episodes on Mobile */
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    max-height: 260px;
  }
}
