@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #141414;
    --bg-secondary: #181818;
    --bg-tertiary: #2f2f2f;
    --bg-card: #1f1f1f;
    --bg-hover: #333333;
    --red-primary: #e50914;
    --red-hover: #f40612;
    --border-light: rgba(255, 255, 255, 0.15);
    --border-medium: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-tertiary: #b3b3b3;
    --header-height: 68px;
    --row-gap: 2.5vw;
    --card-width: clamp(120px, 11vw, 220px);
    --badge-filme: #b71c1c;
    --badge-serie: #1b5e20;
    --badge-bl: #4a148c;
    --badge-donghua: #e65100;
    --badge-anime: #7b1fa2;
    --badge-saga: #1976d2;
    --badge-hd: #424242;
    --badge-novo: rgba(229, 9, 20, 0.95);
    --badge-views: rgba(255, 111, 0, 0.9);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.55);
    --ease-out: cubic-bezier(0.5, 0, 0.1, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.4;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hidden {
    display: none !important;
}

.page {
    min-height: 100vh;
}

.catalog {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

/* Hero oculto (filtro/busca): conteúdo abaixo do header fixo */
.hero--hidden ~ .catalog {
    padding-top: calc(var(--header-height) + 1.25rem);
}

.hero--hidden ~ .catalog .categoria:first-child .categoria-titulo {
    padding-top: 0;
}

.hero--hidden ~ .catalog .categoria:first-child .row-slider,
.hero--hidden ~ .catalog .categoria:first-child > .rolo {
    margin-top: 0;
}

/* Com hero visível: leve overlap só nos posters da 1ª fila */
.hero:not(.hero--hidden) ~ .catalog .categoria:first-child .categoria-titulo {
    padding-top: 0.25rem;
}

.hero:not(.hero--hidden) ~ .catalog .categoria:first-child .row-slider,
.hero:not(.hero--hidden) ~ .catalog .categoria:first-child > .rolo {
    margin-top: -0.5rem;
}

.sem-itens {
    color: var(--text-tertiary);
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 1.1rem;
}
