:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-width: 260px;
    --sidebar-collapsed: 64px;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-gray);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(124, 58, 237, 0.2);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    margin: 0.15rem 0.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-left-color: #fff;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* Main Layout */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text);
}

.search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--bg-gray);
    font-size: 0.9rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-light);
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    background: #f3f0ff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Content */
.content {
    flex: 1;
    padding: 1.5rem;
}

/* Grid homepage */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

.home-grid > div:first-child {
    min-width: 0;
    overflow: hidden;
}

.sticky-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Fixed sidebar states set by JS */
.sticky-sidebar.is-fixed {
    position: fixed;
}

/* Section titles */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .icon {
    color: var(--primary);
}

/* Cards */
.card {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Discover menu */
.discover-menu {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.discover-chip {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-gray);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.discover-chip:hover,
.discover-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Headline Carousel */
.headline-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 1rem;
    background: transparent;
    border: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-slides {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.5s ease;
    cursor: grab;
}

.carousel-slides:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 85%;
    max-width: 85%;
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--bg);
}

.carousel-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 0.85rem;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    border-radius: 0 0 0.85rem 0.85rem;
}

.carousel-caption .tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(124,58,237,0.35);
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav.prev { left: 0.75rem; }

.carousel-nav.next { right: 0.75rem; }

/* Flash sale */
.flash-sale-box {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.flash-sale-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.flash-sale-box p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.flash-sale-box .btn-light {
    background: #fff;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Game list */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.game-item {
    text-align: center;
}

.game-item .game-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-gray);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.game-item .game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-item .game-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tournament list */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tournament-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all 0.2s;
}

.tournament-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.tournament-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    background: var(--bg-gray);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.tournament-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-info {
    flex: 1;
    min-width: 0;
}

.tournament-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-info .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.tournament-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.status-ongoing {
    background: #dcfce7;
    color: #166534;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* Right column widgets */
.widget-card {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.widget-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.widget-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Livescore */
.livescore-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.livescore-item:last-child {
    border-bottom: none;
}

.livescore-team {
    text-align: center;
    flex: 1;
}

.livescore-team .team-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.livescore-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0 0.5rem;
}

.livescore-time {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 600;
    text-align: center;
}

.livescore-time.upcoming {
    color: var(--text-muted);
}

/* Ad box */
.ad-box {
    width: 100%;
    max-width: 300px;
    height: 250px;
    background: var(--bg-gray);
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Detail */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.article-detail {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.article-hero {
    width: 100%;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-meta-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.article-meta-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: var(--text);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.article-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-excerpt {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}

.article-excerpt p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.twitter {
    background: #000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy {
    background: var(--bg-gray);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Carousel slide as link */
a.carousel-slide {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.carousel-slide:active {
    color: inherit;
}

/* Discover Page */
.discover-header {
    margin-bottom: 1.25rem;
}

.discover-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.discover-header .text-muted {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.article-card {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.article-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-gray);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-thumb img {
    transform: scale(1.03);
}

.article-type-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-info {
    padding: 1rem;
}

.article-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-date,
.article-views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.article-date svg,
.article-views svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-page:hover:not(.active) {
    background: var(--bg-gray);
    border-color: var(--primary-light);
}

.pagination-page.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-ellipsis {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 0.25rem;
}

/* Turnamen Page */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.tournament-card {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.tournament-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.tournament-card-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-gray);
}

.tournament-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tournament-card:hover .tournament-card-banner img {
    transform: scale(1.03);
}

.tournament-card-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-card-body {
    padding: 1rem;
}

.tournament-card-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tournament-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-row svg {
    color: var(--primary);
    flex-shrink: 0;
}

.meta-row.prize {
    color: var(--primary);
    font-weight: 600;
}

/* Tournament Detail */
.tournament-detail {
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.tournament-detail-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tournament-detail-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.tournament-detail-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tournament-detail-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.tournament-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tournament-detail-meta .meta-item.prize {
    color: var(--primary);
    font-weight: 600;
}

.tournament-detail-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.tournament-detail-body p {
    margin-bottom: 1rem;
}

.tournament-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.tournament-detail-body h2,
.tournament-detail-body h3,
.tournament-detail-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tournament-detail-action {
    padding: 0 1.5rem 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sticky-sidebar,
    .sticky-sidebar.is-fixed {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
        align-self: auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .search-box {
        width: 200px;
    }

    .carousel-slide {
        flex: 0 0 88%;
        max-width: 88%;
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-caption {
        padding: 1.75rem 1rem 1rem;
    }

    .carousel-caption h3 {
        font-size: 0.95rem;
    }

    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-item {
        min-width: 0;
    }

    .content {
        padding: 1rem;
    }

    .flash-sale-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .tournament-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        display: none;
    }

    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        flex: 0 0 92%;
        max-width: 92%;
    }

    .carousel-slide img {
        height: 180px;
    }

    .carousel-caption h3 {
        font-size: 0.9rem;
    }

    .article-hero img {
        height: 220px;
    }

    .article-meta-header h1 {
        font-size: 1.25rem;
    }

    .article-meta {
        gap: 0.75rem;
    }

    .article-body {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .discover-header h2 {
        font-size: 1.2rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tournament-detail-banner img {
        height: 200px;
    }

    .tournament-detail-header h1 {
        font-size: 1.25rem;
    }

    .tournament-detail-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
}
