.watch-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    padding-top: 80px;
    
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

.video-section {
    flex: 1;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container .artplayer-app {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

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

@media (max-width: 768px) {
    .video-container {
        border-radius: 0;
    }

    .watch-container {
        padding: 0;
    }

    .video-section {
        border-radius: 0;
    }
}

.episode-info {
    padding: 20px;
    background: #1e1e1e;
}

.episode-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nav-button {
    padding: 10px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-button:hover {
    background: #3c3c3c;
}

.episodes-sidebar {
    width: 300px;
    background: var(--dark-surface);
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

.episodes-sidebar h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 5px;
}

.episode-item {
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.episode-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.episode-item.active {
    background: var(--accent);
    color: var(--dark-text);
}

.episodes-sidebar::-webkit-scrollbar,
.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episodes-sidebar::-webkit-scrollbar-track,
.episode-list::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

.episodes-sidebar::-webkit-scrollbar-thumb,
.episode-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.comment-content.spoiler .comment-text {
    display: none;
}

.comment-content.spoiler .spoiler-warning {
    background: var(--card-bg);
    color: var(--accent);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.comment-content.spoiler .spoiler-warning:hover {
    background: var(--hover-bg);
}

.comment-content.spoiler.revealed .spoiler-warning {
    display: none;
}

.comment-content.spoiler.revealed .comment-text {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .episodes-sidebar {
        width: 250px;
    }

    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 992px) {
    .episodes-sidebar {
        width: 87%;
        max-height: 100px;
        position: static;
    }

    .episode-list {
        max-height: 250px;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .episode-item {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

:root {
    --primary-color: #2b2d42;
    --secondary-color: #8d99ae;
    --accent-color: #ef233c;
    --background-color: #edf2f4;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-primary: #bb86fc;
    --dark-secondary: #03dac6;
    --dark-error: #cf6679;
    --dark-text: #ffffff;
    --dark-text-secondary: rgba(255, 255, 255, 0.7);
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #7c4dff;
    --card-bg: #1a1a1a;
    --hover-bg: #222222;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.video-section {
    flex: 1;
    background: var(--dark-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.plyr {
    width: 100%;
    height: 100%;
}

.skip-intro-btn {
    position: absolute;
    bottom: 70px;
    right: 25px;
    background: rgba(124, 77, 255, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skip-intro-btn:hover {
    background: #651fff;
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.skip-intro-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-cast-btn {
    margin: 0 5px;
    position: relative;
    top: 1px;
}

.custom-cast-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.custom-cast-btn:hover svg {
    transform: scale(1.1);
    opacity: 1;
}

.plyr--fullscreen-active .custom-cast-btn {
    display: block;
}

.plyr__volume {
    width: auto;
    min-width: 32px;
}

@media (max-width: 768px) {
    .skip-intro-btn {
        bottom: 60px;
        right: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .plyr__volume input[type=range] {
        display: none !important;
    }
}

.version-options {
    background: var(--card-bg);
    
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.version-section {
    margin-bottom: 20px;
}

.version-section h3 {
    color: var(--text-primary);
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.version-button {
    padding: 8px 16px;
    background: var(--card-bg);
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-button:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.version-button.active {
    background: #007bff;
    color: var(--dark-text);
}

.episode-info {
    padding: 20px;
    background: var(--dark-surface);
    border-radius: 8px;
    margin-top: 20px;
}

.episode-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.nav-button {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--dark-primary);
    transform: translateY(-2px);
}

.comments-section {
    background: var(--dark-surface);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comments-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.comment-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.comment-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--dark-primary);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    min-height: 120px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.spoiler-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.spoiler-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.comment-form button {
    background: var(--accent);
    color: var(--text-primary);
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: var(--dark-primary);
    transform: translateY(-2px);
}

.comment-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.comment-meta {
    flex: 1;
}

.comment-author {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-secondary);
}

.login-prompt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-prompt a:hover {
    color: var(--dark-primary);
}

@media (max-width: 1200px) {
    .watch-container {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .watch-container {
        flex-direction: column;
    }

    .form-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .spoiler-checkbox {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .comments-section {
        padding: 15px;
    }

    .comment-form {
        padding: 15px;
    }

    .comment-header {
        flex-wrap: wrap;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .comment-meta {
        width: calc(100% - 55px);
    }

    .comment-author {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .watch-container {
        padding: 10px;
    }

    .comments-title {
        font-size: 1.3rem;
    }

    .comment-form textarea {
        min-height: 100px;
    }

    .comment-item {
        padding: 15px;
    }

    .comment-avatar {
        width: 35px;
        height: 35px;
    }
}