:root {
  --bg-primary: #050814;
  --bg-secondary: #090e1f;
  --bg-card: rgba(13, 20, 38, 0.55);
  --bg-card-hover: rgba(20, 32, 58, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 242, 254, 0.35);
  --cyan-bright: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.4);
  --purple-neon: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.4);
  --emerald-success: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber-alert: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% 0%, #0c142b 0%, #050814 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.orb-1 {
  top: -60px;
  left: 5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--cyan-bright), transparent 70%);
}

.orb-2 {
  top: 30%;
  right: -50px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--purple-neon), transparent 70%);
}

.orb-3 {
  bottom: 8%;
  left: 15%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--emerald-success), transparent 70%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 8, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1240px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
  display: block;
}

.brand-logo.sm {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-label-short {
  display: none;
}

.tg-label-full {
  display: inline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 114, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.55);
}

.btn-glass-nav {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass-nav:hover {
  background: rgba(0, 242, 254, 0.22);
  border-color: rgba(0, 242, 254, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.btn-ghost-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Main Content Layout */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--cyan-bright); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-align: center;
}

.title-primary {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
}

.title-highlight {
  font-size: clamp(22px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
}

.gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 34px;
}

/* Downloader Console Card */
.downloader-card {
  width: 100%;
  max-width: 860px;
  background: linear-gradient(180deg, rgba(12, 20, 39, 0.88) 0%, rgba(8, 14, 28, 0.96) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.12);
  text-align: left;
  transition: border-color 0.3s ease;
}

.downloader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.detected-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detected-platform .platform-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detected-platform.detected {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 11.5px;
  font-weight: 600;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-success);
  flex-shrink: 0;
}

.status-indicator.live {
  box-shadow: 0 0 8px var(--emerald-success);
}

/* Input Form */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(6, 11, 23, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: all 0.25s ease;
  min-height: 48px;
}

.input-wrapper:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  background: rgba(8, 15, 30, 0.95);
}

.input-icon {
  display: flex;
  align-items: center;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14.5px;
  padding: 10px 8px;
  width: 100%;
  min-width: 0;
}

.url-input::placeholder {
  color: #64748b;
  font-size: 13.5px;
}

.btn-input-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-input-action:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--cyan-bright);
  color: #ffffff;
}

.btn-input-action:active {
  transform: scale(0.96);
}

.btn-clear {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 10px;
  background: transparent;
  border: none;
}

.btn-clear:hover {
  color: #ff5e57;
  background: rgba(255, 94, 87, 0.1);
}

