/* --- Cross Review Specific Styles --- */

.review-card {
    background-color: #fcf8e8; /* ファミ通っぽい紙の色 */
    border: 4px solid #8b5a2b; /* 茶色の枠 */
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    color: #333;
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

/* Dark mode overrides for review card */
body.dark-mode .review-card {
    background-color: #2c2825;
    border-color: #5a4632;
    color: #e4e6eb;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #8b5a2b;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.review-title-group h3 {
    margin: 0; 
    font-size: 1.8rem;
    font-weight: 900;
}

.review-genre {
    font-size: 0.9rem;
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

.review-total-score {
    text-align: right; min-width:15%;
}

.score-badge {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d32f2f;
    line-height: 1;
}

.hall-of-fame {
    font-size: 0.8rem;
    font-weight: bold;
    color: #b8860b;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Left Column: Image & Info */
.review-left {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.work-image {
    width: 100%;
    border: 2px solid #333;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.work-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 4px;
}

/* Right Column: 4 Reviewers */
.review-right {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviewer-row {
    display: flex; 
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #bbb;
}

.reviewer-row:last-child {
    border-bottom: none;
}

.reviewer-info {
    text-align: center;
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.reviewer-icon {
    width: 80px;
    height: 80px;
    border-radius: 10%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.reviewer-name {
    font-size: 0.75rem; min-width: 150px;
    display: block;
    font-weight: bold;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reviewer-score {
    font-size: 3rem;
    font-weight: bold;
    color: #d32f2f; /* Red score */
    margin: 0 10px;
    width: 60px;
    
    font-family: 'Impact', sans-serif;
}

.reviewer-comment {
    font-size: 0.9rem;
    flex-grow: 1;
    line-height: 1.4;
}

/* Hall of Fame Styles */
.platinum .score-badge { color: #e5e4e2; text-shadow: 0 0 5px #aaa; }
.gold .score-badge { color: #d4af37; text-shadow: 0 0 5px #b8860b; }
.silver .score-badge { color: #c0c0c0; }

.file-input-container {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 6px;
    border: 1px dashed #ccc;
}

.file-input-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.file-input-container input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
}

/* Dark mode adjustments */
body.dark-mode .file-input-container {
    background-color: rgba(255,255,255,0.05);
    border-color: #444;
}

@media (max-width: 600px) {
    .review-header { flex-direction: column; }
    .review-total-score { text-align: left; margin-top: 10px; }
    .review-body { flex-direction: column; }
    .reviewer-row { flex-wrap: wrap; }
}
