:root 
{
    --bg-color: #0b1027;
    --card-bg: #394381;
    --accent-color: #4c3bcd;
    --text-color: #fbf8f8;
    --text-dim: #94a3b8;
}

* 
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body 
{
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

header 
{
    text-align: center;
    margin-bottom: 2rem;
}

header h1 
{
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: #fff;
}

header p 
{
    color: var(--text-dim);
}

.container 
{
    width: 100%;
    max-width: 800px;
}

.controls 
{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

input[type="date"], button 
{
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #2d3748;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
}

button 
{
    background: var(--accent-color);
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background 0.2s ease;
}

button:hover 
{
    background: #0d0448;
}

.card 
{
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#media-container img, #media-container iframe 
{
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.details h2 
{
    margin-bottom: 0.5rem;
}

.date-badge 
{
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hidden 
{
    display: none;
}

.spinner 
{
    width: 40px;
    height: 40px;
    border: 4px solid rgba(62, 61, 61, 0.1);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin 
{
    to { transform: rotate(360deg); }
}