/* ===== /search page ===== */
.search-page {
    max-width: 1100px;
}
.search-page .search-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #14213d;
    margin: 6px 0 8px 0;
}
.search-page .search-subtitle {
    font-size: 15px;
    color: #5b6478;
    margin: 0 0 22px 0;
}

/* Filter panel */
.search-panel {
    background: #fff;
    border: 1px solid #dfe5f0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 28px;
    margin-right: 18px;
}
.search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.search-field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}
.search-field-year {
    flex: 0 1 165px;
}
.search-field label {
    font-size: 14px;
    font-weight: 700;
    color: #14213d;
    margin-bottom: 8px;
}
.search-field input[type=text],
.search-field select {
    height: 44px;
    box-sizing: border-box;
    width: 100%;
    padding: 0 14px;
    font-size: 15px;
    color: #14213d;
    background: #f7faff;
    border: 1px solid #bacbed;
    border-radius: 5px;
    box-shadow: none;
    margin: 0;
}
.search-field select {
    background: #fff;
    cursor: pointer;
}
.search-field input[type=text]::placeholder {
    color: #8a93a6;
}
.search-field input[type=text]:focus,
.search-field select:focus {
    outline: none;
    border-color: #a8b7f1;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.18);
}

.search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.search-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #14213d;
    cursor: pointer;
    margin: 0;
}
.search-check input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b5bdb;
}
.search-buttons {
    display: flex;
    gap: 12px;
}
.search-btn {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}
.search-btn-reset {
    background: #fff;
    color: #14213d;
    border: 1px solid #9aa9c7;
}
.search-btn-reset:hover {
    background: #f2f5fb;
}
.search-btn-submit {
    min-width: 126px;
    background: #3b5bdb;
    color: #fff;
    border: 1px solid #3b5bdb;
}
.search-btn-submit:hover {
    background: #2f4bc0;
}
.search-btn-submit .fa {
    margin-right: 6px;
}
.search-error {
    margin-top: 14px;
    color: #c92a2a;
    font-size: 14px;
    font-weight: 600;
}

/* Results */
.search-page .search-count {
    font-size: 20px;
    font-weight: 700;
    color: #14213d;
    margin: 0 0 14px 0;
}
.search-empty {
    font-size: 15px;
    color: #5b6478;
}
.search-results {
    display: flex;
}

/* "S" subtitles badge on the poster's top-right corner */
.search-moviebox {
    position: relative;
}
.subtitle-badge {
    position: absolute;
    top: 7px;
    right: 4px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
    color: #fff;
    background: rgba(20, 33, 61, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    pointer-events: none;
}

@media only screen and (max-width: 624px) {
    .search-page .search-title {
        font-size: 26px;
    }
    .search-panel {
        padding: 18px 16px;
    }
    .search-field,
    .search-field-year {
        flex: 1 1 100%;
    }
    .search-buttons {
        width: 100%;
    }
    .search-btn {
        flex: 1;
    }
}
