/* ============================================
   RESET E ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    line-height: 1.4;
}

html {
    overflow-y: scroll;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
header {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2c2c2c;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e50914;
    letter-spacing: -0.5px;
}

header h1 a,
header h1-link {
    text-decoration: none;
    color: inherit;
}

header h1 a:visited,
header h1-link:visited {
    color: inherit;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #e50914;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.search-toggle-btn:hover {
    background: rgba(229, 9, 20, 0.15);
    color: #e50914;
}

/* ========== Cookie Consent Banner ========== */
#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}

.cookie-consent-content {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.cookie-btn.accept {
    background: #e50914;
    color: white;
    box-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

.cookie-btn.accept:hover {
    background: #ff0a1f;
    transform: scale(1.02);
}

.cookie-btn.reject {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
}

.cookie-btn.reject:hover {
    background: #3a3a3a;
    color: white;
    border-color: #555;
}

/* ========== BARRA DE PESQUISA RESPONSIVA ========== */
.search-bar {
    display: none;
    align-items: center;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.search-bar.active {
    display: flex;
}

.search-bar input[type="search"] {
    width: 0;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
    background: #171717;
    border: 1px solid #444;
    color: #fff;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    outline: none;
}

.search-bar.active input[type="search"] {
    width: 100%;
    opacity: 1;
}

/* ========== RESULTADOS DE PESQUISA ========== */
.search-results {
    margin: 1rem 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2c2c2c;
    border-radius: 12px;
}

.search-results.active {
    display: block;
}

.search-results-header {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.search-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.search-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.search-card img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.search-card a {
    text-decoration: none;
    color: inherit;
}

.search-card .card-info {
    padding: 0.75rem;
}

.search-card .card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card .card-info p {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.search-card .search-placeholder {
    aspect-ratio: 2 / 3;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2rem;
}

.search-results-loading,
.search-results-error,
.search-results-empty {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.95rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
}

.nav-and-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s;
}

.back-button:hover {
    color: #e50914;
}

.back-icon {
    width: 28px;
    height: 28px;
    stroke: currentcolor;
    fill: none;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar {
    background-color: #4285F4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1e1e1e;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
}

.dropdown-content span {
    display: block;
    padding: 8px 16px;
    color: #fff;
    border-bottom: 1px solid #333;
}

.dropdown-content button {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: #333;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.login-button {
    background-color: #4285F4;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-content .dropdown-item:hover {
    background-color: #333;
}
.dropdown-content .dropdown-item svg {
    flex-shrink: 0;
}

/* ============================================
   CATÁLOGO (GRADE DE CARDS)
   ============================================ */
main {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}

.catalog-filter {
    background: #1a1a1a;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: flex-end;
}

.catalog-filter span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #b3b3b3;
}

.catalog-filter select {
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.catalog-filter select:focus {
    border-color: #e50914;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    position: relative;
}

/* ===== NOVAS REGRAS PARA COMPORTAMENTO DOS CARDS ===== */
/* Define o card como container de consulta */
.movie-card {
    container-type: inline-size;
    position: relative;
    background-color: #1f1f1f;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.movie-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.movie-card img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.movie-card a,
.movie-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.movie-card a:visited,
.movie-card-link:visited {
    color: inherit;
}

.card-info {
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box; 
}

.title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.rank-badge {
    display: inline-block;
    background-color: #1e6df2;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: monospace;
    white-space: nowrap;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-info p {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.movie-card-link,
.movie-card-link * {
    text-decoration: none !important;
    color: inherit !important;
}

.movie-card-link .card-info {
    padding: 0.75rem;
}

/* Estilo do runtime */
.movie-runtime {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    position: relative;
}

/* Separador "|" entre runtime e rating (apenas se ambos existirem) */
.movie-runtime:not(:only-child)::after {
    content: "|";
    margin-left: 0.6rem;
    background: none;
    padding: 0;
    color: #ddd;
}

/* Estilo do rating compacto (IMDb) */
.imdb-rating-compact {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-meta .imdb-logo {
    background: #f5c518 !important; 
    color: #000 !important;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.65rem;
    line-height: 1;
}

.detail-meta:has(.movie-runtime) .imdb-rating-compact {
    margin-left: auto;
}

/* Container query: quando o card for estreito (runtime + rating não cabem), esconde runtime e alinha rating à direita */
@container (max-width: 170px) {
    .movie-runtime,
    .movie-runtime::after {
        display: none;
    }
    .detail-meta {
        justify-content: flex-end;
    }
}

/* ===== FIM DAS REGRAS DO CARD ===== */

.watchlist-btn {
    position: absolute;
    top: 0;
    left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;          
    margin: 0;
    display: flex;      
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s, transform 0.1s;
    z-index: 2;
}

.watchlist-btn svg {
    width: 28px;      
    height: 28px;
    fill: currentColor;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    display: block;
}

.watchlist-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.watchlist-btn.saved {
    color: #ffc107;
}

.watchlist-btn.saved:hover {
    color: #ffca2c;
}

/* ============================================
   PÁGINA DE DETALHES
   ============================================ */
.detail-container {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	padding: 3rem 2rem;
	min-height: 100vh
}

.detail-poster {
    flex: 0 0 300px;
}

.detail-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.detail-info {
    flex: 2;
    min-width: 260px;
    max-width: 600px;
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.detail-info h1 span {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ccc;
}

/* Estilo dos metadados de detalhes (mantido como antes) */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.imdb-rating-compact {
    margin-left: auto; 
}

.detail-meta span {
    background-color: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.5;
    margin: 1rem 0;
    color: #e0e0e0;
}

.detail-cast, .detail-director, .detail-country, .detail-awards {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.detail-cast strong, .detail-director strong, .detail-country strong, .detail-awards strong {
    color: #e50914;
    margin-right: 0.5rem;
}

.detail-watch-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.watch-button:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ff1a24, #e50914);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.watch-button:active {
    transform: scale(0.98);
}

.watch-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.watch-button:hover .watch-icon {
    transform: rotate(5deg);
}

.trailer-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 6px 12px;
    background-color: #2a2a2a;
    color: #ccc;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trailer-button:hover {
    background-color: #3a3a3a;
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.detail-logo {
    display: block;
    max-width: 100%;
    max-height: 9rem;
    width: auto;
    height: auto;
    margin: 0 auto 1rem auto;
    object-fit: contain;
}

.detail-poster-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 1rem auto;
    object-fit: contain;
    position: relative;
}

/* ============================================
   PROVEDORES DE STREAMING NA PÁGINA DE DETALHES
   ============================================ */
.watch-providers {
    display: flex;
    flex-wrap: wrap;
	min-height: 80px;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2c2c2c;
    border-radius: 12px;
}

/* Texto "Disponível em:" */
.watch-providers-label {
    font-weight: 600;
    color: #b3b3b3;
    margin-right: 4px;
    white-space: nowrap;
}

/* Logos */
.watch-providers img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    transition: transform 0.15s ease;
    background: #1a1a1a;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.watch-providers img:hover {
    transform: scale(1.08);
}

/* Fallback textual quando não há logo */
.watch-providers .provider-name {
    background: #2a2a2a;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Banner de cinema (filme em cartaz) */
.cinema-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: transform 0.2s ease;
}
.cinema-banner:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 215, 0, 0.6);
}
.cinema-banner svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    fill: #ffc107;
}
.cinema-banner .banner-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.cinema-banner .banner-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffc107;
    letter-spacing: 0.5px;
}
.cinema-banner .banner-text .sub {
    font-size: 0.75rem;
    color: #ccc;
}
/* ============================================
   MODAL DO TRAILER
   ============================================ */
.trailer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
.modal-close:hover {
    color: #e50914;
}

#trailer-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* ============================================
   MODAL DO WATCHHUB
   ============================================ */
.watchhub-modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.watchhub-modal.show {
    display: flex;
}
.watchhub-modal-content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #333;
    position: relative;
}
.watchhub-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}
.watchhub-modal-close:hover {
    color: #e50914;
}
.stream-list {
    list-style: none;
    padding: 0;
}
.stream-list li {
    margin: 1rem 0;
}
.stream-btn {
    display: inline-block;
    background-color: #e50914;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}
.stream-btn:hover {
    background-color: #ff0a1f;
}

/* ============================================
   MENU LATERAL DE EPISÓDIOS
   ============================================ */
.episodes-button {
    position: fixed;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    bottom: 30px;
    right: 30px;
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.episodes-button:hover {
    background-color: #ff0a1f;
}

.episodes-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
	min-height: 200px;
    height: 100%;
    background-color: #1e1e1e;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.episodes-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 1rem;
    background-color: #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

.episodes-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.episodes-fixed-header {
    background-color: #1e1e1e;
    padding: 1rem;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 5;
}

.season-select {
    width: 100%;
    padding: 8px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.season-select:hover {
    background-color: #333;
}

.episodes-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.episode-list li {
    padding: 0.8rem;
    border-bottom: 1px solid #333;
    cursor: pointer;
}
.episode-list li:hover {
    background-color: #2c2c2c;
}

.episode-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.episode-check-wrapper {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;   /* alinha o botão à direita, se desejar */
}
.ep-thumb {
    width: 80px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.ep-placeholder {
    width: 80px;
    height: 112px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    box-shadow: inset 0 0 0 1px #333;
    padding: 8px;
    line-height: 1.2;
    gap: 4px;
}
.ep-placeholder svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ep-info {
    flex: 1;
}

.ep-info strong {
    display: block;
    margin-bottom: 4px;
}

.ep-info small {
    color: #aaa;
}

.loading, .error {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

.watched-check {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 999px;
    cursor: pointer;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffc107;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.1s, background-color 0.2s, border-color 0.2s;
}
.watched-check svg {
    width: 18px;
    height: 18px;
    display: block;
}
.watched-check .watched-text {
    white-space: nowrap;
}
.watched-check.watched {
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}
.watched-check:hover {
    transform: scale(1.05);
}

.season-progress-fixed {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}
.season-progress-text {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}
.progress-bar-bg {
    background-color: #333;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    background-color: #e50914;
    height: 100%;
    width: 0%;
    transition: width 0.2s;
}

/* ============================================
   ÍCONE DE FAVORITOS
   ============================================ */
.favorites-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s;
    padding: 0;
    margin: 0 0.4rem 0 0;
}

.favorites-btn svg {
    width: 24px;
    height: 24px;
}

.favorites-btn:hover {
    color: #e50914;
}

/* ============================================
   ÍCONE DE SINO (NOTIFICAÇÕES)
   ============================================ */
.notifications-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s;
    padding: 0;
    margin: 0;
}

.notifications-btn svg {
    width: 24px;
    height: 24px;
}

.notifications-btn:hover {
    color: #e50914;
}

.bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e50914;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Sidebar de notificações */
.notifications-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #1e1e1e;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.notifications-sidebar.open {
    right: 0;
}
.sidebar-header {
    padding: 1rem;
    background-color: #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}
.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}
.notification-item {
    padding: 0.8rem;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer; 
    transition: background-color 0.2s ease;
}
.notification-item:hover {
    background-color: #2c2c2c; 
}
.notification-item img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}
.notification-item p {
    margin: 0;
}

/* ============================================
   RESPONSIVIDADE (CORRIGIDA)
   ============================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    .header-left {
        justify-content: flex-start;
        margin-right: 0;
    }
    .back-icon {
        width: 24px;
        height: 24px;
    }
    .nav-and-auth {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .search-bar {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        order: 3;
    }
    .search-bar.active {
        width: 100%;
    }
    .search-bar input[type="search"] {
        width: 100%;
        font-size: 0.9rem;
    }
    .search-toggle-btn {
        order: 1;
    }
    nav {
        flex: none;
        flex-wrap: nowrap;
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    .user-area {
        margin-left: 0;
        justify-content: flex-end;
    }
    main {
        padding: 0 1rem;
    }
    .catalog-filter {
        align-self: stretch;
        justify-content: center;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    .detail-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }
    .detail-poster {
        flex: 0 0 auto;
        max-width: 250px;
    }
    .detail-info {
        padding-bottom: 40px;
    }
    .detail-info h1 {
        font-size: 1.8rem;
    }
    .episodes-button {
        bottom: 30px;
    }
	.detail-meta {
        justify-content: center;
		font-size: 0.6rem;
    }
    /* Ajuste opcional para cards no mobile */
    .movie-card {
        font-size: 0.65rem;
    }
    .episodes-sidebar {
        width: 100%;
        right: -100%;
    }
    .ep-thumb, .ep-placeholder {
        width: 60px;
        height: 84px;
    }
    .watch-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    .watch-icon {
        width: 20px;
        height: 20px;
    }
    .modal-content, .watchhub-modal-content {
        width: 95%;
    }
    .watch-providers {
        justify-content: center;
        gap: 10px;
        padding: 0.6rem 0.8rem;
    }
    .watch-providers img {
        height: 32px;
    }

    /* Modais de listas */
    .list-selection-modal > .list-modal-content,
    .list-selection-modal > .lists-popup {
        width: 95vw;
        max-width: 400px;
        padding: 1.25rem;
        border-radius: 10px;
    }
    .list-selection-modal h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    .all-lists-item {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    .all-lists-item .list-name {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    .all-lists-item .list-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.8rem;
    }
    .all-lists-item .list-meta span {
        white-space: normal;
        flex: 1 1 auto;
    }
    .all-lists-item .delete-list-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin-left: auto;
    }
    .list-selection-modal li {
        padding: 8px 12px;
    }
    .list-option {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .delete-list-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    #new-list-btn {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin-top: 4px;
    }

    /* Alinhamento à esquerda no mobile */
    .owner-info,
    .list-owner-info,
    .list-interactions {
        justify-content: flex-start !important;
    }

    /* Listas populares */
    .popular-list-block .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .section-title {
        font-size: 1.4rem;
        margin: 1rem 0 1rem;
    }
    .carousel-card {
        width: 120px;
    }
    .carousel-button {
        font-size: 1.5rem;
        padding: 0.2rem 0.4rem;
    }
    .popular-lists-link {
        display: none;
    }
    /* Cookie Consent Banner */
    #cookie-consent-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
        border-radius: 10px;
    }
    .cookie-consent-content {
        padding: 1rem;
        gap: 0.8rem;
    }
    .cookie-consent-content p {
        font-size: 0.8rem;
        text-align: center;
    }
    .cookie-buttons {
        justify-content: center;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .remove-from-list-btn {
        padding: 5px 12px;
        font-size: 0.7rem;
        gap: 4px;
    }
    .remove-from-list-btn svg {
        width: 14px;
        height: 14px;
    }
	/* Banner de cinema (filme em cartaz) */
    .cinema-banner {
        padding: 0.6rem 0.8rem;
        gap: 0.75rem;
    }
    .cinema-banner svg {
        width: 32px;
        height: 32px;
    }
    .cinema-banner .banner-text strong {
        font-size: 0.8rem;
    }
    .cinema-banner .banner-text .sub {
        font-size: 0.65rem;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADA
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0a1f;
}

/* ============================================
   MODAIS DE LISTAS (backdrop + conteúdo)
   ============================================ */
.list-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-modal-content {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    min-width: 350px;
    max-width: 90vw;
    color: #fff;
    max-height: 80vh;
    overflow-y: auto;
}

.list-selection-modal h3 {
    margin-top: 0;
}

.list-selection-modal ul {
    list-style: none;
    padding: 0;
}

.all-lists-item {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid #3a3a3a;
}

.all-lists-item:hover {
    background: #3a3a3a;
    border-color: #e50914;
}

.all-lists-item .list-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.all-lists-item .list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #aaa;
}

.list-option,
#new-list-btn {
    background: #2a2a2a;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.list-option:hover,
#new-list-btn:hover {
    background: #3a3a3a;
}

.delete-list-btn {
    background: #e50914;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.delete-list-btn:hover {
    background: #ff0a1f;
}

.delete-list-btn svg {
    vertical-align: middle;
    margin-right: 4px;
}

.movie-card.dragging {
    opacity: 0.5;
    border: 2px dashed #e50914;
}

/* Modal personalizado para alertas, confirmações e prompts */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    min-width: 300px;
    max-width: 90vw;
    color: #fff;
    text-align: center;
}

