/* ============================================
   COMPONENTS.CSS - Denis Casian Movie App
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}

.btn-primary:hover {
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid rgba(139,92,246,0.4);
}

.btn-outline:hover {
  background: rgba(139,92,246,0.15);
  border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.3);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.25);
  border-color: var(--error);
}

.btn-success {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.btn-success:hover {
  background: rgba(16,185,129,0.25);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.85rem;
}

.btn-icon-lg {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ══════════════════════════════════════════
   MOVIE CARD - Base (fără dimensiuni fixe)
   ══════════════════════════════════════════ */
.movie-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* ═══ FIX: propriul stacking context ═══ */
  z-index: 1;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(139, 92, 246, 0.3);
  /* ═══ FIX: hover card deasupra celorlalte ═══ */
  z-index: 10;
}

/* ══════════════════════════════════════════
   CARD POSTER - Flex grow, umple spațiul
   ══════════════════════════════════════════ */
.card-poster {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s var(--ease);
}

.movie-card:hover .card-poster img {
  transform: scale(1.05);
}

.card-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.card-poster-placeholder span {
  font-size: 0.8rem;
  color: var(--text-3);
}


/* Card Overlay on Hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.card-action-btn {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action-btn:hover {
  background: rgba(139, 92, 246, 0.5);
  border-color: var(--primary-light);
}

.card-action-btn.play-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
}

.card-action-btn.play-btn:hover {
  box-shadow: var(--shadow-purple);
  transform: scale(1.02);
}

/* Card Badges */
.card-badge {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}

.badge-rating {
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
}

.badge-type {
  top: 38px;
  left: 8px;
  background: rgba(139, 92, 246, 0.85);
  color: #fff;
  backdrop-filter: blur(8px);
}

.badge-new {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

.badge-hd {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

/* Progress Bar on Card */
.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s;
}

/* Card Info */
.card-info {
  flex: 0 0 68px;
  height: 68px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 1.3em;
  margin-bottom: 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.2;
  max-height: 1.2em;
  flex-wrap: nowrap;
}

.card-meta-sep {
  opacity: 0.4;
  flex-shrink: 0;
}

.card-meta-rating {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* Wishlist/Favorite Toggle */
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  z-index: 5;
  color: #ef4444;
}

.movie-card:hover .card-fav-btn {
  opacity: 1;
}

.card-fav-btn.active,
.card-fav-btn:hover {
  background: rgba(239, 68, 68, 0.5);
  border-color: var(--error);
  opacity: 1;
  color: #fff;
}
/* Mobile - carduri mici */
@media (max-width: 480px) {
  .badge-rating {
    top: 4px;
    left: 4px;
    font-size: 0.6rem;
    padding: 3px 6px;
  }

.badge-type {
    top: 26px;
    left: 4px;
    font-size: 0.6rem;
    padding: 3px 6px;
  }

  .card-meta {
    gap: 4px;
    font-size: 0.65rem;
  }

  .card-meta-sep {
    font-size: 0.5rem;
  }

  /* ── FIX: butoane overlay centrate ── */
  .card-overlay {
    padding: 8px;
  }

  .card-overlay-actions {
    gap: 4px;
  }

  .card-action-btn {
    padding: 6px 4px;
    font-size: 0.65rem;
    gap: 2px;
  }

  .card-fav-btn {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

@media (max-width: 480px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0;
  }
}
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex: 0 0 180px;
  width: 180px;
  height: 320px;
}

.skeleton-poster {
  aspect-ratio: 2/3;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }

/* ── Carousel / Slider ── */
.carousel-wrapper {
  position: relative;
  margin: 0 -24px;
  padding: 10px 24px 20px;
  overflow: visible;
  min-height: 360px;
}



.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-arrow:hover {
  background: rgba(139, 92, 246, 0.5);
  border-color: var(--primary-light);
}

.carousel-arrow.prev { left: 4px; }
.carousel-arrow.next { right: 4px; }
.carousel-arrow.hidden { opacity: 0; pointer-events: none; }


/* ── Grid Layouts ── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  overflow: visible;

}

.movies-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.82rem;
  color: var(--text-3);
  white-space: nowrap;
}

.filter-select {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-select:focus,
.filter-select:hover {
  border-color: var(--primary);
  background-color: rgba(255,255,255,0.08);
}

.filter-select option {
  background: #1a1a2e;
  color: var(--text);
}

.filter-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font);
}

.filter-tag:hover,
.filter-tag.active {
  background: rgba(139,92,246,0.25);
  border-color: var(--primary-light);
  color: #fff;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(15,15,30,0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239,68,68,0.25);
  color: var(--error);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px 24px 24px;
}

/* Trailer Modal */
.trailer-modal .modal {
  max-width: 900px;
}

.trailer-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
}

.trailer-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Confirm Modal */
.confirm-modal .modal {
  max-width: 420px;
}

.confirm-text {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── Star Rating ── */
.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.star:hover,
.star.active {
  color: var(--gold);
  transform: scale(1.2);
}

.star.half {
  color: var(--gold);
  opacity: 0.6;
}

.star-rating-display {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-display {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.2);
}

.star-display.filled {
  color: var(--gold);
}

.rating-value {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: 6px;
}

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-genre {
  background: rgba(139,92,246,0.2);
  color: var(--primary-light);
  border: 1px solid rgba(139,92,246,0.3);
}

.tag-genre:hover {
  background: rgba(139,92,246,0.35);
  cursor: pointer;
}

.tag-year {
  background: rgba(255,255,255,0.08);
  color: var(--text-2);
}

.tag-status-ongoing {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}

.tag-status-ended {
  background: rgba(239,68,68,0.15);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.3);
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease);
}

.progress-bar-lg {
  height: 8px;
}

/* ══════════════════════════════════════════
   INPUT FIELDS – SVG ICONS (centrare perfectă)
   ══════════════════════════════════════════ */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.input-error-msg {
  font-size: 0.8rem;
  color: var(--error);
}

/* ── Wrapper: FLEXBOX centrat vertical ── */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ── SVG Icon ── */
.input-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Păstrează și clasa veche pentru compatibilitate ── */
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

/* ── Input Field ── */
.input-field {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-radius: inherit;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  box-sizing: border-box;
  margin: 0;
}

.input-field::placeholder {
  color: var(--text-3);
}

/* Scoatem stilurile de border/bg de pe field (le are wrapper-ul acum) */
.input-field:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.input-field.with-icon {
  padding-left: 44px;
}

.input-field.error {
  /* Error se pune pe wrapper */
}

