/* Page title */
.ct-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 20px;
}

/* Filtros */
.ct-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.ct-filtro-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #333;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    transition: all 0.15s;
    user-select: none;
}

.ct-filtro-check:hover {
    border-color: var(--ct-accent);
    color: var(--ct-accent);
}

.ct-filtro-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--ct-accent);
    cursor: pointer;
}

.ct-filtro-check:has(input:checked) {
    background: var(--ct-accent);
    border-color: var(--ct-accent);
    color: #fff;
}

.ct-filtro-check:has(input:checked) input {
    accent-color: #fff;
}

/* Filtro info */
.ct-filtro-info {
    font-size: 0.88rem;
    color: #888;
    margin: 0 0 18px;
}

.ct-limpiar {
    color: var(--ct-accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
}

.ct-limpiar:hover {
    text-decoration: underline;
}

/* Movie grid */
.ct-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.ct-movie-card {
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ct-movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.ct-movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.ct-movie-no-portada {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--ct-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-light);
    font-size: 0.85rem;
}

.ct-movie-info { padding: 10px; }

.ct-movie-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-movie-year { font-size: 0.75rem; color: #888; }

/* Empty */
.ct-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ct-filtros { gap: 6px; padding: 12px; }
    .ct-filtro-check { padding: 5px 10px; font-size: 0.8rem; }
    .ct-movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
}
