body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#app {
    background-color: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

#yen-counter {
    background-color: #1d3557;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid #457b9d;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #ffcc00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header h1 {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #ffcc00;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 #e63946, -3px -3px 0 #457b9d;
    margin-bottom: 0;
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#search-input {
    width: 60%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 2px solid #457b9d;
    background-color: #1d3557;
    color: #f1faee;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #a8dadc;
    box-shadow: 0 0 10px rgba(168, 218, 220, 0.5);
}

#search-input::placeholder {
    color: #a8dadc;
    opacity: 0.7;
}

h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #f1faee;
    margin-bottom: 1.5rem;
}

#series-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #a8dadc;
    background-color: #1d3557;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #457b9d;
    text-align: left;
    line-height: 1.6;
}

.series-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.series-btn {
    background: #1d3557;
    border: 2px solid #457b9d;
    color: white;
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.series-btn:hover {
    background: #457b9d;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.series-btn img {
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.series-btn .jujutsu-kaisen-logo {
    height: 100px;
    margin-bottom: 20px; /* Adjust spacing to recenter visually */
}

.hidden {
    display: none;
}

#episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 50vh;
    overflow-y: auto;
}

#episode-list li {
    background: #1d3557;
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

#episode-list li.completed {
    background-color: #2b412e;
    border-left-color: #90be6d;
}

#episode-list li.completed a {
    color: #a8dadc;
    text-decoration: line-through;
    opacity: 0.8;
}

#episode-list li.completed:hover {
    background-color: #3a5a40;
}

#episode-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #f1faee;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

#episode-list li:hover {
    background-color: #457b9d;
}

#back-btn {
    background: #e63946;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
    float: left;
}

#back-btn:hover {
    background: #d0313d;
}

/* Video Player Styles */
#video-player-container {
    text-align: left;
}

.new-tab-info {
    margin-top: 1rem;
    text-align: center;
    color: #a8dadc;
}

.new-tab-info a {
    color: #ffcc00;
    font-weight: bold;
}

.new-tab-info a:hover {
    text-decoration: underline;
}

#video-title {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #f1faee;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

#back-to-episodes-btn {
    background: #e63946;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
    float: left;
}

#back-to-episodes-btn:hover {
    background: #d0313d;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1d3557;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #457b9d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8dadc;
}