.input-wrapper.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrapper.success {
  border-color: var(--success);
}

/* ── Toggle Password Button ── */
.input-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
  z-index: 2;
  padding: 0;
  margin: 0;
  transition: color 0.2s, background 0.2s;
}

.input-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.input-toggle .toggle-icon {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Cast Row ── */
.cast-row-wrapper {
  position: relative;
  overflow: visible;
}

#playerCastContainer {
  overflow: visible;
}

.cast-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 0;           /* ← FIX: fără padding lateral */
  scrollbar-width: none;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
}

.cast-row::-webkit-scrollbar { 
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.cast-row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cast-row-arrow:hover {
  background: rgba(139,92,246,0.5);
  border-color: var(--primary-light);
}

.cast-row-arrow.prev { left: 8px; }
.cast-row-arrow.next { right: 8px; }

.cast-row-arrow.hidden { 
  opacity: 0; 
  pointer-events: none; 
}

@media (min-width: 769px) {
  .cast-row-wrapper.has-overflow .cast-row-arrow {
    display: flex;
  }
  
  .cast-row {
    overflow-x: hidden;
  }
  
  .cast-row-wrapper.has-overflow .cast-row {
    overflow-x: scroll;
  }
}

.cast-card {
  flex: 0 0 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.cast-card:hover { transform: translateY(-4px); }

.cast-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  border: 2px solid var(--border);
  background: var(--bg-3);
  transition: border-color 0.2s;
}

.cast-card:hover .cast-avatar {
  border-color: var(--primary-light);
}

.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.cast-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.cast-role {
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.3;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.page-btn:hover {
  background: rgba(139,92,246,0.2);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn.disabled:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}

/* ── Info Panel (movie details) ── */
.info-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.info-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}

.info-row:last-child { border-bottom: none; }

.info-row-label {
  flex: 0 0 110px;
  color: var(--text-3);
  font-weight: 500;
}

.info-row-value {
  color: var(--text-2);
  flex: 1;
  line-height: 1.5;
}

/* ── Avatar Upload ── */
.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--border);
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
}

.avatar-preview:hover {
  border-color: var(--primary-light);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

/* ── Stats Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.empty-text {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 360px;
  line-height: 1.6;
}

/* ── Search Input Large ── */
.search-bar-lg {
  position: relative;
  width: 100%;
}

.search-bar-lg input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
  font-size: 1.05rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.3s var(--ease);
  -webkit-user-select: text;
  user-select: text;
}

.search-bar-lg input::placeholder { color: var(--text-3); }

.search-bar-lg input:focus {
  border-color: var(--primary-light);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 30px rgba(139,92,246,0.2);
}

.search-bar-lg .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.search-bar-lg .search-icon:hover {
  box-shadow: var(--shadow-purple);
  transform: translateY(-50%) scale(1.05);
}

/* ── Continue Watching Card ── */
.continue-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex: 0 0 220px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.continue-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.continue-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}

.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.continue-card:hover .continue-thumb img {
  transform: scale(1.05);
}

.continue-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.continue-card:hover .continue-play-icon {
  opacity: 1;
}

.continue-info {
  padding: 10px 12px;
}

.continue-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 8px;
}

.continue-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-2);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.continue-card:hover .continue-remove {
  opacity: 1;
}

.continue-remove:hover {
  background: rgba(239,68,68,0.5);
  color: #fff;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  background: none;
}

.tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  background: rgba(139,92,246,0.08);
}

/* ── Cast Button ── */
.cast-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.cast-btn:hover,
.cast-btn.active {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.4);
  color: var(--success);
}

.cast-btn svg {
  width: 18px;
  height: 18px;
}
/* ══════════════════════════════════════════
   CAROUSEL CARDS - Dimensiuni mai mari
   ══════════════════════════════════════════ */
