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

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    z-index: 999;
    align-items: center;
    padding: 0 20px;
}

.mobile-menu-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #a855f7;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.mobile-site-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 15px;
}

.sidebar {
    width: 280px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(147, 51, 234, 0.3);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toggle-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #a855f7;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(168, 85, 247, 0.1);
    color: #fff;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link .icon {
    font-size: 1.2rem;
}

.nav-link .text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
}

.search-widget {
    display: flex;
    gap: 8px;
}

.search-widget input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.search-widget input:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.08);
}

.search-widget button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-widget button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.hero-banner {
    padding: 40px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content p {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.btn-outline {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
}

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
}

.content-section {
    padding: 40px;
}

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

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.section-header .view-all {
    color: #a855f7;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-header .view-all:hover {
    color: #ec4899;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

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

.card-thumbnail {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: vod_pic;
    transition: transform 0.4s ease;
}

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

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
}

.play-indicator::after {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

.video-card:hover .play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-info {
    padding: 16px;
}

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

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(168, 85, 247, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: #a855f7;
}

.category-section {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.category-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 30px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-color: transparent;
    color: #fff;
}

.site-footer {
    background: rgba(15, 12, 41, 0.8);
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding: 40px;
    margin-left:280px;
}

.footer-wrapper {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-section p {
    color: #6b7280;
    line-height: 1.7;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #6b7280;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #a855f7;
}

.footer-bottom {
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding-top: 24px;
    text-align: center;
    color: #4b5563;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}
#friendlink{display: block;}
#friendlink .content{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: center;
} 
#friendlink .content h2{ 
    font-size: 16px;
    color: #fff;
}
#friendlink .content .flinks{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
#friendlink .content .flinks a{
    font-size: 14px;
    text-align: left;
    color:#fff;
}
@media (max-width: 1024px) {
    .mobile-topbar {
        display: flex;
    }
    .sidebar {
        transform: translateX(-280px);
        top: 60px;
        height: calc(100vh - 60px);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .site-footer{
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    .toggle-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-banner,
    .content-section,
    .site-footer {
        padding: 24px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #friendlink{display: none;}
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .hero-banner,
    .content-section,
    .site-footer {
        padding: 16px;
    }
}
