:root {
    --color-orange: #ff6624;
    --color-orange-hover: #e85a1f;
    --color-dark: #141414;
    --color-dark-2: #1c1c1c;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --badge-art: #7c3aed;
    --badge-art-bg: #ede9fe;
    --badge-science: #2563eb;
    --badge-science-bg: #dbeafe;
    --badge-tech: #059669;
    --badge-tech-bg: #d1fae5;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-md: 0.55s;
    --duration-lg: 0.75s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    width: min(280px, 80vw);
}

.preloader-brand {
    font-size: clamp(1.6rem, 6vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.preloader-brand span {
    color: var(--color-orange);
}

.preloader-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.preloader-bar {
    height: 100%;
    width: 40%;
    background: var(--color-orange);
    border-radius: 4px;
    animation: preloaderSlide 1.1s var(--ease-out) infinite;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin: 0;
}

@keyframes preloaderSlide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.site-header--solid {
    position: relative;
    background: var(--color-dark);
}

.site-header .navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: padding 0.35s var(--ease-out), background 0.35s ease;
}

.page-home .site-header.is-scrolled {
    position: fixed;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: headerSlideDown 0.45s var(--ease-out);
}

.page-home .site-header.is-scrolled .navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-logo .logo-title {
    display: block;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.2;
}

.site-logo .logo-tagline,
.footer-brand .logo-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.site-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--color-orange);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
    transform: scaleX(1);
}

.header-utils .social-link,
.footer-socials a {
    color: #fff;
    font-size: 1rem;
    opacity: 0.9;
}

.header-utils .social-link:hover,
.footer-socials a:hover {
    color: var(--color-orange);
}

.header-search {
    font-size: 1.1rem;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease-out), visibility 1s;
    pointer-events: none;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.05);
    transition: transform 1.2s var(--ease-out);
}

.hero-slide.active .hero-bg {
    animation: heroKenBurns 9s var(--ease-out) forwards;
}

@keyframes heroKenBurns {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.12);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
    max-width: 640px;
}

.hero-content .hero-anim-item {
    opacity: 0;
    transform: translateY(22px);
}

.hero-content.is-ready .hero-anim-item {
    animation: heroFadeUp 0.7s var(--ease-out) forwards;
    animation-delay: var(--hero-delay, 0s);
}