.carousel .movie-card {
  flex: 0 0 220px;
  width: 220px;
  height: 400px;
  scroll-snap-align: start;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Carousel cards - mai mici */
.carousel .movie-card {
    flex: 0 0 165px;
    width: 165px;
    height: 310px;
  }

  .carousel .card-info {
    flex: 0 0 60px;
    height: 60px;
    padding: 6px 8px;
  }

  .carousel .card-title {
    font-size: 0.8rem;
  }

  .carousel .card-meta {
    font-size: 0.7rem;
    gap: 4px;
  }

  .carousel-wrapper {
    min-height: 350px;
  }

  /* Grid cards - se adaptează */
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .movies-grid .card-info {
    flex: 0 0 58px;
    height: 58px;
    padding: 6px 8px;
  }

  .movies-grid .card-title {
    font-size: 0.78rem;
  }

  .movies-grid .card-meta {
    font-size: 0.68rem;
    gap: 4px;
  }

  /* Carousel card info */
  .carousel .card-info {
    flex: 0 0 58px;
    height: 58px;
    padding: 6px 8px;
  }

  .carousel .card-title {
    font-size: 0.78rem;
  }

  .carousel .card-meta {
    font-size: 0.68rem;
    gap: 4px;
  }

  /* Fav button always visible on mobile */
  .card-fav-btn {
    opacity: 1;
  }

  .badge-rating {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .badge-type {
    top: 30px;
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .cast-card { flex: 0 0 80px; }
  .cast-avatar { width: 64px; height: 64px; }
  .modal { border-radius: var(--radius-lg); }
  .modal-body { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { gap: 8px; }
  .filter-select { font-size: 0.8rem; padding: 7px 28px 7px 10px; }
  .continue-card { flex: 0 0 180px; }
}

@media (max-width: 480px) {
  /* Carousel cards - cele mai mici */
.carousel .movie-card {
    flex: 0 0 140px;
    width: 140px;
    height: 270px;
  }

  .carousel .card-info {
    flex: 0 0 52px;
    height: 52px;
    padding: 5px 6px;
  }

  .carousel .card-title {
    font-size: 0.72rem;
  }

  .carousel .card-meta {
    font-size: 0.65rem;
    gap: 3px;
  }

  .carousel-wrapper {
    min-height: 310px;
  }

  /* Grid cards */
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px;
    margin: -6px;
  }

  .movies-grid .card-info {
    flex: 0 0 50px;
    height: 50px;
    padding: 5px 6px;
  }

  .movies-grid .card-title {
    font-size: 0.72rem;
  }

  .movies-grid .card-meta {
    font-size: 0.65rem;
    gap: 3px;
  }

  .badge-rating {
    top: 4px;
    left: 4px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .badge-type {
    top: 24px;
    left: 4px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .card-overlay {
    padding: 6px;
  }

  .card-overlay-actions {
    gap: 4px;
  }

  .card-action-btn {
    padding: 5px 3px;
    font-size: 0.6rem;
    gap: 2px;
  }

  .card-fav-btn {
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tabs { gap: 2px; }
  .tab { padding: 8px 12px; font-size: 0.82rem; }
}

/* ══════════════════════════════════════════
   STAR RATING - ESTETIC
   ══════════════════════════════════════════ */

.star-rating {
  display: flex;
  gap: 6px;
  align-items: center;
}

.star {
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, color 0.15s ease;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.star:hover {
  color: var(--gold);
  transform: scale(1.35);
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.7));
}

.star.active {
  color: var(--gold);
  filter: drop-shadow(0 0 4px rgba(255, 200, 0, 0.4));
}

.star.active:hover {
  transform: scale(1.35);
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
}

/* ══════════════════════════════════════════
   CAROUSEL WRAPPER - Spațiu pentru săgeți
   ══════════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  margin: 0 -24px;
  padding: 10px 24px 20px;
  overflow: visible;
  min-height: 440px;
}

/* ═══ Spațiu lateral pentru săgeți pe desktop ═══ */
@media (min-width: 769px) {
  .carousel-wrapper {
    margin: 0 -24px;
    padding: 10px 64px 20px;
  }
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 20px 0;
  align-items: stretch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* ══════════════════════════════════════════
   CAROUSEL ARROWS - În exterior, fără blur
   ══════════════════════════════════════════ */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--primary-light);
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  box-shadow: none;
}

.carousel-arrow:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* ═══ Poziție ÎN EXTERIOR ═══ */
.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-arrow.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ═══ Desktop - mereu vizibile ═══ */
@media (min-width: 769px) {
  .carousel-arrow:not(.hidden) {
    opacity: 0.7;
    pointer-events: all;
  }

  .carousel-wrapper:hover .carousel-arrow:not(.hidden) {
    opacity: 1;
  }
}

/* ═══ Fără gradient, fără blur ═══ */
.carousel-wrapper::before,
.carousel-wrapper::after {
  display: none !important;
}

/* ═══ Ascunde pe mobil ═══ */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none !important;
  }

  .carousel-wrapper {
    padding: 10px 24px 20px;
  }
}

/* ══════════════════════════════════════════
   FIX: Carduri tăiate la hover pe margini
   ══════════════════════════════════════════ */
.carousel .movie-card:hover {
  transform: translateY(-4px);
}


/* ══════════════════════════════════════════
   STREAMING PROVIDER TABS
   ══════════════════════════════════════════ */
.streaming-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.streaming-tabs::-webkit-scrollbar {
  display: none;
}

.streaming-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-3);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-family: var(--font);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.streaming-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--provider-color, rgba(139, 92, 246, 0.5));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.streaming-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.streaming-tab:hover::before {
  opacity: 0.1;
}

.streaming-tab.active {
  border-color: var(--provider-color, var(--primary));
  color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--provider-color, var(--primary)) 30%, transparent);
}

.streaming-tab.active::before {
  opacity: 0.2;
}

.streaming-tab-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.streaming-tab-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .streaming-tabs {
    gap: 6px;
    margin-bottom: 16px;
  }

  .streaming-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
    gap: 8px;
  }

  .streaming-tab-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .streaming-tab {
    padding: 6px 10px;
    gap: 6px;
  }

  .streaming-tab-name {
    display: none;
  }

  .streaming-tab-logo {
    width: 28px;
    height: 28px;
  }
}

/* ── Streaming tabs - la fel pe mobil ca pe PC ── */
.streaming-tab {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.streaming-tab-name {
  display: inline !important;
}

.streaming-tab-logo {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

@media (max-width: 480px) {
  .streaming-tab-name {
    display: inline !important;
  }

  .streaming-tab {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    gap: 8px !important;
  }

  .streaming-tab-logo {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ── Scoate săgeți carousel pe mobil ── */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none !important;
  }
}

/* ═══ RANK CARD WRAPPER ═══ */
.rank-card-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: 100%;
  width: 100%;
  overflow: visible;
}

/* ═══ CIFRA RANK ═══ */
.card-rank-number {
  flex-shrink: 0;
  width: 80px;
  margin-right: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 6.5rem;
  line-height: 1;
  text-align: right;
  padding-bottom: 60px;
  padding-right: 5px;
  pointer-events: none;
  user-select: none;
  transition: all 0.3s ease;
  align-self: flex-end;
  overflow: visible;
  color: rgba(255, 255, 255, 0.15);
  text-shadow:
    -3px -3px 0 rgba(255, 255, 255, 0.4),
    3px -3px 0 rgba(255, 255, 255, 0.4),
    -3px 3px 0 rgba(255, 255, 255, 0.4),
    3px 3px 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.8);
}

@supports (-webkit-text-stroke: 1px white) {
  .card-rank-number {
    color: transparent;
    -webkit-text-stroke: 3.5px rgba(255, 255, 255, 0.4);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  }
}

.card-rank-number.double-digit {
  font-size: 5.5rem !important;
  width: 100px !important;
  padding-right: 8px !important;
  letter-spacing: -0.05em;
}

/* ═══ Cardul ia restul spațiului ═══ */
.rank-card-wrapper .movie-card {
  flex: 1;
  min-width: 0;
  width: auto !important;
}

/* ═══ TOP 3 CULORI ═══ */
.card-rank-number[data-rank="1"] {
  color: rgba(255, 215, 0, 0.15);
  text-shadow:
    -2px -2px 0 rgba(255, 215, 0, 0.8),
    2px -2px 0 rgba(255, 215, 0, 0.8),
    -2px 2px 0 rgba(255, 215, 0, 0.8),
    2px 2px 0 rgba(255, 215, 0, 0.8),
    0 0 30px rgba(255, 215, 0, 0.3);
}

@supports (-webkit-text-stroke: 1px white) {
  .card-rank-number[data-rank="1"] {
    color: transparent;
    -webkit-text-stroke: 3px rgba(255, 215, 0, 0.85);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.8);
  }
}

.card-rank-number[data-rank="2"] {
  color: rgba(192, 192, 192, 0.15);
  text-shadow:
    -2px -2px 0 rgba(192, 192, 192, 0.7),
    2px -2px 0 rgba(192, 192, 192, 0.7),
    -2px 2px 0 rgba(192, 192, 192, 0.7),
    2px 2px 0 rgba(192, 192, 192, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.8);
}

