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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Starfield Animation */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="white"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
    opacity: 0.3;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="white"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
    opacity: 0.2;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="white"/></svg>') repeat;
    animation: animateStars 200s linear infinite;
    opacity: 0.15;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.streak-counter {
    background: rgba(255, 100, 50, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 100, 50, 0.3);
}

.notification-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

.notification-badge.has-new {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-icon {
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.logo h1 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-upload {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.btn-upload:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero h2 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feed Section */
.feed {
    padding: 40px 0 80px;
}

.feed h3 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.video-card.new-video::before {
    content: '✨ NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.video-card-info {
    padding: 15px;
}

.creator-badge {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.creator-name {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

.like-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.like-btn.liked {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
}

.like-btn.liked .star-icon {
    animation: starPop 0.5s ease-out;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.video-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.comments-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.comments-section h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-input input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
}

.comment-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-input button {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-input button:hover {
    transform: scale(1.05);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-author.bot {
    color: #6c9eff;
}

.comment-time {
    font-size: 0.8rem;
    opacity: 0.6;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.modal-content h3 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-form {
    margin-top: 20px;
}

.upload-form input,
.upload-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
}

.upload-form input::placeholder,
.upload-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: scale(1.02);
}

.video-player-modal {
    max-width: 900px;
}

#modalVideo {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.video-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.video-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    opacity: 0.8;
}

.new-video-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    transform: translateY(200px);
    transition: transform 0.5s;
    z-index: 1001;
}

.new-video-toast.show {
    transform: translateY(0);
}

.new-video-toast button {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.new-video-toast button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .user-stats {
        display: none;
    }
    
    nav {
        gap: 10px;
    }
    
    .new-video-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 0.9rem;
    }
}