@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

:root {
    --primary-deep: #0d47a1;
    --primary-light: #1976d2;
    --bg-dark: #0d1b2a;
    --bg-card: #e3f2fd;
    --text-light: #ffffff;
    --text-muted: #90caf9;
    --accent-red: #ff1744;
    --border-glow: rgba(25, 118, 210, 0.5);
    --shadow-blue: 0 0 20px rgba(25, 118, 210, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(25, 118, 210, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(13, 71, 161, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0d1b2a 0%, #0a1628 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
    font-weight: 700;
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.95) 0%, rgba(13, 27, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-blue);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(25, 118, 210, 0.3);
    color: var(--text-light);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-light);
}

.btn-outline:hover {
    background: rgba(25, 118, 210, 0.2);
    color: var(--text-light);
}

.btn-live {
    background: var(--accent-red);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.btn-live::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-bg 2s infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #64b5f6 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Section */
.section {
    padding: 50px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-deep));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Live Preview Grid */
.live-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.live-card {
    background: linear-gradient(145deg, rgba(25, 118, 210, 0.08), rgba(13, 71, 161, 0.12));
    border: 1px solid rgba(25, 118, 210, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.live-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(25, 118, 210, 0.4);
}

.live-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-dark);
}

.live-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.live-card:hover .live-card-thumb img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(255, 23, 68, 0); }
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.viewer-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.viewer-count::before {
    content: '👁';
    font-size: 12px;
}

.live-card-body {
    padding: 16px;
}

.live-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.streamer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

.streamer-name {
    color: var(--text-muted);
}

.category-tag {
    padding: 3px 10px;
    background: rgba(25, 118, 210, 0.25);
    border: 1px solid rgba(25, 118, 210, 0.4);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Live Grid (12 items) */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.15), rgba(25, 118, 210, 0.08));
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(25, 118, 210, 0.25), rgba(13, 71, 161, 0.35));
    box-shadow: var(--shadow-blue);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid rgba(25, 118, 210, 0.4);
    background: transparent;
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-light);
    color: var(--text-light);
    border-color: var(--primary-light);
}

/* Schedule Table */
.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.schedule-item {
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.2), rgba(25, 118, 210, 0.1));
    border-left: 4px solid var(--primary-light);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s;
}

.schedule-item:hover {
    background: linear-gradient(90deg, rgba(25, 118, 210, 0.3), rgba(13, 71, 161, 0.2));
    transform: translateX(5px);
}

.schedule-time {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-size: 24px;
    color: var(--primary-light);
    min-width: 100px;
}

.schedule-info h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.schedule-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.schedule-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-live {
    background: rgba(255, 23, 68, 0.2);
    color: var(--accent-red);
}

.status-upcoming {
    background: rgba(25, 118, 210, 0.2);
    color: var(--primary-light);
}

/* Ranking Table */
.ranking-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(13, 27, 42, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.ranking-table thead {
    background: linear-gradient(90deg, var(--primary-deep), var(--primary-light));
}

.ranking-table th {
    padding: 16px 20px;
    text-align: left;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

.ranking-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
    font-size: 14px;
}

.ranking-table tbody tr {
    transition: all 0.3s;
}

.ranking-table tbody tr:hover {
    background: rgba(25, 118, 210, 0.1);
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-num {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.rank-1 .rank-num { color: #ffd700; }
.rank-2 .rank-num { color: #c0c0c0; }
.rank-3 .rank-num { color: #cd7f32; }

.ranker-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranker-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.ranker-name {
    color: var(--text-light);
    font-weight: 500;
}

.ranker-fans {
    color: var(--text-muted);
    font-size: 13px;
}

.fans-bar {
    width: 100%;
    height: 6px;
    background: rgba(25, 118, 210, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.fans-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), #64b5f6);
    border-radius: 3px;
}

/* Esports / Sports specific */
.team-rankings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.2), rgba(25, 118, 210, 0.1));
    border: 1px solid rgba(25, 118, 210, 0.25);
    border-radius: 12px;
    padding: 24px;
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-light);
    text-align: center;
}

.team-list {
    list-style: none;
}

.team-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(25, 118, 210, 0.15);
}

.team-list li:last-child {
    border-bottom: none;
}

.team-position {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 30px;
}

.team-name {
    flex: 1;
    color: var(--text-light);
    margin: 0 12px;
}

.team-score {
    color: var(--text-muted);
    font-size: 13px;
}

/* About page */
.about-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #64b5f6, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero p {
    font-size: 17px;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    text-align: center;
    padding: 30px 24px;
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.15), rgba(25, 118, 210, 0.08));
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: 12px;
    transition: all 0.4s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-blue);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-light);
}

.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-year {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.timeline-content {
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.2), rgba(25, 118, 210, 0.1));
    border: 1px solid rgba(25, 118, 210, 0.25);
    border-radius: 10px;
    padding: 20px;
}

.timeline-content h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.15), rgba(25, 118, 210, 0.08));
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.15), rgba(25, 118, 210, 0.08));
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: 12px;
    padding: 30px;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(25, 118, 210, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-light);
    color: var(--text-light);
    border-color: var(--primary-light);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 71, 161, 0.2) 100%);
    border-top: 1px solid rgba(25, 118, 210, 0.3);
    margin-top: 60px;
    padding: 50px 20px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(25, 118, 210, 0.2);
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(25, 118, 210, 0.2);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Page Banner */
.page-banner {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.page-banner h1 {
    font-size: 38px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #64b5f6, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-banner p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 38px; }
    .page-banner h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding: 20px 0 0;
        order: 3;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .main-nav a {
        padding: 12px 18px;
    }

    .main-nav a.active::after {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .live-preview-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 12px;
        right: auto;
    }

    .ranking-table {
        font-size: 13px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 12px;
    }

    .live-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .header-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero {
        padding: 40px 20px 30px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-deep);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}