/* flvto.website styles – layout mirrors the observed classic converter-site
   visual spec (colors/geometry); code is original. */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --dark: #1f2937;
  --text: #202020;
  --border: #e5e7eb;
  --muted: #6b7280;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font: 400 15px 'Nunito', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 780px; margin: 0 auto; }

/* ---------- Header ---------- */
#header_background {
  width: 100%;
  padding: 10px 0;
  background: #433f3e;
}
#header {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
#header > a { display: inline-flex; align-items: center; gap: 8px; }
#brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff; }
#header nav { display: flex; flex-wrap: wrap; }
#header nav a {
  color: #bfbfbf;
  font-size: 15px;
  padding: 14px 15px;
  border-left: 1px solid hsla(0, 0%, 100%, 0.08);
  transition: color 0.2s;
}
#header nav a:hover { color: #fff; }

/* ---------- Converter hero ---------- */
#converter_background {
  width: 100%;
  padding: 26px 10px 40px;
  background-color: #f6f0e9;
}
#converter h1 {
  color: #333;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.lead { text-align: center; max-width: 640px; margin: 0 auto 6px; }

form#convert-form {
  width: 100%;
  height: 58px;
  margin: 18px 0 12px;
  position: relative;
  font-size: 15px;
  border-radius: 16px;
  border: 1px #ddd solid;
  background-color: #fff;
  border-top: 5px solid #ebebeb;
  display: flex;
}
#query {
  color: #0087cf;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  padding: 10px;
  outline: none;
  background: transparent;
  border-radius: 0;
}
#button {
  color: #fff;
  background: linear-gradient(30deg, #dc3545 50%, #9b1871 100%);
  font-size: 15px;
  width: 22%;
  min-width: 130px;
  height: 45px;
  border-radius: 15px;
  margin: 3px;
  cursor: pointer;
  border: 1px solid #dc3545;
  text-transform: uppercase;
  font-weight: 700;
  -webkit-appearance: none;
  transition: filter 0.2s;
}
#button:hover { filter: brightness(1.1); }
#button:disabled { opacity: 0.65; cursor: wait; }

/* ---------- Status / errors ---------- */
#load {
  text-align: center;
  color: var(--muted);
  padding: 18px 0;
}
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.file { border-radius: 16px; padding: 16px 20px; }
#error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; margin: 12px 0; }

/* ---------- Results ---------- */
#results { margin: 10px auto 30px; }
.result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: center;
}
.result .name { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.result .properties { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.result .options { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.result .options a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 120px; height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; color: #fff;
  background: var(--primary); transition: background 0.2s;
  border: none; cursor: pointer;
}
.result .options a:hover { background: var(--primary-dark); }
.result .options a.ghost { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.result .options a.ghost:hover { background: var(--primary); color: #fff; }

/* Converter panel: video info + third-party converter iframe */
#conv-slot {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
#conv-slot .slot-inner {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  flex-wrap: wrap;
}
#conv-slot img { width: 160px; border-radius: 10px; }
#conv-slot .slot-info { flex: 1 1 240px; min-width: 200px; }
#conv-slot .slot-title { font-weight: 700; color: var(--dark); margin-bottom: 4px; }
#conv-slot iframe { border: 1px solid var(--border); border-radius: 10px; margin-top: 12px; }
.conv-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
#conv-slot select, #conv-slot button.dl {
  margin-top: 10px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); padding: 0 16px; font: inherit;
}
#conv-slot button.dl {
  background: var(--primary); color: #fff; border-color: var(--primary);
  font-weight: 700; cursor: pointer;
}

/* ---------- Content sections ---------- */
.home-section { padding: 30px 15px; }
.home-section h2 { color: var(--dark); font-size: 22px; text-align: center; margin-bottom: 18px; }
.steps { max-width: 560px; margin: 0 auto; padding-left: 20px; }
.steps li { margin-bottom: 8px; }

#features { border-top: 1px solid #f0ece6; }
.first_wrap {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center;
}
.col { flex: 1 1 calc(33% - 20px); min-width: 200px; text-align: center; }
.col h3 { color: var(--dark); font-size: 16px; margin-bottom: 6px; }
.col p { color: #555; font-size: 14px; }

.home-faq { max-width: 900px; margin: 20px auto 70px; padding: 0 15px; }
.home-faq h2 { text-align: center; color: var(--dark); margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid #d9dde8; border-radius: 8px; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-list details:hover { background: #f7f8fc; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform 0.3s ease; font-size: 11px; }
.faq-list details[open] .faq-icon { transform: rotate(180deg); }
.faq-content { padding: 0 20px 20px; }
.faq-content p { font-size: 15px; line-height: 1.8; }

/* ---------- Footer ---------- */
footer { background: #1f2937; color: #d1d5db; padding: 36px 15px 26px; text-align: center; }
.footer-inner { max-width: 780px; margin: 0 auto; }
footer .tagline { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
footer p { margin-bottom: 8px; font-size: 14px; }
footer .legal { color: #9ca3af; font-size: 12.5px; margin-top: 16px; }

/* ---------- Video player (Play button) ---------- */
#player { margin-top: 16px; }
#player iframe { width: 100%; max-width: 560px; height: 315px; border: 0; border-radius: 10px; }

@media (max-width: 768px) {
  #converter h1 { font-size: 26px; }
  #query { width: 100%; }
  #button { width: 100%; min-width: 0; margin: 4px 3px 3px; }
  form#convert-form { height: auto; flex-wrap: wrap; }
}
