* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", "Roboto", sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    padding: 50px 0;
    text-align: left;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid #D3302F;
}

header .live-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D3302F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

header h1 .highlight {
    color: #D3302F;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #666;
    max-width: 800px;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#dataSummary {
    margin-top: 20px;
}

.summary-table {
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #666;
}

.summary-table td {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
}

.summary-cell {
    background-color: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 12px 16px;
}

.summary-cell .icon {
    font-size: 1.1rem;
    margin-right: 8px;
}

.summary-cell .label {
    font-weight: 500;
    margin-right: 8px;
}

.summary-cell .value {
    font-weight: 700;
    color: #D3302F;
}

main {
    padding: 50px 0 70px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.movie-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.rank-badge {
    background: linear-gradient(135deg, #D3302F 0%, #b82b2a 100%);
    color: white;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(211, 48, 47, 0.3);
    flex-shrink: 0;
}

.movie-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex-grow: 1;
}

.progress-section {
    margin-bottom: 24px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-labels .positive {
    color: #10b981;
}

.progress-labels .negative {
    color: #D3302F;
}

.progress-bar {
    height: 14px;
    background: #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
}

.progress-positive {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    height: 100%;
    border-radius: 7px 0 0 7px;
    transition: width 0.5s ease;
}

.progress-negative {
    background: linear-gradient(90deg, #D3302F 0%, #b82b2a 100%);
    height: 100%;
    border-radius: 0 7px 7px 0;
    transition: width 0.5s ease;
}

.review-section {
    margin-bottom: 22px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title.positive {
    color: #10b981;
}

.section-title.negative {
    color: #D3302F;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
}

.section-title.positive::before {
    background: #10b981;
}

.section-title.negative::before {
    background: #D3302F;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.keyword {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.keyword.positive {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.keyword.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4a4a4a;
    border-left: 4px solid #e5e7eb;
}

.summary-box.positive {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.summary-box.negative {
    border-left-color: #D3302F;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

footer {
    text-align: center;
    padding: 35px 0;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    background: white;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 0.95rem;
        padding: 0 20px;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .movie-card {
        padding: 22px;
    }

    .movie-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header .subtitle {
        font-size: 0.9rem;
    }

    main {
        padding: 35px 0 50px;
    }

    .movie-card {
        padding: 18px;
    }

    .movie-title {
        font-size: 1.2rem;
    }
}
