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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

header h1 {
    color: #000000;
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #000000 0%, #525252 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

#searchInput {
    flex: 1;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

#searchInput::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#searchInput:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

#searchBtn {
    padding: 16px 48px;
    background: #84cc16;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#searchBtn:hover {
    background: #a3e635;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.3);
    transform: translateY(-2px);
}

#searchBtn:active {
    transform: translateY(0);
}

.filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

#seasonFilter {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

#seasonFilter:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

#seasonFilter option {
    background: #ffffff;
    color: #000000;
}

#resultsCount {
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.loading {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1em;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.result-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.result-item:hover {
    transform: translateX(8px);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.result-item:hover::before {
    opacity: 1;
}

.result-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.episode-badge {
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
}

.timestamp-badge {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.result-text {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.8;
    font-size: 15px;
    font-weight: 400;
}

.result-text mark {
    background: #84cc16;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #000000;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.2);
}

.no-results {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.1em;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    
    header p {
        font-size: 0.9em;
    }
    
    .search-box {
        flex-direction: column;
        padding: 20px;
    }
    
    #searchBtn {
        width: 100%;
        padding: 16px;
    }
    
    .filters {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .result-item:hover {
        transform: translateX(0) translateY(-4px);
    }
}