* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

header {
    background-color: #222;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.title-card {
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.title-card:hover {
    transform: scale(1.05);
}

.title-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-card h3 {
    margin-top: 0.5rem;
    text-align: center;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.episode-card {
    color: #fff;
    text-decoration: none;
}

.episode-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin-bottom: 1rem;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.nav-button {
    color: #fff;
    background-color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #444;
}
