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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

:root {
  --bg: #001e38;
  --surface: #0a3050;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #5a8aaa;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* HEADER */
.header {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}

.logo-programa {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.logo-imersao {
  display: flex;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-nativa-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-nativa {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-line-mini {
  width: 24px;
  height: 1px;
  background: linear-gradient(to right, #0090be, #ffcb15, #ee7820);
}

/* Logo colors */
.li { color: #7080d4; }
.lm { color: #0090be; }
.le { color: #36c551; }
.lr { color: #90c838; }
.ls { color: #ffcb15; }
.la { color: #f5a800; }
.lo { color: #ee7820; }

/* PAGE HEADER (index) */
.page-header {
  padding: 48px 40px 36px;
  border-bottom: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
}

/* CATEGORY BANNER LIST */
.category-list {
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.cat-banner {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 88px;
  gap: 20px;
  transition: background 0.1s;
}

.cat-banner:hover {
  background: var(--surface);
}

.cat-accent {
  width: 4px;
  height: 40px;
  background: var(--accent, #666);
  flex-shrink: 0;
}

.cat-info {
  flex: 1;
  min-width: 0;
}

.cat-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cat-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.cat-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cat-count {
  font-size: 13px;
  color: var(--muted);
}

.cat-arrow {
  font-size: 20px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1;
}

/* CATEGORY PAGE HEADER */
.cat-page-header {
  padding: 36px 40px 32px;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.1s;
}

.back-link:hover {
  color: var(--text);
}

.cat-page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cat-page-title span {
  color: var(--accent, #fff);
}

.cat-page-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

/* CHANNEL LIST */
.channel-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.channel-entry {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.channel-entry:last-child {
  border-bottom: none;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 620px;
}

/* THUMBNAIL */
.channel-thumb {
  display: block;
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface);
}

.channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.channel-thumb:hover img {
  opacity: 0.85;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn svg {
  width: 48px;
  height: 48px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  opacity: 0.9;
}

.channel-thumb:hover .play-btn svg {
  opacity: 1;
}

.channel-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}

.channel-link:hover {
  color: var(--text);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .header { padding: 0 20px; }
  .page-header { padding: 32px 20px 24px; }
  .cat-banner { padding: 0 20px; height: 76px; }
  .cat-desc { display: none; }
  .cat-page-header { padding: 24px 20px 20px; }
  .channel-list { padding: 0 20px; }
  .page-header h1 { font-size: 22px; }
  .cat-page-title { font-size: 20px; }
  .footer { padding: 20px; }
}
