body {
  background: radial-gradient(circle at top, #2a2a2a 0%, #0a0a0a 60%, #000 100%) !important;
  min-height: 100vh;
}

/* Titre */
.tv-title {
  letter-spacing: 0.3em;
  background: linear-gradient(135deg, #fff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* TV générale */
.tv-wrapper {
  position: relative;
  border-radius: 2rem;
  padding: 1.2rem;
  background: radial-gradient(circle at top left, #707070 0%, #404040 40%, #1a1a1a 100%);
  box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.8),
      inset 0 0 0 3px rgba(0, 0, 0, 0.6);
  margin-top: 3.5rem;
}

.tv-body {
  border-radius: 1.8rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #5a5a5a, #2f2f2f);
  border: 3px solid rgba(0, 0, 0, 0.5);
}

/* Écran */
.tv-screen {
  border-radius: 1.6rem;
  padding: 1rem;
  background: radial-gradient(circle at top left, #888 0%, #444 40%, #1a1a1a 100%);
  box-shadow:
      inset 0 0 0 3px rgba(0, 0, 0, 0.8),
      0 8px 16px rgba(0, 0, 0, 0.7);
}

.tv-screen-inner {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #000;
  height: 0;
  padding-bottom: 56.25%;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.95);
}

/* Neige télé */
.tv-static {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90'%3E%3Crect width='160' height='90' fill='%23000'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%23fff'/%3E%3Ccircle cx='40' cy='30' r='1' fill='%23ccc'/%3E%3Ccircle cx='80' cy='50' r='1' fill='%23eee'/%3E%3Ccircle cx='120' cy='20' r='1' fill='%23bbb'/%3E%3Ccircle cx='150' cy='70' r='1' fill='%23ddd'/%3E%3C/svg%3E");
  background-size: 30px 30px;
  animation: static-noise 0.2s steps(2) infinite;
}

@keyframes static-noise {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 3px); }
  50% { transform: translate(3px, -4px); }
  75% { transform: translate(-2px, 2px); }
  100% { transform: translate(0, 0); }
}

/* Iframe vidéo */
.tv-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Texte overlay */
.tv-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  text-align: center;
  color: #00ff9c;
  text-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
  font-weight: 500;
}

/* Contrôles TV */
.tv-controls {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
}

/* Bouton rotatif */
.tv-knob {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5f5f5, #888);
  box-shadow:
      0 5px 12px rgba(0, 0, 0, 0.8),
      inset 0 0 0 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.tv-knob:hover {
  transform: scale(1.05);
}

.tv-knob-inner {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: #444;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* LEDs */
.tv-leds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tv-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #400;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.tv-led.on {
  background: #2ecc71;
  box-shadow: 0 0 12px #2ecc71, inset 0 0 4px rgba(255, 255, 255, 0.3);
}

.tv-led-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #ccc;
  margin-top: 2px;
}

/* Statut */
.tv-status {
  font-size: 0.9rem;
  color: #ddd;
  min-width: 200px;
}

.tv-status-url {
  max-width: 280px;
  color: #aaa;
}

/* Antennes */
.tv-antenna {
  position: absolute;
  bottom: 92%;
  width: 5px;
  height: 100px;
  background: linear-gradient(180deg, #e0e0e0, #888);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  transform-origin: bottom center;
}

.tv-antenna::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #999);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.tv-antenna-left {
  left: 28%;
  transform: rotate(-20deg);
}

.tv-antenna-right {
  right: 28%;
  transform: rotate(20deg);
}

/* Télécommande */
.remote-wrapper {
  max-width: 280px;
  width: 100%;
}

.remote-body {
  border-radius: 3rem 3rem 6rem 6rem;
  padding: 2.5rem 1.8rem 3rem;
  background: linear-gradient(145deg, #2a2a2a, #0f0f0f);
  box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.9),
      inset 0 2px 0 rgba(255, 255, 255, 0.05),
      inset 0 -2px 8px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  position: relative;
}

.remote-body::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: radial-gradient(circle, #1a1a1a, #000);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
}

.remote-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
}

.remote-brand {
  font-family: "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  color: #888;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.remote-label {
  font-size: 0.65rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bouton principal */
.btn-remote-main {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  box-shadow:
      0 4px 12px rgba(220, 20, 60, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 3px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-remote-main:hover {
  transform: translateY(-2px);
  box-shadow:
      0 6px 16px rgba(220, 20, 60, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 0 3px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff1744 0%, #a50000 100%);
}

.btn-remote-main:active {
  transform: translateY(0px);
  box-shadow:
      0 2px 8px rgba(220, 20, 60, 0.5),
      inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Sections */
.remote-section {
  padding: 0.5rem 0;
}

/* Pavé numérique */
.remote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0;
}

.remote-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #1a1a1a);
  box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 2px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  font-weight: 700;
  color: #ddd;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.remote-btn:hover {
  background: radial-gradient(circle at 35% 35%, #4a4a4a, #2a2a2a);
  box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 0 2px rgba(0, 0, 0, 0.5),
      0 0 8px rgba(255, 255, 255, 0.1);
  color: #fff;
}

.remote-btn:active {
  transform: translateY(2px);
  box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.8),
      inset 0 2px 4px rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 35% 35%, #2a2a2a, #0a0a0a);
}

.remote-btn-special {
  font-size: 0.85rem;
}

/* Boutons volume */
.remote-btn-round {
  border-radius: 1.5rem;
  border: none;
  background: radial-gradient(circle at 35% 35%, #3a3a3a, #1a1a1a);
  box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 2px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  color: #bbb;
  cursor: pointer;
  transition: all 0.1s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.remote-btn-round:hover {
  background: radial-gradient(circle at 35% 35%, #4a4a4a, #2a2a2a);
  box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 2px rgba(0, 0, 0, 0.5),
      0 0 8px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.remote-btn-round:active {
  transform: translateY(2px);
  box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.8),
      inset 0 2px 4px rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 35% 35%, #2a2a2a, #0a0a0a);
}

.remote-btn-round svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

/* Modal */
.modal-content {
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-gradient {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(240, 101, 149, 0.4);
  transition: all 0.2s ease;
}

.btn-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 101, 149, 0.5);
}

/* Responsive */
@media (max-width: 1199px) {
  .tv-wrapper {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .tv-antenna {
    height: 70px;
  }
  
  .tv-antenna-left {
    left: 30%;
    transform: rotate(-16deg);
  }
  
  .tv-antenna-right {
    right: 30%;
    transform: rotate(16deg);
  }
  
  .remote-wrapper {
    max-width: 100%;
  }
  
  .tv-status-url {
    max-width: 180px;
  }
}

#flag-text {
  color: #ffffff;
  font-weight: 600;
}