/* Usando variables CSS definidas en header.php */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
}
section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.navbar.scrolled {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
}
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Efecto Parallax */
}
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 12px 32px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
}
.tech-logo {
    max-height: 50px;
    object-fit: contain;
}
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--section-accent-color); /* Variable de estilo en línea */
    border-radius: 2px;
}
#plex, #jellyfin {
    background-color: var(--color-bg-dark);
}
#emby { /* Ejemplo de color de fondo alterno */
    background-color: var(--color-bg-light);
}
.release-card {
    background-color: var(--color-card-bg);
    border: 1px solid #444;
    color: var(--color-text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.release-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-primary);
}
.release-card .card-body {
    text-align: left;
}
.release-card .card-title {
    font-weight: 600;
    color: var(--color-text-primary);
}
.release-card .card-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}
.section-subtitle {
    max-width: 760px;
    margin: 10px auto 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}
.landing-bs-carousel {
    margin-top: 24px;
}
.landing-bs-carousel .carousel-item {
    padding: 6px 0 12px;
    min-height: 472px;
}
.landing-bs-carousel .carousel-control-prev-icon,
.landing-bs-carousel .carousel-control-next-icon {
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    background-size: 58%;
}
.carousel-arrow-icon {
    color: #b30000;
    font-size: 2.4rem;
    text-shadow: 0 0 12px rgba(179, 0, 0, 0.5);
}
.landing-bs-carousel .carousel-control-prev,
.landing-bs-carousel .carousel-control-next {
    opacity: 1;
}
.landing-media-card {
    width: 12rem;
    min-width: 12rem;
    max-width: 12rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.landing-media-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.landing-media-card .poster-container {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}
.landing-media-card .poster-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    cursor: pointer;
}
.landing-media-card .card-body {
    text-align: center;
    padding: 9px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.landing-media-card .card-title {
    font-size: 0.88rem;
    line-height: 1.2;
    min-height: 2.4em;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 2px;
}
.media-meta {
    color: #c9c9c9;
    font-size: 0.74rem;
    margin-bottom: 6px !important;
}
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4c430;
    color: #101010;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 2px 8px;
}
.genre-text {
    color: #8f97a1;
    font-size: 0.74rem;
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.media-actions .btn-xs {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
}
.media-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}
.trailer-btn {
    font-weight: 600;
    border: 0;
    min-width: 118px;
}

/* Trailer button stays in modal only, never inside carousel cards */
.landing-media-card .trailer-btn {
    display: none !important;
}
#landing-media-modal,
#landing-media-modal .modal-content,
.modal-content.landing-media-modal-content {
    --bs-modal-bg: #161616;
    --bs-modal-color: #ffffff;
    --bs-body-color: #ffffff;
    --bs-body-bg: #161616;
    --bs-emphasis-color: #ffffff;
    background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%) !important;
    border: 1px solid #2d2d2d !important;
    color: #ffffff !important;
    border-radius: 14px;
}
#landing-media-modal .modal-header,
.modal-content.landing-media-modal-content .modal-header {
    background: #161616 !important;
    border-bottom: 1px solid #2d2d2d !important;
    color: #ffffff !important;
}
#landing-media-modal .modal-title,
#landing-media-modal .modal-body,
#landing-media-modal p,
#landing-media-modal h5,
#landing-media-modal span,
.modal-content.landing-media-modal-content .modal-title,
.modal-content.landing-media-modal-content .modal-body,
.modal-content.landing-media-modal-content p,
.modal-content.landing-media-modal-content h5,
.modal-content.landing-media-modal-content span {
    color: #ffffff !important;
    background: transparent !important;
}
.landing-media-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.landing-media-modal-meta {
    color: #cfcfcf;
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.landing-media-modal-summary {
    color: #e4e4e4;
    line-height: 1.45;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}
.landing-media-modal-actions {
    margin-top: 14px;
}
@media (max-width: 768px) {
    .landing-bs-carousel .carousel-item {
        min-height: 422px;
    }
    .landing-media-card {
        width: 10.2rem;
        min-width: 10.2rem;
        max-width: 10.2rem;
    }
    .landing-media-card .poster-image {
        height: 230px;
    }
    .landing-media-card .card-title {
        font-size: 0.84rem;
    }
    .landing-bs-carousel .carousel-inner {
        overflow: visible;
    }
    .landing-media-modal-grid {
        grid-template-columns: 1fr;
    }
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .float-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}
.contact-section {
    background-color: var(--color-bg-light);
}
.contact-section .form-control {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
}
.contact-section .form-control::placeholder { color: #aaa; }
.contact-section .form-control:focus {
    background-color: #333;
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-primary), 0.25);
}
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
}
.float-btn.whatsapp { background-color: #25D366; }
.float-btn.telegram { background-color: #2AABEE; }
footer {
    background-color: #000;
}