* { box-sizing: border-box; margin: 0; padding: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: .75rem;
  background: #ffffff;
  color: #0f1117;
  border: 2px solid #4f7cff;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.skip-link:focus { left: .75rem; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #8fb0ff;
  outline-offset: 2px;
}
main { width: 100%; display: flex; flex-direction: column; align-items: center; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1117;
  color: #e6e8ee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 2rem;
}
header.site {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #2a2e3a;
  margin-bottom: 1.5rem;
}
header.site .logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e6e8ee;
  text-decoration: none;
}
nav.site a {
  color: #9aa0ae;
  text-decoration: none;
  font-size: .9rem;
  margin-left: 1rem;
}
nav.site a:hover, nav.site a.active { color: #4f7cff; }
h1 { font-size: 1.5rem; margin-bottom: .5rem; }
p.sub { color: #9aa0ae; margin-bottom: 1.5rem; font-size: .95rem; text-align: center; }
.card {
  width: 100%;
  max-width: 720px;
  background: #181b23;
  border: 1px solid #2a2e3a;
  border-radius: 12px;
  padding: 1.5rem;
}
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
input[type="url"] {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid #2a2e3a;
  background: #0f1117;
  color: #e6e8ee;
  font-size: 1rem;
  outline: none;
}
input[type="url"]:focus { border-color: #4f7cff; }
button {
  padding: .75rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: #4f7cff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #3d66e0; }
button:disabled { background: #333846; cursor: not-allowed; }
.status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.status.testing { display: block; background: #2a2a15; color: #e8d44d; }
.status.ok { display: block; background: #12301c; color: #4ade80; }
.status.fail { display: block; background: #341418; color: #f87171; }
video {
  margin-top: 1rem;
  width: 100%;
  border-radius: 8px;
  background: #000;
  display: none;
  max-height: 420px;
}
.embed {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  display: none;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.meta { margin-top: .5rem; color: #9aa0ae; font-size: .9rem; display: none; }
.hint { margin-top: .75rem; color: #9aa0ae; font-size: .85rem; line-height: 1.4; }
.badges { margin-top: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #23283a;
  color: #aab4d4;
}
/* Páginas de conteúdo */
article {
  width: 100%;
  max-width: 720px;
  line-height: 1.7;
}
article h1 { margin-bottom: 1rem; }
article h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: #cdd3e0; }
article p, article li { color: #b8bdc9; margin-bottom: .75rem; font-size: .97rem; }
article ul, article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
article a { color: #4f7cff; }
article code {
  background: #23283a;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .9em;
}
.card-list {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 1rem;
}
.card-list a.item {
  display: block;
  background: #181b23;
  border: 1px solid #2a2e3a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: #e6e8ee;
}
.card-list a.item:hover { border-color: #4f7cff; }
.card-list a.item h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.card-list a.item p { color: #9aa0ae; font-size: .9rem; margin: 0; }
footer.site {
  width: 100%;
  max-width: 720px;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2e3a;
  color: #6b7280;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
footer.site a { color: #9aa0ae; text-decoration: none; margin-right: 1rem; }
footer.site a:hover { color: #4f7cff; }
