/* Legacy parity fixes for homepage blocks */

/* HERO: lock dimensions with page-specific classes */
.home-hero .hero-row-lg .hero-card-lg {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 50%;
}

.home-hero .hero-row-sm .hero-card-sm {
    width: 33.3333%;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    min-width: 33.3333%;
}

.home-hero .poster.poster-hg .poster-media a,
.home-hero .poster.poster-sm .poster-media a {
    display: block;
    position: relative;
    overflow: hidden;
}

.home-hero .poster.poster-hg .poster-media,
.home-hero .poster.poster-sm .poster-media {
    position: relative;
    overflow: hidden;
}

/* first two big hero cards */
.home-hero .hero-row-lg .poster.poster-hg .poster-media {
    height: 220px;
}

/* bottom three hero cards */
.home-hero .hero-row-sm .poster.poster-sm .poster-media {
    height: 132px;
}

/* hard-fix for bottom 3 cards */
.home-hero .hero-row-sm {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.home-hero .hero-row-sm .hero-card-sm {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    min-width: 33.3333%;
    overflow: hidden;
}

.home-hero .hero-row-sm .poster.poster-sm {
    width: 100%;
}

.home-hero .hero-row-sm .poster.poster-sm .poster-media,
.home-hero .hero-row-sm .poster.poster-sm .poster-media > a {
    width: 100%;
    height: 132px;
    overflow: hidden;
}

.home-hero .hero-row-sm .poster.poster-sm .poster-subject {
    width: 100%;
    box-sizing: border-box;
}

.home-hero .hero-row-sm .poster.poster-sm .poster-subject h2,
.home-hero .hero-row-sm .poster.poster-sm .poster-subject .episode-no {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-hero .hero-row-lg,
.home-hero .hero-row-sm {
    display: flex;
    width: 100%;
}

/* Force hero covers to clip inside the card and crop from center */
.home-hero .poster.poster-hg .poster-media .lazy-wide,
.home-hero .poster.poster-sm .poster-media .lazy-wide {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.home-hero .poster.poster-hg .poster-media a,
.home-hero .poster.poster-sm .poster-media a {
    width: 100%;
    height: 100%;
}

/* keep the mini thumb in overlay stable */
.home-hero .poster.poster-hg .poster-subject .poster-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.home-hero .poster.poster-sm .poster-subject {
    padding-right: 8px;
}

/* Baba Diziler: 8 per row (col-8), compact circles, dizigene square-hover override, rotating gradient ring */
/* Room above row so gradient ring (::before inset -1px) + rotation are not clipped */
.baba-filmler-content {
    overflow: visible;
    padding-top: 10px;
}

.baba-filmler-items {
    overflow: visible;
    padding-top: 6px;
    box-sizing: border-box;
}

.baba-filmler-items .series-preview-b {
    overflow: visible;
    vertical-align: top;
}

@media (min-width: 769px) {
    .baba-filmler-items .series-preview-b.res_item.col-8 {
        width: 12.5% !important;
        box-sizing: border-box;
        padding: 0 3px;
        float: left;
        display: block;
    }
}

@media (max-width: 768px) {
    .baba-filmler-items {
        overflow-x: auto;
        overflow-y: visible;
        padding-top: 10px;
    }

    .baba-filmler-items .series-preview-b.res_item.col-8 {
        width: auto !important;
        min-width: 72px;
        display: inline-block;
        vertical-align: top;
        float: none !important;
        padding: 0 6px;
        box-sizing: border-box;
    }
}

.baba-filmler-items .gradient-box.story-preview-content {
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 auto;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transition: none;
    overflow: visible;
}

.baba-filmler-items .gradient-box::before {
    display: none !important;
}

.baba-filmler-items .gradient-box:hover,
.baba-filmler-items .gradient-box:hover .series-poster,
.baba-filmler-items .gradient-box:hover .series-poster img {
    border-radius: 50% !important;
    transition: none !important;
}

.baba-filmler-items .series-poster {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    z-index: 3;
    border-radius: 50%;
    overflow: visible;
}

.baba-filmler-items .series-poster::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #02aa9c, #8bc640, #02aa9c, #8bc640, #02aa9c);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.baba-filmler-items .series-poster:hover::before {
    animation: ct-baba-ring-spin 2.2s linear infinite;
}

@keyframes ct-baba-ring-spin {
    to {
        transform: rotate(360deg);
    }
}

.baba-filmler-items .series-poster > a {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242730;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    color: #c8ccd4;
    padding: 4px;
    box-sizing: border-box;
}

.baba-filmler-items .series-poster > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.baba-filmler-items .movie-details {
    padding: 8px 2px 0;
}

@media (prefers-reduced-motion: reduce) {
    .baba-filmler-items .series-poster:hover::before {
        animation: none;
    }
}

/* Haftanin Trendleri: center-crop, no stretching, no overflow */
.sidebar-content.sidebar_menu_haftanin_trendleri .bu-benzeri-poster {
    overflow: hidden;
}

.sidebar-content.sidebar_menu_haftanin_trendleri .bu-benzeri-poster img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Güncel Bölümler: prevent overflow and broken wrapping */
.home-latest-list.fix-series_item.fix_home.clearfix.list_items {
    display: block;
}

.home-latest-list .segment-poster-sm {
    width: 25%;
    padding: 6px;
    margin: 0;
    box-sizing: border-box;
    vertical-align: top;
}

.home-latest-list .poster.poster-xs a {
    min-height: 60px;
    overflow: hidden;
}

.home-latest-list .poster.poster-xs .lazy-wide {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.home-latest-list .poster.poster-xs .poster-subject h2,
.home-latest-list .poster.poster-xs .poster-subject .episode-no {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .home-hero .hero-row-lg .hero-card-lg {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
    }
    .home-hero .hero-row-sm .hero-card-sm {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 50%;
    }
    .home-hero .hero-row-lg .poster.poster-hg .poster-media { height: 170px; }
    .home-hero .hero-row-sm .poster.poster-sm .poster-media { height: 120px; }
    .home-latest-list .segment-poster-sm { width: 50%; }
}

/*
 * Footer only: hover'da "sa?dan sola" hissi veren geçi?ler (global a { transition: all .3s })
 * ve sosyal ikonlardaki gradient kutu animasyonunu kapat.
 */
#footer a,
#footer a:visited {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

#footer .footer-menu a,
#footer .footer-menu a:hover,
#footer .footer-menu a:focus,
#footer .footer-menu a:active {
    color: #999 !important;
    text-decoration: none !important;
    text-shadow: 0px 2px 1px rgba(0, 0, 0, 0.03) !important;
}

#footer .sidebared-footer-logo a:hover,
#footer .sidebared-footer-logo a:focus,
#footer .sidebared-footer-logo a:active {
    text-decoration: none !important;
}

#footer .social-media .gradient-box,
#footer .social-media .gradient-box:before {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

#footer .social-media a:hover .social-title {
    color: inherit !important;
}

