:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa8bd;
  --accent: #6ee7b7;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --gap: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(12, 15, 22, 0.9), rgba(7, 9, 13, 0.9)),
    radial-gradient(600px 300px at 10% 10%, rgba(110, 231, 183, 0.06), transparent 10%),
    radial-gradient(500px 250px at 90% 90%, rgba(99, 102, 241, 0.04), transparent 10%),
    var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #07202b;
  box-shadow: 0 6px 20px rgba(6, 10, 20, 0.6);
  font-size: 20px;
}

h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 999px;
  min-width: 260px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.search input {
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  font-size: 14px;
  width: 220px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}

.filter-btn.active {
  border-color: rgba(110, 231, 183, 0.25);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(6, 10, 20, 0.5)
}

.btn_painel {
  background-color: #c02525;
  border: 1px solid rgba(212, 28, 28, 0.04);
  padding: 7px 7px;
  border-radius: 10px;
  color: #fefefe;
  font-size: 13px;
  text-decoration: none;
}

.btn_painel:hover {
  background-color: #7e1717;
}

main {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.7)
}

.thumb {
  position: relative;
  padding-top: 56.25%;
  background: #061019;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--accent)
}

.card-body {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  flex: 1
}

.title {
  font-size: 15px;
  margin: 0 0 4px 0
}

.meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.tag {
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted)
}

.desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  flex: 1
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.btn {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  color: #032025;
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

/* overlay player */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.85));
  z-index: 1200;
  padding: 24px;
}

.overlay.open {
  display: flex
}

.player {
  width: min(1100px, 95%);
  background: #071022;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.85);
  display: flex;
  flex-direction: column;
}

.player header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02)
}

.player iframe {
  width: 100%;
  height: 560px;
  border: 0;
  background: black
}

.player .info {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px
}

/* empty / helper */
.empty {
  padding: 40px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
  text-align: center;
  color: var(--muted)
}

/* responsive */
@media (max-width:720px) {
  .player iframe {
    height: 300px
  }

  .search input {
    width: 120px
  }

  .brand h1 {
    font-size: 16px
  }
}