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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #374151;
}

.nav-btn:hover {
    background: #f3f4f6;
}

.nav-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.search-section {
    display: none;
}

@media (min-width: 768px) {
    .search-section {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.search-box {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    ring: 2px solid #2563eb;
    border-color: transparent;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #374151;
}

.mobile-nav-btn:hover {
    background: #f3f4f6;
}

.mobile-nav-btn.active {
    background: #2563eb;
    color: white;
}

.main-content {
    padding-top: 4rem;
}

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #2563eb, #06b6d4);
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #dbeafe;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-btn {
    padding: 1rem 2rem;
    background: white;
    color: #2563eb;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    background: #dbeafe;
    transform: scale(1.05);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background: linear-gradient(to top, #f8fafc, transparent);
}

.section {
    padding: 5rem 0;
}

.bg-white {
    background: white;
}

.bg-gray {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
}

.bg-blue-light {
    background: linear-gradient(to bottom right, #eff6ff, #e0f2fe);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #111827;
}

.section-subtitle {
    text-align: center;
    color: #4b5563;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

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

.section-title-left {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: #4b5563;
    font-size: 1.125rem;
}

.section-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    position: relative;
    background: linear-gradient(to bottom right, #f8fafc, white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f3f4f6;
}

.category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    color: white;
}

.bg-blue {
    background: #3b82f6;
}

.bg-green {
    background: #10b981;
}

.bg-yellow {
    background: #eab308;
}

.bg-pink {
    background: #ec4899;
}

.bg-cyan {
    background: #06b6d4;
}

.bg-orange {
    background: #f97316;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #111827;
}

.category-count {
    font-size: 0.875rem;
    text-align: center;
    color: #6b7280;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.video-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 4rem;
    height: 4rem;
    color: white;
    fill: white;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.video-category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #111827;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card:hover .video-title {
    color: #2563eb;
}

.video-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.video-stats svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ranking-card {
    background: linear-gradient(to bottom right, #f8fafc, white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f3f4f6;
}

.ranking-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.ranking-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ranking-number {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rank-1 {
    background: linear-gradient(to bottom right, #fbbf24, #f97316);
}

.rank-2 {
    background: linear-gradient(to bottom right, #d1d5db, #9ca3af);
}

.rank-3 {
    background: linear-gradient(to bottom right, #fdba74, #fb923c);
}

.rank-other {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.ranking-thumb {
    position: relative;
    flex-shrink: 0;
    width: 8rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.ranking-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-card:hover .ranking-thumb-overlay {
    opacity: 1;
}

.ranking-play-icon {
    width: 2rem;
    height: 2rem;
    color: white;
    fill: white;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
    transition: color 0.3s;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-card:hover .ranking-title {
    color: #2563eb;
}

.ranking-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.ranking-views {
    color: #4b5563;
    display: flex;
    align-items: center;
}

.ranking-views svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.ranking-trend {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ranking-trend svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.popular-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
}

.popular-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.popular-thumb-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
}

.popular-thumb-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.popular-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.popular-badge {
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.popular-duration {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.popular-thumb-title {
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-card:hover .popular-overlay {
    opacity: 1;
}

.popular-play-icon {
    width: 5rem;
    height: 5rem;
    color: white;
    fill: white;
}

.popular-info {
    padding: 1rem;
}

.popular-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.popular-views {
    color: #6b7280;
    display: flex;
    align-items: center;
}

.popular-views svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.popular-watch-btn {
    color: #2563eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.3s;
}

.popular-watch-btn:hover {
    color: #1d4ed8;
}

.popular-watch-btn svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section {
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    color: #3b82f6;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.625;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    display: block;
    color: #9ca3af;
    transition: color 0.3s;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list-item {
    color: #9ca3af;
    transition: color 0.3s;
    cursor: pointer;
    font-size: 0.875rem;
}

.footer-list-item:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}