.custom-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.custom-modal-message {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.custom-modal-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-modal-btn {
    background: #2a2a2a;
    border: none;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.custom-modal-btn:hover {
    background: #3a3a3a;
}

.custom-modal-btn.primary {
    background: #e50914;
    color: white;
}
.custom-modal-btn.primary:hover {
    background: #ff0a1f;
}

.custom-modal-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
}
.custom-modal-input:focus {
    outline: none;
    border-color: #e50914;
}

/* ============================================
   PÁGINA DE LISTA INDIVIDUAL
   ============================================ */
.list-header {
    margin-bottom: 1.5rem;
    text-align: left;
}
.list-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.list-header .list-type {
    font-size: 0.95rem;
    color: #aaa;
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
}

.remove-from-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    
    background: rgba(229, 9, 20, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 40px;
    
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ff8a92; /* tom mais claro que o vermelho forte */
    
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: auto;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.remove-from-list-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s ease;
}
.remove-from-list-btn:hover {
    background: #e50914;
    border-color: #e50914;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.25);
}
.remove-from-list-btn:hover svg {
    transform: scale(1.05);
}
.remove-from-list-btn:active {
    transform: translateY(0);
    background: #b20710;
    box-shadow: none;
    transition: 0.05s;
}
.list-owner-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
}
.list-owner-info .user-avatar {
    background-color: #4285F4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-interactions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s, transform 0.1s;
    padding: 4px;
}
.like-btn:hover {
    color: #e50914;
    transform: scale(1.2);
}
.like-btn.liked {
    color: #e50914;
}
#like-count {
    color: #aaa;
    font-size: 1rem;
}