.form-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.control-label svg {
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.format-select {
  background-color: rgba(6, 11, 23, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 11px 36px 11px 14px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  transition: all 0.2s ease;
}

.format-select:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}

.btn-download-main {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050b16;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  min-height: 48px;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.55);
  background: linear-gradient(135deg, #38f9d7 0%, #4facfe 100%);
}

.btn-download-main:active {
  transform: scale(0.98);
}

/* Quick Try Row */
.quick-try-row {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-try-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  flex-shrink: 0;
}

.quick-try-label svg {
  color: var(--cyan-bright);
}

.sample-chips-container {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-tiktok { background: #00f2fe; box-shadow: 0 0 6px #00f2fe; }
.dot-youtube { background: #ff0000; box-shadow: 0 0 6px #ff0000; }
.dot-instagram { background: #e1306c; box-shadow: 0 0 6px #e1306c; }
.dot-facebook { background: #1877f2; box-shadow: 0 0 6px #1877f2; }
.dot-twitter { background: #1da1f2; box-shadow: 0 0 6px #1da1f2; }
.dot-soundcloud { background: #ff5500; box-shadow: 0 0 6px #ff5500; }

.sample-chip:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.sample-chip:active {
  transform: scale(0.96);
}

/* Loading & Status States */
.status-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--cyan-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan-bright);
}

.status-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Error State */
.error-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.error-icon {
  font-size: 20px;
}

.error-title {
  font-weight: 600;
  font-size: 14px;
  color: #f87171;
}

.error-message {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Result Card */
.result-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .result-card {
    grid-template-columns: 1fr;
  }
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #060a17;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.result-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail-wrapper:hover .result-thumbnail {
  transform: scale(1.02);
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.9);
  color: #050b16;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #38f9d7;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.9), 0 6px 16px rgba(0, 0, 0, 0.6);
}

.play-overlay-btn svg {
  margin-left: 3px;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.preview-player-wrapper {
  width: 100%;
  margin-top: 10px;
}

.player-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 20, 39, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.player-label {
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  gap: 5px;
}

.player-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-stream-status {
  color: var(--emerald-success);
  font-family: var(--font-mono);
  font-size: 10.5px;
  transition: color 0.2s ease;
}

.player-stream-status.playing {
  color: #38f9d7;
  animation: pulseStatus 1.5s infinite;
}

.btn-close-player {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-close-player:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fff;
  transform: scale(1.05);
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.preview-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.25);
  background: #000;
  object-fit: contain;
}

.player-action-box {
  margin: 6px 0 10px;
}

.btn-play-stream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.2) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--cyan-bright);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.btn-play-stream:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(79, 172, 254, 0.35) 100%);
  border-color: var(--cyan-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

.btn-play-stream.playing {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.25) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.tag-platform {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.tag-quality {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-author {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.result-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.player-toggle-bar {
  margin: 4px 0 8px;
}

.btn-preview-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-preview-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.download-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn-stream-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stream-video {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #fff;
}

.btn-stream-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4);
}

.btn-stream-audio {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
}

.btn-stream-audio:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.btn-stream-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-stream-copy:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.btn-stream-dl.btn-downloading {
  opacity: 0.9;
  cursor: wait;
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

.btn-stream-dl.btn-download-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5) !important;
}

.spinner-icon {
  animation: spin 0.9s linear infinite;
  display: inline-block;
}

.download-hint-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.download-hint-bar svg {
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.download-hint-bar strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Sections General */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan-bright);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Category Filters */
.category-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.5);
  color: var(--cyan-bright);
}

/* Platforms Grid */
.platforms-section {
  padding: 80px 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.platform-badge-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.platform-card-title {
  font-size: 16px;
  font-weight: 700;
}

.platform-card-features {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.platform-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.platform-card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-card-try {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-try:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
}

/* Ecosystem Section */
.ecosystem-section {
  padding: 80px 0;
}

.ecosystem-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.pill-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.pill-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-neon);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Support & Developer Command Center (Full Glass Touch UI) */
.support-dev-section {
  padding: 50px 0 80px;
}

.support-glass-container {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(13, 22, 44, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.1);
  position: relative;
  overflow: hidden;
}

.support-glass-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), rgba(139, 92, 246, 0.6), transparent);
}

.support-dev-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dev-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.dev-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--cyan-bright);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.35);
  display: block;
}

.status-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  border: 3px solid #0b1329;
  box-shadow: 0 0 10px #10b981;
}

.dev-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dev-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-bright);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.dev-fullname {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-top: 2px;
}

.dev-handle-tag code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cyan-bright);
  background: rgba(0, 242, 254, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.dev-statement {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.5;
}

/* Support Channels Touch Grid */
.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.channel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.channel-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 242, 254, 0.12);
}

.channel-card:hover::after {
  opacity: 1;
}

.channel-card:active {
  transform: scale(0.985);
}

.channel-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-color {
  background: rgba(0, 136, 204, 0.18);
  color: #0088cc;
  border: 1px solid rgba(0, 136, 204, 0.35);
  box-shadow: 0 0 14px rgba(0, 136, 204, 0.2);
}

.wa-color {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.2);
}

.mail-color {
  background: rgba(234, 67, 53, 0.16);
  color: #ea4335;
  border: 1px solid rgba(234, 67, 53, 0.35);
  box-shadow: 0 0 14px rgba(234, 67, 53, 0.2);
}

.fb-color {
  background: rgba(24, 119, 242, 0.18);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.35);
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.2);
}

