/* ========================================
   SELECTIONS INLINE SLIDER STYLES
   ======================================== */

/* Trigger Button */
.selections-trigger-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    /* border-radius: 4px; */
    /* Reset if needed */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* padding: 8px 16px; */
    /* Inherit from rc-tab */

    /* color: var(--tt, #fff); */
    /* font-size: 14px; */
    /* font-weight: 500; */
    cursor: pointer;
    transition: all 0.2s ease;

    margin: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Inherit header styles from rc-tab if possible, but add specific active state if needed */
.selections-trigger-btn.is-active {
    /* Styles for active tab state usually handled by template CSS for .rc-tab.is-active */
}


.selections-count {
    /* font-size: 11px; */
    /* background: rgba(255, 255, 255, 0.1); */
    /* padding: 2px 6px; */
    /* border-radius: 10px; */
    /* margin-left: 4px; */
    /* color: var(--tt-fade); */
}


/* Inline Content Container */
.selections-inline-content {
    width: 100%;
    margin-top: 20px;
    /* background: var(--block-bg, #222c42); */
    /* Match theme block bg */
    /* border-radius: 10px; */
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

/* Slider Wrapper */
.selections-slider-wrapper {
    position: relative;
    width: 100%;
    /* Animation state: hidden */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.selections-inline-content.visible .selections-slider-wrapper {
    /* Animation state: visible */
    opacity: 1;
    transform: translateY(0);
}

/* Selections Slider */
.selections-slider {
    position: relative;
    display: flex;
    /* Fallback */
    /* overflow-x: auto; */
    /* Owl Carousel handles overflow */
    gap: 0;
    /* Owl handles margin */
    padding: 0;
}

/* Owl Carousel Customization */
.selections-slider .owl-stage-outer {
    overflow: hidden;
}

.selections-slider .owl-stage {
    display: flex;
    /* Force equal height */
}

.selections-slider .owl-item {
    flex-shrink: 0;
    float: none;
    /* Reset overrides */
    display: flex;
    /* Make the card fill height */
    height: auto;
}


/* Buttons Navigation */
.selections-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    /* Square */
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.selections-nav:hover {
    background: var(--accent, #667eea);
}

.selections-nav.prev {
    left: 10px;
}

.selections-nav.next {
    right: 10px;
}

@media (max-width: 600px) {
    .selections-nav.prev {
        left: 0;
    }

    .selections-nav.next {
        right: 0;
    }
}


/* Selection Card */
.selection-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0f1419;
    /* width is handled by owl carousel items or autoWidth */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* transition: transform 0.2s; */
}

/* 
.selection-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
} 
*/

.selection-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.selection-card-image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    overflow: hidden;
    background: #000;
}

.selection-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Stats */
.selection-card-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.selection-card-stats {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: #fff;
}

.selection-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.selection-card-title-wrap {
    padding: 10px;
    background: #151a21;
    flex: 1;
}

.selection-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   REMAKES (RELATED NEWS) STYLES
   ======================================== */

.remakes-inline-content {
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

/* Контейнеры */
.rem-slider-wrapper {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.remakes-inline-content.visible .rem-slider-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.rem-slider:not(.owl-loaded) {
    display: none;
}

/* Слайды */
.rem-slider .rem-slide {
    width: 100%;
    padding: 0 4px;
}

/* Постер */
.rem-poster {
    position: relative;
    width: 100%;
    padding-top: 154%;
    /* Соотношение сторон */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    background-color: #222c42;
}

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

/* Студийный лейбл на постере */
.rem-studio-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Название фильма на постере */
.rem-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 4px;
    text-align: center;
    transition: all .3s ease;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.rem-title span {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Эффект при наведении */
.rem-slide:hover .rem-title {
    background: rgba(0, 0, 0, 0.85);
    min-height: 45px;
}

.rem-slide:hover .rem-title span {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Навигация (кнопки) */
.rem-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.rem-nav:hover {
    background: var(--accent, #667eea);
    transform: translateY(-50%) scale(1.05);
}

.rem-nav.prev {
    left: 5px;
}

.rem-nav.next {
    right: 5px;
}

/* ========================================
   SEASONS STYLES
   ======================================== */

.seasons-inline-content {
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

.sea-slider-wrapper {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.seasons-inline-content.visible .sea-slider-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.sea-slider:not(.owl-loaded) {
    display: none;
}

.sea-slider .sea-slide {
    width: 100%;
    padding: 0 4px;
}

.sea-poster {
    position: relative;
    width: 100%;
    padding-top: 154%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    background-color: #222c42;
}

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

.sea-studio-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    max-width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.sea-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 4px;
    text-align: center;
    transition: all .3s ease;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sea-title span {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sea-slide:hover .sea-title {
    background: rgba(0, 0, 0, 0.85);
    min-height: 45px;
}

.sea-slide:hover .sea-title span {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.sea-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.sea-nav:hover {
    background: var(--accent, #667eea);
    transform: translateY(-50%) scale(1.05);
}

.sea-nav.prev {
    left: 5px;
}

.sea-nav.next {
    right: 5px;
}

/* ==========================================
   Custom Tags inside Selections Modal/Inline
   ========================================== */
.selections-inline-content .ctags-block {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column; /* Заголовок сверху, теги снизу */
    gap: 12px;
}

.selections-inline-content .ctags-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selections-inline-content .ctags-list {
    display: flex;
    flex-direction: column; /* Выстраивает кнопки строго в один столбик */
    align-items: flex-start; /* Прижимает к левому краю */
    gap: 8px;
}

.selections-inline-content .ctag-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.selections-inline-content .ctag-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}