* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0f0f13;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.container {
  width: 100%;
  max-width: 640px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 32px;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

textarea {
  width: 100%;
  padding: 16px;
  background: #1a1a24;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  resize: vertical;
  line-height: 1.5;
  transition: border-color 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #6c5ce7;
}

textarea::placeholder {
  color: #555;
}

button {
  padding: 14px 24px;
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #5a4bd1;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result-section {
  background: #1a1a24;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-label {
  font-size: 13px;
  color: #888;
}

.copy-btn {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 8px;
  background: #2a2a3a;
}

.copy-btn:hover {
  background: #3a3a4a;
}

.copy-btn.copied {
  background: #00b894;
  color: #fff;
}

.link-box {
  background: #0f0f13;
  border-radius: 8px;
  padding: 12px 16px;
  word-break: break-all;
}

.link-box a {
  color: #6c5ce7;
  text-decoration: none;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.link-box a:hover {
  text-decoration: underline;
}

.stream-link {
  margin-top: 0;
}

.stream-link a {
  color: #00b894;
}

.qrcode-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.qrcode-container img {
  border-radius: 8px;
}

.url-types {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
}

.type-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.play-badge {
  background: #6c5ce7;
  color: #fff;
}

.stream-badge {
  background: #00b894;
  color: #fff;
}

.error-section {
  background: #2a1515;
  border: 1px solid #4a2020;
  border-radius: 12px;
  padding: 16px;
  color: #ff6b6b;
  margin-bottom: 24px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}



.hidden {
  display: none;
}

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

@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }
  h1 {
    font-size: 24px;
  }
}
