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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: var(--dark-light);
    color: var(--text);
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    animation: moveStars 20s linear infinite;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(100px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.video-card a {
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.video-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Audio Grid */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.audio-card {
    background: var(--dark-light);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audio-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.audio-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-info h3 {
    font-size: 1.1rem;
    color: var(--text);
}

.audio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.audio-player {
    width: 100%;
    margin-top: 1rem;
    border-radius: 5px;
}

.audio-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-small {
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.image-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-card:hover img {
    transform: scale(1.1);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    font-size: 4rem;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    color: white;
    margin-bottom: 0.3rem;
}

.image-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.image-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* AdSense */
.ad-banner {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.ad-placeholder {
    background: var(--dark-light);
    border: 2px dashed var(--primary);
    padding: 2rem;
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Player Container */
.player-container {
    margin-top: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.player-main {
    min-width: 0;
}

.video-player-wrapper {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-player {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.no-video {
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.no-video i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-details {
    background: var(--dark-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.video-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1.5rem;
}

.meta-left,
.meta-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-action:hover {
    background: var(--primary);
    color: white;
}

.video-description h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin: 0.3rem;
    font-size: 0.9rem;
}

/* Comments */
.comments-section {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: 10px;
}

.comment-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text);
    border-radius: 5px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgb(34, 197, 94);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: rgb(34, 197, 94);
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Sidebar */
.player-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.related-videos {
    background: var(--dark-light);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.related-item:hover {
    background: var(--dark);
}

.related-thumb {
    position: relative;
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb-small {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.duration-small {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.related-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ad-sidebar {
    background: var(--dark-light);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.2rem;
    background: var(--dark-light);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    color: white;
}

/* Footer */
footer {
    background: var(--dark-light);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
    }
    
    .player-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        background: var(--dark-light);
        flex-direction: column;
        padding: 2rem;
        width: 250px;
        height: calc(100vh - 80px);
        transition: right 0.3s;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .video-grid,
    .audio-grid,
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
