:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #457b9d;
    --light: #f1faee;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --home: #1e90ff;
    --away: var(--primary);
    --success: #2ecc71;
    --warning: #f39c12;

    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

button {
    background-color: transparent;
    border: none;
    outline: none;
    border-radius: 0;
    cursor: pointer;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

.category-girls .cat-icon {
    background: rgba(255, 64, 129, 0.16) !important;
    box-shadow: 0 0 0 1px rgba(255, 64, 129, 0.25), 0 0 18px rgba(255, 64, 129, 0.45);
}

.category-girls .cat-name {
    color: #ff4d9a;
    font-weight: 700;
}

.category-girls.active .cat-name {
    color: #fff;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

.logo-img {
    width: 28px;
    height: 28px;
    display: inline-block;
    object-fit: contain;
    margin-right: 8px;
}

.logo span {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 15px;
    max-width: 350px;
    flex: 1;
    margin: 0 30px;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0 5px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.header-actions a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Category Navigation */
.nav-categories {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-categories ul {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-categories ul::-webkit-scrollbar {
    display: none;
}

.nav-categories li {
    position: relative;
}

.nav-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    padding: 12px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-categories a:hover,
.nav-categories a.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--primary);
}

.nav-categories a.girls-glow,
.category-list a.girls-glow {
    box-shadow: 0 0 18px rgba(255, 105, 180, 0.35);
    border-left: 3px solid rgba(255, 105, 180, 0.75);
}

.nav-categories a.girls-glow .cat-icon,
.category-list a.girls-glow .cat-icon {
    background: rgba(255, 105, 180, 0.14) !important;
    color: rgba(255, 105, 180, 0.95) !important;
}

.nav-categories .badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h3 i {
    color: var(--primary);
}

.sidebar-widget.popular .cat-name {
    font-size: 0.85rem;
}
.sidebar-widget.popular li {
    font-size: 0.85rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.category-list a:hover {
    background: var(--gray-light);
    color: var(--primary);
    transform: translateX(5px);
}

.category-list a.active {
    background: var(--primary);
    color: white;
}

.category-list .cat-icon {
    width: 28px;
    height: 28px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--gray);
}

.category-list a:hover .cat-icon,
.category-list a.active .cat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.category-list .cat-name {
    flex: 1;
    display: flex;
    align-items: center;
}

.category-list .cat-count {
    font-size: 0.75rem;
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--gray);
}

.category-list a.active .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}



.category-list .new-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* Content Area */
.content {
    min-width: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Articles List (vertical) */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-row {
    background: white;
    border-radius: var(--radius);
    padding: 20px 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.article-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--accent);
}

.article-row .card-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-row .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-row .card-title a {
    color: var(--dark);
    transition: color 0.2s;
}

.article-row .card-title a:hover {
    color: var(--primary);
}

.article-row .card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-row .card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.article-row .card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .article-row {
        padding: 15px 18px;
    }

    .article-row .card-title {
        font-size: 1.05rem;
    }

    .article-row .card-excerpt {
        font-size: 0.9rem;
    }
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card .card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-title a {
    color: inherit;
}

.article-card .card-title a:hover {
    color: var(--primary);
}

.article-card .card-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.article-card .card-meta i {
    margin-right: 5px;
}

/* Featured Article */
.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-article .card-image {
    height: 100%;
    min-height: 350px;
}

.featured-article .card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article .card-category {
    position: static;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
}

.featured-article .card-title {
    font-size: 1.6rem;
    -webkit-line-clamp: 4;
}

.featured-article .card-excerpt {
    -webkit-line-clamp: 4;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: white;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.foreign-press-link {
    background: linear-gradient(90deg,#1e90ff22 0%,#00c3ff22 100%) !important;
    color: #1e90ff !important;
    font-weight: 700;
    border-left: 4px solid #1e90ff;
}
.foreign-press-link .cat-icon {
    background: #e6f0fa !important;
    color: #1e90ff !important;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .sidebar {
        display: none;
    }

    .search-box {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article .card-image {
        min-height: 180px;
    }

    .featured-article .card-body {
        padding: 20px;
    }

    .featured-article .card-title {
        font-size: 1.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-card .card-image {
        height: 160px;
    }

    .article-card .card-body {
        padding: 15px;
    }

    .article-card .card-title {
        font-size: 1rem;
    }

    .header-top {
        padding: 10px 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }

    .logo span {
        display: none;
    }

    .header-top {
        padding: 8px 10px;
    }

    .article-card .card-image {
        height: 140px;
    }

    .featured-article .card-image {
        min-height: 150px;
    }
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-header {
    background: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-overlay.open {
    display: block;
}

.mobile-sidebar .category-list {
    padding: 15px;
}

/* Mobile Search */
.mobile-search {
    padding: 15px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.mobile-search form {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.mobile-search input:focus {
    border-color: var(--primary);
}

.mobile-search button {
    padding: 12px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-search button:active {
    background: #1565c0;
}

/* Mobile Category Icons */
.mobile-sidebar .category-list li a {
    padding: 14px 15px;
    min-height: 50px;
}

.mobile-sidebar .cat-icon {
    width: 36px;
    height: 36px;
}

.mobile-sidebar .cat-name {
    font-size: 1rem;
}