.channel-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.channel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-badge {
  font-size: 10px;
  font-weight: 600;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 4px;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.badge-mail {
  background: rgba(234, 67, 53, 0.15);
  color: #f87171;
  border: 1px solid rgba(234, 67, 53, 0.3);
}

.badge-fb {
  background: rgba(24, 119, 242, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(24, 119, 242, 0.3);
}

/* Touch Glass Action Buttons */
.btn-touch-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-touch-glass:hover {
  transform: translateY(-1px);
}

.btn-touch-glass:active {
  transform: scale(0.96);
}

.btn-tg-touch:hover {
  background: rgba(0, 136, 204, 0.3);
  border-color: #0088cc;
  box-shadow: 0 0 16px rgba(0, 136, 204, 0.4);
}

.btn-wa-touch:hover {
  background: rgba(37, 211, 102, 0.3);
  border-color: #25d366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.4);
}

.btn-mail-touch:hover {
  background: rgba(234, 67, 53, 0.3);
  border-color: #ea4335;
  box-shadow: 0 0 16px rgba(234, 67, 53, 0.4);
}

.btn-fb-touch:hover {
  background: rgba(24, 119, 242, 0.3);
  border-color: #1877f2;
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.4);
}

/* Direct Instant Email Message Composer Box */
.direct-mail-box {
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.mail-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
}

.mail-box-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 0.8px;
}

.mail-box-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.mail-composer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mail-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mail-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mail-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mail-input-wrapper {
  background: rgba(6, 10, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mail-input-wrapper:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.mail-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  font-family: var(--font-main);
  outline: none;
}

.mail-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  font-family: var(--font-main);
  outline: none;
  resize: vertical;
  min-height: 70px;
}

.mail-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.mail-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.btn-mail-submit {
  padding: 9px 20px;
  font-size: 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Glass Ripple Touch Animation */
.glass-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(139, 92, 246, 0.2) 60%, transparent 80%);
  pointer-events: none;
  transform: scale(0);
  animation: glassRippleEffect 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 5;
}

@keyframes glassRippleEffect {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.support-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
  flex-wrap: wrap;
}

.support-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.support-guarantee svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 10, 23, 0.95);
  padding: 60px 24px 30px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN & MEASUREMENT CALIBRATION
   ============================================================ */

