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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(90deg, #020d1f 0%, #0a1628 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(2, 13, 31, 0.5);
    border-bottom: 2px solid #1e3a5f;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo span {
    color: #ffd700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(2, 13, 31, 0.8) 0%, rgba(30, 58, 95, 0.3) 100%);
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid #1e3a5f;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.hero p {
    font-size: 1.1rem;
    color: #ccc;
}

.current-date {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.last-update {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 500;
}

.results-section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-transform: uppercase;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(145deg, #0a1628 0%, #020d1f 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #1e3a5f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.5);
}

.game-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 15px 0;
}

.result-time {
    color: #9ca3af;
    font-size: 0.95rem;
}

.waiting {
    color: #6ee7b7;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.chart-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.chart-section .results-table-container {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5f #111827;
}

.chart-section .results-table-container::-webkit-scrollbar {
    height: 8px;
}

.chart-section .results-table-container::-webkit-scrollbar-track {
    background: #111827;
    border-radius: 4px;
}

.chart-section .results-table-container::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

.chart-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin-top: 20px;
}

.chart-table th,
.chart-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #374151;
}

.chart-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.chart-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

.chart-table tr:hover {
    background: rgba(233, 69, 96, 0.2);
}

footer {
    background: #111827;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #1e3a5f;
}

footer p {
    color: #9ca3af;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.page-content {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin: 30px 0;
}

.page-title {
    color: #ffd700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.page-body {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.page-updated {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 30px;
}

.disclaimer {
    background: rgba(233, 69, 96, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #1e3a5f;
}

.disclaimer p {
    color: #f87171;
    font-size: 0.9rem;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 25px 15px;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .game-name {
        font-size: 1.2rem;
    }
    
    .result-number {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

.refresh-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    margin-top: -20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.results-table-container {
    overflow-x: auto;
    border-radius: 15px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 500px;
}

.results-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 12px;
    text-align: center;
    border: 1px solid #374151;
}

.results-table td {
    padding: 12px;
    text-align: center;
    border: none;
    color: #FFD700;
}

.results-table tbody tr {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: table-row;
}

.results-table tbody tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.results-table tbody tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.results-table tbody tr:nth-child(even) {
    background: linear-gradient(145deg, #263044 0%, #1a2332 100%);
}

.results-table tbody tr:hover {
    background: linear-gradient(145deg, #2d3a4f 0%, #1e2b3d 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.game-name-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFD700;
    text-transform: uppercase;
    text-align: left !important;
    padding-left: 20px !important;
}

.time-cell {
    color: #9ca3af;
    font-size: 0.9rem;
}

.result-cell {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6b7280;
}

.result-cell.has-result {
    color: #FFD700;
}

.result-cell.today-result {
    color: #FFD700;
    font-size: 1.5rem;
}

.result-cell.waiting {
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
}

@media (max-width: 768px) {
    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .game-name-cell {
        padding-left: 10px !important;
    }
    
    .result-cell {
        font-size: 1.1rem;
    }
    
    .result-cell.today-result {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .results-table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    .results-table th:first-child,
    .results-table td:first-child {
        width: 45%;
    }
    
    .results-table th:nth-child(2),
    .results-table td:nth-child(2),
    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 27.5%;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .game-name-cell {
        padding-left: 8px !important;
        font-size: 0.7rem !important;
        word-break: break-word;
    }
    
    .game-meta {
        flex-direction: row;
        gap: 6px;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .game-time-inline {
        font-size: 0.65rem !important;
    }
    
    .record-chart-link {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
    
    .result-cell {
        font-size: 0.9rem;
    }
    
    .result-cell.today-result {
        font-size: 1rem;
    }
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.record-chart-link {
    font-size: 0.75rem;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.record-chart-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.game-time-inline {
    font-size: 0.75rem;
    color: #9ca3af;
}

.chart-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 20px;
    margin: 30px 0;
}

.game-chart-title {
    font-size: 2rem;
    color: #1e3a5f;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.chart-subtitle {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #9ca3af;
    font-weight: 500;
}

.filter-group select {
    background: #1f2937;
    color: #fff;
    border: 2px solid #374151;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: #1e3a5f;
    outline: none;
}

.filter-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.monthly-chart-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.monthly-chart-table {
    width: 100%;
    border-collapse: collapse;
}

.monthly-chart-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px;
    text-align: center;
    border: 1px solid #374151;
}

.monthly-chart-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #374151;
    color: #fff;
}

.monthly-chart-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

.monthly-chart-table tbody tr:hover {
    background: rgba(233, 69, 96, 0.15);
}

.monthly-chart-table .date-cell {
    font-weight: 500;
    color: #9ca3af;
}

.monthly-chart-table .day-cell {
    color: #60a5fa;
    font-weight: 500;
}

.monthly-chart-table .result-cell {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
}

.monthly-chart-table .result-cell.has-result {
    color: #ffd700;
}

.monthly-chart-table tr.future-date {
    opacity: 0.5;
}

.chart-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(233, 69, 96, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #1e3a5f;
}

.stat-label {
    display: block;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: 700;
}

.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(90deg, #374151 0%, #4b5563 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    transform: scale(1.05);
}

.seo-intro {
    background: rgba(233, 69, 96, 0.1);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #1e3a5f;
}

.seo-intro p {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
}

.seo-intro strong {
    color: #ffd700;
}

.faq-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #374151;
}

.faq-question {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-answer {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .seo-intro {
        padding: 15px 20px;
    }
    
    .seo-intro p {
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .game-chart-title {
        font-size: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group select {
        padding: 8px 12px;
    }
    
    .monthly-chart-table th,
    .monthly-chart-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .monthly-chart-table .result-cell {
        font-size: 1.2rem;
    }
    
    .chart-stats {
        gap: 15px;
    }
    
    .stat-box {
        padding: 12px 20px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .record-chart-link {
        font-size: 0.65rem;
    }
    
    .game-chart-title {
        font-size: 1.2rem;
    }
    
    .monthly-chart-table th,
    .monthly-chart-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .monthly-chart-table .result-cell {
        font-size: 1rem;
    }
}

.chart-filter-form {
    flex-wrap: wrap;
    gap: 15px;
}

.chart-filter-form .filter-group select {
    min-width: 140px;
}

.no-game-selected {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin: 30px 0;
    text-align: center;
}

.info-box {
    margin-bottom: 30px;
}

.info-box h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-box p {
    color: #9ca3af;
    font-size: 1.1rem;
}

.quick-games h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.game-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.game-link-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.game-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.5);
    background: linear-gradient(90deg, #2d4a6f 0%, #3d5a7f 100%);
}

nav a.active {
    color: #ffd700;
}

@media (max-width: 768px) {
    .chart-filter-form .filter-group {
        width: 100%;
        justify-content: center;
    }
    
    .chart-filter-form .filter-group select {
        flex: 1;
        max-width: 200px;
    }
    
    .game-link-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