@supports (-webkit-text-stroke: 1px white) {
  .card-rank-number[data-rank="2"] {
    color: transparent;
    -webkit-text-stroke: 3px rgba(192, 192, 192, 0.75);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  }
}

.card-rank-number[data-rank="3"] {
  color: rgba(205, 127, 50, 0.15);
  text-shadow:
    -2px -2px 0 rgba(205, 127, 50, 0.7),
    2px -2px 0 rgba(205, 127, 50, 0.7),
    -2px 2px 0 rgba(205, 127, 50, 0.7),
    2px 2px 0 rgba(205, 127, 50, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.8);
}

@supports (-webkit-text-stroke: 1px white) {
  .card-rank-number[data-rank="3"] {
    color: transparent;
    -webkit-text-stroke: 3px rgba(205, 127, 50, 0.75);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  }
}

/* ═══ HOVER EFFECT ═══ */
.rank-card-wrapper:hover .card-rank-number {
  transform: scale(1.1);
}

@supports (-webkit-text-stroke: 1px white) {
  .rank-card-wrapper:hover .card-rank-number {
    -webkit-text-stroke: 3px rgba(139, 92, 246, 0.9);
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .card-rank-number {
    font-size: 4.5rem;
    width: 55px;
    padding-bottom: 50px;
    margin-right: 6px;
  }
  .card-rank-number.double-digit {
    font-size: 3.2rem !important;
    width: 65px !important;
  }
}

@media (max-width: 480px) {
  .card-rank-number {
    font-size: 3.5rem;
    width: 45px;
    padding-bottom: 40px;
    margin-right: 4px;
  }
  .card-rank-number.double-digit {
    font-size: 2.5rem !important;
    width: 55px !important;
  }
}

/* ══════════════════════════════════════════
   FORCE DESKTOP LAYOUT - TOATE ECRANELE
   ══════════════════════════════════════════ */

/* Carduri carousel - IDENTICE pe toate ecranele */
.carousel .movie-card {
  flex: 0 0 220px !important;
  width: 220px !important;
  height: 400px !important;
}

.carousel .card-info {
  flex: 0 0 68px !important;
  height: 68px !important;
  padding: 8px 10px !important;
}

.carousel .card-title {
  font-size: 0.85rem !important;
}

.carousel .card-meta {
  font-size: 0.75rem !important;
  gap: 6px !important;
}

/* Rank numbers - IDENTICE pe toate ecranele */
.card-rank-number {
  font-size: 6.5rem !important;
  width: 80px !important;
  padding-bottom: 60px !important;
  margin-right: 8px !important;
  padding-right: 5px !important;
}

.card-rank-number.double-digit {
  font-size: 5.5rem !important;
  width: 100px !important;
  padding-right: 8px !important;
  letter-spacing: -0.05em !important;
}

/* Badges - IDENTICE pe toate ecranele */
.carousel .badge-rating {
  top: 8px !important;
  left: 8px !important;
  font-size: 0.7rem !important;
  padding: 4px 8px !important;
}

.carousel .badge-type {
  top: 38px !important;
  left: 8px !important;
  font-size: 0.7rem !important;
  padding: 4px 8px !important;
}

/* Favorite button - IDENTIC pe toate ecranele */
.carousel .card-fav-btn {
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 0.9rem !important;
  opacity: 1 !important; /* Vizibil mereu pe mobil */
}

/* Overlay buttons - IDENTICE pe toate ecranele */
.carousel .card-action-btn {
  padding: 8px !important;
  font-size: 0.78rem !important;
  gap: 4px !important;
}

.carousel .card-overlay {
  padding: 14px !important;
}

.carousel-wrapper {
  min-height: auto !important;
  padding-bottom: 30px !important;
}


/* ═══════════════════════════════════════════════════════
   FIX MOBIL - MĂRIRE TEXT CARDURI (Movies & TV pages)
   ═══════════════════════════════════════════════════════ */

/* ═══ GRID CARDS - 2 PE RÂND PE MOBIL ═══ */
@media (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 8px !important;
    margin: -8px !important;
  }
}

/* ═══ CARD INFO - MOBIL ═══ */
@media (max-width: 768px) {
  .movies-grid .card-info {
    flex: 0 0 auto !important;
    height: auto !important;
    padding: 10px 8px 8px !important;
    min-height: 65px !important;
  }

  .movies-grid .card-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    /* Permite 2 linii pe mobil */
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .movies-grid .card-meta {
    font-size: 0.8rem !important;
    gap: 6px !important;
    color: var(--text-3) !important;
  }

  .movies-grid .card-meta-rating {
    font-size: 0.8rem !important;
  }

  .movies-grid .card-meta-sep {
    font-size: 0.7rem !important;
  }
}

/* ═══ BADGES - MOBIL (mai mari și vizibile) ═══ */
@media (max-width: 768px) {
  .movies-grid .badge-rating {
    top: 8px !important;
    left: 8px !important;
    font-size: 0.75rem !important;
    padding: 5px 9px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.85) !important;
  }

  /* Type (Movie/Series) - sub rating, TOT SUS */
  .movies-grid .badge-type {
    top: 36px !important;
    bottom: auto !important;
    left: 8px !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    background: rgba(139, 92, 246, 0.9) !important;
  }
}

/* ═══ BUTON INIMIOARĂ - MOBIL (mai mare și mereu vizibil) ═══ */
@media (max-width: 768px) {
  .movies-grid .card-fav-btn {
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .movies-grid .card-fav-btn.active {
    background: rgba(239, 68, 68, 0.6) !important;
    color: #fff !important;
  }
}

/* ═══ OVERLAY BUTOANE - MOBIL ═══ */
@media (max-width: 768px) {
  .movies-grid .card-overlay {
    padding: 12px !important;
  }

  .movies-grid .card-overlay-actions {
    gap: 8px !important;
  }

  .movies-grid .card-action-btn {
    padding: 10px 8px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }

  .movies-grid .card-action-btn.play-btn {
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
  }

  .movies-grid .card-play-text {
    font-size: 0.8rem !important;
  }
}

/* ═══ ECRANE FOARTE MICI (sub 400px) ═══ */
@media (max-width: 400px) {
  .movies-grid {
    gap: 10px !important;
  }

  .movies-grid .card-info {
    padding: 8px 6px 6px !important;
    min-height: 60px !important;
  }

  .movies-grid .card-title {
    font-size: 0.85rem !important;
  }

  .movies-grid .card-meta {
    font-size: 0.75rem !important;
    gap: 4px !important;
  }

  .movies-grid .badge-rating {
    font-size: 0.7rem !important;
    padding: 4px 7px !important;
  }

  .movies-grid .badge-type {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }

  .movies-grid .card-fav-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }
}

