:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --secondary-gradient: linear-gradient(135deg, #ff8c42 0%, #ff5a5f 100%);
    --accent-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #ff8c42;
    --hover-color: #ff5a5f;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(247, 147, 30, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 90, 95, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: floating 10s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: translate(30px, -30px) rotate(2deg) scale(1.05);
        opacity: 0.9;
    }
    50% { 
        transform: translate(-20px, 20px) rotate(-2deg) scale(0.95);
        opacity: 1;
    }
    75% { 
        transform: translate(-30px, -20px) rotate(1deg) scale(1.02);
        opacity: 0.95;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-gradient);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.video-thumbnail-link {
    display: block;
    text-decoration: none;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
}

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

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

.video-content {
    padding: 20px;
}

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

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

.video-title a:hover {
    color: var(--accent-color);
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.pagination .active {
    background: var(--primary-gradient);
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer p {
    margin: 5px 0;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Video Page Styles */
.video-page {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.video-header {
    margin-bottom: 30px;
}

.video-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin-bottom: 20px;
}

.video-player-container {
    margin-bottom: 40px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.video-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.video-description-full {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.video-description-full a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.video-description-full a:hover {
    color: var(--hover-color);
    border-bottom-color: var(--hover-color);
}

.video-meta {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.video-footer {
    text-align: center;
    padding: 30px 0;
}

.btn-back {
    display: inline-block;
    padding: 15px 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .video-page-title {
        font-size: 1.8rem;
    }

    .video-content,
    .video-meta {
        padding: 20px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
