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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0d0e0;
    background-color: rgb(255, 255, 255);
}

.index-background {
    background-image: url('../assets/logo101-01.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.artists-background {
    background-color: rgb(255, 255, 255);
    background-image: url('../assets/logo2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.artists-background.football-field {
    background-image: url('../assets/football/field.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Football Field Container */
.football-field-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

/* Jersey Buttons */
.jersey-button {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 10;
}

.jersey-button:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.jersey-button img {
    width: clamp(100px, 18vw, 200px);
    height: auto;
    transition: transform 0.3s ease;
}

.jersey-name {
    margin-top: 10px;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Letter Overlay */
.letter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.letter-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.letter-container {
    position: relative;
    width: clamp(320px, 85vw, 900px);
    height: auto;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-bg {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.letter-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: clamp(36px, 5vw, 50px);
    height: clamp(36px, 5vw, 50px);
    border-radius: 50%;
    background-color: #ff4444;
    color: white;
    border: none;
    font-size: clamp(20px, 3vw, 28px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 1001;
    line-height: 1;
}

.letter-close:hover {
    transform: scale(1.1);
    background-color: #ff0000;
}

.letter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 75%, 600px);
    max-height: clamp(300px, 65%, 500px);
    overflow: auto;
    padding: clamp(10px, 2vw, 25px);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.letter-content .carousel {
    max-width: 100%;
}

.letter-content .carousel-slide .sub-embed {
    min-height: auto;
    padding: 0.5rem;
}

.letter-content .instagram-media {
    max-width: 100% !important;
    min-width: 240px !important;
}

.letter-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Large screens */
@media (min-width: 1200px) {
    .jersey-button img {
        width: clamp(150px, 15vw, 220px);
    }

    .letter-container {
        width: clamp(600px, 70vw, 1000px);
    }

    .letter-content {
        width: 70%;
        max-height: 60%;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .jersey-button img {
        width: clamp(90px, 16vw, 160px);
    }

    .letter-container {
        width: 80vw;
    }

    .letter-content {
        width: 75%;
        max-height: 60%;
    }
}

/* Mobile adjustments for football theme */
@media (max-width: 768px) {
    .football-field-container {
        min-height: 100vh;
    }

    .jersey-button img {
        width: clamp(70px, 25vw, 120px);
    }

    .jersey-name {
        font-size: clamp(0.7rem, 3vw, 1rem);
        margin-top: 6px;
    }

    .letter-container {
        width: 95vw;
        max-height: 90vh;
    }

    .letter-bg {
        max-height: 85vh;
    }

    .letter-content {
        width: 85%;
        max-height: 55%;
        padding: 10px;
    }

    .letter-close {
        top: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .jersey-button img {
        width: clamp(60px, 28vw, 100px);
    }

    .jersey-name {
        font-size: 0.65rem;
    }

    .letter-content {
        width: 88%;
        max-height: 50%;
        padding: 8px;
    }

    .letter-content .instagram-media {
        min-width: 200px !important;
    }
}

.music-background {
    background-color: rgb(0, 0, 0);
    min-height: 100vh;
}

.mouse-glow {
    display: none;
}

/* Invert images on hover (only on music page) */
.music-background img:hover,
.music-background iframe:not(.release-embed):hover {
    filter: grayscale(1) opacity(0.9);
    transition: filter 0.2s ease;
}

img,
iframe,
.instagram-media {
    transition: filter 0.2s ease;
}

/* Text drop-shadow on hover */
h1:hover, h2:hover, h3:hover,
p:hover, a:hover, li:hover, span:hover {
    filter: drop-shadow(4px 4px 10px rgb(247, 0, 0));
    transition: filter 0.2s ease;
}

h1, h2, h3, p, a, li, span {
    transition: filter 0.2s ease;
}

.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    color: pink;
    margin: 0;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.music-background .logo img {
    filter: invert(1);
}

.main-nav {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
}

.main-nav ul {
    list-style: none;
}

.main-nav .nav-item {
    margin-bottom: 0.8rem;
}

.main-nav .nav-item a {
    color: pink;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav .nav-item a:hover {
    color: #f0ff69;
}

.nav-artists {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    transform: translateX(10px);
}

.nav-music {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    transform: translateX(-5px);
}

.nav-info {
    font-family: 'Times New Roman', serif;
    font-size: 1.3rem;
    font-style: italic;
    transform: translateX(15px);
}

.page-content {
    padding: clamp(80px, 15vw, 120px) clamp(15px, 5vw, 40px) 40px;
}

.page-content h2 {
    color: pink;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-family: Arial, sans-serif;
}

.page-content .artist-name {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-style: italic;
    font-family: 'Times New Roman', serif;
}

.page-divider {
    border: none;
    height: 50px;
    background-color: transparent;
    width: 60%;
    margin: 2rem auto;
}

.artist-item {
    margin-bottom: 1.5rem;
}

.artist-name {
    color: pink;
    cursor: pointer;
    transition: color 0.3s;
}

.artist-name:hover {
    color: #f0ff69;
}

.music-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.artist-embed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, visibility 0s 0.4s;
    padding: 0;
    visibility: hidden;
}

.artist-item.active .artist-embed {
    max-height: none;
    padding: 1rem 0;
    visibility: visible;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, visibility 0s 0s;
}

.sub-item {
    margin-bottom: 1rem;
    margin-left: clamp(0.5rem, 3vw, 1.5rem);
}

.sub-name {
    color: #ffb6c1;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: color 0.3s;
}

.sub-name:hover {
    color: #f0ff69;
}

.info-section {
    margin-top: 2rem;
}

.info-section:hover h2 {
    color: #f0ff69;
}

.sub-embed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, visibility 0s 0.4s;
    padding: 0;
    visibility: hidden;
}

.sub-item.active .sub-embed,
.artist-item.active .sub-embed {
    max-height: none;
    padding: 1rem 0;
    overflow: visible;
    min-height: 600px;
    visibility: visible;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, visibility 0s 0s;
}

/* Instagram embed responsive wrapper */
.sub-embed .instagram-media {
    max-width: 100% !important;
    min-width: 280px !important;
    width: 100% !important;
    min-height: 550px !important;
}

/* YouTube embed responsive */
.artist-embed iframe {
    max-width: 100%;
    width: clamp(280px, 80vw, 560px);
    height: clamp(158px, 45vw, 315px);
}

/* Carousel styles */
.carousel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.carousel-slide .sub-embed {
    max-height: none;
    overflow: visible;
    visibility: visible;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 182, 193, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 182, 193, 0.7);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: pink;
    transform: scale(1.2);
}

.shone-title {
    color: red;
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.release-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.0rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    background-color: transparent;
    min-height: 200px;
}

.release-image {
    width: clamp(120px, 25vw, 200px);
    height: auto;
}

.release-embed {
    border: 0;
    width: clamp(280px, 40vw, 400px);
    height: clamp(150px, 20vw, 200px);
}

.release-text {
    color: red;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: bold;
    line-height: 1.0;
    text-align: center;
    padding: 0 1rem;
}

.release-text p {
    margin: 0;
}

.release-divider {
    border: none;
    height: 1px;
    background-color: pink;
    width: 100%;
    margin: 1rem auto;
}

/* Release section wrapper */
.release-section {
    position: relative;
    z-index: 1;
    transition: z-index 0s;
}

.release-section.highlighted {
    z-index: 1001;
}

/* Release overlay effect */
.release-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.release-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-logo {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .music-embed {
        padding: 0 0.5rem;
    }

    .release-info {
        flex-direction: column;
        gap: 1rem;
    }

    .release-image {
        width: 60vw;
        max-width: 250px;
    }

    .release-embed {
        width: 90vw;
        max-width: 350px;
        height: 180px;
    }

    .release-text {
        font-size: 1.1rem;
    }

    .release-divider {
        width: 80%;
    }

    .artist-embed {
        padding-left: 0;
        padding-right: 0;
    }

    .artist-embed iframe {
        width: 90vw;
        height: 50vw;
        max-height: 280px;
    }

    .sub-item {
        margin-left: 0.5rem;
    }

    .sub-embed .instagram-media {
        min-width: 260px !important;
    }

    /* Carousel mobile styles */
    .carousel {
        max-width: 100%;
    }

    .carousel-slide .sub-embed {
        padding: 0.5rem;
    }

    .carousel-dots {
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
