body {
    color: var(--white);
}

.title {
    font-family: "RoundStyle";
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 20px;
}

.product-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Ensure all images are responsive and don't cause horizontal scrolling */
#file-info-container img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Additional mobile-specific image constraints */
@media (max-width: 768px) {
    .product-image {
        max-width: 90vw;
    }
    
    #file-info-container img {
        max-width: 90vw;
    }
}

.price {
    font-size: 2rem;
}

#file-info-container {
    background-color: rgba(0, 0, 0, 0.9);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0 !important;
    padding-bottom: 2rem;
}

/* Add extra spacing above audio element for special files */
.sample audio {
    margin-top: 1rem;
    /* The default player is 300px wide, which overflows the column on small phones */
    max-width: 100%;
}

/* Breadcrumb styling for dark theme */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--white);
    opacity: 0.7;
}

.breadcrumb-item a {
    color: var(--light-purple);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--white);
}

/* Mobile padding for better spacing */
@media (max-width: 767.98px) {
    #file-info-container .col-12 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
/* Version tabs (Spoil-Spoil / Subliminal / Direct), styled like the file list pagination */
.version-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--light-purple);
    padding: 0.35rem;
    border-radius: 10px;
}

.version-tabs .nav-link {
    font-family: "RoundStyle", sans-serif;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    border: 1px solid var(--white);
    border-radius: 8px;
}

.version-tabs .nav-link:hover,
.version-tabs .nav-link.active {
    background-color: var(--green);
    border-color: var(--green);
}

/* Keep all three version tabs on one line on phones */
@media (max-width: 576px) {
    .version-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Quick fade out/in of the price/purchase row when switching version tabs.
   Duration must match TAB_FADE_MS in the single_file script. */
#version-purchase {
    transition: opacity 150ms ease;
}

#version-purchase.is-switching {
    opacity: 0;
    /* Stop the outgoing version's purchase links being clicked mid-fade */
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #version-purchase {
        transition: none;
    }
}
