body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Mobile: Simple white background to avoid gradient glitches */
@media (max-width: 768px) {
  body {
    background: white;
  }
  
  body::before,
  body::after {
    display: none;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Floating musical notes */
body::after {
  content: '♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 24px;
  color: rgba(255,255,255,0.1);
  line-height: 2;
  letter-spacing: 50px;
  word-spacing: 100px;
  animation: drift 30s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes drift {
  0% { transform: translateX(-100px) translateY(0px); }
  100% { transform: translateX(100vw) translateY(-100px); }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 2.2em;
  letter-spacing: -0.5px;
}

.website-url {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.description {
  text-align: center;
  color: #5a6c7d;
  font-size: 16px;
  margin-bottom: 35px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.instructions {
  padding: 15px;
  margin-top: 20px;
}

.instructions h3 {
  margin-top: 0;
  color: #333;
}

.instructions ol {
  margin: 10px 0;
  padding-left: 20px;
}

.instructions li {
  margin: 5px 0;
  color: #555;
}

.demo-section {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
}

.demo-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.video-container {
  margin: 20px 0;
  text-align: center;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.controls {
  margin-bottom: 30px;
}

.time-control {
  margin-bottom: 25px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #bbdefb;
}

.time-control label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-control input {
  width: 100px;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: white;
}

.time-control input:focus {
  outline: none;
  border-color: #007bff;
}

.settings-control {
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #ffccbc;
}

.setting-row {
  margin-bottom: 15px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.voice-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .voice-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .voice-select {
    max-width: none;
  }
  
  .test-voice-btn {
    width: 100%;
    text-align: center;
  }
}

.voice-select {
  flex: 1;
  max-width: 300px;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
}

.voice-select:focus {
  outline: none;
  border-color: #007bff;
}

.test-voice-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #007bff;
  border-radius: 6px;
  background: white;
  color: #007bff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.test-voice-btn:hover:not(:disabled) {
  background: #007bff;
  color: white;
}

.test-voice-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notes-control {
  margin-bottom: 25px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #c8e6c9;
}

.notes-control > label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
}

.note-row {
  margin-bottom: 15px;
  padding: 12px;
  background-color: white;
  border-radius: 6px;
  border: 2px solid #e8f5e8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.note-row:last-child {
  margin-bottom: 0;
}

.row-label {
  font-weight: 600;
  margin-bottom: 12px;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
  font-weight: 600;
  min-height: 40px;
}

.checkbox-label:hover {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2196f3;
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.start-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.start-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.start-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stop-btn {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
  color: white;
}

.stop-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.stop-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.display {
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin-top: 30px;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.current-note {
  font-size: 72px;
  font-weight: 700;
  color: #212529;
  animation: pulse 0.5s ease-in-out;
  font-family: 'Arial Black', 'Helvetica Neue', Helvetica, sans-serif;
  letter-spacing: -2px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-top: 3px solid #3498db;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-text strong {
  color: #3498db;
  font-size: 16px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accept-btn {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
}

.accept-btn:hover {
  background: linear-gradient(135deg, #229954 0%, #28b463 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.decline-btn {
  background: transparent;
  color: #bdc3c7;
  border: 1px solid #7f8c8d;
}

.decline-btn:hover {
  background: rgba(127, 140, 141, 0.1);
  color: #95a5a6;
  transform: none;
  box-shadow: none;
}

/* Mobile responsiveness for cookie consent */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 120px;
  }
}
