/* -------------------------------------------------- */
/* Favorite card layout                            */
/* -------------------------------------------------- */
.fav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.fav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* -------------------------------------------------- */
/* Poster frame (fixed size + image container)     */
/* -------------------------------------------------- */
.fav-poster-frame {
    width: 110px;       
    height: 160px;     
    border-radius: 6px;
    background: white;       
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fav-poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none; 
}

/* -------------------------------------------------- */
/* Movie info text (rank, title, year, rating)     */
/* -------------------------------------------------- */

.fav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Rank badge (#1/#2) */
.fav-rank {
    display: inline-block;
    background: #4A90E2;
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 14px;
    width: fit-content;
    max-width: max-content;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Title */
.fav-title {
    font-size: 22px;
    font-weight: 600;
    color: black;
    text-decoration: none;
}

.fav-title:hover {
    text-decoration: underline;
}

.fav-year {
    color: #666;
    font-size: 15px;
}

/* Rating row */
.fav-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #666;
    margin-top: 4px;
}

.fav-star {
    color: gold;
    font-size: 18px;
}

/* -------------------------------------------------- */
/* Delete icon (trash bin)                         */
/* -------------------------------------------------- */

/* Delete icon */
.fav-remove-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    color: #555;
}

.fav-remove-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.15s ease;
}

.fav-remove-btn:hover {
    color: red;
    transform: scale(1.15);
}

/* -------------------------------------------------- */
/* Add / Remove Favorite buttons (movie_detail)    */
/* -------------------------------------------------- */

.fav-btn {
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Add to Favorite (blue) */
.add-fav {
    background: #007bff;
    color: white;
}

.add-fav:hover {
    background:#005fcc;
}

/* In Favorite (green) */
.in-fav {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #b7e1cd;
}

.in-fav:hover {
    background: #ccebd6;
}








