:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #ef4444;
    --accent-color: #f87171;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #374151;
    --hover-bg: #3a3a3a;
    --card-bg: #1a1a1a;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 10px 20px -5px rgba(220, 38, 38, 0.1);
    --shadow-hover: 0 35px 70px -12px rgba(0, 0, 0, 0.9), 0 20px 40px -10px rgba(220, 38, 38, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-center {
    flex: 1;
    max-width: 400px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(6px);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.nav-link.external-link {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.nav-link.external-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(220, 38, 38, 0.08) 60deg, transparent 120deg);
    animation: rotateGradient 30s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.875rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    margin-top: 1.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(220, 38, 38, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.6);
    border-color: var(--secondary-color);
}

/* Main Content */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(220, 38, 38, 0.3);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    z-index: 2;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-button {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.video-card:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* Video Badges */
.duration-badge, .hd-badge, .views-badge {
    position: absolute;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.duration-badge {
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
}

.hd-badge {
    top: 8px;
    right: 8px;
    background: var(--primary-color);
}

.views-badge {
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
}

/* Video Info */
.video-info {
    padding: 0.625rem;
}

.video-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.watch-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.watch-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: var(--shadow);
}

.page-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.page-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
}

.page-info {
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    font-size: 0.85rem;
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    cursor: default;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0.625rem;
    font-weight: 700;
    font-size: 0.85rem;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.no-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Source Buttons */
.source-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0 2rem 0;
    flex-wrap: wrap;
}

.source-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.source-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text-primary);
}

.source-btn.active {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
    border-color: var(--accent-color);
}

/* Video Watch Page Styles */
.watch-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem;
}

/* Player Source Tabs */
.player-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}

.player-tabs::-webkit-scrollbar {
    height: 6px;
}

.player-tabs::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.player-tabs::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.player-tab {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
}

.player-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.player-tab:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.player-tab:hover::before {
    left: 0;
}

.player-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.player-tab.active::before {
    left: 0;
}

.player-tab:active {
    transform: translateY(-1px);
}

.watch-container {
    display: grid;
    gap: 3rem;
}

.video-player-section {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-primary);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-details {
    padding: 2rem;
}

.video-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 1.1rem;
}

.video-description {
    margin-bottom: 2rem;
}

.video-description h3,
.video-actors h3,
.video-genres h3,
.video-tags h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.video-actors,
.video-genres,
.video-tags {
    margin-bottom: 2rem;
}

