/* ======== SHORTS (public/shorts/*.php) ======== */

#short,
#shorts {
    background-image: url("../img/background/red-purp-abstract/512_dark-abstract.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 255, 255, 0.449);
    border-bottom: 1px solid rgba(215, 197, 255, 0.822);
    backdrop-filter: blur(25px);
    box-shadow: 0 0 25px rgba(192, 182, 218, 0.345);
    padding: 2rem 1rem 3rem;
    color: var(--beige-light);
    text-align: center;
}

#short > * {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#shorts > * {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#short a,
#shorts a {
    color: var(--beige-light);
}

#short h1,
#shorts h1 {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    line-height: 1.8rem;
    padding: 1rem;
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 244, 247, 0.869);
    box-shadow: 3px 3px 25px rgba(52, 223, 212, 0.342);
    background: linear-gradient(75deg, rgb(11, 223, 216), rgb(55, 194, 233), rgb(28, 203, 127));
}

#short h2,
#shorts h2 {
    color: var(--beige-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#short p,
#shorts p {
    color: var(--beige-light);
    line-height: 1.7;
}

/* --- Page d'un short --- */
.short-draft {
    background: #fff3cd;
    color: #664d03 !important;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.short-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--beige-light);
    opacity: 0.9;
}

.short-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.short-player {
    width: min(100%, 340px);
    aspect-ratio: 9 / 16;
    margin: 1.5rem auto;
}

.short-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 8px 8px 15px rgba(0, 1, 16, 0.086);
}

.short-points,
.short-body,
.short-transcript,
.short-cta {
    margin-top: 1.5rem;
    padding: 1.25rem;
    text-align: left;
    backdrop-filter: blur(25px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.217);
    background: radial-gradient(rgba(47, 247, 174, 0), rgba(232, 166, 74, 0.07));
}

.short-points ol {
    list-style: decimal;
    padding-left: 1.4rem;
    margin: 0;
}

.short-points li::marker {
    color: rgb(55, 194, 233);
    font-weight: bold;
}

.short-points li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.7rem;
}

.short-body p,
.short-transcript p {
    margin-bottom: 1rem;
}

.short-transcript p {
    font-size: 0.95rem;
    opacity: 0.92;
}

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

.short-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#short .cta-button {
    color: var(--beige-light);
    text-decoration: none;
    background: radial-gradient(#32cfa8ec, #27dcbbee);
    text-shadow: 2px 2px 0 rgb(57, 184, 171);
    border: 1px solid rgba(186, 249, 247, 0.241);
    box-shadow: 2px 2px 0 rgb(29, 128, 124);
    border-radius: 0.5rem;
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    transition: 0.3s ease;
}

#short .cta-button.secondary {
    background: radial-gradient(#a6a0ff45, #ffffff6a);
    text-shadow: none;
    border: none;
    box-shadow: 0px 0px 12px rgba(178, 177, 177, 0.368);
}

#short .cta-button:hover,
.short-card:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.short-back {
    margin-top: 2rem;
}

/* --- Liste des shorts --- */
.shorts-head {
    margin-bottom: 2rem;
}

.shorts-head p {
    margin-top: 1.2rem;
}

.shorts-empty {
    padding: 2rem 0;
}

.shorts-grid {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
    justify-content: center;
    gap: 1.25rem;
}

.short-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.217);
    background: radial-gradient(rgba(47, 247, 174, 0), rgba(232, 166, 74, 0.07));
    transition: 0.3s ease;
}

.short-card img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.short-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem;
    text-align: left;
}

.short-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(55, 194, 233);
}

.short-card-title {
    font-weight: bold;
    line-height: 1.35;
}

.short-card-meta {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ======== MEDIA QUERIES ======== */

/* Petite tablette */

@media (min-width: 768px) {
    .short-cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}
