
/* =========================================
   DIS TV - CLEAN PLAYER STYLE
   FIX: REMOVE BLACK VIDEO OVERLAY
========================================= */

:root {
    --accent: #00f5d4;
    --accent-dark: #00a995;
    --background: #000;
    --menu-background: rgba(8, 5, 5, 0.75);
    --text: #fff;
    --gray: #aaa;
    --purple: #8a3ab9;
}

/* =========================================
   1. GLOBAL
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
}

html,
body {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    direction: ltr !important;
    background: #000 !important;
    color: var(--accent);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Scrollbars */

.navigation,
.navigation .menu,
#channelList {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.navigation::-webkit-scrollbar,
.navigation .menu::-webkit-scrollbar,
#channelList::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* =========================================
   2. MAIN CONTAINER
========================================= */

body > .container {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
    color: #fff;
}

.players {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   3. PLAYER AREA
========================================= */

.player-area {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

/* =========================================
   4. PLYR
========================================= */

.player-area > .plyr,
.player-area .plyr {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    --plyr-color-main: #272729;
}

.player-area .plyr__video-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

.player-area video,
.player-area video#video,
.player-area iframe#player {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    background: #000 !important;
}

.player-area video {
    display: block !important;
    object-fit: contain !important;
}

.plyr video,
.plyr audio {
    width: 100% !important;
    height: 100% !important;
}

video {
    object-fit: contain;
}

/* Play button */

.plyr--full-ui.plyr--video .plyr__control--overlaid {
    display: block;
    padding: 2.5rem 43px;
    background-color: hsl(240deg 2% 16%);
    border-radius: 24px;
}

/* Plyr decorative effects */

.plyr--video::before {
    font-family: Changa, "Segoe UI", sans-serif;
    font-size: 2.5vw;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: #fff;
    background: transparent !important;
    pointer-events: none;
}

/* =========================================
   5. NAVIGATION SIDEBAR
========================================= */

body > .container > .dots {
    display: none !important;
}

body > .container > .navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--menu-background) !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 100002 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    transition: transform .3s ease, visibility .3s ease !important;
    direction: rtl !important;
    text-align: right !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body > .container > .navigation.active {
    display: flex !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100% !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* =========================================
   6. USER BOX / LOGO
========================================= */

.navigation .user-box {
    position: relative !important;
    display: flex;
    flex-direction: row-reverse !important;
    align-items: center;
    flex-shrink: 0 !important;
    width: calc(100% - 60px) !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    direction: rtl !important;
}

/* =========================================
   7. MENU TOGGLE
========================================= */

.navigation .menu-toggle {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    min-width: 60px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100005 !important;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    opacity: 1 !important;
}

.navigation .menu-toggle::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 2px;
    background: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 10px var(--accent);
    transition: .3s;
}

.navigation .menu-toggle::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 2px;
    background: var(--accent);
    transform: translateY(10px);
    transition: .3s;
}

/* =========================================
   8. MENU CONTENT
========================================= */

.navigation .menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    background: transparent !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* =========================================
   9. CHANNEL LIST
========================================= */

#channelList {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    overflow: visible !important;
    background: transparent !important;
}

#channelList > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,.18);
    transition: background .2s ease;
}

#channelList > li:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#channelList li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row-reverse !important;
    gap: 10px;
    width: 100% !important;
    min-height: 48px !important;
    margin: 1px 0 !important;
    padding: 5px 15px !important;
    color: #fff !important;
    font-size: 1rem;
    text-align: right !important;
    text-decoration: none;
    direction: rtl !important;
    border-radius: 6px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

#channelList li a img,
#channelList li a i,
#channelList li a svg {
    margin-left: 10px !important;
    flex-shrink: 0;
}

#channelList li a:hover,
#channelList li a:focus {
    color: var(--accent) !important;
    background: rgba(0,245,212,.15) !important;
    transform: scale(1.02);
    border-radius: 6px;
}

/* =========================================
   10. OVERLAY
========================================= */

.overlay,
.overlay.active {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 900;
}

/* =========================================
   11. CLICK OVERLAY
========================================= */

#clickOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    cursor: pointer;
}

/* =========================================
   12. OPEN MENU ICON
========================================= */

body > .container > .player-area::after {
    content: "☰";
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100000;
    color: var(--accent);
    font-size: 30px;
    pointer-events: none;
}

/* =========================================
   13. DISTV LOADER
   FIX: TRANSPARENT BACKGROUND
========================================= */

/* Fullscreen loader */

#video-loading,
.video-loading,
.distv-loader {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;

    /* إزالة التعتيم الأسود */
    background: transparent !important;
    opacity: 1 !important;

    pointer-events: none !important;
}

/* Show loader without darkening video */

#video-loading.show,
.video-loading.show,
.distv-loader.show {
    display: flex !important;
    background: transparent !important;
}

/* Spinner */

.loading-spinner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
}

.loading-spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 5px solid rgba(255,255,255,.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: disSpin .9s linear infinite;
}

.loading-spinner span {
    position: relative;
    color: white;
    font-size: 17px;
    font-weight: bold;
}

/* Plyr loader */

.plyr .distv-loader {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;

    /* لا توجد طبقة سوداء داخل المشغل */
    background: transparent !important;
    opacity: 1 !important;

    pointer-events: none !important;
}

