@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-purple: #8A2BE2;
    --secondary-purple: #4B0082;
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-white: #f4f4f4;
    --text-gray: #b3b3b3;
    --font-main: 'Poppins', sans-serif;
    --nav-height: 64px;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

main {
    padding-top: var(--nav-height);
    width: 100%;
    flex: 1 0 auto;
}

#app.is-navigating {
    cursor: progress;
}

.route-loader {
    position: fixed;
    z-index: 1500;
    inset: var(--nav-height) 0 0;
    display: grid;
    place-items: center;
    background: rgba(18, 18, 18, 0.28);
    backdrop-filter: blur(1px);
}

.route-loader[hidden] {
    display: none;
}

.route-loader-spinner {
    width: 4.5rem;
    height: 4.5rem;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(138, 43, 226, 0.35);
    animation: route-loader-spin 0.75s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .route-loader-spinner {
        animation-duration: 1.5s;
    }
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.bg-darker {
    background-color: #0d0d0d;
}

h1,
h2,
h3 {
    font-weight: 600;
}

h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-gray);
    font-size: 1.4rem;
}

.section-cta {
    margin-top: 2rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

.max-width-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.6rem;
    color: var(--text-gray);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-purple);
    height: var(--nav-height);
    transition: box-shadow 0.35s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 1.4rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a {
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.has-dropdown:hover > .dropdown-toggle,
.has-dropdown:focus-within > .dropdown-toggle,
.has-dropdown:hover > a,
.has-dropdown:focus-within > a {
    color: var(--primary-purple);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 0;
    min-width: 220px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.dropdown-menu a {
    font-size: 1.3rem;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown.force-closed .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
}

.has-dropdown.open .dropdown-toggle {
    transform: rotate(180deg);
}

.btn-nav {
    background-color: var(--primary-purple);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: #ffffff;
    color: var(--primary-purple);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px;
    transition: all 0.3s;
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(75, 0, 130, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.4rem;
    transition: transform 0.2s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #9d4edd;
    transform: scale(1.05);
}

.btn-secondary {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.3rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
}

.home-events-cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1.5rem;
    border-radius: 24px;
}

.btn-small {
    background: var(--text-white);
    color: var(--dark-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-small:hover {
    background: var(--primary-purple);
    color: #ffffff;
}

/* Artists grid */
.grid-artistes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, border 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-purple);
}

.card-img {
    height: 200px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--text-gray);
    font-size: 1.3rem;
}

/* Event list */
.event-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-featured {
    margin-bottom: 2.5rem;
}

.event-featured-card {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 6px solid var(--primary-purple);
    align-items: center;
}

.event-featured-media {
    width: 100%;
    height: clamp(220px, 28vw, 300px);
    max-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: #2a2a2a;
}

.event-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-featured-content h3 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.event-featured-date {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

.event-featured-description {
    margin-top: 0;
    color: var(--text-gray);
    font-size: 1.7rem;
    line-height: 1.6;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-purple);
    gap: 1.5rem;
    transition: transform 0.25s ease;
}

.event-item:hover {
    transform: translateX(6px);
}

.event-item-clickable {
    cursor: pointer;
}

.event-item-clickable:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    transform: translateX(6px);
}

