/* General Reset */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #424242;
    color: #222;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

/* Image area */
.image-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    flex: 1 1 auto;
    padding-bottom: 80px;
}

#previewPanel {
    max-width: 96vw;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    background: #fff;
    object-fit: contain;
}

/* Bottom area */
.bottom-area {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #f5f5f5cc;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 10;
    padding: 0 0 8px 0;
}

.date-box {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    background: #e0e0e0;
    padding: 8px 0 4px 0;
    border-radius: 0 0 8px 8px;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 4px 0 0 0;
}

.control-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 59px;
    box-sizing: content-box;
}

.control-btn:active,
.control-btn:focus {
    background: #ffe082;
}

.control-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn img {
    width: 100%;
    height: 100%;
    aspect-ratio: 5.53 / 1.35;
    display: block;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 600px) {
    .image-area {
        padding-bottom: 110px;
    }
    #previewPanel {
        max-width: 98vw;
        max-height: 40vh;
    }
    .date-box {
        font-size: 0.95rem;
    }
    .control-btn {
        width: 150px;
        height: 37px;
        padding: 0;
        border-radius: 0;
        box-sizing: content-box;
    }
    .control-btn img {
        width: 100%;
        height: 100%;
        aspect-ratio: 5.53 / 1.35;
        display: block;
        object-fit: contain;
    }
    .controls {
        gap: 18px;
    }
}

@media (min-width: 900px) {
    #previewPanel {
        max-width: 700px;
        max-height: 70vh;
    }
    .date-box {
        font-size: 1.2rem;
    }
}
