/* Modern Custom Design Palette & General Rules */
:root {
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --bg-primary: #090810;
  --bg-panel: rgba(20, 18, 36, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);

  --accent-color: #8a2be2;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --accent-hover: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);

  --color-text-main: #f3f1f8;
  --color-text-muted: #9f9cb5;

  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Background Animated Gradient Orbs */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}
.shape-1 {
  width: 500px;
  height: 500px;
  background: #a855f7;
  top: -150px;
  left: -150px;
}
.shape-2 {
  width: 600px;
  height: 600px;
  background: #6366f1;
  bottom: -200px;
  right: -100px;
}
.shape-3 {
  width: 400px;
  height: 400px;
  background: #ec4899;
  top: 30%;
  left: 60%;
  opacity: 0.12;
}

/* App Layout Grid Structure */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.logo-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #a855f7;
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0.5;
  top: -5px;
  left: -5px;
}
.brand-icon {
  font-size: 28px;
  color: #c084fc;
  z-index: 1;
}
.brand h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.brand h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-config {
  display: flex;
  align-items: center;
  gap: 15px;
}

.input-group-header {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 10px;
}
.input-icon-header {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-right: 8px;
}
.input-group-header input {
  background: transparent;
  border: none;
  color: var(--color-text-main);
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  width: 140px;
  transition: width 0.3s;
}
.input-group-header input:focus {
  width: 180px;
}
.input-group-header button {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.input-group-header button:hover {
  color: var(--color-text-main);
}

.api-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 13px;
  font-weight: 500;
}
.api-status-badge.online {
  color: #34d399;
}
.api-status-badge.offline {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* Glassmorphic Panel Structure */
.glass {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Workspace layout */
.app-workspace {
  display: flex;
  gap: 20px;
  flex: 1;
}

.workspace-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.left-col {
  width: 42%;
}
.right-col {
  width: 58%;
}

.panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

/* Search Panel Elements */
.search-box-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 4px;
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-text-muted);
}
.search-box-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 12px 12px 45px;
  color: var(--color-text-main);
  outline: none;
  font-family: var(--font-main);
  font-size: 15px;
}
.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.quick-filters {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.filter-tab:hover, .filter-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-tab.active {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

/* Results Panel Grid */
.results-panel {
  flex: 1;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.results-count {
  font-size: 13px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}

/* Media Cards in Grid */
.media-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.media-card:hover .poster-overlay {
  opacity: 1;
}

.poster-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.media-card:hover .poster-img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.overlay-icon {
  font-size: 40px;
  color: white;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8));
}

.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(168, 85, 247, 0.8);
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(5px);
  text-transform: uppercase;
}

.media-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.media-info h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}
.media-info p {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Details Panel (Right Col) */
.details-panel {
  min-height: 480px;
  max-height: 520px;
  overflow-y: auto;
}

.details-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  height: 100%;
  color: var(--color-text-muted);
  gap: 15px;
}
.details-empty ion-icon {
  font-size: 50px;
}
.details-empty h3 {
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
}

.details-header-card {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.details-poster {
  width: 110px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.details-meta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.media-type-badge {
  font-size: 10px;
  font-weight: 700;
  color: #c084fc;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.details-meta-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.details-meta-info .subtext {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.meta-row {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.meta-item.rating {
  color: #fbbf24;
}

.details-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.genre-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.details-section {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
}
.details-section h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.synopsis-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: justify;
}
.meta-credits {
  font-size: 13px;
  color: var(--color-text-muted);
}
.meta-credits strong {
  color: var(--color-text-main);
}

/* Seasons & Episodes Selector */
.seasons-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.season-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.season-tab:hover, .season-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.season-tab.active {
  border-color: #a855f7;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}
.episode-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 8px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}
.episode-btn:hover, .episode-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* Servers list rows */
.servers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}
.server-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.server-name-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-logo {
  font-size: 20px;
  color: #c084fc;
}
.server-info {
  display: flex;
  flex-direction: column;
}
.server-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: capitalize;
}
.server-lang {
  font-size: 11px;
  color: var(--color-text-muted);
}

