/* --- RatingsPage  --- */
.ratings-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.2rem;
    border-bottom: 1.5px solid var(--divider-color);
    padding-bottom: 1.2rem;
}
.ratings-book-info {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.ratings-cover-img {
    max-width: 140px;
    border-radius: 1rem;
    box-shadow: var(--box-shadow-light);
    cursor: pointer;
    transition: transform 0.15s;
}
.ratings-cover-img:hover {
    transform: scale(1.04);
}
.ratings-book-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ratings-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}
.ratings-author {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.ratings-author-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}
.ratings-author-link:hover {
    color: var(--primary-color);
}
.ratings-content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 2.2rem;
    align-items: flex-start;
}
.ratings-form-col {
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 420px;
}
.ratings-form-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: var(--box-shadow-light);
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
}
.ratings-form-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    text-align: center;
}
.ratings-label {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    display: block;
}
.ratings-textarea {
    width: 100%;
    min-height: 90px;
    border-radius: 0.7rem;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--divider-color);
    background: var(--background-light);
    box-sizing: border-box;
}
.form-row {
    margin-bottom: 1.1rem;
}
.ratings-reviews-col {
    flex: 2 1 420px;
    min-width: 320px;
}
.ratings-reviews-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}
.ratings-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.ratings-review-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: var(--box-shadow-light);
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.ratings-review-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 0.2rem;
}
.ratings-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--box-shadow-light);
}
.ratings-review-user {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ratings-review-username {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.08rem;
}
.ratings-review-date {
    font-size: 0.98rem;
    color: #888;
    opacity: 0.85;
}
.ratings-review-body {
    margin-top: 0.2rem;
}
.ratings-review-message {
    font-size: 1.08rem;
    color: #222;
    opacity: 0.95;
    margin-top: 0.3rem;
    font-weight: 400;
}
.ratings-no-reviews {
    color: #888;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 2.2rem;
}
@media (max-width: 900px) {
    .ratings-content-row {
        flex-direction: column;
        gap: 2rem;
    }
    .ratings-form-col, .ratings-reviews-col {
        min-width: 0;
        max-width: 100vw;
        width: 100%;
    }
}
/* --- End RatingsPage Modern Redesign --- */