/* ============================================
   CARROSSEL E LISTAS POPULARES
   ============================================ */
.popular-list-block {
    margin-bottom: 3rem;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.popular-list-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.popular-list-block .list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    text-align: left;
}

.popular-list-block .list-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.owner-avatar,
.owner-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e50914;
}
.owner-avatar-placeholder {
    background: #4285F4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.owner-name {
    font-weight: 600;
    color: #fff;
}

.item-count {
    font-size: 0.85rem;
    color: #808080;
    background: #2a2a2a;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s, transform 0.15s;
    padding: 6px;
}
.like-btn:hover {
    color: #e50914;
    transform: scale(1.3);
}
.like-btn.liked {
    color: #e50914;
    animation: pulse 0.4s ease;
}
.like-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 0 2rem;
}
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 0.5rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 auto;
    width: 160px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #1f1f1f;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.carousel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.carousel-card img {
    aspect-ratio: 2 / 3;
    width: 100%;
    display: block;
    object-fit: cover;
}

.carousel-card .card-info {
    padding: 0.75rem;
    background: none;
    text-align: left;
}
.carousel-card .card-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carousel-card .card-info p {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.2rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-button.left  { left: -0.5rem; }
.carousel-button.right { right: -0.5rem; }
.carousel-button:hover {
    background: rgba(229,9,20,0.8);
    transform: translateY(-50%) scale(1.1);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 1rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #e50914;
    border-radius: 2px;
}

@media (min-width: 1400px) {
    .detail-info {
        max-width: 38%;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .detail-info {
        max-width: 55%;
    }
}

@media (max-width: 992px) {
    .detail-overlay {
        flex-direction: column;
        align-items: center;
    }
    #letterboxd-reviews-container {
        margin-left: 0;
    }
}

/* ========== CAST========== */
.cast-section {
    /* Fundo com gradiente similar ao detail-overlay para integração visual */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    padding: 2rem;
    margin: 0; /* sem margem extra, pois já está dentro do container */
    border-radius: 0; /* opcional, se quiser cantos retos */
    box-sizing: border-box;
}

.cast-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid #e50914;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
}

.cast-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(229, 9, 20, 0.3);
}

.cast-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #2a2a2a;
    transition: opacity 0.2s;
}

.cast-photo-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cast-info {
    padding: 0.4rem 0.5rem 0.2rem;
    font-size: 0.75rem;
}

.cast-name {
    display: block;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.cast-character {
    display: block;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .cast-section {
        padding: 1.5rem 1rem;
    }
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    .cast-section .section-title {
        font-size: 1.1rem;
    }
}