* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #1a2329 0%, #2e3b47 50%, #1a2329 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    color: #ffffff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 199, 184, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 199, 184, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.main-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 -20px 30px -20px;
    padding: 20px 20px 25px 20px;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5C7B8, transparent);
    opacity: 0.3;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-section {
    flex-shrink: 0;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 199, 184, 0.2);
    border-color: rgba(245, 199, 184, 0.3);
}

.logo {
    height: 50px;
    width: auto;
    max-width: 280px;
    display: block;
    filter: brightness(1.1);
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    cursor: default;
    background: linear-gradient(135deg, #ffffff 0%, #F5C7B8 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 30px rgba(245, 199, 184, 0.3);
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F5C7B8, transparent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.main-title:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 25px rgba(245, 199, 184, 0.6));
    animation-duration: 2s;
}

.main-title:hover::after {
    width: 100%;
}

.main-title::before {
    content: 'Support Center';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F5C7B8 0%, #ffffff 50%, #F5C7B8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: shimmerReverse 4s linear infinite;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.main-title:hover::before {
    opacity: 0.7;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes shimmerReverse {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-wrapper {
        padding: 10px 18px;
    }
    
    .logo {
        height: 45px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-header {
        padding: 15px 20px 20px 20px;
        margin: 0 -20px 25px -20px;
    }
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 199, 184, 0.5);
    box-shadow: 0 4px 12px rgba(245, 199, 184, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #F5C7B8;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.layout-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.layout-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 4px;
    opacity: 0.8;
}

.layout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.layout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 199, 184, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 199, 184, 0.15);
}

.layout-btn.active {
    background: linear-gradient(135deg, #F5C7B8 0%, #e8b5a0 100%);
    color: #0a0a0a;
    border-color: #F5C7B8;
    box-shadow: 0 4px 16px rgba(245, 199, 184, 0.3);
}

@media (max-width: 768px) {
    .controls-bar {
        flex-direction: column;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        order: 1;
    }
    
    .category-filter {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }
    
    .layout-switcher {
        width: 100%;
        justify-content: center;
        order: 3;
    }
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 199, 184, 0.4);
    box-shadow: 0 4px 12px rgba(245, 199, 184, 0.15);
    color: #ffffff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #F5C7B8 0%, #e8b5a0 100%);
    color: #0a0a0a;
    border-color: #F5C7B8;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(245, 199, 184, 0.3);
}

.filter-btn.active::before {
    display: none;
}

.videos-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* List Layout (Default) */
.videos-container.layout-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Grid Layout */
.videos-container.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.videos-container.layout-grid .video-item {
    flex-direction: column;
}

.videos-container.layout-grid .video-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
}

.videos-container.layout-grid .video-info {
    padding: 20px;
}

/* Compact Grid Layout */
.videos-container.layout-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.videos-container.layout-compact .video-item {
    flex-direction: column;
}

.videos-container.layout-compact .video-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    height: 160px;
}

.videos-container.layout-compact .video-info {
    padding: 15px;
}

.videos-container.layout-compact .video-title {
    font-size: 1.3rem;
}

.videos-container.layout-compact .video-description {
    font-size: 0.9rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
   
    .videos-container.layout-grid,
    .videos-container.layout-compact {
        grid-template-columns: 1fr;
    }
    
    /* On mobile, stack thumbnail and content vertically for list layout */
    .videos-container.layout-list .video-item {
        flex-direction: column;
    }
    
    .videos-container.layout-list .video-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        min-height: 200px;
    }
    
    .videos-container.layout-list .video-info {
        flex: 0 0 auto;
        width: 100%;
    }
}

.video-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease;
    backdrop-filter: blur(10px);
    position: relative;
    min-height: 200px;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5C7B8, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(245, 199, 184, 0.25);
    border-color: rgba(245, 199, 184, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.video-item:hover::before {
    opacity: 0.6;
}

.video-item.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-thumbnail {
    flex: 0 0 30%;
    min-width: 0;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
    height: auto;
    min-height: 200px;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-thumbnail:hover::after {
    opacity: 1;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.video-thumbnail:hover img {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(245, 199, 184, 0.95) 0%, rgba(232, 181, 160, 0.95) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(245, 199, 184, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.play-overlay::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 199, 184, 0.3), rgba(232, 181, 160, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.video-thumbnail:hover .play-overlay {
    background: linear-gradient(135deg, #F5C7B8 0%, #e8b5a0 100%);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(245, 199, 184, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-thumbnail:hover .play-overlay::before {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-info {
    flex: 0 0 70%;
    min-width: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(245, 199, 184, 0.2) 0%, rgba(245, 199, 184, 0.15) 100%);
    color: #F5C7B8;
    border: 1px solid rgba(245, 199, 184, 0.3);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.video-item:hover .video-category {
    background: linear-gradient(135deg, #F5C7B8 0%, #e8b5a0 100%);
    color: #0a0a0a;
    border-color: #F5C7B8;
    transform: scale(1.05);
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.video-item:hover .video-title {
    color: #F5C7B8;
}

.video-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

.video-duration {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(245, 199, 184, 0.3);
    border: 2px solid rgba(245, 199, 184, 0.2);
    transform: scale(0.9);
    animation: modalScaleIn 0.3s ease forwards;
}

@keyframes modalScaleIn {
    to {
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(245, 199, 184, 0.2);
    border: 2px solid rgba(245, 199, 184, 0.3);
    color: #ffffff;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    line-height: 1;
    font-weight: 300;
}

.close-modal:hover {
    background: #F5C7B8;
    color: #0a0a0a;
    border-color: #F5C7B8;
    transform: rotate(90deg);
}

.video-modal-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.video-modal iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .logo {
        height: 45px;
    }

    .video-item {
        flex-direction: column;
    }

    .video-thumbnail {
        flex: 0 0 250px;
    }

    .video-info {
        padding: 20px;
    }

    .video-title {
        font-size: 1.4rem;
    }

    .video-modal iframe {
        height: 280px;
    }

    .video-modal-content {
        border-radius: 10px;
    }
}

.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}
