/* Plugin: Kinostarts 2026 */
.kinostars-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #0a0d13, #151b24);
    border-radius: 20px;
}

.kinostars-header {
    text-align: center;
    margin-bottom: 50px;
}

.kinostars-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    color: #ffffff;
}

.kinostars-header p {
    color: #aab4c3;
    font-size: 1.1rem;
}

.kinostars-month {
    margin-bottom: 50px;
}

.month-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.month-title span {
    width: 8px;
    height: 35px;
    background: #ff3c3c;
    border-radius: 10px;
}

.month-title h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin: 0;
    color: #ffffff;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.movie-card {
    background: #1a1f2a;
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 60, 60, 0.4);
}

.movie-date {
    display: inline-block;
    background: rgba(255, 60, 60, 0.15);
    color: #ff7676;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.movie-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.movie-genre {
    color: #8f9bab;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.movie-desc {
    color: #c8d0da;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.trailer-button {
    background: linear-gradient(135deg, #ff3c3c, #cc0000);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.trailer-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.4);
}

.kinostars-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8e99a8;
    font-size: 0.85rem;
}

/* POPUP STYLES */
.kinostars-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: #0f1117;
    border-radius: 24px;
    border: 1px solid rgba(255, 60, 60, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 60, 60, 0.2);
    border-radius: 24px 24px 0 0;
}

.popup-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    transition: 0.2s;
}

.popup-close:hover {
    color: #ff3c3c;
}

.popup-body {
    padding: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.popup-footer {
    padding: 12px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 24px 24px;
}

.popup-close-bottom {
    background: #ff3c3c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.popup-close-bottom:hover {
    background: #cc0000;
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .kinostars-wrapper {
        padding: 20px 15px;
    }
    .popup-container {
        width: 95%;
    }
    .popup-header h3 {
        font-size: 1rem;
    }
}