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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 0.95em;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 12px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-info span {
    font-weight: 600;
    color: #555;
}

/* Controls */
.controls {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#searchBox {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

#searchBox:focus {
    outline: none;
    border-color: #3498db;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.filters select {
    padding: 10px;
    font-size: 0.95em;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filters select:focus {
    outline: none;
    border-color: #3498db;
}

/* Loading & Error */
.loading, .error {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error {
    color: #e74c3c;
}

/* Entry Cards */
.entry-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.entry-card.score-high {
    border-left-color: #e74c3c;
}

.entry-card.score-medium {
    border-left-color: #f39c12;
}

.entry-card.score-low {
    border-left-color: #95a5a6;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    min-width: 200px;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
}

.entry-title a:hover {
    color: #3498db;
}

.original-title {
    font-size: 0.75em;
    font-weight: normal;
    color: #95a5a6;
    margin-top: 4px;
    line-height: 1.4;
}

.new-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.entry-score {
    background: #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
}

.entry-card.score-high .entry-score {
    background: #ffebee;
    color: #e74c3c;
}

.entry-card.score-medium .entry-score {
    background: #fef5e7;
    color: #f39c12;
}

.entry-card.score-low .entry-score {
    background: #ecf0f1;
    color: #7f8c8d;
}

.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.entry-summary {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.entry-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    font-size: 0.85em;
}

.score-item {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.score-label {
    color: #7f8c8d;
}

.score-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-size: 0.9em;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    .entry-header {
        flex-direction: column;
    }

    .entry-score {
        align-self: flex-start;
    }

    .filters {
        grid-template-columns: 1fr;
    }
}

/* Model Tabs */
.model-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e1e8ed;
}

.model-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.model-tab:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.model-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.model-contents {
    position: relative;
}

.model-content {
    display: none;
}

.model-content.active {
    display: block;
}

/* Model Badge */
.model-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    background: #e8f4fd;
    color: #3498db;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    vertical-align: middle;
}

/* Model Content Header */
.model-content-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.model-content-header .entry-score {
    background: #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
}
