:root {
    --bg-color: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    
    --hulu-color: #1ce783;
    --script-color: #3b82f6;
    --imdb-color: #f5c518;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 0 30px;
}

.main-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sub-title {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Table Container */
.table-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow-x: auto; /* Enables horizontal scroll on small devices */
    margin-bottom: 40px;
}

/* Table Styles */
.episode-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't get too cramped on mobile */
    text-align: left;
}

.episode-table th, 
.episode-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.episode-table th {
    background-color: #f3f4f6;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.episode-table tr:last-child td {
    border-bottom: none;
}

.episode-table tbody tr {
    transition: background-color 0.15s ease;
}

.episode-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Column specific widths */
.col-season, .col-episode {
    width: 5%;
    color: var(--text-muted);
    font-weight: 500;
}

.col-title {
    width: 50%;
}

.en-title {
    display: block;
    font-weight: 500;
    font-size: 1.05rem;
    color: #111827;
}

a.detail-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.detail-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}.col-links {
    width: 40%;
}

/* Link Buttons */
.link-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.link-btn:hover {
    opacity: 0.8;
}

.link-btn:last-child {
    margin-right: 0;
}

.hulu-btn {
    background-color: #effcf4;
    color: #0b8043;
    border: 1px solid #c6f6d5;
}

.script-btn {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.imdb-btn {
    background-color: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }
    
    .episode-table th, 
    .episode-table td {
        padding: 12px 10px;
    }
    
    .link-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}
