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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e8eef7;
}

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

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

header h1 {
    font-size: 2.5em;
    color: #f39c12;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.1em;
    color: #a8b5c8;
}

.filters {
    background: #1a1f2e;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    border: 1px solid #2d3748;
}

.filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    padding: 12px;
    border: 2px solid #3b4556;
    border-radius: 5px;
    background: #242b3a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: #e8eef7;
    font-weight: 500;
}

.custom-select-trigger:hover {
    border-color: #f39c12;
    background: #2d3748;
}

.custom-select-trigger.active {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    background: #2d3748;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1f2e;
    border: 2px solid #3b4556;
    border-top: none;
    border-radius: 0 0 5px 5px;
    margin-top: -2px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.custom-select-options.show {
    display: block;
}

.custom-select-search {
    padding: 10px;
    border-bottom: 1px solid #2d3748;
    position: sticky;
    top: 0;
    background: #242b3a;
}

.custom-select-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #3b4556;
    border-radius: 3px;
    font-size: 0.95em;
    background: #1a1f2e;
    color: #e8eef7;
}

.custom-select-search input::placeholder {
    color: #6b7684;
}

.custom-option {
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #2d3748;
    color: #e8eef7;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    padding-left: 16px;
}

.custom-option.hidden {
    display: none;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.filter-info {
    padding: 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 5px;
    color: #f39c12;
    font-size: 0.95em;
    text-align: center;
    border-left: 4px solid #f39c12;
    font-weight: 500;
}

.results {
    margin-top: 30px;
}

.results-header {
    background: #1a1f2e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid #2d3748;
}

.results-header h2 {
    color: #f39c12;
    font-size: 1.3em;
    font-weight: 700;
}

.video-count {
    background: #f39c12;
    color: #0f1419;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #2d3748;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
}

.video-header {
    background: linear-gradient(135deg, #f39c12 0%, #e8a824 100%);
    padding: 20px;
    color: #0f1419;
}

.video-timestamp {
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.video-title {
    font-size: 0.95em;
    line-height: 1.4;
    word-break: break-word;
}

.video-footer {
    padding: 15px 20px;
    background: #242b3a;
    border-top: 1px solid #2d3748;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f39c12;
    color: #0f1419;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.video-link:hover {
    background: #e8a824;
    transform: scale(1.02);
}

.empty-state {
    background: #1a1f2e;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    color: #6b7684;
    border: 1px solid #2d3748;
}

.empty-state p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #a8b5c8;
}

.empty-state-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.social-links {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    white-space: nowrap;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube {
    background: #ff0000;
}

@media (max-width: 768px) {
    .filter-group {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8em;
    }

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

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-links {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .social-link {
        padding: 10px 12px;
        font-size: 12px;
    }
}