.plyr .distv-loader.show {
    display: flex !important;
    background: transparent !important;
}

.plyr .distv-loader::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: disSpin .9s linear infinite;
}

.plyr .distv-loader span {
    position: absolute;
    margin-top: 110px;
    color: #ffffff99;
    font-size: 22px;
    font-weight: bold;
    direction: ltr;
    text-align: center;
}

/* Spinner animation */

@keyframes disSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   14. LOGO
========================================= */

.logo {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.2),
        transparent
    );
    pointer-events: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 200%;
    }
}

.img1 {
    width: 58px;
    height: 35px;
}

/* منع الشعار من تغطية الفيديو */

.player-area .logo-shine {
    pointer-events: none !important;
}

/* =========================================
   15. CIRCLE ANIMATION
========================================= */

.circle {
    width: 70px;
    height: 50px;
}

.circle svg {
    display: none;
    fill: none;
    stroke: #8a3ab9;
    stroke-linecap: round;
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: stroke-draw 6s ease-out infinite alternate;
}

.circle img {
    position: absolute;
    left: 65%;
    bottom: 16px;
    width: 35px;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    background: #373738;
}

@keyframes stroke-draw {
    from {
        stroke: #8a3ab9;
        stroke-dasharray: 1;
    }

    to {
        stroke: #cd486b;
        transform: rotate(180deg);
        stroke-dasharray: 8;
    }
}

/* =========================================
   16. GENERAL ELEMENTS
========================================= */

h2 {
    color: #00ffc3;
    text-align: center;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    height: 240px;
    padding: 12px;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 15px;
    direction: ltr;
    white-space: pre;
    resize: vertical;
    outline: none;
    transition: border .3s ease;
}

textarea:focus {
    border-color: #00ffc3;
}

button {
    display: block;
    margin: 15px auto;
    padding: 12px 25px;
    color: #000;
    background: linear-gradient(90deg,#00ffc3,#00b3ff);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg,#00b3ff,#00ffc3);
}

#outputText {
    margin-top: 10px;
}

.footer {
    margin-top: 20px;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    color: #000;
    background: #00ffc3;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 0 6px #00ffc3;
}

/* =========================================
   17. CLOSE AD BUTTON
========================================= */

#close_ad {
    position: absolute;
    top: 1px;
    right: 0;
    width: 34px;
    height: 34px;
    z-index: 9999999999;
    padding: 2px;
    color: #fff;
    background: red;
    border: 1px solid #fff;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 200;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

#close_ad:hover {
    color: #000;
    opacity: .9;
    background: #4da368;
}

/* =========================================
   18. REMOVE FOCUS OUTLINES
========================================= */

.plyr,
.plyr *,
video,
video:focus,
.plyr:focus,
.plyr *:focus,
.plyr *:focus-visible,
*:focus,
*:focus-visible,
*:active {
    outline: none !important;
}

.plyr *,
video,
.navigation *,
.menu *,
.menu-toggle,
#video,
#clickOverlay {
    -webkit-tap-highlight-color: transparent !important;
}

/* =========================================
   19. MOBILE
========================================= */

@media (max-width: 600px) {
    #close_ad {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }

    body > .container > .navigation {
        width: 280px !important;
        max-width: 85vw !important;
    }

    body > .container > .navigation.active {
        width: 280px !important;
    }
}

/* =========================================
   20. FINAL VIDEO OVERLAY PROTECTION
========================================= */

/* منع أي خلفية شفافة من طبقات التحميل */

#video-loading,
#video-loading.show,
.video-loading,
.video-loading.show,
.distv-loader,
.distv-loader.show,
.plyr .distv-loader,
.plyr .distv-loader.show {
    background-color: transparent !important;
}

/* منع تأثيرات التعتيم */

.player-area,
.player-area .plyr,
.player-area .plyr__video-wrapper {
    opacity: 1 !important;
    filter: none !important;
}

/* إبقاء الفيديو دون طبقة تعتيم */

.player-area video,
.player-area iframe {
    opacity: 1 !important;
    filter: none !important;
}



















#player-status {
    display: none !important;
}


#player-status,
#player-status.visible {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}








/* إزالة أي شريط تحكم أو تأثير سفلي من Plyr */

.plyr__controls,
.plyr__control--overlaid,
.plyr--video::before,
.plyr__progress,
.plyr__time,
.plyr__volume,
.plyr__menu {
    display: none !important;
}

/* إزالة أي خلفية أو ظل من المشغل */

.plyr,
.plyr__video-wrapper {
    box-shadow: none !important;
    border: 0 !important;
}







/* إخفاء أدوات التحكم الأصلية في الفيديو */
video#video::-webkit-media-controls {
    display: none !important;
}

video#video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* إخفاء واجهة Plyr */
.player-area .plyr__controls,
.player-area .plyr__control--overlaid {
    display: none !important;
}















/* DIS TV - REMOVE TOP AND BOTTOM BARS */

html,
body,
body > .container {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

body > .container > .dots {
    display: none !important;
}

body > .container > #video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body > .container > .plyr {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.navigation {
    z-index: 100002 !important;
}

#video-loading {
    z-index: 100001 !important;
}