/* ═══ FIX: Poster aspect ratio pe mobil ═══ */
@media (max-width: 768px) {
  .movies-grid .card-poster {
    aspect-ratio: 2 / 3;
    min-height: auto;
  }

  .movies-grid .movie-card {
    height: auto !important;
  }
}

@media (max-width: 400px) {
  .movies-grid .badge-rating {
    top: 6px !important;
    left: 6px !important;
    font-size: 0.7rem !important;
    padding: 4px 7px !important;
  }

  .movies-grid .badge-type {
    top: 30px !important;
    bottom: auto !important;
    left: 6px !important;
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
}

/* ═══ ALTERNATIVĂ - TOATE PE UN RÂND CENTRAT ═══ */
.filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 20px !important;
}

.filter-tag-group {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

.filter-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.filter-select {
  text-align: center !important;
  text-align-last: center !important;
}

#clearFiltersBtn {
  margin-left: 8px !important;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column !important;
    align-items: center !important;
  }

  .filter-tag-group {
    margin-bottom: 12px !important;
  }

  .filter-group {
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
  }

  #clearFiltersBtn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 8px 0 0 0 !important;
  }
}


/* ═══ STATS GRID - DESKTOP ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* Time watched - rând separat, mai lat */
.stats-grid .stat-card:last-child {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
}

.stats-grid .stat-card:last-child .stat-icon {
  margin-bottom: 0;
}

.stats-grid .stat-card:last-child .stat-value {
  margin-bottom: 0;
}

.stats-grid .stat-card:last-child .stat-label {
  margin-left: 4px;
}

/* ═══ STATS GRID - TABLET ═══ */
@media (max-width: 900px) {
  .stats-grid {
    max-width: 500px;
    gap: 10px;
  }
  
  .stats-grid .stat-card:last-child {
    max-width: 350px;
  }
}

/* ═══ STATS GRID - MOBILE ═══ */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  
  .stats-grid .stat-card {
    padding: 12px 8px;
  }
  
  .stats-grid .stat-card .stat-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
  }
  
  .stats-grid .stat-card .stat-value {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  
  .stats-grid .stat-card .stat-label {
    font-size: 0.65rem;
  }
  
  .stats-grid .stat-card:last-child {
    max-width: 100%;
    padding: 14px 20px;
    gap: 10px;
  }
  
  .stats-grid .stat-card:last-child .stat-value {
    font-size: 1rem;
    white-space: nowrap;
  }
  
  .stats-grid .stat-card:last-child .stat-label {
    font-size: 0.72rem;
  }
}

/* ═══ STATS GRID - VERY SMALL MOBILE ═══ */
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .stats-grid .stat-card {
    padding: 14px 10px;
  }
  
  .stats-grid .stat-card .stat-icon {
    font-size: 1.5rem;
  }
  
  .stats-grid .stat-card .stat-value {
    font-size: 1.3rem;
  }
  
  .stats-grid .stat-card .stat-label {
    font-size: 0.7rem;
  }
  
  .stats-grid .stat-card:last-child {
    padding: 14px 16px;
  }
  
  .stats-grid .stat-card:last-child .stat-value {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════════
   PROFILE SECTION - CENTRAT
   ═══════════════════════════════════════════════ */

#sectionProfile .auth-form {
  margin: 0 auto;
  text-align: center;
}

#sectionProfile .input-group {
  text-align: center;
}

#sectionProfile .input-label {
  text-align: center;
  display: block;
  width: 100%;
}

#sectionProfile .input-field {
  text-align: center;
}

#sectionProfile .input-field::placeholder {
  text-align: center;
}

#sectionProfile .filter-select {
  text-align: center;
  text-align-last: center;
}

#sectionProfile .btn {
  display: flex;
  margin: 16px auto 0;
  justify-content: center;
}

#sectionProfile .input-error-msg {
  text-align: center;
}

/* ═══════════════════════════════════════════════
   PASSWORD SECTION - CENTRAT
   ═══════════════════════════════════════════════ */

#sectionPassword .auth-form {
  margin: 0 auto;
  text-align: center;
}

#sectionPassword .input-group {
  text-align: center;
}

#sectionPassword .input-label {
  text-align: center;
  display: block;
}

#sectionPassword .input-field {
  text-align: center;
}

#sectionPassword .input-field.with-icon {
  text-align: center;
  padding-left: 44px;
  padding-right: 44px;
}

#sectionPassword .btn {
  display: flex;
  margin: 16px auto 0;
  justify-content: center;
}

#sectionPassword .auth-error {
  text-align: center;
}

/* ═══════════════════════════════════════════════
   DELETE SECTION - CENTRAT
   ═══════════════════════════════════════════════ */

#sectionDelete {
  text-align: center;
}

#sectionDelete .confirm-text {
  text-align: center;
  max-width: 400px;
  margin: 0 auto 20px;
}

#sectionDelete .input-group {
  margin: 0 auto 16px;
  text-align: center;
}

#sectionDelete .input-field {
  text-align: center;
}

#sectionDelete .btn {
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   ACCOUNT SECTION TITLES - CENTRAT
   ═══════════════════════════════════════════════ */

.account-section-title {
  justify-content: center;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   MOBILE FIXES
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .account-section {
    padding: 20px 16px;
  }
  
  #sectionProfile .auth-form,
  #sectionPassword .auth-form,
  #sectionDelete .input-group {
    max-width: 100%;
  }
}


/* ══════════════════════════════════════════
   ACCOUNT - AVATAR UPLOAD
   ══════════════════════════════════════════ */

.account-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.account-avatar {
  position: relative;
  overflow: hidden;
}

.account-avatar .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.account-avatar .avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.avatar-upload-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}

.avatar-upload-btn:hover {
  transform: scale(1.1);
  background: var(--primary-light);
}

/* Avatar upload area in form */
.avatar-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}

.avatar-upload-area:hover,
.avatar-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-upload-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.avatar-upload-info .btn.danger {
  color: var(--error) !important;
}

/* Genre chips */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all 0.2s;
  user-select: none;
}

.genre-chip:hover {
  border-color: var(--primary);
  color: var(--text-1);
}

.genre-chip input[type="checkbox"] {
  display: none;
}