#footer .social-media a:hover,
#footer .social-media a:focus,
#footer .social-media a:active {
    color: #d8dadf !important;
    text-decoration: none !important;
}

/*
 * Header: logged-in user dropdown  anchor to trigger, not whole #header.
 * main.css uses position:absolute; top:91% without a positioned parent on .user-my-account,
 * so the menu was positioned against #header (wrong). Avatar: ensure cover crop.
 */
#header .header-user .user-my-account.logged {
    position: relative;
    z-index: 1002;
    display: inline-block;
    vertical-align: middle;
    min-width: 132px;
    max-width: 220px;
    padding: 5px 6px 5px 4px;
    margin-top: 0;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: left;
}

#header .header-user .user-my-account.logged:hover {
    background: rgba(255, 255, 255, 0.05);
}

#header .header-user .user-my-account.logged > .list {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 6px;
    width: 200px;
    min-width: 180px;
    border-radius: 3px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    border: 1px solid #303542;
}

#header .header-user .user-my-account.logged > .list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .header-user .user-my-account.logged > .list ul li {
    margin: 0;
    padding: 0;
}

#header .header-user .user-my-account.logged > .list ul li a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

#header .header-user .user-my-account.logged > .list .user-my-account-dropdown__logout {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding-top: 2px;
}

#header .header-user .user-area span.avatar img {
    object-fit: cover;
}

/* Episode comments: only one vote row (guest vs logged-in); inline display could fight [hidden] */
body.user-logged-in #comments .js-auth-guest-only {
    display: none !important;
}
body:not(.user-logged-in) #comments .js-auth-user-only {
    display: none !important;
}

/* Episode list (player): inline-flex keeps horizontal scroll row */
.episodes-list .serie-content .ep-box.ct-ep-box {
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2px;
    vertical-align: top;
}

.episodes-list .serie-content .ep-box.ct-ep-box > a {
    float: none !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    padding: 17px 14px 17px 8px;
}

.episodes-list .serie-content .ep-box.ct-ep-box > .ct-ep-unpublished-block {
    float: none !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    padding: 17px 14px 17px 8px;
}

.episodes-list .serie-content .ep-box.ct-ep-box > .ct-ep-unpublished-block .episode-box {
    width: 100%;
    box-sizing: border-box;
}

/* Horizontal cards: vertical stack (episode / title / date); avoid row flex here */
.episodes-list .serie-content .ep-box.ct-ep-unpublished .existing-details {
    display: block;
    width: 100%;
    min-width: 0;
}

.episodes-list .serie-content .ep-box.ct-ep-unpublished .existing-details .name {
    margin-bottom: 5px;
    min-width: 0;
}

.episodes-list .serie-content .ep-box.ct-ep-unpublished .ct-ep-title-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: 12px;
}

.episodes-list .serie-content .ep-box.ct-ep-unpublished .ct-ep-soon-row {
    margin-top: 2px;
}

/* Dizi detay: dikey liste; izleme noktas&#305; + sat&#305;r (main.css zaten width:100%) */
.dizi-bolumler .serie-content .ep-box.ct-ep-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.dizi-bolumler .serie-content .ep-box.ct-ep-box > a {
    float: none !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
}

/* Yay?nda de?il sat?r?: <a> yerine div  ayn? flex sat?r? (iç içe metin ta?mas? olmas?n) */
.dizi-bolumler .serie-content .ep-box.ct-ep-box > .ct-ep-unpublished-block {
    float: none !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    padding: 9px 20px 9px 35px;
}

.dizi-bolumler .serie-content .ep-box.ct-ep-box > .ct-ep-unpublished-block .episode-box {
    width: 100%;
    box-sizing: border-box;
}

.dizi-bolumler .serie-content .ep-box.ct-ep-unpublished .movie-details.existing-details {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.dizi-bolumler .serie-content .ep-box.ct-ep-unpublished .movie-details .name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.dizi-bolumler .serie-content .ep-box.ct-ep-unpublished .movie-details .name .ct-ep-soon-badge {
    margin-left: 0;
}

/* Series detail: poster placeholder when no media */
.ct-series-poster-fallback {
    min-height: 260px;
    width: 100%;
    background: linear-gradient(160deg, #1a1c20 0%, #25282e 100%);
    border: 1px solid #303542;
    box-sizing: border-box;
}

/* Series detail: IMDb link without image asset */
.dizi-external .imdb-external .ct-imdb-mark {
    float: left;
    font-weight: 800;
    color: #f5c518;
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-right: 8px;
}

