:root {
    --primary: #6ee7b7;
    --primary-dark: #34d399;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0b0f14;
    --darker: #080b0f;
    --light: #e6f0f2;
    --gray: #94a3b8;
    --gray-dark: #64748b;
    --glass: rgba(110, 231, 183, 0.05);
    --glass-border: rgba(110, 231, 183, 0.1);
    --gradient: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
}

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

body {
    background: var(--darker);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.header {
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 80px 20px 40px;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--light);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-nav-btn:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--primary);
    transform: translateX(8px);
}

.mobile-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-nav-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-lang-switcher h3 {
    color: var(--light);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lang-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--light);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--primary);
}

.mobile-lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-lang-btn span:first-child {
    font-weight: 500;
}

.mobile-lang-btn span:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav,
    .desktop-lang {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-right {
        margin-left: auto;
    }
}

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

body.no-scroll {
    overflow: hidden;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 16px;
    border: none;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--light);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.1), transparent);
    transition: left 0.6s;
}

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

.nav-btn:hover {
    background: rgba(110, 231, 183, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--dark);
}

.main {
    margin-top: 100px;
    min-height: calc(100vh - 200px);
}

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

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--dark);
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

.addPlus {
    width: 16px;
}

.news-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(110, 231, 183, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-category img {
    width: 24px;
    height: 24px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--light);
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

.news-source {
    background: var(--glass);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary);
}

.footer {
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--gray);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.3s ease;
}

.footer-nav-btn:hover {
    background: var(--glass);
    color: var(--light);
}

.footer-nav-btn.active {
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
}

.footer-nav-btn i {
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-nav-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light);
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.modal-body {
    padding: 2rem 1rem;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--gray);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-container {
    position: relative;
    margin: 2rem 0;
}

.search-container .clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.search-container .clear-search:hover {
    background: var(--glass);
    color: var(--primary);
}

.search-highlight {
    background: var(--primary);
    color: var(--dark);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

@media (max-width: 968px) {
    .main {
        margin-top: 130px;
    }
}

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

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .main {
        margin-top: 140px;
    }
}

.news-card,
.game-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 80px 20px 40px;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--light);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-nav-btn:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--primary);
    transform: translateX(8px);
}

.mobile-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-nav-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-lang-switcher h3 {
    color: var(--light);
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lang-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--light);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: var(--primary);
}

.mobile-lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.mobile-lang-btn span:first-child {
    font-weight: 500;
}

.mobile-lang-btn span:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.3s ease;
}

.footer-nav-btn:hover {
    background: var(--glass);
    color: var(--light);
}

.footer-nav-btn.active {
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
}

.footer-nav-btn i {
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav,
    .desktop-lang {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-right {
        margin-left: auto;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-nav-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

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

body.no-scroll {
    overflow: hidden;
}

.category-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.carousel {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-video {
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-nav.hidden {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.active-filter-container {
    margin: 1rem 0 2rem 0;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.active-filter {
    background: var(--primary);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(110, 231, 183, 0.2);
}

.clear-filter-btn {
    background: var(--darker);
    border: 1px solid var(--glass-border);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filter-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
}

.news-category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-decoration: none;
}

.news-category-link:hover {
    background: rgba(110, 231, 183, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(110, 231, 183, 0.1);
}

.youtube-recommendation {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 0, 0, 0.1));
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.youtube-recommendation h3 {
    color: var(--light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-link-card {
    display: flex;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.youtube-link-card:hover {
    border-color: #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

.youtube-thumbnail {
    position: relative;
    flex: 0 0 160px;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-thumbnail img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.youtube-link-info {
    flex: 1;
}

.youtube-link-info h4 {
    margin: 0 0 8px 0;
    color: var(--light);
    font-size: 1.1rem;
}

.youtube-author {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.youtube-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.youtube-watch-btn:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

.youtube-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.youtube-disclaimer i {
    color: #ffc107;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------- */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 15, 20, 0.6);
    backdrop-filter: blur(6px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(16, 185, 129, 0.85),
            rgba(16, 185, 129, 0.45));
    border-radius: 20px;
    border: 2px solid rgba(10, 15, 20, 0.6);
    box-shadow:
        0 0 12px rgba(16, 185, 129, 0.35),
        inset 0 0 6px rgba(255, 255, 255, 0.15);
    transition:
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
    opacity: 0.55;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
    box-shadow:
        0 0 18px rgba(16, 185, 129, 0.7),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:active {
    transform: scale(0.94);
}

* {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(16, 185, 129, 0.7) rgba(10, 15, 20, 0.6);
}

::-webkit-scrollbar-thumb {
    opacity: 0.35;
}

body:hover ::-webkit-scrollbar-thumb {
    opacity: 0.85;
}