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

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

.ct-indexador a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s;
}

.ct-indexador a:hover {
    background: #333;
    color: #fff;
}

.ct-indexador a.active {
    background: var(--ct-accent);
    color: #000;
}

/* Filtro de productoras (portadas) */
.ct-productoras-filtro {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 16px 20px;
    margin-bottom: 20px;
}

/* Carrusel */
.ct-carrusel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ct-carrusel-track {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
}

.ct-carrusel-cursor {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #333;
    background: var(--ct-dark);
    color: #ccc;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ct-carrusel-cursor:hover {
    background: var(--ct-accent);
    border-color: var(--ct-accent);
    color: #fff;
}

.ct-carrusel-cursor:disabled {
    opacity: 0.35;
    cursor: default;
    background: var(--ct-dark);
    border-color: #333;
    color: #ccc;
}

.ct-productora-filtro-item {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}

.ct-productora-filtro-item:hover {
    transform: translateY(-2px);
}

.ct-productora-filtro-item.active {
    border-color: var(--ct-accent);
}

/* Mismo tamaño que en la ficha de película */
.ct-productora-portada {
    height: 60px;
    width: auto;
    max-width: 180px;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: block;
}

.ct-productora-todas {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #333;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    transition: all 0.15s;
}

.ct-productora-todas:hover {
    border-color: var(--ct-accent);
    color: var(--ct-accent);
}

.ct-productora-todas.active {
    background: var(--ct-accent);
    border-color: var(--ct-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-productoras-filtro { gap: 8px; padding: 12px; }
    .ct-productora-portada { height: 48px; max-width: 140px; }
    .ct-movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
}
