/* ================================================
   PLAYER CONTAINER - Eski App.css ile uyumlu
   ================================================ */

/* Player container - eski .player-alan stillerini ez */
.player-alan#player-container {
    position: relative;
    max-height: none;
    width: 100%;
    padding: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    overflow: hidden;
}

/* Desktop */
@media only screen and (min-width: 1024px) {
    .player-alan#player-container {
        height: 606px !important;
    }
}

/* Tablet ve alti */
@media only screen and (max-width: 800px) {
    .player-alan#player-container {
        height: 240px !important;
        min-height: auto !important;
        margin-top: -2px !important;
    }
}

/* ================================================
   PLAYER FRAME - Eski #plx yerine
   ================================================ */
.player-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Loading animasyonu */
.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 5;
}

.loader-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    user-select: none;
    gap: 10px;
}

.loader {
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    animation: loader-rotate 1.5s linear infinite;
}

@keyframes loader-rotate {
    0% {
        transform: rotate(90deg);
        box-shadow: 0 1px 1px 0 #fff inset, 0 3px 5px 0 #ff5f9f inset, 0 4px 4px 0 #0693ff inset;
    }
    50% {
        transform: rotate(270deg);
        background: #7c0911;
        box-shadow: 0 1px 1px 0 #fff inset, 0 3px 5px 0 #d60a47 inset, 0 4px 4px 0 #fbef19 inset;
    }
    100% {
        transform: rotate(450deg);
        box-shadow: 0 1px 1px 0 #fff inset, 0 3px 5px 0 #ff5f9f inset, 0 4px 4px 0 #28a9ff inset;
    }
}

.letter-wrapper {
    display: flex;
    gap: 1px;
}

.loader-letter {
    display: inline-block;
    opacity: 0.4;
    transform: translateY(0);
    animation: loader-letter-anim 2s infinite;
    font-size: 16px;
    font-weight: 500;
}

.loader-letter:nth-child(1) { animation-delay: 0s; }
.loader-letter:nth-child(2) { animation-delay: 0.1s; }
.loader-letter:nth-child(3) { animation-delay: 0.2s; }
.loader-letter:nth-child(4) { animation-delay: 0.3s; }
.loader-letter:nth-child(5) { animation-delay: 0.4s; }
.loader-letter:nth-child(6) { animation-delay: 0.5s; }
.loader-letter:nth-child(7) { animation-delay: 0.6s; }
.loader-letter:nth-child(8) { animation-delay: 0.7s; }
.loader-letter:nth-child(9) { animation-delay: 0.8s; }
.loader-letter:nth-child(10) { animation-delay: 0.9s; }

@keyframes loader-letter-anim {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.15);
    }
    40% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* ================================================
   INTRO LAYER - Video intro katmani
   ================================================ */
.intro-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    padding: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.intro-layer.show {
    display: block;
}

