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

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --accent-pink: #ff006e;
    --accent-purple: #8338ec;
    --accent-gradient: linear-gradient(135deg, #ff006e, #8338ec);
    --text-light: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: var(--secondary-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-pink);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.1));
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Main Content */
.main {
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 2rem;
}

.container {
    width: 100%;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background-color: var(--secondary-dark);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--tertiary-dark);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--secondary-dark);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-pink);
}

.player-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

#videoPlayer {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.video-info {
    margin-bottom: 2rem;
}

.video-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.episode-selector {
    margin-bottom: 2rem;
}

.episode-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.episode-selector select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--tertiary-dark);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    padding: 1rem;
    background-color: var(--tertiary-dark);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

.comment-form textarea::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background-color: var(--tertiary-dark);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-pink);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.comment-text {
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Recommended Videos */
.player-right {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.player-right h3 {
    margin-bottom: 1.5rem;
}

.recommended-videos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-item {
    background-color: var(--tertiary-dark);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.recommended-item:hover {
    border-color: var(--accent-pink);
    transform: translateX(4px);
}

.recommended-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.recommended-info {
    padding: 0.75rem;
}

.recommended-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .player-container {
        grid-template-columns: 1fr;
    }

    .player-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .card-image {
        height: 200px;
    }

    .modal-content {
        border-radius: 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}
