/* Movie single page: title, meta, genres, overview, server tabs */

/* ── Title ────────────────────────────────────────────────── */
.single-title {
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 900;
    margin: 0 0 14px;
    /* Bengali / Indic scripts need extra vertical room; tight line-height + background-clip:text clips matras */
    line-height: 1.42;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: visible;
    padding: 0.18em 0 0.06em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: linear-gradient(100deg,
            #ffffff 0%,
            #e2c9ff 25%,
            #f472b6 50%,
            #facc15 75%,
            #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 7s ease-in-out infinite;
    text-wrap: balance;
}

@media (max-width: 767px) {
    .single-title {
        font-size: clamp(18px, 5.5vw, 28px) !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        padding-top: 0.22em !important;
        padding-bottom: 0.08em !important;
        text-align: center;
    }
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* ── Meta Row (badges) ─────────────────────────────────────── */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.meta-badge.type {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
}

/* ── Year Badge — Modern Glowing ─────────────────────────── */
.year-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg,
            rgba(250, 204, 21, 0.18) 0%,
            rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fde68a;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.year-badge::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.15), transparent);
    animation: yearShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes yearShine {
    0% {
        left: -100%;
    }

    60%,
    100% {
        left: 150%;
    }
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
    color: #facc15;
}

.meta-badge.age {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ── Genre + Tag ───────────────────────────────────────────── */
.genre-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.genre-link {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    text-decoration: none;
    transition: all 0.2s;
}

.genre-link:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
}

.overview-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 22px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .overview-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .single-content-wrap {
        padding-top: 15px !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .single-info-col {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .meta-row,
    .genre-links {
        width: 100%;
    }
}

/* ── Server tabs ─────────────────────────────────────────── */
.server-tab-btn {
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.2s;
}

.server-tab-btn:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
    color: #fff;
}

.active-server {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}