.genre-chip:has(input:checked) {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Responsive */
@media (max-width: 480px) {
  .avatar-upload-area {
    flex-direction: column;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   CONTINUE WATCHING - Progress on Movie Cards
   ══════════════════════════════════════════ */

.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

/* Continue watching card - progress badge color */
.continue-watching-card .badge-rating {
  background: rgba(139, 92, 246, 0.9) !important;
}

/* Remove button in overlay */
.continue-remove-btn {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
  font-size: 1rem !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.continue-remove-btn:hover {
  background: rgba(239, 68, 68, 0.4) !important;
}

/* ═══ AUTOCOMPLETE - LIVE TV STYLES ═══ */

.autocomplete-separator {
  padding: 8px 14px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.autocomplete-separator-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.autocomplete-thumb-live {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.autocomplete-thumb-live img {
  object-fit: contain !important;
  padding: 4px;
}

.autocomplete-type-live {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.autocomplete-live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: autocompleteLivePulse 1.5s ease-in-out infinite;
}

@keyframes autocompleteLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.autocomplete-viewall-live {
  border-top: 1px solid rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.autocomplete-viewall-live:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Autocomplete item hover pentru live */
.autocomplete-item[data-type="live"]:hover {
  background: rgba(239, 68, 68, 0.08);
}

.autocomplete-item[data-type="live"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ef4444;
  opacity: 0;
  transition: opacity 0.2s;
}

.autocomplete-item[data-type="live"]:hover::before {
  opacity: 1;
}

/* ═══ ACCOUNT GREETING ═══ */
.account-greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  text-align: center;
}

.greeting-emoji {
  font-size: 2rem;
  animation: greetingWave 2s ease-in-out infinite;
}

.greeting-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes greetingWave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 640px) {
  .account-greeting {
    padding: 16px 20px;
    gap: 10px;
  }
  
  .greeting-emoji {
    font-size: 1.6rem;
  }
  
  .greeting-text {
    font-size: 1.1rem;
  }
}


/* ═══════════════════════════════════════════════
   FOOTER - REDESIGN ESTETIC
   ═══════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.95) 0%, rgba(10, 10, 20, 1) 100%);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-brand .footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-top: 10px;
}

.footer-disclaimer {
  font-size: 0.75rem !important;
  color: var(--text-3) !important;
  opacity: 0.6;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
  margin-left: 8px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-link {
  font-size: 0.85rem;
  color: var(--text-3);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.footer-col-link:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-iptv-link {
  font-size: 0.8rem !important;
  margin-top: 4px;
  opacity: 0.8;
}

.footer-iptv-link:hover {
  opacity: 1;
  color: var(--primary-light);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ═══ FOOTER RESPONSIVE - 2 PE RÂND PE MOBIL ═══ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .footer-brand .header-logo {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 36px 16px 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-col-title {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .footer-col-link {
    font-size: 0.82rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .footer-brand .header-logo {
    margin-bottom: 16px !important;
  }

  /* Footer Legal - forțat centrat */
  .footer-legal,
  .footer-grid .footer-legal {
    text-align: center !important;
    width: 100% !important;
  }

  .footer-legal > .footer-col-title,
  .footer-grid .footer-legal .footer-col-title {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-legal > .footer-col-title::after,
  .footer-grid .footer-legal .footer-col-title::after {
    display: none !important;
  }

  .footer-legal > .footer-col-links,
  .footer-grid .footer-legal .footer-col-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .footer-legal .footer-col-link {
    display: inline-block !important;
    text-align: center !important;
    transform: none !important;
  }

  .footer-legal .footer-col-link:hover {
    transform: none !important;
  }

  /* Footer bottom - pe rânduri separate */
  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* FORCE FOOTER LEGAL CENTER */
@media screen and (max-width: 768px) {
  .footer-legal { text-align: center !important; }
  .footer-legal .footer-col-title { text-align: center !important; display: block !important; }
  .footer-legal .footer-col-title::after { display: none !important; content: none !important; }
  .footer-legal .footer-col-links { align-items: center !important; }
  .footer-legal .footer-col-link { text-align: center !important; }
}

/* ═══════════════════════════════════════════════
   FOOTER LEGAL - COMPLET SEPARAT
   ═══════════════════════════════════════════════ */

.footer-legal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal-link {
  font-size: 0.85rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--primary-light);
}

/* Desktop - cu linie după titlu */
@media (min-width: 769px) {
  .footer-legal-title {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .footer-legal-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
    margin-left: 8px;
  }
}

/* Mobil - totul centrat */
@media (max-width: 768px) {
  .footer-legal {
    text-align: center;
  }

  .footer-legal-title {
    text-align: center;
    display: block;
  }

  .footer-legal-links {
    align-items: center;
  }

  .footer-legal-link {
    text-align: center;
  }
}
/* ═══ FOOTER LEGAL - CENTRAT PE MOBIL ═══ */
@media (max-width: 768px) {
  .footer-grid > .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-grid > .footer-legal .footer-legal-title {
    text-align: center !important;
    width: 100% !important;
  }

  .footer-grid > .footer-legal .footer-legal-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-grid > .footer-legal .footer-legal-links a {
    text-align: center !important;
    width: 100% !important;
  }
}
/* ═══ FOOTER MOBIL - LEGAL CENTRAT PE RÂND SEPARAT ═══ */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 20px !important;
  }
  
  /* Brand - rând complet sus */
  .site-footer .footer-grid .footer-brand {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
  }
  
  .site-footer .footer-grid .footer-brand .header-logo {
    justify-content: center !important;
  }
  
  /* Navigation - stânga, CENTRAT în coloana lui */
  .site-footer .footer-grid > div:nth-child(2) {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-right: 20px !important;
    border-right: 1px solid rgba(139, 92, 246, 0.15) !important;
  }
  
  .site-footer .footer-grid > div:nth-child(2) .footer-col-title {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .site-footer .footer-grid > div:nth-child(2) .footer-col-title::after {
    display: none !important;
  }
  
  .site-footer .footer-grid > div:nth-child(2) .footer-col-links {
    align-items: center !important;
    text-align: center !important;
  }
  
  .site-footer .footer-grid > div:nth-child(2) .footer-col-link {
    text-align: center !important;
  }
  
  /* Account - dreapta, CENTRAT în coloana lui */
  .site-footer .footer-grid > div:nth-child(3) {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 20px !important;
  }
  
  .site-footer .footer-grid > div:nth-child(3) .footer-col-title {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .site-footer .footer-grid > div:nth-child(3) .footer-col-title::after {
    display: none !important;
  }
  
  .site-footer .footer-grid > div:nth-child(3) .footer-col-links {
    align-items: center !important;
    text-align: center !important;
  }
  
  .site-footer .footer-grid > div:nth-child(3) .footer-col-link {
    text-align: center !important;
  }
  
  /* LEGAL - rând complet, TOTUL CENTRAT */
  .site-footer .footer-grid .footer-legal,
  .site-footer .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(139, 92, 246, 0.15) !important;
  }
  
  .site-footer .footer-grid .footer-legal .footer-col-title,
  .site-footer .footer-grid > div:nth-child(4) .footer-col-title {
    text-align: center !important;
    justify-content: center !important;
    width: auto !important;
  }
  
  .site-footer .footer-grid .footer-legal .footer-col-title::after,
  .site-footer .footer-grid > div:nth-child(4) .footer-col-title::after {
    display: none !important;
  }
  
  .site-footer .footer-grid .footer-legal .footer-col-links,
  .site-footer .footer-grid > div:nth-child(4) .footer-col-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: auto !important;
  }
  
  .site-footer .footer-grid .footer-legal .footer-col-link,
  .site-footer .footer-grid > div:nth-child(4) .footer-col-link,
  .site-footer .footer-grid > div:nth-child(4) a {
    text-align: center !important;
    display: block !important;
  }
}

/* ══════════════════════════════════════════════════════
   FOOTER RESPONSIVE - FINAL (singura regulă necesară)
   ══════════════════════════════════════════════════════ */

/* Desktop - 4 coloane */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Tabletă - 2 coloane, brand sus pe tot rândul */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  /* Brand - PRIMUL, rând complet */
  .footer-grid .footer-brand {
    grid-column: 1 / -1;
    order: -10;
    max-width: none;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  }

  .footer-grid .footer-brand .header-logo {
    justify-content: center !important;
  }

  /* Navigation - stânga */
  .footer-grid > div:nth-child(2) {
    order: 1;
    text-align: center;
  }

  .footer-grid > div:nth-child(2) .footer-col-title {
    justify-content: center;
  }

  .footer-grid > div:nth-child(2) .footer-col-title::after {
    display: none;
  }

  .footer-grid > div:nth-child(2) .footer-col-links {
    align-items: center;
  }

  /* Account - dreapta */
  .footer-grid > div:nth-child(3) {
    order: 2;
    text-align: center;
  }

  .footer-grid > div:nth-child(3) .footer-col-title {
    justify-content: center;
  }

  .footer-grid > div:nth-child(3) .footer-col-title::after {
    display: none;
  }

  .footer-grid > div:nth-child(3) .footer-col-links {
    align-items: center;
  }

  /* Legal - ULTIMUL, rând complet */
  .footer-grid .footer-legal {
    grid-column: 1 / -1;
    order: 100;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
  }

  .footer-grid .footer-legal .footer-col-title {
    justify-content: center;
    text-align: center;
  }

  .footer-grid .footer-legal .footer-col-title::after {
    display: none;
  }

  .footer-grid .footer-legal .footer-col-links {
    align-items: center;
  }

  .footer-grid .footer-legal .footer-col-link {
    text-align: center;
  }
}

/* Mobil mic - 1 coloană */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid > div:nth-child(2) {
    order: 1;
  }

  .footer-grid > div:nth-child(3) {
    order: 2;
  }
}

/* ═══ FIX LOGO FOOTER MOBIL - MAI MARE, MAI APROAPE ═══ */
@media (max-width: 900px) {
  .site-footer .footer-inner {
    padding-top: 32px !important;
  }

  .site-footer .footer-grid .footer-brand .logo-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
  }

  .site-footer .footer-grid .footer-brand .logo-text {
    font-size: 1.4rem !important;
    display: inline !important;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-inner {
    padding-top: 24px !important;
  }

  .site-footer .footer-grid .footer-brand .logo-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .site-footer .footer-grid .footer-brand .logo-text {
    font-size: 1.3rem !important;
    display: inline !important;
  }
}

/* ═══ REDUCE SPAȚIU FOOTER TOP ═══ */
@media (max-width: 900px) {
  .site-footer {
    padding-top: 24px !important;
  }
  
  .site-footer .footer-inner {
    padding-top: 16px !important;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding-top: 16px !important;
  }
  
  .site-footer .footer-inner {
    padding-top: 12px !important;
  }
}

/* ═══ FIX FOOTER BRAND DESKTOP - DISCLAIMER VIZIBIL ═══ */
.footer-brand {
  max-width: 350px !important;
}

@media (min-width: 901px) {
  .footer-brand {
    max-width: 400px !important;
    overflow: visible !important;
  }
  
  .footer-brand .footer-disclaimer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
  }
}

