/* ============================================
   MP3Juice.blog - Modern Redesign CSS
   Inspired by mp3juices.cool
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --green: #22c55e;
  --green-hover: #16a34a;
  --red: #ef4444;
  --orange: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 720px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  min-height: 100vh;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navbar --- */
#nav {
  position: relative;
  z-index: 1000;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

#nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#nav a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* --- Dropdown Navigation --- */
.sl-nav {
  display: inline-flex;
  align-items: center;
  position: relative;
}

@media (min-width: 480px) {
  .sl-nav:last-child {
    margin-left: auto;
  }
}

.sl-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: inline-block;
}

.sl-nav li {
  position: relative;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sl-nav li:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.sl-nav li b {
  font-weight: 600;
}

.sl-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #1e293b !important;
  min-width: 170px;
  padding: 6px;
  z-index: 99999 !important;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
}

@media (max-width: 480px) {
  .sl-nav > ul > li ul:last-child {
      right: auto;
      left: 0;
  }
}

.sl-nav li:hover ul {
  display: block;
}

.triangle {
  display: none !important;
}

.sl-nav li ul li {
  padding: 0;
  margin: 2px 0;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  list-style: none;
  background: none;
  text-align: left;
}

.sl-nav li ul li a {
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 8px 14px !important;
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
  background: transparent !important;
}

.sl-nav li ul li:hover,
.sl-nav li ul li:hover a {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #ffffff !important;
}

.sl-nav li ul li:last-of-type {
  padding-bottom: 0;
}

.sl-nav li ul li span {
  padding-left: 6px;
}

/* --- Content Container --- */
#content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Logo --- */
#content #logo {
  border: none;
  margin: 40px auto 20px;
  display: block;
  max-width: 200px;
  filter: brightness(1.1);
  transition: var(--transition);
}

#content #logo:hover {
  filter: brightness(1.3);
  transform: scale(1.02);
}

/* --- Hero Input (Search Section) --- */
.hero-input {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.hero-input p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.hero-input p a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* --- Search Form --- */
.hero-input-Search {
  position: relative;
  z-index: 101;
}

form {
  background: transparent;
  width: 100%;
  margin: 0;
  position: relative;
}

.hero-input-Search #query {
  width: 100%;
  height: 52px;
  padding: 0 60px 0 20px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.hero-input-Search #query::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

.hero-input-Search #query:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: rgba(15, 23, 42, 0.9);
}

.hero-input-Search #button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-input-Search #button:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.05);
}

.hero-input-Search #button:active {
  transform: translateY(-50%) scale(0.95);
}

/* --- Suggestions Dropdown --- */
#suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: none;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

#suggestions span {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  background: #1e293b;
}

#suggestions span:last-child {
  border-bottom: none;
}

#suggestions span:hover,
#suggestions span.active {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #ffffff !important;
  font-weight: 500;
}

/* --- Loading Spinner --- */
#load {
  display: none;
  margin: 40px auto;
  text-align: center;
}

#load .fa-spinner {
  font-size: 36px;
  color: var(--accent);
}

/* --- Results Section --- */
#results {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
  margin: 30px auto 0;
  animation: fadeInUp 0.4s ease-out;
}

#results > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

#results > p a {
  color: var(--accent);
}

/* --- Result Card --- */
.result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  text-align: left;
  transition: var(--transition);
  animation: fadeInUp 0.3s ease-out;
}

.result:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.result-body {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.result-thumb-box {
  position: relative;
  width: 110px;
  min-width: 110px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.result-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.result:hover .result-thumb-box img {
  transform: scale(1.05);
}

.result-duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.result-details {
  flex: 1;
  min-width: 0;
}

.result .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  line-height: 1.4;
}

.result .properties {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.prop-badge.accent {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.25);
  background: var(--accent-light);
}

.result .options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.result .options a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.result .options a.download {
  background: var(--accent);
  color: #fff;
}

.result .options a.download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.result .options a.download.active {
  background: var(--text-muted);
  color: #fff;
}

.result .options a.player {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.result .options a.player:hover {
  background: var(--border-hover);
  border-color: var(--border-hover);
}

.result .options a.player.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* --- Inline Video Player Container --- */
.player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 14px 0;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Download File Panel --- */
.file {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--text-primary);
  animation: fadeInUp 0.3s ease-out;
  margin-top: 12px;
  box-shadow: var(--shadow-md);
}

.file .name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.file .progress {
  margin: 10px auto 16px;
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.file .progress a {
  color: var(--accent);
}

.download-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.btn-mp3 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-mp3:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-mp4 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.btn-mp4:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
}

.share-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.share-btn:hover {
  color: #fff;
  background: var(--border-hover);
}

.share-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.share-btn.tw:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: #fff;
}

.share-btn.wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.file .options {
  display: none;
  margin-top: 16px;
}

.file .options a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-full);
  text-decoration: none;
  margin: 4px;
  transition: var(--transition);
}

.file .options a:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.file .options a i {
  font-size: 14px;
}

.file .options hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.file .show {
  display: block;
}

