/* Shared single-page styles: backdrop, layout, poster frame, related, comments, share */

/* ── Backdrop ─────────────────────────────────────────────── */
.single-backdrop-wrap {
    border-radius: 20px;
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .single-backdrop-wrap {
        min-height: auto !important;
        border-radius: 0;
    }
}

.single-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.28) saturate(1.2);
    transform: scale(1.04);
    transition: transform 18s linear;
}

.single-backdrop-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #0f0f18 0%, #1a1025 45%, #0a0a12 100%);
    filter: brightness(0.28) saturate(1.2);
}

.single-backdrop-wrap:hover .single-backdrop-img {
    transform: scale(1);
}

.single-backdrop-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #0a0a0f 0%, rgba(10, 10, 15, 0.7) 55%, transparent 100%),
        linear-gradient(0deg, #0a0a0f 0%, rgba(10, 10, 15, 0.15) 45%, transparent 100%);
}

/* ── Layout & poster (fixed 2:3 frame) ─────────────────────── */
.single-content-wrap {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 30px 0 0;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .single-content-wrap {
        flex-direction: row;
    }
}

.single-poster-col {
    flex-shrink: 0;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .single-poster-col {
        width: 220px;
        max-width: 220px;
        margin: 0;
    }
}

.poster-glow-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.poster-glow-wrap:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.3), 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
}

.poster-glow-wrap .single-poster-img,
.poster-glow-wrap img.single-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-glow-wrap .single-poster-fc.fc-no-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.single-info-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .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%;
    }
}

/* ── Info Table ─────────────────────────────────────────────── */
.info-table {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12.5px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.info-value {
    color: #e5e7eb;
    font-weight: 700;
    text-align: right;
    max-width: 65%;
}

/* ── Related ──────────────────────────────────────────────── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

@media (max-width: 767px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.related-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/3;
    text-decoration: none;
    display: block;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.related-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.3);
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover img {
    transform: scale(1.07);
}

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.related-card-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.related-card-sub {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.related-card-no-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #141420, #0d0d18);
    color: rgba(255, 255, 255, 0.08);
    font-size: 28px;
}

.rc-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    backdrop-filter: blur(4px);
}

/* ── Comments ─────────────────────────────────────────────── */
.comment-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.comment-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.comment-text {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ── Section Divider ─────────────────────────────────────── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    margin: 28px 0 16px;
}

.section-divider .bar {
    width: 4px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(to bottom, #e50914, #ec4899);
}

/* ── Share ───────────────────────────────────────────────── */
.share-section {
    margin: 20px 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.share-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.fb {
    background: rgba(59, 89, 152, 0.2);
    border: 1px solid rgba(59, 89, 152, 0.3);
}

.share-btn.fb:hover {
    background: rgba(59, 89, 152, 0.4);
    box-shadow: 0 6px 16px rgba(59, 89, 152, 0.3);
}

.share-btn.tw {
    background: rgba(29, 161, 242, 0.15);
    border: 1px solid rgba(29, 161, 242, 0.3);
}

.share-btn.tw:hover {
    background: rgba(29, 161, 242, 0.35);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.3);
}

.share-btn.wa {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.share-btn.wa:hover {
    background: rgba(37, 211, 102, 0.35);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.share-btn.tg {
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.share-btn.tg:hover {
    background: rgba(0, 136, 204, 0.35);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.3);
}

.share-btn.cp {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.share-btn.cp:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ── SEO Tags ────────────────────────────────────────────── */
.seo-tag-link:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #e0e7ff !important;
    transform: translateY(-1px);
}

/* ── AI Recommendations ──────────────────────────────────── */
.arc {
    flex-shrink: 0;
    width: 130px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.arc:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

@keyframes arf {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Languages & Genres Section ─────────────────────── */
.lg-section {
    background: #050816;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0;
}

.lg-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Single block (genres only): full content width on desktop — not squeezed into one grid column */
.lg-container.lg-container--solo {
    grid-template-columns: 1fr;
    max-width: min(80rem, 100%);
    width: 100%;
    box-sizing: border-box;
}

.lg-block.lg-block--solo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.lg-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.lg-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lg-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lg-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.lg-search {
    width: 100%;
    max-width: 260px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    color: #e5e7eb;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lg-search:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.lg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}

@media (min-width: 1024px) {
    .lg-container--solo .lg-tags {
        gap: 10px 12px;
    }
}

.lg-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.lg-tag:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .lg-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lg-container.lg-container--solo {
        padding: 0 16px;
    }

    .lg-block {
        padding: 18px;
    }

    .lg-search {
        max-width: 100%;
    }

    .lg-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .lg-section {
        padding: 32px 0;
    }

    .lg-block {
        padding: 14px;
        border-radius: 12px;
    }

    .lg-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ── Subscribe Section ──────────────────────────────── */
.sub-section {
    margin-top: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.sub-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.sub-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-icon {
    font-size: 18px;
    color: #34d399;
}

.sub-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.sub-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.sub-form {
    display: flex;
    gap: 10px;
}

.sub-input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-input:focus {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.sub-btn {
    padding: 11px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sub-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.sub-msg {
    display: none;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .sub-section {
        padding: 18px;
    }

    .sub-form {
        flex-direction: column;
    }

    .sub-btn {
        width: 100%;
        text-align: center;
    }
}

