/* Estantes horizontales (Home, Biblioteca, Discovery) */
.shelf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.shelf-panel .shelf-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.shelf-panel .shelf-track::-webkit-scrollbar {
    height: 0;
    width: 0;
}
.shelf-panel .shelf-card:not(.library-shelf-card--spine) {
    min-width: 220px;
    max-width: 220px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(17, 21, 35, 0.64), rgba(12, 16, 27, 0.24));
    scroll-snap-align: start;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.shelf-panel .shelf-card:not(.library-shelf-card--spine):hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.78);
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.36);
}
.shelf-cover-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
    position: relative;
}
.shelf-cover,
img.shelf-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-loading {
    opacity: 0;
    filter: blur(3px) saturate(0.9);
}
.media-ready {
    opacity: 1;
    filter: blur(0) saturate(1);
    transition: opacity 0.24s ease, filter 0.24s ease;
}
.shelf-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    padding: 10px;
    color: #e2e8f0;
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.45), rgba(30, 27, 75, 0.9)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 6px, transparent 6px, transparent 12px);
}
.shelf-fallback-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.5);
}
.shelf-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    margin-bottom: 4px;
}
.shelf-meta {
    margin-top: 4px;
    color: var(--sub-strong);
}
.shelf-hint {
    margin: 0 0 8px 0;
    color: var(--sub);
}
.shelf-form {
    margin-top: auto;
    padding-top: 8px;
}
.shelf-form button {
    min-height: 34px;
    border-radius: 9px;
    font-size: 13px;
}
.shelf-nav-btn {
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.65);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.shelf-nav-btn:hover {
    border-color: rgba(139, 92, 246, 0.65);
    background: rgba(99, 102, 241, 0.22);
    transform: scale(1.05);
}
.shelf-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.45);
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.netflix-home .shelf-panel .shelf-track {
    gap: 16px;
}
.netflix-home .shelf-panel .shelf-card {
    min-width: 236px;
    max-width: 236px;
}
.netflix-home .shelf-cover {
    transition: transform 0.22s ease;
}
.netflix-home .shelf-panel .shelf-card:hover .shelf-cover {
    transform: scale(1.03);
}
.shelf-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shelf-cta-primary {
    width: 100%;
    min-height: 36px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shelf-form .shelf-cta-primary {
    width: 100%;
    border: 1px solid rgba(129, 140, 248, 0.65);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.92));
    color: #fff;
    cursor: pointer;
}
.shelf-cta-secondary {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shelf-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 2px;
}
.shelf-secondary-actions form,
.shelf-secondary-actions .catalog-card-extra-form {
    margin: 0;
}
.shelf-secondary-actions .overlay-btn,
.shelf-secondary-actions .collection-quick-add,
.shelf-secondary-actions .catalog-collection-create-link {
    width: 100%;
    min-height: 30px;
    font-size: 11px;
}
.shelf-secondary-actions .catalog-collection-add-label {
    display: block;
    margin: 0;
}
.shelf-secondary-actions .catalog-collection-create-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}