/* --- Download Button Styles (from main1.js) --- */
.download-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--accent) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  text-decoration: none !important;
  margin: 6px !important;
  transition: var(--transition);
  cursor: pointer;
}

.download-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* --- Cloud Providers --- */
.file .cloud {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
  display: none;
}

.file .providers a,
.providers a {
  display: block;
  padding: 10px 16px;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
}

.file .providers a:hover,
.providers a:hover {
  background: var(--accent);
  color: #fff;
}

.file .providers a:last-child {
  margin-bottom: 0;
}

.file .providers a i {
  font-size: 16px;
  margin-right: 6px;
}

.file .provider_progress {
  margin: 16px auto;
  color: var(--text-secondary);
  font-size: 14px;
}

.file .provider_option {
  display: none;
}

.file .provider_option a {
  color: #fff;
  background: var(--bg-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  display: inline-block;
}

/* --- Text Content Section --- */
#text {
  text-align: left;
  width: 100%;
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

#text h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: var(--text-primary);
  line-height: 1.3;
}

#text h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

#text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 14px;
}

#text p:first-of-type {
  margin-top: 0;
}

#text ol,
#text ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

#text li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

#text li strong {
  color: var(--text-primary);
}

#text a:link,
#text a:visited {
  color: var(--accent);
}

#text a:hover {
  text-decoration: underline;
}

/* --- Error Section --- */
#error {
  text-align: center;
  margin: 40px auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

#error a {
  color: var(--accent);
}

/* --- Footer --- */
#footer {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

#footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#footer a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* --- Misc --- */
.clear {
  clear: both;
}

.margin {
  margin-bottom: 12px;
}

.frameme {
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* --- Service Tabs (TikTok / Instagram) --- */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  justify-content: center;
  gap: 8px;
}

.service-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.service-tabs a img {
  width: 16px;
  height: 16px;
}

.service-tabs a:hover {
  background: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.service-tabs a.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* --- Control Sources --- */
#control_sources {
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  margin-top: 12px;
  padding: 8px 16px;
  display: inline-block;
  font-size: 13px;
  transition: var(--transition);
}

#control_sources:hover {
  background: var(--border-hover);
}

#sources {
  width: 50%;
  margin: 12px auto 0;
  display: none;
}

#sources a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  padding: 8px 0;
  display: block;
}

#sources .enabled {
  background: var(--accent);
}

#sources .disabled {
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

#form_text {
  font-size: 12px;
  color: var(--text-muted);
}

#form_text a:link,
#form_text a:visited {
  color: var(--text-secondary);
}

/* --- Player Embed --- */
.file.margin iframe {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* --- Download Ad Buttons (legacy support) --- */
.download-iklan1 {
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  width: 80%;
  max-width: 280px;
  height: 50px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  line-height: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.download-iklan1:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* --- Desktop Only --- */
.desktop-only {
  display: none !important;
}

@media (min-width: 1024px) {
  .desktop-only {
    display: inline-flex !important;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- Selection --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* --- Mobile (default) --- */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  #nav {
    padding: 12px 16px;
    gap: 4px;
  }

  #nav a {
    font-size: 13px;
    padding: 4px 8px;
  }

  #content {
    padding: 0 16px;
  }

  #content #logo {
    max-width: 150px;
    margin-top: 24px;
  }

  .hero-input {
    padding: 20px 16px 16px;
    border-radius: var(--radius-md);
  }

  .hero-input-Search #query {
    height: 48px;
    font-size: 14px;
    padding-right: 52px;
    padding-left: 16px;
  }

  .hero-input-Search #button {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .result {
    padding: 14px;
  }

  .result-body {
    gap: 10px;
  }

  .result-thumb-box {
    width: 86px;
    min-width: 86px;
    height: 50px;
  }

  .result .name {
    font-size: 14px;
  }

  .result .options a {
    padding: 7px 14px;
    font-size: 12px;
  }

  .download-action-group {
    flex-direction: column;
  }

  .download-action-group .download-btn {
    width: 100%;
    justify-content: center;
  }

  #text {
    padding: 16px;
    margin-top: 24px;
  }

  #text h1 {
    font-size: 20px;
  }

  #text h3 {
    font-size: 16px;
  }

  #footer {
    margin-top: 24px;
    padding: 16px;
  }

  #footer a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .frameme {
    height: 250px;
  }

  #sources {
    width: 80%;
  }
}

/* --- Tablet --- */
@media (min-width: 481px) and (max-width: 768px) {
  #content #logo {
    max-width: 180px;
  }

  .hero-input {
    padding: 24px 20px 18px;
  }
}

/* --- Desktop --- */
@media (min-width: 769px) {
  body {
    font-size: 15px;
  }

  #content #logo {
    margin-top: 50px;
    margin-bottom: 24px;
  }

  .hero-input {
    padding: 32px 28px 24px;
  }

  .hero-input-Search #query {
    height: 56px;
    font-size: 16px;
  }

  .hero-input-Search #button {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .result {
    padding: 18px 20px;
  }

  #text {
    padding: 32px;
  }
}