.intro-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro-content video,
.intro-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.intro-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Netflix tarzı Skip Intro butonu */
.intro-layer .skip-intro {
    position: absolute !important;
    bottom: 40px !important;
    right: 30px !important;
    padding: 8px 20px 8px 24px !important;
    background: rgba(20, 20, 20, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 3px !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.intro-layer .skip-intro::before {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 5px 0 5px 8px !important;
    border-color: transparent transparent transparent #fff !important;
    margin-right: 2px !important;
}

.intro-layer .skip-intro:disabled {
    background: rgba(20, 20, 20, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: default !important;
}

.intro-layer .skip-intro:disabled::before {
    border-left-color: rgba(255, 255, 255, 0.5) !important;
}

.intro-layer .skip-intro:not(:disabled) {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: transparent !important;
    color: #141414 !important;
}

.intro-layer .skip-intro:not(:disabled)::before {
    border-left-color: #141414 !important;
}

.intro-layer .skip-intro:not(:disabled):hover {
    background: #fff !important;
    transform: scale(1.03) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

@keyframes skipFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.intro-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    display: none;
    z-index: 99;
}

/* ================================================
   PART SELECTOR - Kaynak ve Part Secici
   ================================================ */
.part-selector {
    clear: both;
    position: relative;
    float: left;
    box-sizing: border-box;
    margin: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0;
    color: #999;
    font: normal 15px arial;
    min-height: 40px;
    padding-right: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.part-btn-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Source dropdown butonu */
.part-source-sec {
    cursor: pointer;
    min-width: 115px;
    float: left;
    padding-left: 13px;
    background: #fff;
    font-weight: 700;
    color: #33576b;
    text-shadow: 0 1px 0 #fff;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAICAYAAAAiJnXPAAAAk0lEQVR42mMIDAzkA+LFQLwUiJkYsACQOBAvA+JFQMwLEtgIxP+huAmI2dA0sAFxM5KadSDBOUD8GUlwJhCzQzWwA/EsJDmQupkw0yKA+BuS5BIg1oY6CSb2FYjD0d0dAsRfkBTdRWKDxEMYcHjYA4g/ICn+D+W7M+ADQAWWQHwLqgFEWzIQA4AKvYD4GhB7YpMHAKmcaJU8Tsx8AAAAAElFTkSuQmCC) 88px 14px no-repeat, linear-gradient(to bottom, #f4f9fd 5%, #e0e7ec 95%, #7baebd 120%) !important;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-sizing: border-box;
    height: 36px;
    display: flex;
    align-items: center;
    border: 1px solid #bcc3ce;
    box-shadow: 0 0 2px #cdd7dc;
}

.part-source-sec:hover {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAICAYAAAAiJnXPAAAAk0lEQVR42mMIDAzkA+LFQLwUiJkYsACQOBAvA+JFQMwLEtgIxP+huAmI2dA0sAFxM5KadSDBOUD8GUlwJhCzQzWwA/EsJDmQupkw0yKA+BuS5BIg1oY6CSb2FYjD0d0dAsRfkBTdRWKDxEMYcHjYA4g/ICn+D+W7M+ADQAWWQHwLqgFEWzIQA4AKvYD4GhB7YpMHAKmcaJU8Tsx8AAAAAElFTkSuQmCC) 88px 14px no-repeat, #fff !important;
}

/* Part butonlari */
.part-btns {
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

.part-btns li {
    float: left;
    list-style: none;
}

.part-btns li:last-child a,
.part-btns li:last-child span {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.part-btn {
    float: left;
    cursor: pointer;
    padding-left: 15px;
    padding-right: 15px;
    background: #fff;
    color: #69808C;
    border: 1px solid #B5BCC4;
    border-left: 0;
    height: 36px;
    display: flex;
    align-items: center;
}

.part-btn:hover {
    color: #283137;
    background: #f5f5f5;
}

.part-btn:focus {
    box-shadow: 0 0 6px #aaa;
}

.part-btn.cur {
    background: #4E6673;
    color: #fff !important;
    border-color: transparent;
    margin-left: -1px;
    margin-right: -1px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Source dropdown listesi */
.part-sources {
    background: #fff;
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    display: none;
    box-shadow: 0 0 6px #bbb;
    z-index: 100;
}

/* d-none artik JS tarafindan yonetiliyor, CSS override yok */

.part-item {
    box-sizing: border-box;
    padding: 11px;
    padding-left: 13px;
    padding-right: 13px;
    clear: both;
    float: left;
    border-bottom: 1px solid #e5e5e5;
    width: 113px;
    font: normal 14px arial;
    color: #586b79;
    text-decoration: none;
    display: block;
}

.part-item:hover {
    color: #ffffff;
    background: #4e6673;
}

.part-item:last-child {
    border-bottom: 1px solid #CBD0D6;
}

/* User select engelle */
.part-sources,
.part-source-sec,
.part-btns {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
}

.partinfo {
    display: none;
}

/* ================================================
   IC-BTN ve BILDIR-BTN
   ================================================ */
.ic-btn {
    outline: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
    font: bold 15px arial;
    text-shadow: 0 1px 0 #fff;
    background: linear-gradient(to bottom, #f4f9fd 5%, #e0e7ec 95%, #7baebd 120%) !important;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 2px;
    border: 1px solid #bcc3ce;
    box-shadow: 0 0 2px #cdd7dc;
    border-radius: 5px;
    color: #465966 !important;
}

.ic-btn:active {
    position: relative;
    top: 1px;
    bottom: -1px;
}

.ic-btn:not(.ic-btn-active):hover {
    background: linear-gradient(to bottom, #ffffff 0%, #E1EAED 100%) !important;
}

.bildir-btn {
    margin-right: 5px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 800px) {
    .intro-layer .skip-intro {
        bottom: 15px !important;
        right: 15px !important;
        padding: 6px 14px 6px 18px !important;
        font-size: 13px !important;
    }

    .intro-layer .skip-intro::before {
        border-width: 4px 0 4px 6px !important;
    }
}

@media only screen and (max-width: 800px) {
    /* Mobilde sadece yazıyı gizle, ikon kalsın */
    .bildir-btn .bildir-text {
        display: none !important;
    }

    .bildir-btn i {
        font-size: 18px;
    }
}

/* App.css'deki display:none kuralini override et */
@media only screen and (max-width: 480px) {
    .part-selector .bildir-btn {
        display: flex !important;
        padding: 8px 12px !important;
        min-width: auto !important;
    }
}
