body {
    background-color: #111323;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
  }

  main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }

  h1, h2 {
    font-weight: 400;
    color: #a6b4ff;
    border-left: 4px solid #4a5aff;
    padding-left: 10px;
    margin-top: 40px;
  }
  h1 {
    font-size: 1.8em;
    margin-top: 10px;
  }

  /* 🔹 Grade Responsiva */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }

  @media (min-width: 1200px) {
    .grid {
      grid-template-columns: repeat(6, 1fr);
    }
  }
  @media (max-width: 991px) {
    .grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 480px) {
    .grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* 🔹 Card padrão */
  .card {
    background: #1c1e35;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(81, 101, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s;
    text-decoration: none;
    color: #fff;
    position: relative;
    aspect-ratio: 2 / 3;
    display: block;
  }

  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(81, 101, 255, 0.7);
  }

  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(10,12,18,0) 0%, rgba(10,12,18,0.9) 80%);
  }

  .card-overlay h3 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 0 4px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-overlay span {
    font-size: 0.8rem;
    color: #ccc;
  }

  /* 🔹 Paginação */
  .pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pagination a, .pagination span {
    text-decoration: none;
    color: #fff;
    padding: 6px 12px;
    background: #1c1e35;
    border-radius: 6px;
    font-weight: 300;
    transition: background .2s;
  }
  .pagination a:hover {
    background: #515aff;
  }
  .pagination .current {
    background: #515aff;
  }

  :root {
    --card-w: 220px;
  }

  /* Carrossel */
  .carrossel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
  }

  .carrossel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #515aff #1c1e35;
    padding-left: 12px;
    padding-right: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carrossel::-webkit-scrollbar {
    height: 8px;
  }
  .carrossel::-webkit-scrollbar-thumb {
    background: #515aff;
    border-radius: 10px;
  }
  .carrossel::-webkit-scrollbar-track {
    background: #1c1e35;
  }

  .carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17,19,35,.85);
    border: none;
    color: #a6b4ff;
    font-size: 22px;
    padding: 10px 12px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    backdrop-filter: blur(3px);
  }
  .carrossel-btn:hover {
    background: rgba(81,101,255,.9);
    color: #fff;
  }
  .carrossel-btn.prev { left: 10px; }
  .carrossel-btn.next { right: 10px; }

  @media (max-width: 768px) {
    .carrossel-btn { display: none; }
  }

  .serie-card {
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    aspect-ratio: 2 / 3;
    background: #1c1e35;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    transition: transform .3s ease, box-shadow .3s ease;
    scroll-snap-align: start;
  }
  .serie-card:hover {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(81,101,255,.6);
  }
  .serie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .serie-rank {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
    font-size: 90px;
    font-weight: 200;
    color: transparent;
    -webkit-text-stroke: 1.5px #4a5aff;
    opacity: .4;
    z-index: 2;
    pointer-events: none;
  }

  .serie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(17,19,35,.9) 100%);
  }
  .serie-info h3 {
    font-size: 13px;
    margin: 0;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .serie-info span {
    font-size: 12px;
    color: #c8c8d4;
    font-weight: 200;
  }

  @media (max-width: 480px) {
    :root {
      --card-w: calc((100vw - (12px * 3)) / 2.5);
    }
  }