.actors-list,
.genres-list,
.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.actor-tag,
.genre-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-tag {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.tag-tag {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

.actor-tag:hover,
.genre-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Related Videos Section */
.related-videos-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-video-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.related-video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.related-video-info {
    padding: 1rem;
}

.related-video-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design for Watch Page */
@media (max-width: 1024px) {
    .watch-main {
        padding: 1.5rem;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .related-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .watch-main {
        padding: 1rem;
    }

    .video-details {
        padding: 1.5rem;
    }

    .video-title {
        font-size: 1.3rem;
    }

    .video-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .related-videos-grid {
        grid-template-columns: 1fr;
    }

    .related-videos-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item {
        justify-content: center;
    }

    .actors-list,
    .genres-list,
    .tags-list {
        justify-content: center;
    }
}

/* Categories Page Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(239, 68, 68, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.category-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.category-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(8px);
    color: var(--secondary-color);
}

/* Source badges */
.source-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.source-badge.milfcaps {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.source-badge.leakslove {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Source info display */
.source-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-info .source-badge {
    position: static;
    margin: 0;
}

/* Responsive Design for Categories */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .category-thumbnail {
        height: 160px;
    }

    .category-info {
        padding: 1rem;
    }

    .category-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Clickable tag styles */
.genre-tag.category-tag a,
.actor-tag a,
a.genre-tag.category-tag,
a.actor-tag {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.genre-tag.category-tag:hover,
.actor-tag:hover,
a.genre-tag.category-tag:hover,
a.actor-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Actor Stats Styles */
.actor-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design for Breadcrumbs and Stats */
@media (max-width: 768px) {
    .breadcrumb {
        flex-direction: column;
        gap: 0.25rem;
    }

    .breadcrumb-separator {
        display: none;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Search Form Styles */
.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 30px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.search-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-1px);
}

/* Search Hero */
.search-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.search-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(220, 38, 38, 0.05) 60deg, transparent 120deg);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

/* Search Stats */
.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 30%, var(--card-bg) 70%, var(--bg-secondary) 100%);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.search-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 30px 30px 0 0;
}

.search-stats::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: floatingGlow 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatingGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 1;
        background: var(--gradient-primary);
    }
    50% { 
        opacity: 0.8;
        background: var(--gradient-accent);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.results-count, .search-term {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.results-count {
    background: var(--gradient-accent);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 35px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 
        0 10px 30px rgba(248, 113, 113, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(248, 113, 113, 0.3);
    animation: pulse 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: -0.01em;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(220, 38, 38, 0.5), 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(220, 38, 38, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(220, 38, 38, 0.7), 
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(220, 38, 38, 0.5);
        transform: scale(1.05);
    }
}

.search-term {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 35px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 
        0 10px 30px rgba(220, 38, 38, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(220, 38, 38, 0.3);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: glow 4s ease-in-out infinite alternate;
    letter-spacing: -0.01em;
}

@keyframes glow {
    from {
        box-shadow: 
            0 10px 30px rgba(220, 38, 38, 0.5), 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(220, 38, 38, 0.3);
    }
    to {
        box-shadow: 
            0 15px 40px rgba(220, 38, 38, 0.7), 
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(220, 38, 38, 0.5);
    }
}

/* Search Page Specific Styles */
.search-page main {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Search Results Grid */
.search-results-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    border-radius: 30px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.search-results-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 30px 30px 0 0;
}

.search-results-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: floatingGlow 8s ease-in-out infinite;
    z-index: 0;
}

/* Enhanced Video Grid for Search */
.search-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    animation: searchGridAppear 1.2s ease-out;
}

/* Search Video Cards */
.search-video-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg-secondary) 30%, var(--card-bg) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(220, 38, 38, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    position: relative;
    transform-origin: center;
    opacity: 0;
    animation: slideInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.search-video-card:hover {
    transform: translateY(-15px) scale(1.05) rotateY(2deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.search-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%, rgba(239, 68, 68, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 25px;
}

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

/* Search Video Thumbnail */
.search-video-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 25px 25px 0 0;
}

.search-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
}

.search-video-card:hover .search-video-thumbnail img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Enhanced Play Overlay */
.search-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(220, 38, 38, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    z-index: 2;
}

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

.search-play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 10px 30px rgba(220, 38, 38, 0.6),
        0 0 20px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
}

.search-play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.search-video-card:hover .search-play-button {
    transform: scale(1) rotate(360deg);
}

.search-video-card:hover .search-play-button::before {
    transform: translateX(100%);
}

/* Enhanced Badges */
.search-duration-badge, .search-hd-badge, .search-views-badge, .search-relevance-badge {
    position: absolute;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-duration-badge {
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(42, 42, 42, 0.9));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.search-hd-badge {
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.search-views-badge {
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.5);
}

.search-relevance-badge {
    top: 60px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    animation: scoreGlow 3s ease-in-out infinite alternate;
}

/* Search Video Info */
.search-video-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.search-video-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.search-video-card:hover .search-video-title {
    color: var(--primary-color);
}

.search-video-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.search-video-card:hover .search-video-description {
    color: var(--text-secondary);
}

.search-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.search-video-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-video-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-watch-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.search-watch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.4s ease;
    z-index: -1;
}

.search-video-card:hover .search-watch-btn::before {
    left: 0;
}

.search-watch-btn::after {
    content: '▶';
    transition: transform 0.4s ease;
    font-size: 0.8rem;
}

.search-video-card:hover .search-watch-btn {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6);
}

.search-video-card:hover .search-watch-btn::after {
    transform: translateX(6px);
}

/* Optimized animations with GPU acceleration and will-change */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.8) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

@keyframes searchGridAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(40px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) translateZ(0);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Staggered animation delays */
.search-video-card:nth-child(1) { animation-delay: 0.1s; }
.search-video-card:nth-child(2) { animation-delay: 0.2s; }
.search-video-card:nth-child(3) { animation-delay: 0.3s; }
.search-video-card:nth-child(4) { animation-delay: 0.4s; }
.search-video-card:nth-child(5) { animation-delay: 0.5s; }
.search-video-card:nth-child(6) { animation-delay: 0.6s; }
.search-video-card:nth-child(7) { animation-delay: 0.7s; }
.search-video-card:nth-child(8) { animation-delay: 0.8s; }
.search-video-card:nth-child(9) { animation-delay: 0.9s; }
.search-video-card:nth-child(10) { animation-delay: 1s; }
.search-video-card:nth-child(11) { animation-delay: 1.1s; }
.search-video-card:nth-child(12) { animation-delay: 1.2s; }
.search-video-card:nth-child(13) { animation-delay: 1.3s; }
.search-video-card:nth-child(14) { animation-delay: 1.4s; }
.search-video-card:nth-child(15) { animation-delay: 1.5s; }
.search-video-card:nth-child(16) { animation-delay: 1.6s; }
.search-video-card:nth-child(17) { animation-delay: 1.7s; }
.search-video-card:nth-child(18) { animation-delay: 1.8s; }
.search-video-card:nth-child(19) { animation-delay: 1.9s; }
.search-video-card:nth-child(20) { animation-delay: 2s; }

/* Responsive Design for Search */
@media (max-width: 1400px) {
    .search-video-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .search-results-container {
        padding: 2rem;
        margin: 1rem 0;
    }

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

@media (max-width: 768px) {
    .search-page main {
        padding: 1rem;
    }

    .search-results-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .search-video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-video-card {
        border-radius: 20px;
    }

    .search-video-thumbnail {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .search-video-info {
        padding: 1.5rem;
    }

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

/* Pagination Improvements */
.pagination-container {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 30%, var(--card-bg) 70%, var(--bg-secondary) 100%);
    padding: 2.5rem 3rem;
    border-radius: 35px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.4), 
        0 0 30px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 35px 35px 0 0;
    animation: shimmer 3s ease-in-out infinite;
}

.pagination::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: floatingGlow 4s ease-in-out infinite;
}

.pagination-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 
        0 10px 25px rgba(220, 38, 38, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(220, 38, 38, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.pagination-btn:hover::before {
    left: 100%;
}

.pagination-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
        0 15px 35px rgba(248, 113, 113, 0.6), 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(248, 113, 113, 0.4);
    color: white;
}

.pagination-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.pagination-info {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-primary);
    padding: 1.25rem 2.5rem;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.pagination-separator {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.no-results-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-results-content p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.search-suggestions {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 600px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3), 
        0 0 20px rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(10px);
}

.search-suggestions h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.search-suggestions ul {
    list-style: none;
    text-align: left;
}

.search-suggestions li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.search-suggestions li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.retry-search {
    max-width: 500px;
    margin: 3rem auto;
}

/* Search Landing */
.search-landing {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.search-landing-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.search-landing-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.search-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.feature {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(220, 38, 38, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.popular-searches {
    margin-top: 4rem;
}

.popular-searches h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-tag {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.search-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.search-tag:hover::before {
    left: 0;
}

.search-tag:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.relevance-score {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-right: 0.75rem;
    box-shadow: 
        0 6px 15px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scoreGlow 2s ease-in-out infinite alternate;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.relevance-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.relevance-score:hover::before {
    left: 100%;
}

@keyframes scoreGlow {
    from {
        box-shadow: 
            0 6px 15px rgba(251, 191, 36, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    to {
        box-shadow: 
            0 8px 20px rgba(251, 191, 36, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Footer Improvements */
.footer-social {
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.footer-legal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-legal small {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-meta a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: var(--secondary-color);
}

/* Source badges for search results */
.source-badge.sxyprn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    padding: 2.5rem 0 1.25rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
    z-index: 1;
}

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

.footer-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.6) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-section:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover::before {
    transform: scaleY(1);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 1rem;
    background: rgba(220, 38, 38, 0.1);
}

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
    color: white;
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
}

.footer-legal small {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: block;
    text-align: center;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 26, 0.5) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer-meta span {
    position: relative;
}

.footer-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-meta a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-meta a:hover::before {
    width: 100%;
}

.footer-meta a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
}

/* Responsive Design for Footer and Search */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem 0;
        margin-top: 3rem;
    }
}

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

    .header-center {
        order: 3;
        max-width: none;
        width: 100%;
    }

    .search-hero h1 {
        font-size: 1.8rem;
    }

    .search-stats {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        padding: 2.5rem 0 1rem 0;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-section {
        padding: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-meta span:not(:last-child)::after {
        display: none;
    }

    .social-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-meta {
        font-size: 0.8rem;
    }
}