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

:root {
    --primary: #00d474;
    --primary-dark: #00b863;
    --bg: #14181c;
    --bg-light: #1c2228;
    --bg-lighter: #242c34;
    --text: #9ab;
    --text-light: #def;
    --error: #e74c3c;
    --border-radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

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

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

h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text);
    font-size: 1.1rem;
}

h2 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.hint {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
}

.step {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
}

.step.hidden {
    display: none;
}

.drop-zone {
    border: 2px dashed var(--bg-lighter);
    border-radius: var(--border-radius);
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(0, 212, 116, 0.05);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text);
    margin-bottom: 16px;
}

.drop-zone p {
    color: var(--text);
}

.browse-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info.hidden {
    display: none;
}

#file-name {
    color: var(--text-light);
    font-weight: 500;
}

#movie-count {
    color: var(--primary);
}

.date-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.date-group {
    flex: 1;
}

.date-group label {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.date-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-lighter);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.duration-group {
    margin-bottom: 30px;
}

.duration-group label {
    display: block;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.duration-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.duration-selector input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--bg-lighter);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.duration-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.duration-selector input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#duration-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 40px;
}

.date-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn.primary {
    background: var(--primary);
    color: var(--bg);
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: var(--bg-lighter);
    color: var(--text-light);
}

.btn.secondary:hover {
    background: var(--bg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-lighter);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    color: var(--text-light);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.current-movie {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.progress-status {
    color: var(--text);
    font-size: 0.9rem;
}

.skipped-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-lighter);
}

.skipped-list.hidden {
    display: none;
}

.skipped-list h3 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.skipped-list ul {
    list-style: none;
}

.skipped-list li {
    color: var(--text);
    font-size: 0.85rem;
    padding: 5px 0;
}

.download-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

#restart-btn {
    width: 100%;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.error-message.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    .date-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .step {
        padding: 20px;
    }
}
