* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #080608;
  color: #f5f5f7;
  font: 16px Arial, Helvetica, sans-serif;
}

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

header {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 8px 3%;
  background: linear-gradient(110deg, #10090c, #080608);
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #29252b;
}

.logo {
  display: block;
  width: 270px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.logo img {
  display: block;
  width: 100%;
}

.logo span,
.logo:first-letter {
  color: #ef1836;
}

.logo b {
  font-size: 13px;
  background: #d7102c;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 600;
  white-space: nowrap;
}

nav a:hover {
  color: #ff3850;
}

nav svg {
  width: 24px;
  height: 24px;
}

nav a.selected {
  background: linear-gradient(#e9000c, #a60008);
  border-color: #ff5b57;
  box-shadow: 0 0 18px #ff00194d;
  color: white;
}

.search {
  margin-left: auto;
}

input,
textarea,
select {
  background: #1b1b23;
  color: white;
  border: 1px solid #41414b;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  max-width: 100%;
}

.search input {
  background: #080608;
  border-radius: 18px;
  padding: 10px 16px;
  min-width: 150px;
  width: 100%;
}

main {
  max-width: 1600px;
  margin: auto;
  padding: 0 2.1% 24px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 410px;
  margin: 0 -2.2% 14px;
  padding: 28px 6%;
  background-color: #080608;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: right center;
  border-radius: 0;
}

.hero > div {
  position: relative;
  max-width: 510px;
}

.hero > div:first-child {
  max-width: 48%;
}

.hero h1 {
  margin: 14px 0;
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -2px;
  text-shadow: 0 3px 15px #000;
}

.hero h1 em {
  color: #ff1020;
  font-style: italic;
}

.tag {
  padding: 7px 12px;
  background: linear-gradient(#e6000b, #a50009);
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

p {
  color: #c9c7cf;
  line-height: 1.6;
}

.hero p {
  color: white;
  line-height: 1.35;
}

button,
.button {
  display: inline-block;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: #df1230;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #fa2844;
}

.button {
  background: linear-gradient(#ff101e, #ce000b);
  border: 1px solid #ff6666;
  box-shadow: 0 0 20px #ff001b33;
}

.hero button {
  background: #222b;
  border: 1px solid #777;
}

.hero button:not(.arrow) {
  border-radius: 10px;
}

.hero .arrow {
  position: absolute;
  top: 45%;
  background: transparent;
  border: 0;
  padding: 10px;
  font-size: 26px;
}

.prev {
  left: 4px;
}

.next {
  right: 4px;
}

.hero .dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 7px;
}

.hero .dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: #777;
  border: 0;
  border-radius: 20px;
}

.hero .dots .on {
  width: 24px;
  background: #ff101b;
}

h2 {
  margin: 22px 0 15px;
  padding-left: 12px;
  border-left: 6px solid #f20b1d;
  font-size: 26px;
}

.catalog-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-row .rail {
  flex: 1;
  min-width: 0;
}

.catalog-row .ad {
  flex: 0 0 300px;
}

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x mandatory;
}

.poster {
  position: relative;
  display: block;
  flex: 0 0 clamp(125px, 12vw, 185px);
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  border: 1px solid #8e4433;
  border-radius: 13px;
  overflow: hidden;
  background: #16090a;
  transition: transform .2s;
}

.poster:hover {
  transform: translateY(-2px);
  border-color: #ff3030;
}

.poster img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
  background: #25252d;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(transparent, #100000ee);
  pointer-events: none;
}

.poster strong,
.poster small {
  position: absolute;
  z-index: 1;
  left: 5px;
  right: 5px;
  text-align: center;
}

.poster strong {
  bottom: 35px;
  font: 700 clamp(15px, 1.5vw, 23px) / 1.05 Georgia, serif;
  text-shadow: 0 2px 4px black;
}

.poster small {
  bottom: 9px;
  left: 12%;
  right: 12%;
  background: #ad0010;
  border-radius: 20px;
  color: white;
  font-size: 11px;
  padding: 5px;
  text-transform: uppercase;
}

.chips {
  display: none;
  gap: 10px;
  overflow: auto;
}

.chips a {
  background: #202029;
  border-radius: 8px;
  padding: 12px;
  white-space: nowrap;
}

.episodes {
  display: grid;
  gap: 10px;
}

.episode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px;
  background: #100d10;
  border: 1px solid #444;
  border-radius: 8px;
  white-space: normal;
}

.episode img {
  width: 110px;
  height: 64px;
  object-fit: cover;
  border-radius: 7px;
}

.episode span {
  flex: 1;
}

.episode i {
  padding: 10px;
  background: #ed0012;
  border-radius: 50%;
  color: white;
  font-style: normal;
}

.episode.active {
  border-color: #f10a1d;
}

video {
  width: 100%;
  max-height: 75vh;
  background: black;
  border-radius: 12px;
}

.watch main {
  max-width: 850px;
}

.watch video {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.watch h1 {
  font-size: 26px;
}

.watch h2 {
  font-size: 22px;
}

footer {
  padding: 30px 4%;
  color: #999;
  border-top: 1px solid #29252b;
}

.panel {
  margin: 20px 0;
  padding: 20px;
  background: #14141c;
  border: 1px solid #30303b;
  border-radius: 12px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fields label {
  display: grid;
  gap: 8px;
}

.wide {
  grid-column: 1 / -1;
}

.adminrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.adminrow img {
  width: 55px;
  height: 78px;
  object-fit: cover;
}

.adminrow strong {
  flex: 1;
}

.notice {
  padding: 12px;
  background: #29232a;
  border-radius: 8px;
}

.ad {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 10px auto;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
}

.ad small {
  color: #999;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad iframe {
  display: block;
  flex: none;
  max-width: 100%;
  border: 0;
}

.social {
  width: 100%;
  max-width: 960px;
  margin: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.social iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social.tiktok,
.social.instagram {
  max-width: 420px;
  max-height: 760px;
  aspect-ratio: 9 / 16;
}

@media (max-width: 1150px) {
  header {
    gap: 10px;
  }

  .logo {
    width: 200px;
  }

  nav {
    gap: 3px;
  }

  nav a {
    padding: 10px 8px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  header {
    gap: 6px;
    padding: 6px 12px;
  }

  .logo {
    width: 180px;
  }

  .search,
  .search input {
    min-width: 0;
  }

  nav {
    order: 3;
    justify-content: space-between;
    gap: 3px;
    overflow-x: auto;
  }

  nav a {
    flex-direction: column;
    gap: 4px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 11px;
  }

  nav svg {
    width: 20px;
    height: 20px;
  }

  main {
    padding: 0 10px 20px;
  }

  /* Banner mobile. A primeira linha mantém a proporção 1024 × 500. */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin: 0 0 10px;
    padding: 0 0 32px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    background-color: #fff;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    box-shadow: none;
    color: #211327;
  }

  .hero::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1024 / 500;
    pointer-events: none;
  }

  .hero > div:first-child {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 12px 14px 4px;
    background: #fff;
    color: #211327;
  }

  .hero h1 {
    margin: 8px 0;
    font-size: clamp(25px, 7vw, 40px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-shadow: none;
    overflow-wrap: anywhere;
  }

  .hero p {
    margin: 0 0 8px;
    color: #493b4d;
    font-size: 14px;
  }

  .hero .tag {
    display: inline-block;
    max-width: 100%;
    padding: 5px 9px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .hero .button,
  .hero button:not(.arrow) {
    min-height: 40px;
    max-width: 100%;
    padding: 8px clamp(7px, 2.4vw, 12px);
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.15;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
  }

  .hero .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero > div:first-child button:not(.arrow) {
    background: #352c38;
    color: #fff;
  }

  .hero .arrow {
    top: 24.4cqw;
    z-index: 1;
    transform: translateY(-50%);
    padding: 7px 10px;
    border-radius: 50%;
    background: rgb(0 0 0 / 35%);
    color: #fff;
    font-size: 19px;
  }

  .hero .dots {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    max-width: none;
  }

  .hero .dots button {
    min-height: 0;
    width: 11px;
    height: 11px;
    padding: 0;
    background: #88818a;
    border-radius: 20px;
  }

  .hero .dots .on {
    width: 24px;
    background: #f7a600;
  }

  .catalog-row {
    display: block;
  }

  .catalog-row .ad {
    margin: 12px auto;
  }

  .poster {
    flex-basis: 135px;
  }

  .poster strong {
    font-size: 17px;
  }

  h2 {
    font-size: 22px;
  }

  .watch main {
    padding: 0 12px 20px;
  }
}

@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    font-size: 14px;
  }

  .search {
    flex: 1;
  }

  .logo {
    font-size: 18px;
  }

  .logo b {
    font-size: 10px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }
}

@media (max-width: 340px) {
  .ad iframe {
    max-width: none;
    transform: scale(.88);
    transform-origin: center;
  }
}