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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #e94560;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.dashboard-btn {
    background: rgba(66, 133, 244, 0.2);
    color: #4285F4;
    border: 1px solid #4285F4;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.dashboard-btn:hover {
    background: #4285F4;
    color: #ffffff;
}

.logout-btn {
    background: rgba(234, 67, 53, 0.2);
    color: #EA4335;
    border: 1px solid #EA4335;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #EA4335;
    color: #ffffff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
}

/* Google-like Search Bar */
.search-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box:hover,
.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: #e94560;
    box-shadow: 0 6px 30px rgba(233, 69, 96, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    width: 24px;
    height: 24px;
    stroke: #a0a0a0;
    stroke-width: 2;
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-button {
    background: #e94560;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.search-button:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.search-button svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
}

.search-suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.suggestion {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    color: #ffffff;
}

/* Categories */
.categories {
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: rgba(233, 69, 96, 0.15);
    border-color: #e94560;
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.category-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.subscribe-category-btn {
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.subscribe-category-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.subscribe-category-btn.subscribed {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-stats {
    margin-bottom: 1rem;
}

.subscriber-count {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.subscriber-count .count {
    color: #e94560;
    font-weight: 600;
}

/* Featured Section */
.featured {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

.thumbnail {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.9;
}

.content-card h4 {
    padding: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.content-card p {
    padding: 0 1rem 1rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.content-meta {
    padding: 1rem;
}

.content-meta h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.content-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.like-dislike {
    display: flex;
    gap: 0.5rem;
}

.like-btn,
.dislike-btn,
.comment-btn,
.share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.like-btn:hover,
.dislike-btn:hover,
.comment-btn:hover,
.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.like-btn.liked {
    background: rgba(52, 168, 83, 0.2);
    border-color: #34A853;
    color: #34A853;
}

.dislike-btn.disliked {
    background: rgba(234, 67, 53, 0.2);
    border-color: #EA4335;
    color: #EA4335;
}

.count {
    font-size: 0.85rem;
}

/* Comments Modal */
.comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.comments-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e94560;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

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

.comment-date {
    color: #666;
    font-size: 0.8rem;
}

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

.no-comments {
    color: #a0a0a0;
    text-align: center;
    padding: 2rem;
}

.add-comment {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-comment textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    resize: vertical;
    outline: none;
}

.add-comment textarea:focus {
    border-color: #e94560;
}

.submit-comment {
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e94560;
}

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

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .auth-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .search-box {
        padding: 0.6rem 1rem;
    }

    .search-input {
        font-size: 1rem;
    }

    .categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .login-btn,
    .dashboard-btn,
    .logout-btn,
    .search-button,
    .category-card {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.3);
        min-height: 48px;
    }
    
    input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}