/* ═══ FIX CENTRARE GRID - GENRE PAGE ═══ */
.page-content .container {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  display: block !important;
}

#genreGrid.movies-grid,
#genreGrid.movies-grid-lg,
#genreGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  .page-content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  #genreGrid.movies-grid,
  #genreGrid.movies-grid-lg,
  #genreGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .page-content .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  #genreGrid.movies-grid,
  #genreGrid.movies-grid-lg,
  #genreGrid {
    gap: 10px !important;
  }
}

/* ═══ FIX CENTRARE GRID - TV PAGE ═══ */
.page-content .container {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  display: block !important;
}

#tvGrid.movies-grid,
#tvGrid.movies-grid-lg,
#tvGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .page-content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  #tvGrid.movies-grid,
  #tvGrid.movies-grid-lg,
  #tvGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .page-content .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  #tvGrid.movies-grid,
  #tvGrid.movies-grid-lg,
  #tvGrid {
    gap: 10px !important;
  }
}

#typeTabs .filter-tag.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
}

.movies-header-icon {
  margin-bottom: 12px;
  text-align: center;
}

.movies-icon-anim {
  font-size: 2.8rem;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
  animation: moviesPulse 2s ease-in-out infinite;
}

@keyframes moviesPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .movies-icon-anim {
    animation: none !important;
  }
}

/* ═══ FIX CENTRARE GRID - MOVIES PAGE ═══ */
.page-content .container {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  display: block !important;
}

#moviesGrid.movies-grid,
#moviesGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .page-content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  #moviesGrid.movies-grid,
  #moviesGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .page-content .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  #moviesGrid.movies-grid,
  #moviesGrid {
    gap: 10px !important;
  }
}

#typeTabs .filter-tag.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
}

/* ═══ KEYBOARD SHORTCUTS SECTION ═══ */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shortcuts-category {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.shortcuts-category:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.15);
}

.shortcuts-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  gap: 12px;
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-row span {
  font-size: 0.85rem;
  color: var(--text-2);
  flex: 1;
}

