* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #141414;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, #141414 0%, transparent 100%);
    padding: 20px 60px;
    transition: background 0.3s;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    width: 180px; /* 🔥 muda aqui do jeito que quiser */
    height: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a.active {
    font-weight: 700;
}

.header-right {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-btn, .notifications-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 1550px;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.50);
    animation: heroBannerDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroBannerDrift {
    from { transform: scale(1.1) translateX(2.5%); }
    to { transform: scale(1.16) translateX(-2.5%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(10deg, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0.8) 25%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 25%;
    left: 160px;
    max-width: 800px;
    z-index: 1;
}

.hero-logo {
    width: 500px;
    max-width: 80%;
    margin-bottom: -30px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(29, 108, 255, 0.473);
    backdrop-filter: blur(2px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.hero-description {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-play, .btn-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.btn-play { background: #fff; color: #141414; }
.btn-info { background: rgba(109,109,110,0.7); color: #fff; }

.btn-mute {
    background: rgba(0, 0, 0, 0.164);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    padding: 0 60px;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

/* ================= ROW ================= */
.row {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden; /* 🔥 segura seta */
}

.row-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ================= CARDS ================= */
.row-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.row-cards::-webkit-scrollbar {
    display: none;
}

.card {
    position: relative;

    flex: 0 0 auto;

    width: 280px;
    min-width: 280px;
    max-width: 280px;

    aspect-ratio: 16 / 9;

    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity .35s ease,
        filter .35s ease;

    animation: cardFadeIn .55s ease both;
}

@keyframes cardFadeIn {
    from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ================= HOVER (SÓ PC) ================= */
@media (hover: hover) and (pointer: fine) {

.card:hover {
    transform: scale(1.2);
    z-index: 50;
    opacity: .92;
}

.card-hover {
    position: absolute;
    bottom: -120px;
    left: 0;
    width: 100%;
    background: #181818;
    padding: 12px;
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.card:hover .card-hover {
    opacity: 1;
    visibility: visible;
}

/* não bloqueia clique */
.card-hover {
    pointer-events: none;
}

}

/* ================= SETAS ================= */
.scroll-btn {
    position: absolute;
    top: 45px; /* 🔥 começa depois do título */
    bottom: 0; /* 🔥 limita até os cards */
    width: 55px;

    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;

    background: transparent; /* 🔥 sem borrão padrão */

    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.scroll-btn.right { right: 0; }
.scroll-btn.left { left: 0; }

.row:hover .scroll-btn {
    opacity: 1;
}

/* 🔥 Borrão só quando passa o mouse na seta */
.scroll-btn:hover {
    background: linear-gradient(to left, rgba(20, 20, 20, 0.8), transparent);
}

.scroll-btn.left:hover {
    background: linear-gradient(to right, rgba(20, 20, 20, 0.8), transparent);
}

/* ================= RODAPÉ ================= */
.footer {
    margin-top: 80px;
    padding: 40px 60px;
    background-color: #141414; /* 🔥 padrão Netflix */
    color: #808080;
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #808080;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #b3b3b3;
}

.footer-copyright {
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= FADE LATERAL ================= */
.row::before,
.row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.row::before {
    left: 0;
    background: linear-gradient(to right, #141414, transparent);
}

.row::after {
    right: 0;
    background: linear-gradient(to left, #141414, transparent);
}

/* ================= PREVIEW ================= */
.card-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 8px;

    z-index: 20;
}

.card a {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.row {
    position: relative;
}

#muteBtn {
    color: #fff !important;
}

#muteBtn svg {
    fill: currentColor !important;
}

#muteBtn path {
    fill: currentColor !important;
}

/* Scrollbar inteira */
::-webkit-scrollbar {
  width: 10px;
}

/* Fundo da barra */
::-webkit-scrollbar-track {
  background: #000;
}

/* Parte que se move */
::-webkit-scrollbar-thumb {
  background: rgb(0, 140, 255);
  border-radius: 10px;
}

/* Hover (quando passa o mouse) */
::-webkit-scrollbar-thumb:hover {
  background: #0069cc;
}

/* Remove as setinhas */
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.window-controls {
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

.window-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.window-controls button:hover {
  color: rgb(0, 140, 255);
}

.window-controls {
  -webkit-app-region: drag;
}

.window-controls button {
  -webkit-app-region: no-drag;
}

        /* ========== MODAL DE DETALHES ESTILO NETFLIX ========== */
.modal-details {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

 .modal-details.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: #181818;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px auto;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botão fechar */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #181818;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background-color: #0982e5;
    transform: scale(1.05);
}

/* Banner do filme */
.modal-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center top;
}

.modal-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #181818, transparent);
}

/* Conteúdo do modal */
.modal-content-details {
    padding: 0 40px 40px 40px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

/* Título e metadata */
.modal-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #ddd;
    flex-wrap: wrap;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match {
    color: #46d369;
    font-weight: 700;
}

.year, .duration, .hd {
    color: #a3a3a3;
}

.hd {
    border: 1px solid #a3a3a3;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

/* Gêneros */
.modal-genres {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-genre {
    color: #a3a3a3;
    font-size: 14px;
}

/* Sinopse */
.modal-synopsis {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 25px;
    max-width: 80%;
}

/* Elenco */
.modal-cast {
    margin-bottom: 25px;
}

.modal-cast-title {
    color: #a3a3a3;
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-cast-names {
    color: #ddd;
    font-size: 15px;
}

/* Botões */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-btn-play {
    background-color: white;
    color: black;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.modal-btn-play:hover {
    background-color: #e6e6e6;
    transform: scale(1.02);
}

.modal-btn-list {
    background-color: rgba(109, 109, 110, 0.4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.modal-btn-list:hover {
    background-color: rgba(109, 109, 110, 0.6);
}

/* Linha adicional de informações */
.modal-info-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 10px;
}

.modal-info-item {
    flex: 1;
    min-width: 150px;
}

.modal-info-label {
    color: #a3a3a3;
    font-size: 13px;
    margin-bottom: 6px;
}

.modal-info-value {
    color: #ddd;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-container {
width: 95%;
margin: 20px auto;
    }
    
    .modal-banner {
height: 300px;
    }
    
    .modal-content-details {
padding: 0 20px 30px 20px;
margin-top: -60px;
    }
    
    .modal-title {
font-size: 28px;
    }
    
    .modal-synopsis {
max-width: 100%;
font-size: 14px;
    }
    
    .modal-info-row {
flex-direction: column;
gap: 15px;
    }
}

.titlebar {
  width: 100%;
  height: 40px;
  background: #0d0d0d;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  -webkit-app-region: drag;
}

.window-controls {
  display: flex;
  -webkit-app-region: no-drag;
}

.window-controls button {
  width: 46px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-controls button svg {
  width: 14px;
  height: 14px;
  fill: white;
}

.window-controls button:hover {
  background: #2a2a2a;
}

.window-controls .close:hover {
  background: #1180e8;
}

.row-infinite {
    overflow: hidden;
    position: relative;
}

.row-infinite .row-cards {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* pausa ao passar o mouse (opcional) */
.row-infinite .row-cards:hover {
    animation-play-state: paused;
}

.card {
    position: relative;
}

.badge-type {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    color: white;
    z-index: 2;
}

/* Série = verde */
.badge-serie {
    background: linear-gradient(135deg, #c80000, #e60000);
}

/* Filme = azul */
.badge-filme {
    background: linear-gradient(135deg, #0ba7fc, #007bff);
}

/* Desenhos = verde */
.badge-desenhos {
    background: linear-gradient(135deg, #16c000, #16c000);
}

/* Anime = preto */
.badge-anime {
    background: linear-gradient(135deg, #1c1c1c, #1c1c1c);
}

/* canais = laranja */
.badge-canais {
    background: linear-gradient(135deg, #fca80b, #fca80b);
}


.notifications-panel {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 300px;
    background: #141414;
    border-radius: 10px;
    padding: 15px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
}

.notification-item h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.notification-item p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 12px;
}

.download-btn {
    display: inline-block;
    background: #0ba7fc;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background: #007bff;
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: #141414;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 100px 60px;
}

.search-overlay.active {
    display: flex;
}

/* barra central estilo Netflix */
.search-top {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.search-top input {
    width: 100%;
    padding: 16px 20px;
    font-size: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #181818;
    color: white;
    outline: none;
    transition: 0.3s;
}

.search-top input:focus {
    border-color: #0ba7fc;
}

/* resultados */
.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* cards dentro da busca */
.search-results .card {
    width: 180px;
    height: 260px;
    transform: scale(1);
}

.search-results .card:hover {
    transform: scale(1.1);
}

/* destaque */
.highlight {
    color: #0ba7fc;
    font-weight: bold;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {

    .content {
        padding: 0 20px;
    }

    .header {
        padding: 20px;
    }

    .hero-content {
        left: 20px;
        max-width: 90%;
    }

    .card {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

}
/* BoulaxaFlix: cards horizontais 16:9 em todas as vitrines. */
.row-cards > .card,
.content .card,
.bf-dynamic-row .card {
  width: 276px !important;
  min-width: 276px !important;
  max-width: 276px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.row-cards > .card img,
.content .card img,
.bf-dynamic-row .card img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

.row-cards > .card .card-hover,
.content .card .card-hover {
  display: none !important;
}

@media (max-width: 760px) {
  .row-cards > .card,
  .content .card,
  .bf-dynamic-row .card {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
  }
}
