/* Infinity Dark News Theme */
:root {
    --inf-bg: #0b0b0d;
    --inf-surface: #141418;
    --inf-surface-2: #1c1c22;
    --inf-border: #2a2a32;
    --inf-text: #f4f4f5;
    --inf-muted: #a1a1aa;
    --inf-red: #e50914;
    --inf-red-dark: #b20710;
    --inf-gradient: linear-gradient(135deg, #e50914 0%, #9f1239 100%);
    --inf-radius: 10px;
}

.theme-infinity {
    background: var(--inf-bg);
    color: var(--inf-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-text-size-adjust: 100%;
}
.theme-infinity a { text-decoration: none; }
.theme-infinity .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.inf-container { max-width: 1320px; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
.inf-hide-mobile { display: block; }
.inf-hide-desktop { display: none; }

/* Header */
.inf-topbar { background: #050506; border-bottom: 1px solid var(--inf-border); }
.inf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 40px; padding: .35rem 0; }
.inf-topbar__trend { display: flex; align-items: center; gap: .65rem; min-width: 0; flex: 1; }
.inf-topbar__label {
    flex-shrink: 0;
    background: var(--inf-gradient);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: .28rem .5rem;
    border-radius: 3px;
    letter-spacing: .04em;
}
.inf-topbar__ticker { min-width: 0; overflow: hidden; }
.inf-topbar__headline { display: block; color: var(--inf-muted); font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inf-topbar__headline:hover { color: #fff; }
.inf-topbar__actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.inf-live-btn {
    background: var(--inf-red);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: .35rem .6rem;
    border-radius: 4px;
    letter-spacing: .03em;
}
.inf-icon-btn {
    border: 0;
    background: var(--inf-surface-2);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    cursor: pointer;
}

.inf-brandrow { background: var(--inf-bg); border-bottom: 1px solid var(--inf-border); padding: .85rem 0; }
.inf-brandrow__inner { display: flex; align-items: center; justify-content: center; }
.inf-logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.inf-logo__mark {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inf-gradient);
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 900;
}
.inf-logo__text { font-size: 1.15rem; font-weight: 900; letter-spacing: .06em; }
.inf-logo__img { max-height: 52px; width: auto; display: block; }

.inf-nav { background: var(--inf-surface); border-bottom: 1px solid var(--inf-border); position: sticky; top: 0; z-index: 40; }
.inf-nav__scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.inf-nav__scroll::-webkit-scrollbar { display: none; }
.inf-nav__list { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; width: max-content; min-width: 100%; }
.inf-nav__link {
    display: flex;
    align-items: center;
    padding: .8rem 1rem;
    color: var(--inf-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    min-height: 44px;
    border-bottom: 2px solid transparent;
}
.inf-nav__link:hover { color: #fff; background: rgba(255,255,255,.04); }
.inf-nav__link.is-active { color: #fff; background: var(--inf-gradient); border-bottom-color: var(--inf-red); }

/* Drawer */
.inf-drawer { position: fixed; inset: 0; z-index: 200; }
.inf-drawer[hidden] { display: none; }
.inf-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.inf-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100%;
    background: var(--inf-surface);
    border-right: 1px solid var(--inf-border);
    padding: 1rem;
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0,0,0,.45);
}
.inf-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--inf-border); }
.inf-drawer__title { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.inf-drawer__close { border: 0; background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.inf-drawer__nav { display: flex; flex-direction: column; gap: .25rem; }
.inf-drawer__link { display: block; padding: .7rem .65rem; color: var(--inf-muted); font-size: .88rem; font-weight: 600; border-radius: 6px; }
.inf-drawer__link:hover { background: var(--inf-surface-2); color: #fff; }
.inf-drawer__social { display: flex; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--inf-border); }
.inf-drawer__social-link { color: var(--inf-red); font-size: .7rem; }
body.inf-drawer-open { overflow: hidden; }

/* Layout */
.inf-home { padding: 1rem 0 1.5rem; }
.inf-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Left sidebar */
.inf-sidebar--left { display: flex; flex-direction: column; gap: 1rem; }
.inf-side-nav { display: flex; flex-direction: column; gap: .2rem; background: var(--inf-surface); border: 1px solid var(--inf-border); border-radius: var(--inf-radius); padding: .5rem; }
.inf-side-nav__link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .75rem;
    color: var(--inf-muted);
    font-size: .82rem;
    font-weight: 600;
    border-radius: 6px;
}
.inf-side-nav__link:hover, .inf-side-nav__link.is-active { background: var(--inf-surface-2); color: #fff; }
.inf-side-nav__link.is-active { border-left: 3px solid var(--inf-red); }
.inf-side-nav__icon { opacity: .85; font-size: .9rem; }
.inf-side-widget { background: var(--inf-surface); border: 1px solid var(--inf-border); border-radius: var(--inf-radius); padding: 1rem; }
.inf-side-widget__title { margin: 0 0 .35rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.inf-side-widget__text { margin: 0 0 .65rem; font-size: .75rem; color: var(--inf-muted); line-height: 1.4; }
.inf-side-form { display: flex; gap: .35rem; }
.inf-side-form__input { flex: 1; border: 1px solid var(--inf-border); background: var(--inf-bg); color: #fff; border-radius: 6px; padding: .55rem .65rem; font-size: .78rem; min-width: 0; }
.inf-side-form__btn { border: 0; background: var(--inf-red); color: #fff; width: 38px; border-radius: 6px; cursor: pointer; font-size: .85rem; flex-shrink: 0; }
.inf-side-social { display: flex; gap: .45rem; }
.inf-side-social__link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--inf-border);
    border-radius: 50%;
    color: var(--inf-muted);
    font-size: .55rem;
}
.inf-side-social__link:hover { border-color: var(--inf-red); color: #fff; }

/* Hero */
.inf-hero { margin-bottom: 1.25rem; }
.inf-hero__grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }
.inf-hero__lead-media { position: relative; border-radius: var(--inf-radius); overflow: hidden; background: var(--inf-surface); aspect-ratio: 16/9; }
.inf-hero__lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inf-hero__lead-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.92));
}
.inf-badge {
    display: inline-block;
    background: var(--inf-gradient);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: 3px;
    margin-bottom: .45rem;
}
.inf-hero__lead-title { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: #fff; }
.inf-hero__lead-excerpt { margin: 0 0 .4rem; font-size: .8rem; color: #d4d4d8; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inf-hero__lead-meta { margin: 0; font-size: .72rem; color: var(--inf-muted); }

.inf-hero__side { display: flex; flex-direction: column; gap: .55rem; }
.inf-hero-side { background: var(--inf-surface); border: 1px solid var(--inf-border); border-radius: var(--inf-radius); overflow: hidden; }
.inf-hero-side__link {
    display: grid;
    grid-template-columns: auto 1fr 72px;
    gap: .65rem;
    align-items: center;
    padding: .65rem .75rem;
    color: inherit;
}
.inf-hero-side__num {
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--inf-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.inf-cat { display: block; font-size: .58rem; font-weight: 800; color: var(--inf-red); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }
.inf-cat--on-image { position: absolute; left: .5rem; bottom: .5rem; background: var(--inf-red); color: #fff; padding: .15rem .4rem; border-radius: 3px; }
.inf-hero-side__title { margin: 0; font-size: .82rem; font-weight: 700; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inf-hero-side__meta { font-size: .66rem; color: var(--inf-muted); }
.inf-hero-side__thumb { border-radius: 6px; overflow: hidden; }
.inf-hero-side__thumb img { display: block; width: 100%; height: auto; }

/* Latest */
.inf-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.inf-section-head__title { margin: 0; font-size: .95rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.inf-section-head__more { font-size: .75rem; font-weight: 700; color: var(--inf-red); }
.inf-latest-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }
.inf-latest-card { background: var(--inf-surface); border: 1px solid var(--inf-border); border-radius: var(--inf-radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.inf-latest-card:hover { border-color: #3f3f46; transform: translateY(-2px); }
.inf-latest-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.inf-latest-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inf-latest-card__body { padding: .85rem; }
.inf-latest-card__title { margin: 0 0 .35rem; font-size: .88rem; font-weight: 700; line-height: 1.4; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inf-latest-card__meta { margin: 0; font-size: .7rem; color: var(--inf-muted); }

/* Right sidebar */
.inf-sidebar--right { display: flex; flex-direction: column; gap: 1rem; }
.inf-widget { background: var(--inf-surface); border: 1px solid var(--inf-border); border-radius: var(--inf-radius); padding: 1rem; }
.inf-widget__title { margin: 0 0 .75rem; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding-bottom: .45rem; border-bottom: 1px solid var(--inf-border); }
.inf-breaking { list-style: none; margin: 0; padding: 0; }
.inf-breaking__item { position: relative; padding-left: 1rem; margin-bottom: .75rem; border-left: 2px solid var(--inf-red); }
.inf-breaking__item:last-child { margin-bottom: 0; }
.inf-breaking__time { display: block; font-size: .65rem; color: var(--inf-red); font-weight: 700; margin-bottom: .15rem; }
.inf-breaking__headline { display: block; font-size: .8rem; font-weight: 600; line-height: 1.35; color: #e4e4e7; }
.inf-breaking__link:hover .inf-breaking__headline { color: #fff; }
.inf-widget__cta {
    display: block;
    margin-top: .85rem;
    text-align: center;
    background: var(--inf-gradient);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: .55rem;
    border-radius: 6px;
}

.inf-editor-card__media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: .65rem; }
.inf-editor-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inf-editor-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(229,9,20,.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    padding-left: 3px;
}
.inf-editor-card__title { margin: .25rem 0; font-size: .88rem; font-weight: 700; line-height: 1.35; color: #fff; }
.inf-editor-card__meta { margin: 0; font-size: .7rem; color: var(--inf-muted); }

/* Footer */
.inf-footer__main { background: var(--inf-surface); border-top: 1px solid var(--inf-border); padding: 2rem 0; }
.inf-footer__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.inf-footer__brand { display: block; font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: .5rem; }
.inf-footer__about { margin: 0; font-size: .8rem; color: var(--inf-muted); line-height: 1.5; }
.inf-footer__heading { margin: 0 0 .6rem; font-size: .85rem; font-weight: 800; color: #fff; }
.inf-footer__links { list-style: none; margin: 0; padding: 0; font-size: .8rem; }
.inf-footer__links li { margin-bottom: .35rem; }
.inf-footer__links a { color: var(--inf-muted); }
.inf-footer__links a:hover { color: #fff; }
.inf-footer__bottom { background: #050506; border-top: 1px solid var(--inf-border); padding: .85rem 0; font-size: .72rem; color: var(--inf-muted); }
.inf-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.inf-footer__legal { display: flex; gap: .75rem; }
.inf-footer__legal a { color: var(--inf-muted); }
.inf-scroll-top { position: fixed; bottom: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--inf-gradient); color: #fff; font-weight: 800; z-index: 50; cursor: pointer; box-shadow: 0 4px 16px rgba(229,9,20,.35); }
.inf-scroll-top.hidden { display: none; }

/* Tablet */
@media (min-width: 640px) {
    .inf-latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .inf-layout { grid-template-columns: 200px 1fr 280px; gap: 1.25rem; }
    .inf-hero__grid { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
    .inf-hero__lead-media { height: 100%; min-height: 380px; aspect-ratio: auto; }
    .inf-latest-grid { grid-template-columns: repeat(2, 1fr); }
    .inf-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 1200px) {
    .inf-latest-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile */
@media (max-width: 991px) {
    .inf-hide-mobile { display: none !important; }
    .inf-hide-desktop { display: inline-flex !important; }
    .inf-container { padding: 0 .85rem; }
    .inf-brandrow { padding: .7rem 0; }
    .inf-logo__img { max-height: 48px !important; max-width: min(100%, 240px) !important; margin: 0 auto; }
    .inf-logo__text { font-size: 1rem; }
    .inf-nav .inf-container { padding: 0; }
    .inf-nav__link { font-size: .68rem; padding: .7rem .8rem; }
    .inf-hero__lead-title { font-size: 1rem; }
    .inf-hero-side__link { grid-template-columns: 36px 1fr 64px; padding: .55rem .65rem; }
    .inf-hero-side__num { font-size: .95rem; }
    .inf-latest-card__link { display: grid; grid-template-columns: 108px 1fr; }
    .inf-latest-card { border-radius: 8px; }
    .inf-latest-card__media { aspect-ratio: auto; min-height: 96px; height: 100%; }
    .inf-latest-card__media img { min-height: 96px; height: 100%; }
    .inf-latest-card__body { display: flex; flex-direction: column; justify-content: center; padding: .7rem .8rem; }
    .inf-latest-card__title { font-size: .82rem; -webkit-line-clamp: 3; }
    .inf-latest-card:nth-child(n+7) { display: none; }
    .inf-breaking__item:nth-child(n+5) { display: none; }
    .inf-scroll-top { bottom: max(.85rem, env(safe-area-inset-bottom)); right: max(.85rem, env(safe-area-inset-right)); }
}

@media (max-width: 639px) {
    .inf-latest-grid { gap: 0; }
    .inf-latest-card { border-radius: 0; border-left: 0; border-right: 0; }
    .inf-latest-card:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
    .inf-latest-card:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
    .inf-topbar__label { font-size: .58rem; padding: .22rem .4rem; }
    .inf-topbar__headline { font-size: .72rem; }
}

/* Push banner on dark theme */
.theme-infinity.has-push-banner .inf-nav { top: 0; }
.theme-infinity .site-ad { border-color: var(--inf-border); background: var(--inf-surface); color: var(--inf-muted); }

/* Article detail page — readable text on dark background (main column only) */
.theme-infinity article[itemscope] .lg\:col-span-2 h1,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-slate-900,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-black {
    color: #fff !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 .text-slate-600,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-slate-500,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-gray-500,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-gray-600,
.theme-infinity article[itemscope] .lg\:col-span-2 .text-gray-700 {
    color: #c4c4cc !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 header .text-xs {
    color: #a1a1aa !important;
}

.theme-infinity #article-content,
.theme-infinity #article-content.prose,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose {
    color: #e4e4e7 !important;
}

.theme-infinity #article-content h2,
.theme-infinity #article-content h3,
.theme-infinity #article-content h4,
.theme-infinity #article-content strong,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose h2,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose h3,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose h4,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose strong {
    color: #fff !important;
}

.theme-infinity #article-content a,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose a {
    color: #f87171 !important;
}

.theme-infinity #article-content a:hover,
.theme-infinity article[itemscope] .lg\:col-span-2 .prose a:hover {
    color: var(--inf-red) !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 figure {
    border-color: var(--inf-border) !important;
    background: var(--inf-surface) !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 figcaption {
    color: var(--inf-muted) !important;
    background: var(--inf-surface-2) !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 footer.border-t {
    border-color: var(--inf-border) !important;
    color: #e4e4e7 !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 footer a,
.theme-infinity article[itemscope] .lg\:col-span-2 footer .text-blue-600 {
    color: #f87171 !important;
}

.theme-infinity article[itemscope] .lg\:col-span-2 h2#video-heading {
    color: #fff !important;
}

/* Sidebar latest-articles widget stays light with dark text */
.theme-infinity article[itemscope] aside .bg-white {
    background: #fff !important;
    border-color: #e5e7eb !important;
}

.theme-infinity article[itemscope] aside .text-black,
.theme-infinity article[itemscope] aside h2,
.theme-infinity article[itemscope] aside h3,
.theme-infinity article[itemscope] aside a.text-black {
    color: #000 !important;
}

.theme-infinity article[itemscope] aside .text-gray-500 {
    color: #6b7280 !important;
}

.theme-infinity article[itemscope] aside a.text-black:hover,
.theme-infinity article[itemscope] aside a.hover\:text-red-700:hover {
    color: #b91c1c !important;
}

.theme-infinity .breadcrumbs {
    color: var(--inf-muted);
}

.theme-infinity .breadcrumbs a {
    color: var(--inf-muted);
}

.theme-infinity .breadcrumbs a:hover {
    color: #fff;
}

.theme-infinity .breadcrumbs li:not(:last-child)::after {
    color: #52525b;
}

.theme-infinity .breadcrumbs li:last-child {
    color: #fff;
}

.theme-infinity #related-articles {
    background: var(--inf-surface) !important;
    border-color: var(--inf-border) !important;
}

.theme-infinity #related-articles h2,
.theme-infinity #related-articles h3,
.theme-infinity #related-articles .text-black {
    color: #fff !important;
}

.theme-infinity #related-articles .text-slate-600,
.theme-infinity #related-articles .text-gray-600,
.theme-infinity #related-articles .text-gray-500,
.theme-infinity #related-articles .text-xs {
    color: var(--inf-muted) !important;
}

.theme-infinity #related-articles .bg-white,
.theme-infinity #related-articles article {
    background: var(--inf-surface-2) !important;
    border-color: var(--inf-border) !important;
}

.theme-infinity #related-articles .news_image_box {
    background: #0b0b0d;
    border-bottom: 1px solid var(--inf-border);
}

.theme-infinity #related-articles a.text-blue-600,
.theme-infinity #related-articles a.hover\:text-blue-600:hover,
.theme-infinity #related-articles a.text-red-700,
.theme-infinity #related-articles a.hover\:text-red-700:hover {
    color: #f87171 !important;
}
