/* Critics Corner Styles */

/* Header */
.critics-header {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 95%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.critics-header::before {
    content: "M";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 150px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.critics-header-content {
    position: relative;
    z-index: 1;
}

.critics-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.critics-header p {
    font-size: 1.1em;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Metacritic Score Breakdown */
.score-distribution {
    display: flex;
    justify-content: center;
    gap: 5px;
    height: 30px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    padding: 2px;
}

.dist-bar {
    height: 100%;
    transition: width 1s ease-out;
}

.dist-bar.universal {
    background-color: #66cc33;
}

/* 81-100 */
.dist-bar.favorable {
    background-color: #ffcc33;
}

/* 61-80 */
.dist-bar.mixed {
    background-color: #ff9933;
}

/* 40-60 */
.dist-bar.unfavorable {
    background-color: #ff0000;
}

/* 0-39 */

.dist-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85em;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Tabs */
.critics-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.critics-tab {
    padding: 10px 20px;
    background: #f1f1f1;
    border-radius: 25px;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.critics-tab.active,
.critics-tab:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Metascore Badge (Used in movie cards) */
.metascore-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.85em;
    min-width: 24px;
    text-align: center;
    margin-right: 5px;
    vertical-align: middle;
}

.score-high {
    background-color: #66cc33;
}

/* 61-100 (Simplified mapping or use specific logic) */
.score-med {
    background-color: #ffcc33;
}

/* 40-60 */
.score-low {
    background-color: #ff0000;
}

/* 0-39 */

/* Tiny variation for lists */
.meta-tiny {
    font-size: 0.8em;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Critics vs Audience Divergence Table */
.divergence-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.divergence-table th {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: left;
}

.divergence-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.divergence-table tr:hover {
    background-color: #f9f9f9;
}

.score-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-box {
    text-align: center;
}

.score-val {
    font-weight: bold;
    font-size: 1.1em;
    display: block;
}

.score-label {
    font-size: 0.7em;
    color: #888;
    text-transform: uppercase;
}

.diff-bar {
    height: 4px;
    background: #eee;
    width: 100px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.diff-fill {
    height: 100%;
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 600px) {
    .critics-header h1 {
        font-size: 1.8em;
    }

    .critics-tabs {
        gap: 8px;
    }

    .critics-tab {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}