/* Large Tablets & Desktops (min-width: 900px) */
@media (min-width: 900px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .ecosystem-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Large Tablets & Small Desktops (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .ecosystem-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .ecosystem-card {
    padding: 24px 20px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    font-size: 13px;
  }
}

/* Medium Tablets & Foldables (641px - 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .main-content {
    padding: 30px 20px 60px;
  }
  .downloader-card {
    padding: 24px 20px;
  }
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ecosystem-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .result-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .download-action-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .btn-stream-dl {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Phones (<= 640px) - Precision Measurement for Native Mobile View */
@media (max-width: 640px) {
  .navbar {
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-container {
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
  }
  .brand-text {
    gap: 5px;
    min-width: 0;
  }
  .brand-name {
    font-size: 13.5px;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .brand-tag {
    font-size: 7.5px;
    padding: 1px 4px;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .nav-actions .btn {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 7px;
    gap: 4px;
    white-space: nowrap;
  }
  .nav-actions .btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  /* Main Layout & Hero */
  .main-content {
    padding: 18px 12px 50px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-section {
    padding: 12px 0 24px;
  }
  .hero-badge {
    font-size: 9px;
    padding: 4px 10px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }
  .hero-title {
    margin-bottom: 12px;
    gap: 4px;
  }
  .title-primary {
    font-size: 24px;
    line-height: 1.2;
  }
  .title-highlight {
    font-size: 21px;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  /* Downloader Card */
  .downloader-card {
    padding: 18px 14px;
    border-radius: 18px;
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 242, 254, 0.12);
  }
  .downloader-header {
    margin-bottom: 14px;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
  }
  .detected-platform {
    font-size: 11px;
    padding: 4px 8px;
    gap: 5px;
    border-radius: 100px;
  }
  .api-status-pill {
    font-size: 10.5px;
    padding: 4px 8px;
    gap: 5px;
    border-radius: 100px;
  }

  /* Input Form */
  .input-wrapper {
    padding: 4px 6px 4px 10px;
    border-radius: 12px;
    min-height: 48px;
  }
  .input-icon {
    padding-left: 0;
  }
  .input-icon svg {
    width: 18px;
    height: 18px;
  }
  .url-input {
    font-size: 13.5px;
    padding: 10px 8px;
  }
  .btn-input-action {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* Form Controls */
  .form-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 15px;
  }
  .control-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .control-label {
    font-size: 12.5px;
  }
  .format-select {
    width: 100%;
    padding: 12px 34px 12px 14px;
    font-size: 13.5px;
    border-radius: 10px;
  }
  .btn-download-main {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
  }

  /* Quick Try Samples */
  .quick-try-row {
    margin-top: 16px;
    padding-top: 14px;
    gap: 8px;
  }
  .quick-try-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 11.5px;
  }
  .sample-chips-container {
    gap: 6px;
    width: 100%;
  }
  .sample-chip {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Result Preview Card */
  .result-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
    border-radius: 14px;
  }
  .result-title {
    font-size: 14.5px;
    line-height: 1.35;
  }
  .tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .download-action-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .btn-stream-dl {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* 21 Serviced Platforms Section (2-Column Micro-Grid) */
  .platforms-section {
    padding: 45px 0 35px;
  }
  .section-header {
    margin-bottom: 22px;
  }
  .section-badge {
    font-size: 9.5px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .section-title {
    font-size: 23px;
    margin-bottom: 8px;
  }
  .section-desc {
    font-size: 13px;
    line-height: 1.45;
  }
  .category-filters {
    gap: 6px;
    margin-top: 14px;
  }
  .filter-btn {
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 14px;
  }
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .platform-card {
    padding: 11px 9px;
    border-radius: 12px;
    min-height: 114px;
  }
  .platform-card-header {
    margin-bottom: 4px;
  }
  .platform-card-title {
    font-size: 12.5px;
    font-weight: 700;
  }
  .platform-badge-circle {
    width: 7px;
    height: 7px;
  }
  .platform-card-features {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .platform-card-footer {
    padding-top: 6px;
  }
  .platform-card-cat {
    font-size: 8.5px;
  }
  .btn-card-try {
    font-size: 9.5px;
    padding: 3px 6px;
    border-radius: 6px;
  }

  /* Ecosystem Cards */
  .ecosystem-section {
    padding: 40px 0;
  }
  .ecosystem-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ecosystem-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .card-top {
    margin-bottom: 14px;
  }
  .icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .icon-bubble svg {
    width: 22px;
    height: 22px;
  }
  .card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .card-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .feature-list {
    font-size: 12.5px;
    gap: 8px;
    margin-bottom: 20px;
  }

  /* Support & Developer Command Center Mobile */
  .support-dev-section {
    padding: 25px 0 50px;
  }
  .support-glass-container {
    padding: 24px 16px 20px;
    border-radius: 20px;
  }
  .support-dev-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-bottom: 22px;
  }
  .dev-avatar-img {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 16px;
  }
  .dev-role-badge {
    margin: 0 auto;
    font-size: 10px;
  }
  .dev-fullname {
    font-size: 22px;
  }
  .dev-handle-tag {
    font-size: 12.5px;
  }
  .dev-statement {
    font-size: 13px;
    line-height: 1.5;
  }
  .support-channels-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0;
  }
  .channel-card {
    padding: 14px 16px;
  }
  .channel-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .channel-title {
    font-size: 13.5px;
  }
  .btn-touch-glass {
    padding: 7px 12px;
    font-size: 11.5px;
  }

  /* Direct Mail Box Mobile */
  .direct-mail-box {
    padding: 16px 14px;
    margin: 14px 0 22px;
    border-radius: 14px;
  }
  .mail-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .mail-box-hint {
    font-size: 11px;
  }
  .mail-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mail-form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-mail-submit {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
  }
  .mail-security-note {
    justify-content: center;
  }

  .support-footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .support-guarantee {
    font-size: 12px;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 40px 14px 24px;
  }
  .footer-container {
    flex-direction: column;
    gap: 28px;
  }
  .footer-links {
    gap: 28px;
  }
  .footer-bottom {
    margin-top: 28px;
    font-size: 11px;
  }
}
