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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 0;
}

.return-bar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00f5ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.return-btn:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: translateX(-4px);
}

.return-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.return-btn:hover .return-arrow {
    transform: translateX(-4px);
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 20px;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.subtitle {
    font-size: 18px;
    color: #a0a0a0;
    font-weight: 300;
}

.mode-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 16px;
    padding: 20px 40px;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.mode-btn .icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px currentColor);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.6);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    border-color: #00f5ff;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.timer-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.display-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
}

.time-display {
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    color: #00f5ff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.6), 0 0 40px rgba(0, 245, 255, 0.3);
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
}

.countdown-input {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 24px;
    color: #00f5ff;
    text-align: center;
    width: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00f5ff;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

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

.control-btn {
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.start-btn {
    background: linear-gradient(135deg, #00f5ff 0%, #00ccff 100%);
    color: #0a0e27;
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 245, 255, 0.6);
}

.pause-btn {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4);
}

.pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 152, 0, 0.6);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.lap-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00ff 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 0, 255, 0.4);
}

.lap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 0, 255, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
}

.stat-label {
    font-size: 14px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.laps-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    color: #00f5ff;
    margin-bottom: 20px;
    text-align: center;
}

.laps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.lap-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.lap-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.4);
}

.lap-number {
    font-size: 16px;
    color: #ff00ff;
    font-weight: 600;
}

.lap-time {
    font-size: 18px;
    color: #00f5ff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.seo-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.featured-image {
    text-align: center;
    margin: 32px 0;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.2);
    border: 2px solid rgba(0, 245, 255, 0.3);
}

.seo-content h2 {
    font-size: 32px;
    color: #00f5ff;
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.seo-content h2:first-of-type {
    margin-top: 0;
}

.seo-content h3 {
    font-size: 24px;
    color: #ff00ff;
    margin-top: 32px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.seo-content p {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.seo-content ul,
.seo-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.seo-content ul li,
.seo-content ol li {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 12px;
    line-height: 1.7;
}

.seo-content strong {
    color: #00f5ff;
    font-weight: 600;
}

.seo-content a {
    color: #ff00ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.seo-content a:hover {
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.table-container {
    overflow-x: auto;
    margin: 24px 0;
}

.timing-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.timing-table thead {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
}

.timing-table th {
    padding: 16px;
    text-align: left;
    color: #00f5ff;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
}

.timing-table td {
    padding: 16px;
    color: #c0c0c0;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.timing-table tbody tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

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

@media (max-width: 768px) {
    .header h1 {
        font-size: 36px;
    }

    .time-display {
        font-size: 48px;
    }

    .mode-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-btn {
        flex-direction: row;
        justify-content: center;
    }

    .timer-section {
        padding: 20px;
    }

    .control-btn {
        min-width: 120px;
        padding: 14px 28px;
        font-size: 16px;
    }

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

    .seo-content {
        padding: 24px;
    }

    .seo-content h2 {
        font-size: 26px;
    }

    .seo-content h3 {
        font-size: 20px;
    }

    .seo-content p,
    .seo-content ul li,
    .seo-content ol li {
        font-size: 15px;
    }

    .timing-table {
        font-size: 14px;
    }

    .timing-table th,
    .timing-table td {
        padding: 12px 8px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 255, 0.5);
}