﻿.catalog-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px 38px 60px;
}

.catalog-header {
    margin-bottom: 25px;
}

.catalog-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #ff4968;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.catalog-header h1 {
    margin: 0;
    color: #f5f6f8;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.catalog-header p {
    margin: 7px 0 0;
    color: #717782;
    font-size: 11px;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 210px 190px;
    gap: 10px;
    margin-bottom: 25px;
}

.catalog-search {
    position: relative;
}

    .catalog-search i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: #656b75;
        font-size: 13px;
        transform: translateY(-50%);
    }

    .catalog-search input,
    .catalog-select {
        width: 100%;
        height: 42px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 9px;
        outline: none;
        background: #101218;
        color: #dfe2e7;
        font-size: 10px;
    }

    .catalog-search input {
        padding: 0 14px 0 40px;
    }

        .catalog-search input::placeholder {
            color: #5e646e;
        }

        .catalog-search input:focus,
        .catalog-select:focus {
            border-color: rgba(255,49,88,.5);
        }

.catalog-select {
    padding: 0 12px;
    cursor: pointer;
}

.catalog-result-header {
    margin-bottom: 12px;
    color: #646b76;
    font-size: 9px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px 16px;
}

.movie-card {
    min-width: 0;
    cursor: pointer;
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    background: #101218;
}

    .movie-poster img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .35s ease, filter .35s ease;
    }

.movie-card:hover .movie-poster img {
    transform: scale(1.04);
    filter: brightness(.65);
}

.movie-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(5,6,8,.45);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #080a0e;
    font-size: 21px;
}

.movie-overlay span {
    font-size: 9px;
    font-weight: 700;
}

.movie-info {
    padding: 10px 2px 0;
}

    .movie-info h3 {
        margin: 0;
        overflow: hidden;
        color: #dfe2e7;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.movie-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f4bb45;
    font-size: 9px;
    font-weight: 700;
}

    .movie-rating i {
        font-size: 8px;
    }

.movie-classification {
    padding: 2px 5px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    color: #777e89;
    font-size: 8px;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #343943;
    font-size: 32px;
}

.catalog-loading,
.catalog-empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #686f7a;
    text-align: center;
}

    .catalog-loading .spinner-border {
        width: 24px;
        height: 24px;
        color: #ff3158;
    }

    .catalog-empty > i {
        color: #454b55;
        font-size: 32px;
    }

    .catalog-empty h3 {
        margin: 4px 0 0;
        color: #c8ccd3;
        font-size: 14px;
    }

    .catalog-empty p,
    .catalog-loading span {
        margin: 0;
        font-size: 10px;
    }

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .catalog-page {
        padding: 28px 24px 50px;
    }

    .catalog-tools {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-search {
        grid-column: 1 / -1;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .catalog-page {
        padding: 22px 16px 40px;
    }

    .catalog-tools {
        grid-template-columns: 1fr;
    }

    .catalog-search {
        grid-column: auto;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 10px;
    }
}
