:root {
    --primary-color: #00A1D6;
    /* Cartoon Blue */
    --secondary-color: #E3F2FD;
    --accent-color: #FF9800;
    /* Orange Accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #F0F6FA;
    --card-bg: #FFFFFF;
    --radius: 20px;
    /* Rounded corners */
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    /* Playful font stack */
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 28px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px #fff;
    margin-bottom: 5px;
}

header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Search Box - Pill Shape */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    /* Pill */
    border: 3px solid #E3F2FD;
    box-shadow: 0 4px 0 #D1E5F7;
    /* Solid shadow, no blur */
}

input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    outline: none;
    border-radius: 40px;
    color: #555;
    background: transparent;
}

/* Button - Cartoon Style */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 4px solid #007AA3;
    /* 3D effect without shadow blur */
    transition: transform 0.1s;
}

button:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

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

/* Result Card - Rounded & Cute */
.result-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 3px solid #E3F2FD;
    box-shadow: 0 4px 0 #D1E5F7;
    /* Solid shadow */
    cursor: pointer;
    position: relative;
    transition: transform 0.1s;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.event-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #E3F2FD;
}

.event-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.event-time-info {
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 5px;
    font-weight: bold;
    background: #E3F2FD;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
}

.event-details {
    display: flex;
    justify-content: space-between;
}

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

.label {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: bold;
}

.value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.value.name {
    color: var(--primary-color);
    font-size: 20px;
}

.value.team {
    color: var(--accent-color);
}

.empty-state {
    text-align: center;
    color: #999;
    margin-top: 50px;
    font-size: 20px;
}

/* Modal - Stable, no blur, solid background */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Darker solid overlay */
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    /* Super rounded */
    width: 90%;
    max-width: 650px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    color: #fff;
    background: red;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    right: -10px;
    top: -10px;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    background: #E3F2FD;
    border-radius: 20px 20px 0 0;
    border-bottom: 2px solid var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.heat-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0 10px 0;
    background: #E3F2FD;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.lane-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.lane-item {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #eee;
}

.lane-item.highlight {
    background: #E0F7FA;
    border-color: var(--primary-color);
    transform: scale(1.05);
    /* Safe transform */
    box-shadow: 0 4px 0 #B2EBF2;
}

.lane-num {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}

.lane-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.lane-team {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}