.server-actions {
  display: flex;
  gap: 8px;
}
.btn-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.btn-action.resolve:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-action.download {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}
.btn-action.download:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Downloads task lists */
.downloads-panel {
  flex: 1;
  max-height: calc(100vh - 590px);
  overflow-y: auto;
}
.downloads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.btn-icon {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.btn-icon:hover {
  color: var(--danger-color);
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.downloads-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  color: var(--color-text-muted);
  gap: 8px;
  font-size: 13px;
}
.downloads-empty ion-icon {
  font-size: 32px;
  opacity: 0.5;
}

/* Download Task Card */
.download-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
}
.download-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.download-title-group {
  display: flex;
  flex-direction: column;
  max-width: 65%;
}
.download-card-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-card-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Status badges */
.status-pill {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pill.queued {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}
.status-pill.preparing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}
.status-pill.downloading {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
.status-pill.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}
.status-pill.failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar-wrapper {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
.progress-percent {
  font-size: 12px;
  font-weight: 600;
  width: 32px;
  text-align: right;
}

.download-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 8px;
}

.btn-download-file {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}
.btn-download-file:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Loading animations & states */
.loading-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 15px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Player Styles */
.video-player-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.5s ease-out;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

#player-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.btn-close-player {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.btn-close-player:hover {
  background: var(--danger-color);
  transform: rotate(90deg);
}

.player-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.player-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: black;
}

/* Latino Highlight Styles & Video Player UI Customizations */
.server-row.latino-highlight {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.04);
}

.server-row.latino-highlight:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.6);
}

.latino-badge {
  font-size: 9px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 700;
  border: 1px solid rgba(168, 85, 247, 0.3);
  text-transform: uppercase;
}

.latino-icon {
  color: #c084fc;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5));
}

.btn-action.play {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.btn-action.play:hover {
  background: rgba(168, 85, 247, 0.4);
  color: white;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Provider Selector Custom Styles */
.search-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 15px;
}

.search-header-row h2 {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.provider-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.provider-select-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.provider-select-wrapper .select-icon {
  font-size: 14px;
  color: #c084fc;
}

.provider-select-wrapper select {
  background: transparent;
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  padding-right: 5px;
}

.provider-select-wrapper select option {
  background: #180c2e;
  color: white;
}

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

/* Tablets: apilar columnas */
@media (max-width: 1024px) {
  .app-workspace {
    flex-direction: column;
  }
  .left-col, .right-col {
    width: 100%;
  }
  .results-panel {
    max-height: 55vh;
  }
  .details-panel {
    max-height: none;
  }
  .downloads-panel {
    max-height: 45vh;
  }
}

/* Móviles: reorganizar todo */
@media (max-width: 768px) {
  .app-container {
    padding: 10px;
  }
  .app-header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    text-align: center;
  }
  .brand h1 {
    font-size: 18px;
  }
  .panel {
    padding: 16px;
    border-radius: 16px;
  }
  .search-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-box-wrapper {
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
  }
  .search-box-wrapper input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 12px 12px 40px;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .quick-filters {
    flex-wrap: wrap;
  }
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
  .details-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .details-poster {
    width: 150px;
  }
  .details-meta-info {
    align-items: center;
  }
  .meta-row {
    justify-content: center;
  }
  .details-genres {
    justify-content: center;
  }
  .server-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .server-name-group {
    justify-content: center;
  }
  .server-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .server-actions .btn-action {
    justify-content: center;
    width: 100%;
  }
  .download-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .download-title-group {
    max-width: 100%;
  }
  .progress-container {
    gap: 8px;
  }
  .video-player-container {
    margin-bottom: 16px;
  }
  .player-header {
    padding: 10px 12px;
  }
  #player-title {
    font-size: 11px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .filter-tab {
    padding: 6px 14px;
    font-size: 12px;
    flex: 1;
    text-align: center;
  }
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 5px;
  }
  .season-tab {
    padding: 5px 10px;
    font-size: 11px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .brand-icon {
    font-size: 24px;
  }
  .details-meta-info h3 {
    font-size: 18px;
  }
  .server-actions {
    grid-template-columns: 1fr;
  }
  .btn-action {
    font-size: 12px;
    padding: 8px;
  }
  .synopsis-text {
    font-size: 12px;
  }
}
