:root {
  color-scheme: light;
  --ink: #10243a;
  --muted: #52677e;
  --blue: #0065d8;
  --deep: #0e2339;
  --line: #dce6f0;
  --surface: #f4f7fb;
  --white: #fff;
  --container: 78rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: .17rem solid #278bfd;
  outline-offset: .2rem;
}
.container { width: min(calc(100% - 3rem), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 5;
  transform: translateY(-160%);
  padding: .6rem 1rem;
  background: var(--white);
  border-radius: .5rem;
}
.skip-link:focus { transform: none; }

.site-header, .site-footer { background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.header-layout {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: block; width: fit-content; flex-shrink: 0; }
.brand img { height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; align-self: stretch; }
.site-nav a {
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 650;
  font-size: .94rem;
  color: var(--muted);
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: .15rem;
  border-radius: .2rem .2rem 0 0;
  background: currentColor;
}
.site-link {
  white-space: nowrap;
  border-radius: .65rem;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 650;
}
.site-link:hover { color: var(--blue); border-color: #9cc8fa; }

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  margin-block-start: 1.65rem;
  background: var(--deep);
  color: var(--white);
}
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-image {
  background: url("../img/paineis-solares.webp") right 46% / auto max(100%, 32rem) no-repeat;
  inset-inline-start: 37%;
  background-size: cover;
  background-position: 60% 53%;
}
.hero-shade {
  background: linear-gradient(90deg, #0c2137 0%, #0e253e 41%, #112b47e8 55%, #112b4750 78%, #0a203733 100%),
    linear-gradient(0deg, #0a203966, transparent 62%);
}
.hero-content { position: relative; padding: clamp(1.65rem, 4.25vw, 3.6rem); }
.hero-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #d1e6ff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .8rem;
}
.hero-label span { width: 1.2rem; height: .15rem; border-radius: 1rem; background: #6db6ff; }
.hero h1 {
  font-size: clamp(2.55rem, 4.85vw, 4.05rem);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.04;
  margin: 0;
}
.hero-description {
  max-width: 31rem;
  color: #e0ecf8;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  margin: 1.1rem 0 1.5rem;
}
.search-form {
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 36rem;
  padding: .3rem;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 4px 24px #03142842;
}
.search-form > svg { margin-inline-start: .65rem; color: #526b84; flex: 0 0 1.3rem; }
.search-form input {
  width: 100%;
  min-width: 0;
  padding: .55rem .1rem;
  border: 0;
  border-radius: .2rem;
  color: var(--ink);
  background: transparent;
}
.search-form input::placeholder { color: #64778a; opacity: 1; }
.search-form button {
  flex-shrink: 0;
  color: #fff;
  background: var(--blue);
  padding: .68rem 1.2rem;
  border: 0;
  border-radius: .56rem;
  font-weight: 700;
}
.search-form button:hover { background: #0257b7; }
.topics { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 1.05rem; }
.topics span { color: #d1e6fc; font-size: .87rem; margin-right: .35rem; }
.topics button {
  padding: .25rem .63rem;
  border-radius: 1.2rem;
  border: 1px solid #b8d8fc58;
  background: #25578856;
  color: #f1f7ff;
  font-size: .85rem;
}
.topics button:hover { background: #4178aa75; border-color: #b5dcff; }

.catalog-section { padding-block: 2.45rem 3.6rem; scroll-margin-block-start: 1rem; }
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.catalog-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.05rem);
  font-weight: 740;
  letter-spacing: -.043em;
  line-height: 1.15;
}
.catalog-count { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; min-height: 1.47rem; }
.filters {
  flex: 0 0 auto;
  display: flex;
  gap: .22rem;
  border: 1px solid #d8e5f2;
  border-radius: .76rem;
  background: #eaf1f9;
  padding: .25rem;
}
.filters button {
  border: 1px solid transparent;
  padding: .39rem .95rem;
  border-radius: .52rem;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.filters button:hover { color: var(--blue); }
.filters button[aria-pressed="true"] {
  color: #045bbd;
  background: #fff;
  border-color: #dee8f4;
  box-shadow: 0 1px 2px #1c447516;
}
.result-tools { margin: -.45rem 0 1rem; }
.result-tools button {
  padding: .25rem 0;
  color: var(--blue);
  font-weight: 650;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .14rem;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.video-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: .98rem;
  background: #fff;
  box-shadow: 0 3px 12px #1a3d6110;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.video-card:hover { border-color: #b7cfe7; box-shadow: 0 7px 20px #1a3d611b; }
.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(138deg, #122b47, #235077);
  color: #fff;
}
.card-thumb:focus-visible { outline-offset: -.22rem; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb > .thumb-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0d2338e0;
  border: 1px solid #ffffff87;
  opacity: 0;
  transition: opacity .16s ease;
}
.card-thumb:hover .thumb-play, .card-thumb:focus-visible .thumb-play, .card-thumb.unavailable .thumb-play { opacity: 1; }
.kind, .duration {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .27rem;
  border-radius: .38rem;
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .3rem .51rem;
}
.kind { top: .64rem; left: .66rem; background: #f6faff; color: #193e64; }
.kind.live { color: #fff; background: #a71936; }
.duration { right: .66rem; bottom: .58rem; background: #091826eb; color: #fff; font-variant-numeric: tabular-nums; }
.card-body { padding: 1rem 1.05rem 1.06rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; font-weight: 720; line-height: 1.31; overflow-wrap: anywhere; }
.card-body h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .14rem; }
.card-date { display: block; margin: 0 0 .38rem; font-size: .8rem; color: var(--muted); }
.card-summary { color: #455c74; font-size: .94rem; margin: .62rem 0 0; }
.card-bottom { margin-block-start: auto; padding-block-start: .85rem; }
.watch-link { color: #055cba; font-weight: 700; display: inline-flex; align-items: center; gap: .38rem; font-size: .92rem; }
.watch-link:hover { text-decoration: underline; text-underline-offset: .14rem; }
.chapters {
  margin-top: .61rem;
  border-top: 1px solid var(--line);
  padding-top: .65rem;
  font-size: .9rem;
}
.chapters summary { width: fit-content; cursor: pointer; font-weight: 650; color: #284864; }
.chapters summary:hover { color: var(--blue); }
.chapters ol { margin: .55rem 0 0; padding: 0; list-style: none; }
.chapters li + li { margin-top: .35rem; }
.chapters a { display: flex; align-items: baseline; gap: .5rem; }
.chapters a:hover span:last-child { text-decoration: underline; }
.chapter-time, .clip-time {
  display: inline-block;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #055cba;
}
.matches { margin-top: .78rem; display: grid; gap: .4rem; }
.match-label { margin: 0; font-size: .8rem; font-weight: 700; color: #395674; }
.clip {
  display: grid;
  align-items: baseline;
  grid-template-columns: auto 1fr;
  gap: .45rem;
  padding: .45rem .55rem;
  border-radius: .52rem;
  background: #eff6ff;
  border: 1px solid #e0edfc;
  font-size: .86rem;
  color: #284965;
}
.clip:hover { background: #e0eeff; border-color: #afcff1; }
mark { color: inherit; background: #cde3ff; border-radius: .14rem; }
.load-area { display: grid; justify-items: center; margin-top: 1.45rem; }
.load-more {
  padding: .66rem 1.18rem;
  background: #fff;
  border: 1px solid #b9d2ec;
  color: #085dba;
  font-weight: 700;
  border-radius: .64rem;
}
.load-more:hover { background: #eaf3fc; }
.empty-state, .no-script {
  padding: 1.3rem;
  background: #fff;
  border: 1px dashed #bfcee0;
  border-radius: .75rem;
  color: var(--muted);
}
.site-footer { border-top: 1px solid var(--line); }
.footer-layout { min-height: 6.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.footer-layout nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.footer-layout nav a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 61rem) {
  .header-layout { gap: 1rem; }
  .site-nav { gap: 1.3rem; }
  .hero-image { inset-inline-start: 32%; }
  .hero-shade { background: linear-gradient(90deg, #0c2137 0%, #0e253e 40%, #112b47ef 57%, #112b4775 100%); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .container { width: calc(100% - 2rem); }
  .header-layout { min-height: 4.25rem; }
  .site-header .brand img { width: 9.8rem; }
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .88rem; }
  .site-link { display: none; }
  .hero { margin-block-start: 1rem; border-radius: 1rem; }
  .hero-image { inset-inline-start: 0; background-position: 63% 40%; }
  .hero-shade { background: linear-gradient(92deg, #0c2137f7 0%, #0c2137eb 48%, #0e2947ba 100%); }
  .hero-break { display: none; }
  .hero h1 { max-width: 26rem; }
  .catalog-header { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .catalog-section { padding-block-start: 1.75rem; }
  .catalog-grid { gap: .8rem; }
  .footer-layout { align-items: flex-start; flex-direction: column; padding-block: 1.3rem; }
}
@media (max-width: 33rem) {
  .hero h1 { font-size: clamp(2.1rem, 9.7vw, 2.8rem); }
  .search-form { gap: .35rem; }
  .search-form > svg { margin-inline-start: .35rem; flex-basis: 1.05rem; }
  .search-form button { padding-inline: .68rem; }
  .topics span { flex-basis: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 23rem) {
  .site-header .brand img { width: 8.35rem; }
  .site-nav { gap: .65rem; }
  .site-nav a { font-size: .8rem; }
  .search-form > svg { display: none; }
  .search-form input { padding-inline-start: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