.shortcut-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .shortcuts-category {
    padding: 16px;
  }

  .shortcut-row span {
    font-size: 0.82rem;
  }

  .shortcut-row kbd {
    min-width: 32px;
    height: 28px;
    font-size: 0.75rem;
    padding: 0 8px;
  }
}


/* ═══ FIX - SHORTCUTS CENTRATE ═══ */
.shortcuts-grid {
  text-align: center;
}

.shortcuts-category {
  text-align: center;
}

.shortcuts-category-title {
  justify-content: center;
  text-align: center;
}

.shortcut-row {
  justify-content: center;
  gap: 16px;
}

.shortcut-row span {
  flex: none;
  text-align: left;
}

#sectionShortcuts > p {
  text-align: center;
}

#sectionShortcuts .account-section-title {
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .wl-page .container,
  .fav-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.install-app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.install-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}


/* ═══ INSTALL MODAL - MOBIL FIX ═══ */
#install-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

#install-modal .install-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 16px !important;
}

#install-modal .install-dialog {
  background: #1a1a2e !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  max-width: 340px !important;
  width: 100% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  position: relative !important;
  text-align: center !important;
}

@media (max-width: 480px) {
  #install-modal .install-dialog {
    margin: 16px !important;
    padding: 20px !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  #install-modal .install-icon {
    font-size: 2.5rem !important;
  }
  
  #install-modal .install-step {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
  }
}


/* ══════════════════════════════════════════
   PWA NOTCH FIX - COMPLETE
   ══════════════════════════════════════════ */

/* Safe area variables */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* ═══ HTML & BODY - viewport-fit cover ═══ */
/* 
   IMPORTANT: In your HTML <head> you MUST have:
   <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
   Without viewport-fit=cover, env() values will always be 0!
*/

/* ═══ HEADER FIX ═══ */
.site-header {
  /* Extinde header-ul ÎN SPATELE notch-ului */
  top: 0;
  left: 0;
  right: 0;
  /* Înălțimea include zona notch */
  height: calc(var(--header-h) + var(--sat));
  /* Padding-ul INTERN împinge conținutul SUB notch */
  padding-top: var(--sat);
  padding-left: var(--sal);
  padding-right: var(--sar);
  /* Background acoperă TOATĂ zona inclusiv notch */
  background: rgba(0, 0, 0, 0.95);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.98);
}

/* Header inner rămâne la înălțimea normală */
.header-inner {
  height: var(--header-h);
}

/* ═══ PAGE WRAPPER - compensează header-ul mai mare ═══ */
/* ÎNLOCUIEȘTE asta: */
.page-wrapper {
  padding-top: var(--header-h);
}

/* CU asta: */
.page-wrapper {
  padding-top: calc(var(--header-h) + var(--sat));
}

/* ═══ MOBILE NAV DRAWER ═══ */
.mobile-nav {
  top: calc(var(--header-h) + var(--sat));
  margin-top: 0;
  padding-top: 0;
}

/* ═══ PLAYER PAGES ═══ */
.player-back-bar {
  padding-top: calc(var(--sat) + 8px);
  padding-left: calc(var(--sal) + 12px);
  padding-right: calc(var(--sar) + 12px);
}

/* Player fullscreen - respectă notch lateral (landscape) */
.player-container,
.player-page {
  padding-left: var(--sal);
  padding-right: var(--sar);
}

/* ═══ FOOTER ═══ */
.site-footer {
  padding-bottom: calc(var(--sab) + 24px);
  padding-left: calc(var(--sal) + 24px);
  padding-right: calc(var(--sar) + 24px);
}

/* ═══ TOAST ═══ */
.toast-container {
  bottom: calc(var(--sab) + 24px);
}

/* ═══ SCROLL TO TOP ═══ */
.scroll-to-top {
  bottom: calc(var(--sab) + 30px);
  right: calc(var(--sar) + 30px);
}

/* ═══ CONTEXT MENU ═══ */
.context-menu {
  /* Evită să se deschidă în zona notch */
  margin-top: var(--sat);
}

/* ══════════════════════════════════════════
   PWA STANDALONE MODE - Extra fixes
   ══════════════════════════════════════════ */
@media (display-mode: standalone) {
  /* Background negru SOLID în zona notch */




  /* Header - background mai opac în PWA */
  .site-header {
    background: #000000;
    /* Elimină transparența - vrem negru solid sub notch */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.scrolled {
    background: #000000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  /* Pseudo-element care acoperă EXACT zona notch cu negru */
  .site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sat);
    background: #000000;
    z-index: 1;
    pointer-events: none;
  }

  /* Header content peste pseudo-element */
  .header-inner {
    position: relative;
    z-index: 2;
  }


}

/* ══════════════════════════════════════════
   PWA on iOS Safari (fullscreen/standalone)
   ══════════════════════════════════════════ */
@supports (-webkit-touch-callout: none) {
  /* iOS-specific fixes */
  @media (display-mode: standalone) {
    .site-header {
      /* iOS renders notch area - ensure black bg */
      background: #000000 !important;
    }

    /* Prevent rubber-band showing white bg */

  }
}

/* ══════════════════════════════════════════
   LANDSCAPE MODE - Notch lateral
   ══════════════════════════════════════════ */
@media (orientation: landscape) and (display-mode: standalone) {
  .site-header {
    padding-left: var(--sal);
    padding-right: var(--sar);
  }

  .container {
    padding-left: max(24px, var(--sal));
    padding-right: max(24px, var(--sar));
  }

  .container-sm {
    padding-left: max(24px, var(--sal));
    padding-right: max(24px, var(--sar));
  }
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE + PWA COMBINED
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: calc(var(--sab) + 20px);
    right: calc(var(--sar) + 20px);
  }

  .toast-container {
    bottom: calc(var(--sab) + 16px);
  }
}



/* Desktop - totul pe un rând */
.footer-credits {
  text-align: center;
}

.footer-credits-separator,
.footer-credits-separator-inner {
  margin: 0 8px;
  color: var(--text-3);
}

/* Mobil - 2 rânduri */
@media (max-width: 600px) {
  .footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  /* Ascunde separatorul | dintre rândul 1 și rândul 2 */
  .footer-credits > .footer-credits-separator {
    display: none;
  }

  /* Rândul 1: "Made by Denis Casian" */
  .footer-credits-line1 {
    display: block;
  }

  /* Rândul 2: "About Me | Contact Me" */
  .footer-credits-line2 {
    display: block;
  }
}