/* Basic reset */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #111;
    background: #fafafa
}

/* Hero */
.hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center
}

.hero .overlay {
    position: relative;
    min-height: 60vh;
    background: rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 .5rem
}

.hero p {
    opacity: .95;
    margin: 0 0 1rem
}

.actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center
}

/* Buttons */
.btn {
    appearance: none;
    border: none;
    background: #e5e7eb;
    color: #111;
    padding: .75rem 1rem;
    border-radius: .75rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600
}

.btn.primary {
    background: #af146b;
    color: #fff
}

.btn:hover {
    filter: brightness(0.95)
}

/* Sections */
.info {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem
}

.info h2 {
    margin: 0 0 .5rem
}

/* Uploader */
.uploader {
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem
}

.uploader.hidden {
    display: none
}

.drop {
    position: relative;
    border: 2px dashed #bbb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    color: #555
}

.drop input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer
}

.preview {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
    margin-top: 1rem
}

.preview .item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: .5rem;
    overflow: hidden;
    padding: .25rem;
    text-align: center
}

.preview .item img, .preview .item video {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: .25rem
}

.foot {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .5rem
}

.progress {
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem
}

.progress .bar {
    height: 100%;
    width: 0;
    background: #af146b;
    transition: width .2s
}

.status {
    margin-top: .5rem;
    color: #333
}

/* Gallery */
.topbar {
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0
}

.topbar .brand {
    font-weight: 800;
    text-decoration: none;
    color: #111
}

.topbar .spacer {
    flex: 1
}

.gallery {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0 1rem
}

.gallery h2 {
    margin: 1.5rem 0 .5rem
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem
}

.tile {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: .5rem;
    overflow: hidden
}

.tile img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover
}

video {
    width: 100%;
    border: 1px solid #eee;
    border-radius: .5rem;
    background: #000
}

/* Utils */
.hidden {
    display: none
}