.event-tag {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.event-tag-upcoming {
    background: rgba(138, 43, 226, 0.15);
}

.event-year-block {
    margin-top: 3rem;
}

.event-year-block:first-of-type {
    margin-top: 2rem;
}

.event-year {
    color: var(--text-white);
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 1.2rem;
}

.event-item .info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.event-item .info {
    flex: 1;
    text-align: center;
}

.event-item .info p {
    color: var(--text-gray);
    font-size: 1.3rem;
}

.date {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: var(--primary-purple);
    min-width: 60px;
}

.date .day {
    font-size: 1.8rem;
}

/* Gallery */
.gallery-carousel {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    transition: transform 0.4s ease;
    will-change: transform;
}

.gallery-viewport {
    overflow: hidden;
}

.gallery-item {
    flex: 0 0 calc((100% - 2rem) / 3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.carousel-arrow:hover {
    background: var(--primary-purple);
}

.carousel-arrow.prev {
    left: -6px;
}

.carousel-arrow.next {
    right: -6px;
}

.gallery-item {
    min-height: 150px;
    background-color: #1b1b1b;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.85;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.gallery-item button {
    all: unset;
    display: block;
    width: 100%;
    height: 150px;
    flex: 0 0 150px;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.gallery-item:hover img {
    transform: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.hidden {
    display: none;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox.zooming {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    max-width: min(90vw, 1000px);
    max-height: 85vh;
    overflow: auto;
    transform: scale(0.92);
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    background: rgba(13, 13, 13, 0.82);
    text-align: center;
    pointer-events: none;
}

.lightbox-caption-top {
    order: 1;
}

.lightbox-caption-bottom {
    order: 3;
}

.lightbox-content img {
    order: 2;
}

.lightbox-caption h2 {
    margin: 0 0 0.2rem;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.3;
}

.lightbox-caption p {
    margin: 0;
    color: #d0d0d0;
    font-size: 1.2rem;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.lightbox-caption-top p {
    color: var(--primary-purple);
    font-size: 1.15rem;
}

.lightbox-caption-bottom {
    color: #d0d0d0;
    font-size: 1.2rem;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lightbox-arrow:hover {
    background: var(--primary-purple);
}

.lightbox-arrow.prev {
    left: 12px;
}

.lightbox-arrow.next {
    right: 12px;
}

@media screen and (max-width: 900px) {
    .lightbox-arrow {
        display: none;
    }
    .carousel-arrow {
        display: none;
    }
    .gallery-item {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

@media screen and (max-width: 600px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

.lightbox-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-dot.active {
    background: rgba(255, 255, 255, 0.85);
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 1.4rem;
    color: var(--text-gray);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    padding: 1rem 1.2rem;
    border-radius: 6px;
    border: 2px solid var(--primary-purple);
    background: #2a2a2a;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1.4rem;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: #232323;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.18);
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    display: inline-block;
    background-color: var(--primary-purple);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.4rem;
    font-family: var(--font-main);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 0.5rem;
}

.contact-form button[type="submit"]:hover {
    background-color: #9d4edd;
    transform: scale(1.03);
}

.form-status,
.form-error {
    font-size: 1.3rem;
    color: var(--text-gray);
    min-height: 1.6em;
}

.form-status {
    max-width: 600px;
    margin: 1.5rem auto 0;
    text-align: center;
}

.form-error {
    color: #fca5a5;
    margin: 0;
}

.form-error:empty {
    min-height: 0;
}

/* Detail pages */
.detail-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.detail-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
}

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

.event-medias .detail-media {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.detail-media img,
.detail-media video {
    border-radius: 8px;
}

.event-artists,
.event-medias {
    margin-top: 2rem;
}

.event-artists h3,
.event-medias h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.event-artists ul {
    list-style: disc;
    padding-left: 1.8rem;
    display: grid;
    gap: 0.6rem;
}

.event-artists li {
    color: var(--text-gray);
    font-size: 1.4rem;
}

.event-media-item {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
    align-items: stretch;
    text-align: center;
}

.event-media-row {
    display: flex;
    align-items: stretch;
    gap: 1.4rem;
}

.event-media-item h4 {
    font-size: 1.4rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-media-author {
    color: var(--primary-purple);
    font-size: 1.15rem;
    line-height: 1.35;
    min-height: 1.55em;
    overflow-wrap: anywhere;
}

.event-media-item p {
    color: var(--text-gray);
    font-size: 1.3rem;
    line-height: 1.45;
    min-height: 4.35em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.event-media-item .event-media-author {
    min-height: 1.55em;
    color: var(--primary-purple);
    font-size: 1.15rem;
    line-height: 1.35;
    display: block;
    overflow: visible;
}

.event-media-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--gallery-image-height, 280px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.event-media-item img,
.event-media-item video {
    width: 100%;
    height: var(--gallery-image-height, 280px);
    max-height: none;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #0d0d0d;
}

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.event-lightbox.hidden {
    display: none;
}

.event-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.event-lightbox-content {
    width: min(92vw, 1000px);
    max-height: 92vh;
    overflow: auto;
    padding: 1rem;
    border-radius: 12px;
    background: #171717;
    text-align: center;
}

.event-lightbox-content h2 {
    margin: 0 2.5rem 0.25rem;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.event-lightbox-author {
    margin-bottom: 1rem;
    color: var(--primary-purple);
    font-size: 1.25rem;
}

.event-lightbox-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #0d0d0d;
}

.event-lightbox-description {
    margin: 1rem auto 0;
    max-width: 760px;
    color: var(--text-gray);
    font-size: 1.3rem;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.event-lightbox-close,
.event-lightbox-arrow {
    position: absolute;
    z-index: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 35, 35, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
}

.event-lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    font-size: 2.8rem;
    line-height: 1;
}

.event-lightbox-arrow {
    top: 50%;
    width: 4.5rem;
    height: 4.5rem;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
}

.event-lightbox-close {
    display: grid;
    place-items: center;
    font-weight: 300;
}

.event-lightbox-arrow.prev {
    left: 1.5rem;
}

.event-lightbox-arrow.next {
    right: 1.5rem;
}

/* Event detail v3 (/events/:id) */
.event-v3-top {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.event-v3-top-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.event-v3-flyer-large-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.event-v3-flyer-large {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    object-fit: contain;
    background: #1b1b1b;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.event-v3-flyer-large:hover {
    transform: rotate(0deg) scale(1.02);
}

.event-v3-flyer-fallback {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    border-radius: 15px;
    border: 1px solid #333;
    background: #1b1b1b;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.event-v3-text-col {
    padding-left: 2rem;
}

.event-v3-back-btn {
    margin-top: 0;
    margin-bottom: 1.6rem;
}

.event-v3-event-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 1rem 0 2rem;
    color: #fff;
}

.event-v3-description-box h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.event-v3-description-box p {
    font-size: 1.55rem;
    color: #b0b0b0;
    line-height: 1.8;
    white-space: pre-line;
}

.event-v3-bottom-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.event-v3-lineup-col h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.event-v3-lineup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-v3-artist-row {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.event-v3-artist-row:hover {
    background: #2a2a2a;
    border-color: var(--primary-purple);
    transform: translateX(10px);
}

.event-v3-artist-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333 center / cover no-repeat;
    margin-right: 1.5rem;
    border: 2px solid #333;
    flex: 0 0 60px;
}

.event-v3-artist-details {
    flex: 1;
}

.event-v3-artist-details h4 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.event-v3-artist-details span {
    color: var(--primary-purple);
    font-size: 1.3rem;
}

.event-v3-artist-arrow {
    color: #555;
    font-size: 2rem;
    padding-right: 1rem;
}

.event-v3-lineup-empty {
    color: var(--text-gray);
    font-size: 1.4rem;
    padding: 1.2rem;
    border: 1px dashed #333;
    border-radius: 10px;
}

.event-v3-sticky-card {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.event-v3-info-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
}

.event-v3-info-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.event-v3-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
    gap: 1rem;
}

.event-v3-info-item .label {
    color: #888;
    font-size: 1.3rem;
    width: 80px;
    flex: 0 0 80px;
}

.event-v3-info-item .value {
    color: #fff;
    font-weight: 600;
    text-align: right;
    flex: 1;
    font-size: 1.45rem;
}

.event-v3-divider {
    border: 0;
    border-top: 1px solid #2a2a2a;
    margin: 1.2rem 0;
}

.event-v3-status-badge {
    background: rgba(138, 43, 226, 0.2);
    color: #dcd6f7;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
    font-size: 1.3rem;
}

.event-v3-btn-full {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

@media screen and (max-width: 900px) {
    .event-v3-top-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .event-v3-bottom-split {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 1.8rem;
        align-items: start;
    }

    .event-v3-text-col {
        padding-left: 0;
    }

    .event-v3-event-title {
        font-size: 2.7rem;
    }

    .event-v3-flyer-large-container {
        max-width: 100%;
    }

    .event-v3-flyer-large {
        transform: none;
    }

    .event-v3-sticky-card {
        position: static;
    }

    .event-media-row {
        gap: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .event-v3-top {
        padding-top: 6.5rem;
        padding-bottom: 3rem;
    }

    .event-v3-event-title {
        font-size: 2.2rem;
        margin: 0.8rem 0 1.6rem;
    }

    .event-v3-description-box h2 {
        font-size: 1.7rem;
    }

    .event-v3-description-box p {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    .event-v3-lineup-col h3,
    .event-v3-info-card h3 {
        font-size: 1.7rem;
    }

    .event-v3-info-card {
        padding: 1.5rem;
    }

    .event-v3-bottom-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.2rem;
    }

    .event-v3-artist-row {
        padding: 0.75rem;
    }

    .event-v3-artist-thumb {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        margin-right: 0.8rem;
    }

    .event-v3-artist-details h4 {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .event-v3-artist-details span {
        font-size: 1.1rem;
    }

    .event-v3-artist-arrow {
        display: none;
    }

    .event-v3-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .event-v3-info-item .label {
        width: auto;
        flex-basis: auto;
    }

    .event-v3-info-item .value {
        font-size: 1.3rem;
        text-align: left;
    }

    .event-lightbox {
        padding: 1rem;
    }

    .event-lightbox-arrow {
        display: none;
    }
}

.artist-musics {
    margin-top: 2rem;
    display: grid;
    gap: 1.6rem;
}

.artist-music {
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 12px;
}

.artist-music iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.artist-music iframe:not([data-embed-provider="bandcamp"]) {
    height: auto;
    aspect-ratio: 16 / 9;
}

.artist-music iframe[data-embed-provider="bandcamp"] {
    height: 120px;
}

.artist-media-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.artist-media-row {
    display: flex;
    align-items: stretch;
    gap: 1.4rem;
}

.artist-media-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
    text-align: center;
}

.artist-media-item img {
    width: 100%;
    height: var(--artist-gallery-image-height, 280px);
    object-fit: contain;
    background: #1b1b1b;
    display: block;
}

.artist-media-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.artist-media-item h3 {
    margin: 0.8rem 1rem 0.2rem;
    font-size: 1.4rem;
    line-height: 1.35;
    min-height: 2.7em;
    overflow: hidden;
}

.artist-media-item p {
    padding: 0 1rem 0.8rem;
    color: var(--text-gray);
    font-size: 1.3rem;
    line-height: 1.45;
    min-height: 4.35em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.artist-media-item .artist-media-author {
    padding-bottom: 0.2rem;
    color: var(--primary-purple);
    font-size: 1.15rem;
    min-height: 1.55em;
    display: block;
    overflow: visible;
}

/* Artist detail page */
.artist-hero-full {
    width: 100%;
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 5%;
    overflow: hidden;
}

.artist-hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(
            to right,
            rgba(18, 18, 18, 0.98) 0%,
            rgba(18, 18, 18, 0.96) 38%,
            rgba(18, 18, 18, 0.85) 52%,
            rgba(18, 18, 18, 0.55) 66%,
            rgba(18, 18, 18, 0.22) 80%,
            rgba(18, 18, 18, 0.06) 90%,
            transparent 98%
        ),
        linear-gradient(
            to top,
            rgba(13, 13, 13, 1.00) 0%,
            rgba(13, 13, 13, 0.96) 16%,
            rgba(13, 13, 13, 0.80) 32%,
            rgba(13, 13, 13, 0.48) 52%,
            rgba(13, 13, 13, 0.18) 70%,
            rgba(13, 13, 13, 0.00) 86%
        );
}

.artist-hero-full::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 30%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 1.00) 0%,
        rgba(18, 18, 18, 1.00) 22%,
        rgba(18, 18, 18, 0.82) 52%,
        rgba(18, 18, 18, 0.40) 78%,
        rgba(18, 18, 18, 0.00) 100%
    );
}

.hero-content-layer {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.artist-hero-full h1 {
    font-size: 5rem;
    margin: 1rem 0;
    line-height: 1.1;
    color: var(--primary-purple);
}

.genre-tag {
    display: inline-block;
    background-color: var(--primary-purple);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.artist-bio-text {
    font-size: 1.7rem;
    margin-top: 2rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 520px;
}

.breadcrumbs a {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs a:hover {
    color: var(--primary-purple);
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.music-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    margin-top: 2rem;
}

.music-content-grid--single {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.music-column,
.video-column {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.music-catalog {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.music-catalog > h1 {
    margin-bottom: 3.5rem;
}

.music-artist-row {
    margin-bottom: 3.5rem;
}

.music-artist-row h2 {
    margin-bottom: 1.2rem;
}

.music-artist-row h2 a,
.music-detail a {
    color: inherit;
    text-decoration: none;
}

.music-artist-row h2 a:hover,
.music-detail a:hover {
    color: var(--primary-purple);
}

.music-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
}

.music-carousel-viewport {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 0.3rem 0.2rem 1rem;
}

.music-catalog-card {
    display: flex;
    min-width: min(36rem, 82vw);
    min-height: 17rem;
    flex-direction: column;
    scroll-snap-align: start;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-white);
}

.music-catalog-card:hover {
    border-color: var(--primary-purple);
}

.music-catalog-card h3 {
    margin: 0;
}

.music-catalog-card-date {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.music-catalog-card-embed {
    width: 100%;
    max-height: 15rem;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.music-catalog-card-embed iframe {
    display: block;
    width: 100%;
    height: 15rem;
    max-height: 17rem;
    border: 0;
}

.music-carousel-arrow {
    display: grid;
    width: 3.8rem;
    height: 3.8rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-white);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.music-carousel-arrow:hover,
.music-carousel-arrow:focus-visible {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.video-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 220px;
}

.video-container video,
.video-container img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.video-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: var(--text-gray);
    font-size: 1.3rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 0.75rem;
}

.footer-social-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.footer-social-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-404 {
    padding: 8rem 5% 6rem;
    text-align: center;
}

.page-404 p {
    color: var(--text-gray);
    font-size: 1.6rem;
    margin: 1rem auto 2rem;
    max-width: 760px;
}

.page-404 code {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
}

.page-404 a {
    display: inline-block;
    background-color: var(--primary-purple);
    color: #fff;
    padding: 1rem 1.8rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: calc(100vh - var(--nav-height));
        top: var(--nav-height);
        background-color: var(--dark-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid var(--primary-purple);
        padding-top: 1.6rem;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-item {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease, margin-top 0.6s ease;
        grid-column: 1 / -1;
        justify-self: center;
        pointer-events: none;
    }

    .nav-item > a {
        grid-column: 2;
        justify-self: center;
    }

    .nav-item > .dropdown-toggle {
        grid-column: 3;
        justify-self: start;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 200px;
        margin-top: 0.6rem;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu li {
        text-align: center;
        opacity: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .artist-hero-full {
        background-position: center;
        align-items: flex-end;
        padding-bottom: 4rem;
    }

    .artist-hero-full::before {
        background:
            linear-gradient(
                to top,
                rgba(18, 18, 18, 0.96) 6%,
                rgba(18, 18, 18, 0.82) 42%,
                rgba(18, 18, 18, 0.38) 72%,
                rgba(18, 18, 18, 0.05) 100%
            ),
            linear-gradient(
                to right,
                rgba(18, 18, 18, 0.65) 0%,
                rgba(18, 18, 18, 0.18) 48%,
                transparent 86%
            );
    }

    .artist-hero-full::after {
        height: 44%;
        background: linear-gradient(
            to top,
            rgba(18, 18, 18, 1.00) 0%,
            rgba(18, 18, 18, 0.96) 34%,
            rgba(18, 18, 18, 0.62) 68%,
            rgba(18, 18, 18, 0.00) 100%
        );
    }

    .artist-hero-full h1 {
        font-size: 2.5rem;
    }

    .genre-tag {
        font-size: 0.8rem;
    }

    .hero {
        background-position: 57% center;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-featured-card {
        grid-template-columns: 1fr;
    }

    .event-featured-media {
        height: 220px;
    }

    .music-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.event-featured-content {
    text-align: left;
    display: flex;
    width: min(100%, 560px);
    min-width: 0;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    margin: 0 auto;
}

.event-featured-content .btn-primary {
    margin-top: 1rem;
    align-self: center;
}

/* ===========================
   Admin
   =========================== */

body.admin-body {
    --admin-bg: #1d1d22;
    --admin-surface: #26262c;
    --admin-surface-2: #2e2e36;
    --admin-text: #f1f1f3;
    --admin-text-muted: #c8c8cf;
    --admin-border: rgba(255, 255, 255, 0.10);
    --admin-border-strong: rgba(255, 255, 255, 0.18);
    background-color: var(--admin-bg);
    color: var(--admin-text);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 5%;
    background-color: #16161a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-purple);
    min-height: var(--nav-height);
}

.admin-brand {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-brand small {
    color: var(--text-gray);
    font-weight: 300;
    font-size: 1.1rem;
    margin-left: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.6rem;
    align-items: center;
    font-size: 1.3rem;
}

.admin-nav a {
    color: var(--admin-text);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.admin-logout-form {
    display: inline;
}

.admin-logout-form button {
    background: transparent;
    color: var(--admin-text-muted);
    border: 1px solid var(--admin-border-strong);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-logout-form button:hover {
    color: #fff;
    border-color: var(--primary-purple);
    background: rgba(138, 43, 226, 0.15);
}

.admin-main {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 3rem) 0 4rem;
    font-size: 1.4rem;
}

.admin-main h1 {
    color: var(--admin-text);
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.admin-main p,
.admin-main label {
    color: var(--admin-text-muted);
    font-size: 1.3rem;
}

/* Auth (login / signup) */
.admin-auth-shell {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 3rem) 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(138, 43, 226, 0.16), transparent 60%),
        var(--admin-bg);
}

.admin-auth-card {
    width: min(440px, 100%);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 3rem 2.4rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.admin-auth-card h1 {
    color: var(--admin-text);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-auth-secondary {
    margin-top: 1.8rem;
    text-align: center;
    color: var(--admin-text-muted);
    font-size: 1.3rem;
}

.admin-auth-secondary a {
    color: var(--primary-purple);
    font-weight: 600;
}

.admin-auth-secondary a:hover {
    text-decoration: underline;
}

/* Forms */
.admin-form {
    width: min(100%, 760px);
    margin: 1.8rem auto 0;
    padding: 2rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.admin-form > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form > div > br {
    display: none;
}

.admin-form fieldset {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.admin-form legend {
    padding: 0 0.5rem;
    color: var(--admin-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-form fieldset > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-form label {
    color: var(--admin-text-muted);
    font-size: 1.3rem;
    font-weight: 600;
}

.admin-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.admin-form select,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.admin-form input[type="file"] {
    padding: 0.45rem;
    background: var(--admin-surface-2);
    color: var(--admin-text-muted);
    border: 1px dashed var(--admin-border-strong);
    border-radius: 8px;
}

.admin-form input[type="file"]::file-selector-button {
    margin-right: 0.9rem;
    padding: 0.65rem 1rem;
    color: #fff;
    background: var(--primary-purple);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.admin-form label:has(> input[type="checkbox"]),
.admin-form label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    color: var(--admin-text);
    font-weight: 400;
    cursor: pointer;
}

.admin-form .social-network-row {
    padding: 1.2rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface-2);
}

.form-group {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.3rem;
    color: var(--admin-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea,
.admin-main input[type="text"],
.admin-main input[type="email"],
.admin-main input[type="password"],
.admin-main input[type="url"],
.admin-main input[type="number"],
.admin-main input[type="date"],
.admin-main input[type="time"],
.admin-main input[type="datetime-local"],
.admin-main select,
.admin-main textarea {
    background: var(--admin-surface-2);
    color: var(--admin-text);
    border: 1px solid var(--admin-border-strong);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 1.4rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.18);
}

.admin-main form > div {
    margin-bottom: 1.2rem;
}

.event-time-picker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 240px;
}

.event-time-picker select {
    min-width: 0;
    flex: 1;
}

.admin-file-upload img,
.admin-file-upload video {
    display: block;
    max-width: min(100%, 420px);
    max-height: 240px;
    margin-top: 0.6rem;
    border-radius: 8px;
    object-fit: contain;
}

.admin-file-upload [hidden] {
    display: none !important;
}

.admin-file-upload__description {
    margin: 0.5rem 0 0;
    color: var(--admin-text-muted);
    font-size: 1.2rem;
}

.admin-inline-upload {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-inline-upload > input[type="text"] {
    flex: 1;
    min-width: 0;
}

.admin-inline-upload [hidden] {
    display: none !important;
}

.admin-upload-button {
    display: inline-grid;
    width: 3.8rem;
    height: 3.8rem;
    flex: 0 0 3.8rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--admin-border-strong);
    border-radius: 8px;
    background: var(--admin-surface-2);
    color: var(--admin-text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.admin-upload-button:hover,
.admin-upload-button:focus-visible {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.admin-upload-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.admin-upload-status {
    font-size: 1.1rem;
}

.admin-upload-status.is-success {
    color: #62d68a;
}

.admin-upload-status.is-error {
    color: #ff8888;
}

.admin-label-with-help {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.admin-field-help {
    position: relative;
}

.admin-field-help summary {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border: 1px solid var(--admin-text-muted);
    border-radius: 50%;
    color: var(--admin-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.admin-field-help summary::-webkit-details-marker {
    display: none;
}

.admin-field-help summary:hover,
.admin-field-help summary:focus-visible {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.admin-field-help__content {
    position: absolute;
    z-index: 10;
    top: calc(100% + 0.6rem);
    left: 0;
    width: min(32rem, calc(100vw - 4rem));
    padding: 1rem 1.15rem;
    border: 1px solid var(--admin-border-strong);
    border-radius: 10px;
    background: var(--admin-surface-2);
    color: var(--admin-text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.admin-field-help__content p {
    margin: 0;
}

.admin-field-help__content p + p {
    margin-top: 0.7rem;
}

.admin-field-help__content code {
    color: inherit;
}

.primary-button,
.admin-main .btn,
.admin-main button[type="submit"],
.admin-main input[type="submit"] {
    display: inline-block;
    background-color: var(--primary-purple);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 1rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.24);
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.primary-button {
    width: 100%;
}

.admin-form > button[type="submit"] {
    min-width: 180px;
    margin-top: 0.5rem;
}

.primary-button:hover,
.admin-main .btn:hover,
.admin-main button[type="submit"]:hover,
.admin-main input[type="submit"]:hover {
    background-color: #fff;
    color: var(--primary-purple);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(138, 43, 226, 0.3);
}

#add-social-network {
    padding: 0.7rem 1rem;
    color: var(--primary-purple);
    background: transparent;
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.remove-social-network {
    width: fit-content;
    margin-top: 0.8rem;
    padding: 0.55rem 0.9rem;
    color: #fff;
    background: #a92d3a;
    border: 1px solid #cf4f5d;
    border-radius: 7px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* Feedback messages */
.error-message,
.success-message,
.flash {
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: 1.3rem;
}

.error-message,
.admin-main .error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #f5a7b0;
}

.admin-main .error:empty {
    display: none;
}

.success-message,
.flash--success,
.flash {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #a3e8b8;
}

/* Tables */
.admin-main table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin-top: 1.6rem;
    background: var(--admin-surface);
    border-radius: 10px;
    overflow: hidden;
    font-size: 1.3rem;
}

.admin-main table th,
.admin-main table td {
    padding: 1rem 1.2rem;
    border: 0;
    border-bottom: 1px solid var(--admin-border);
    text-align: left;
    vertical-align: middle;
    color: var(--admin-text);
}

.admin-main table th {
    background: rgba(138, 43, 226, 0.22);
    color: var(--admin-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.admin-main table tr:last-child td {
    border-bottom: 0;
}

.admin-main table .admin-clickable-row {
    cursor: pointer;
}

.admin-main table .admin-clickable-row td {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-main table .admin-clickable-row:hover td {
    background: rgba(138, 43, 226, 0.12);
}

.admin-main table .admin-clickable-row:focus-visible {
    outline: none;
}

.admin-main table .admin-clickable-row:focus-visible td {
    background: rgba(138, 43, 226, 0.12);
    box-shadow: inset 0 2px 0 var(--primary-purple), inset 0 -2px 0 var(--primary-purple);
}

.admin-main table a {
    color: var(--primary-purple);
}

.admin-main table a:hover {
    text-decoration: underline;
}

.admin-main table .admin-url-cell {
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-main table .admin-row-edit-link {
    display: block;
    margin: -1rem -1.2rem;
    padding: 1rem 1.2rem;
    color: inherit;
    text-decoration: none;
}

.admin-main table .admin-row-edit-link:hover {
    text-decoration: none;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    white-space: nowrap;
}

.admin-main .admin-row-actions .admin-external-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.admin-page-heading h1 {
    margin: 0.25rem 0 0;
}

.admin-page-eyebrow {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-secondary-button {
    flex: 0 0 auto;
}

.admin-message-card {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    background: var(--admin-surface);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.admin-message-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(138, 43, 226, 0.1);
}

.admin-message-header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
}

.admin-message-header a {
    color: var(--primary-purple);
    overflow-wrap: anywhere;
}

.admin-message-header time {
    color: var(--admin-text-muted);
    white-space: nowrap;
}

.admin-message-avatar {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-purple);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.admin-message-content {
    min-height: 12rem;
    padding: 2rem;
    color: var(--admin-text);
    font-size: 1.15rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 700px) {
    .admin-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-message-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-message-header time {
        grid-column: 2;
        white-space: normal;
    }

    .admin-message-content {
        padding: 1.4rem;
    }
}

.admin-main table form button {
    background: #a92d3a;
    color: #fff;
    border: 1px solid #cf4f5d;
    border-radius: 7px;
    padding: 0.55rem 0.9rem;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(169, 45, 58, 0.22);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.admin-main table form button:hover {
    background: #cf3f4e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(169, 45, 58, 0.3);
}

@media screen and (max-width: 768px) {
    .admin-form {
        padding: 1.25rem;
    }

    .admin-topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
    }

    .admin-main {
        padding-top: 2rem;
    }

    .admin-auth-shell {
        padding-top: 2rem;
    }
}