.hero-content.is-switching .hero-anim-item {
    animation: heroTextSwap 0.55s var(--ease-out) forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTextSwap {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    45% {
        opacity: 0;
        transform: translateY(-14px);
    }
    55% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-featured {
    display: inline-block;
    background: var(--color-orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-excerpt {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
}

.hero-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.btn-cta {
    background: var(--color-orange);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 28px rgba(255, 102, 36, 0.35);
}

.btn-cta:hover {
    background: var(--color-orange-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 102, 36, 0.45);
}

.btn-cta .bi {
    transition: transform 0.3s var(--ease-out);
}

.btn-cta:hover .bi {
    transform: translateX(4px);
}

.hero-controls {
    position: absolute;
    right: 2rem;
    bottom: 3rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.hero-arrows {
    display: flex;
    gap: 0.5rem;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.hero-counter {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-progress {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    background: var(--color-orange);
    width: 25%;
    transition: width 0.65s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.hero-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: progressShine 2.2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 28px;
    height: 3px;
    background: var(--color-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-link {
    color: var(--color-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.section-link .bi {
    transition: transform 0.3s var(--ease-out);
}

.section-link:hover {
    color: var(--color-orange);
}

.section-link:hover .bi {
    transform: translateX(4px);
}

/* Article cards */
.content-section {
    padding: 4rem 0;
}

.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.article-card:hover {
    transform: translateY(-6px);
}

.article-card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 1rem;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.03);
}

.category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.category-badge.art {
    color: var(--badge-art);
    background: var(--badge-art-bg);
}

.category-badge.science {
    color: var(--badge-science);
    background: var(--badge-science-bg);
}

.category-badge.technology {
    color: var(--badge-tech);
    background: var(--badge-tech-bg);
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.article-card-title a:hover {
    color: var(--color-orange);
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.article-card-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar */
.sidebar-block {
    margin-bottom: 2.5rem;
}

.trending-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.35s var(--ease-out), background 0.35s ease;
    border-radius: 6px;
}

.trending-item:hover {
    transform: translateX(6px);
    background: rgba(255, 102, 36, 0.04);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-weight: 800;
    font-size: 1.25rem;
    color: #d1d5db;
    min-width: 1.5rem;
    line-height: 1;
}

.trending-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.trending-title a:hover {
    color: var(--color-orange);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.newsletter-box {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
}

.newsletter-box .section-title {
    font-size: 1.15rem;
}

.newsletter-box .section-title::before {
    width: 22px;
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.newsletter-box .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.btn-subscribe {
    width: 100%;
    background: var(--color-orange);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
}

.btn-subscribe:hover {
    background: var(--color-orange-hover);
    color: #fff;
}

.btn-subscribe.is-pulse {
    animation: btnPulse 0.45s var(--ease-out);
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

.newsletter-note {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.newsletter-note i {
    margin-right: 0.25rem;
}

/* Video section */
.video-section {
    background: var(--color-dark);
    color: #fff;
    padding: 4rem 0;
}

.video-section .section-title::before {
    background: var(--color-orange);
}

.video-section .section-title {
    color: #fff;
}

.video-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 1rem 0;
}

.video-text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 600;
}

.play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    box-shadow: 0 0 0 0 rgba(255, 102, 36, 0.45);
    animation: playPulse 2.5s ease-out infinite;
}

.btn-watch:hover .play-circle,
.video-play-overlay:hover .play-circle {
    transform: scale(1.08);
    animation: none;
    box-shadow: 0 12px 32px rgba(255, 102, 36, 0.5);
}

@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 36, 0.45);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 102, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 36, 0);
    }
}

.video-player-wrap {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-player-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.video-play-overlay .play-circle {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(0, 0, 0, 0.85);
    font-size: 0.8rem;
}

.video-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.video-progress-fill {
    width: 35%;
    height: 100%;
    background: var(--color-orange);
    animation: videoProgress 12s linear infinite alternate;
}

@keyframes videoProgress {
    from {
        width: 22%;
    }
    to {
        width: 68%;
    }
}

/* More articles compact */
.more-section {
    padding: 4rem 0 5rem;
    background: #fafafa;
}

.article-card.compact .article-card-image {
    aspect-ratio: 16 / 11;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.footer-headline {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-links-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
}

.footer-credit .heart {
    color: var(--color-orange);
}

/* Inner pages */
.page-hero-simple {
    background: var(--color-dark);
    color: #fff;
    padding: 6rem 0 3rem;
    margin-top: 0;
}

.page-hero-simple h1 {
    font-weight: 800;
}

.inner-content {
    padding: 3rem 0 4rem;
}

.article-single-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-top: 0;
}

.article-single-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 820px;
    margin: 0.75rem 0 1rem;
}

.article-single-body .article-content {
    font-size: 1.05rem;
    color: #374151;
}

.article-single-body .article-content p {
    margin-bottom: 1.1rem;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-lg) var(--ease-out), transform var(--duration-lg) var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::before {
    transition: width 0.6s var(--ease-out);
}

.reveal.is-visible .section-title::before {
    animation: lineGrow 0.7s var(--ease-out) forwards;
}

@keyframes lineGrow {
    from {
        width: 0;
    }
    to {
        width: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-content .hero-anim-item {
        opacity: 1;
        transform: none;
    }

    .hero-slide.active .hero-bg {
        animation: none;
        transform: scale(1);
    }
}

.trending-body {
    min-width: 0;
    flex: 1;
}

.mobile-nav-panel {
    padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
    .mobile-nav-panel {
        background: rgba(10, 10, 10, 0.98);
        margin: 0.75rem -0.5rem 0;
        padding: 1rem 0.75rem 1.25rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav .nav-link {
        padding: 0.75rem 0.5rem !important;
        font-size: 1rem;
    }

    .header-utils {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-section,
    .video-section,
    .more-section {
        padding: 2.75rem 0;
    }

    .site-footer {
        text-align: center;
    }

    .footer-socials,
    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
    .page-inner .site-header {
        background: var(--color-dark);
        position: fixed;
    }

    .page-home .site-header {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 100%);
        position: absolute;
    }

    body.page-inner {
        padding-top: 72px;
    }

    .hero-section {
        min-height: 75vh;
    }

    .hero-controls {
        right: 1rem;
        bottom: 1.5rem;
    }

    .hero-content {
        padding-top: 5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 92vh;
    }

    .hero-content {
        padding: 6.5rem 0 5.5rem;
    }

    .hero-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 1rem;
        align-items: center;
    }

    .hero-counter {
        font-size: 0.8rem;
    }

    .hero-progress {
        width: 100px;
    }

    .btn-cta,
    .btn-subscribe {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .article-card-meta {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

    .trending-item {
        align-items: flex-start;
    }

    .trending-thumb {
        width: 64px;
        height: 64px;
    }

    .video-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-hero-simple {
        padding: 5rem 0 2.25rem;
    }
}
