* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #111827;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
}
.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo-accent {
    color: #22c55e;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #111827;
    background: rgba(0,0,0,0.04);
}
.nav-link.active {
    color: #111827;
    background: rgba(0,0,0,0.06);
}
.live-link {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-cat-bar {
    display: none;
    position: sticky;
    top: 72px;
    z-index: 90;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.mobile-cat-scroll {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mobile-cat-scroll::-webkit-scrollbar {
    display: none;
}
.mobile-cat-link {
    padding: 6px 16px;
    border-radius: 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mobile-cat-link:hover {
    background: rgba(0,0,0,0.08);
    color: #111827;
}
.mobile-cat-link.active {
    background: #111827;
    color: #fff;
}
.mobile-cat-link.live-link {
    color: #ef4444;
    background: rgba(239,68,68,0.08);
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    padding-top: 24px;
    margin-bottom: 20px;
}
.hero-main-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.hero-main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-main-card:hover .hero-main-image {
    transform: scale(1.03);
}
.hero-main-image {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 500ms ease;
}
.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.hero-main-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}
.hero-main-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-side-card {
    display: flex;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    flex: 1;
}
.hero-side-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-side-card:hover .hero-side-image {
    transform: scale(1.05);
}
.hero-side-image {
    width: 120px;
    min-height: 90px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform 500ms ease;
}
.hero-side-info {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.hero-side-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}
.card-badge-sm {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.meta-source {
    color: #6b7280;
    font-weight: 500;
}
.meta-dot {
    color: #9ca3af;
}
.meta-time {
    color: #9ca3af;
}

.first-screen-ad {
    margin-bottom: 28px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.cat-section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}
.cat-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-icon {
    font-size: 20px;
}
.cat-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}
.cat-count {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 4px;
}
.cat-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-color, #22c55e);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.cat-view-all:hover {
    opacity: 0.7;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.cat-standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.featured-card:hover .featured-card-image {
    transform: scale(1.03);
}
.featured-card-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 500ms ease;
}
.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
}
.featured-card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}
.featured-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.news-card {
    display: block;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.news-card:hover .news-card-image {
    transform: scale(1.03);
}
.news-card-image {
    width: 100%;
    height: 168px;
    background-size: cover;
    background-position: center;
    transition: transform 500ms ease;
}
.news-card-body {
    padding: 14px 16px;
}
.news-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.news-card-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.ad-slot-wrap {
    grid-column: 1 / -1;
    margin: 8px 0;
}

.analysis-section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}
.analysis-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.analysis-small-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.analysis-card {
    display: block;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.analysis-card-large {
    display: flex;
    flex-direction: column;
}
.analysis-card-large:hover .analysis-card-image {
    transform: scale(1.03);
}
.analysis-card-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 500ms ease;
}
.analysis-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.analysis-card-body {
    padding: 18px 20px;
}
.analysis-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tag-editor {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-cat {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.analysis-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.analysis-card-summary {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.analysis-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.author-name {
    color: #6b7280;
    font-weight: 500;
}

.live-sidebar {
    position: sticky;
    top: 88px;
}
.sidebar-block {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.sidebar-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 2s ease-in-out infinite;
}
.sidebar-icon {
    font-size: 14px;
}
.sidebar-title {
    font-size: 12px;
}
.sidebar-body {
    padding: 8px;
}
.live-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.live-item:hover {
    background: rgba(0,0,0,0.03);
}
.live-item-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cat-color, #22c55e);
    flex-shrink: 0;
    margin-top: 6px;
}
.live-item-text {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.live-item-time {
    font-size: 10px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 2px;
}
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.trending-item:hover {
    background: rgba(0,0,0,0.03);
}
.trending-rank {
    font-size: 16px;
    font-weight: 800;
    color: #9ca3af;
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}
.trending-info {
    flex: 1;
    min-width: 0;
}
.trending-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.trending-cat {
    font-size: 10px;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.related-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111827;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.related-card:hover .related-card-image {
    transform: scale(1.03);
}
.related-card-image {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    transition: transform 500ms ease;
}
.related-card-body {
    padding: 10px 12px;
}
.related-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.random-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.random-modal.active {
    pointer-events: auto;
    opacity: 1;
}
.random-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.random-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.random-modal.active .random-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: #111827;
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.random-card {
    margin-bottom: 16px;
}
.try-another-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.try-another-btn:hover {
    background: rgba(34,197,94,0.14);
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .live-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .cat-standard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section {
        grid-template-columns: 1fr 300px;
    }
    .hero-main-image {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-cat-bar {
        display: block;
    }
    .hero-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 12px;
    }
    .hero-main-image {
        height: 200px;
    }
    .hero-main-text {
        padding: 16px;
    }
    .hero-main-title {
        font-size: 18px;
        line-height: 1.25;
        margin-bottom: 6px;
    }
    .hero-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-side-card {
        flex-direction: column;
        border-radius: 12px;
    }
    .hero-side-image {
        width: 100%;
        min-height: 70px;
        height: 70px;
    }
    .hero-side-info {
        padding: 8px 10px;
    }
    .hero-side-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .page-wrap {
        padding: 0 12px;
    }
    .cat-section {
        margin-bottom: 28px;
    }
    .cat-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .cat-standard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .featured-card-image {
        height: 180px;
    }
    .news-card-image {
        height: 120px;
    }
    .news-card-body {
        padding: 10px 12px;
    }
    .news-card-title {
        font-size: 13px;
    }
    .news-card-summary {
        display: none;
    }
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    .analysis-card-image {
        height: 180px;
    }
    .live-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar-body {
        padding: 6px;
    }
    .live-item {
        padding: 8px;
    }
    .trending-item {
        padding: 8px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .first-screen-ad {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .cat-standard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-side {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-main-image {
        height: 180px;
    }
    .hero-main-title {
        font-size: 16px;
    }
    .hero-side-image {
        height: 60px;
        min-height: 60px;
    }
    .featured-card-image {
        height: 160px;
    }
    .news-card-image {
        height: 110px;
    }
    .news-card-body {
        padding: 8px 10px;
    }
    .news-card-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .cat-title {
        font-size: 15px;
    }
    .cat-icon {
        font-size: 16px;
    }
    .cat-count {
        display: none;
    }
    .card-meta {
        font-size: 11px;
    }
    .analysis-card-body {
        padding: 14px 16px;
    }
    .analysis-card-title {
        font-size: 14px;
    }
    .related-card-image {
        height: 80px;
    }
    .related-card-body {
        padding: 8px 10px;
    }
    .related-card-title {
        font-size: 11px;
    }
}
