:root {
    --main-bg: #141414;
    --accent-red: #E50914;
    --text-white: #ffffff;
    --gray-text: #b3b3b3;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 1000;
}

.logo {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 40px;
}

.nm:link, .nm:visited, .nm:hover, .nm:active {
    color: inherit;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gray-text);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0)), 
                url('https://res.cloudinary.com/dr1rn40sn/image/upload/v1773469206/jujutsu-kaisen-3840x2160-25471_sn0oux.jpg'); /* Replace with your hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 4%;
}

.hero-content {
    max-width: 500px;
}

.category {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons button {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-play {
    background-color: white;
    color: black;
}

.btn-list {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.series-header {
    margin-bottom: 30px;
}

.series-header h1 {
    font-size: 2.5rem;
    color: #E50914; /* A nice Crunchyroll-style orange */
}

.series-header p {
    color: #aaaaaa;
    margin-top: 5px;
}

/* Tabs Styling */
.season-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    color: #aaaaaa;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    transition: 0.3s ease;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    color: #E50914;
    border-bottom: 3px solid #E50914;
}

/* Episode Grid Styling */
.season-content {
    /* Grid is applied via JS/inline styles when visible */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.episode-card {
    background-color: #202020;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.ep-thumbnail {
    background-color: #333;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
    overflow: hidden;
    width: 100%;
}

.ep-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.episode-card:hover .ep-thumbnail {
    color: #E50914;
}

.ep-info {
    padding: 15px;
}

.ep-number {
    font-size: 0.8rem;
    color: #aaaaaa;
}

.ep-title {
    font-size: 1rem;
    margin-top: 5px;
}

/* Hide all season content by default */
.season-content {
    display: none;
}

/* Only show the one with the active class */
.season-content.active-content {
    display: block; /* or flex/grid depending on your layout */
}