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

body {
    background: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
}

header {
    padding: 2rem;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

nav a:hover {
    color: #999;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 6rem;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.photo-title {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.photo-grid img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 6px solid #fff;
}

@media (max-width: 600px) {
    .photo-grid img {
        border: none;
    }
    .photo-grid {
        gap: 4rem;
    }

    header {
        padding: 1rem;
    }

    nav a {
        margin: 0 0.5rem;
    }

    .blog-list,
    .blog-post,
    .about,
    .music-list {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .admin {
        padding: 1rem;
    }

    .admin-photo-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-photo-item img {
        width: 100%;
        height: 160px;
    }

    .stats-tables {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        gap: 1rem;
    }

    .admin-nav a {
        margin-right: 0.75rem;
    }
}

.about {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.75rem;
}

.admin {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
}

.admin h1 {
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-size: 0.875rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

button[type="submit"] {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #999;
}

.admin-photos {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-photo-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #222;
    padding-top: 1.5rem;
}

.admin-photo-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-photo-meta span {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-photo-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-edit {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
}

.btn-edit:hover {
    background: #fff;
    color: #000;
}

.btn-delete {
    background: none;
    border: 1px solid #666;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.btn-delete:hover {
    border-color: #f00;
    color: #f00;
}

.edit-preview img {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-actions a {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.form-actions a:hover {
    color: #fff;
}

.blog-list {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.blog-item {
    margin-bottom: 3rem;
    border-top: 1px solid #222;
    padding-top: 2rem;
}

.blog-item:first-child {
    border-top: none;
    padding-top: 0;
}

.blog-date {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.blog-item h2 a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-item h2 a:hover {
    color: #999;
}

.blog-excerpt {
    margin-top: 0.75rem;
    color: #999;
    line-height: 1.8;
}

.blog-post {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.blog-post h1 {
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.blog-body {
    color: #ccc;
    line-height: 1.8;
}

.admin-posts {
    margin-top: 3rem;
}

.admin-posts h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #999;
}

.admin-post-item {
    border-top: 1px solid #222;
    padding: 1rem 0;
}

.admin-post-item small {
    font-size: 0.7rem;
    color: #555;
}

.empty {
    color: #555;
    font-size: 0.75rem;
}

.music-list {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.music-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.5rem;
}

.music-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.photo-thumb {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    border: 8px solid #fff;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #f66;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.admin-nav a {
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    margin-right: 1.5rem;
}

.admin-nav a:hover {
    color: #fff;
}

.admin-nav-active {
    color: #fff !important;
}

.btn-logout {
    background: none;
    border: none;
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
}

.btn-logout:hover {
    color: #fff;
}

.stats-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
}

.stats-section {
    margin-bottom: 2.5rem;
}

.stats-section h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 1rem;
    font-weight: normal;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: #fff;
    min-height: 1px;
}

.bar-label {
    font-size: 0.55rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    height: 30px;
}

.stats-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.stats-table td {
    padding: 0.4rem 0;
    border-top: 1px solid #1a1a1a;
    color: #999;
    vertical-align: top;
}

.stats-table tr:first-child td {
    border-top: none;
}

.stat-count {
    text-align: right;
    color: #fff;
    white-space: nowrap;
    padding-left: 1rem;
}

.referrer-cell {
    word-break: break-all;
    max-width: 200px;
}