*{box-sizing:border-box}body{margin:0;background:#10141d;color:#e8edf5;font:16px system-ui}header{padding:20px 4%;background:#191f2b;display:flex;justify-content:space-between;align-items:center}header strong{font-size:24px;letter-spacing:2px}span{color:#61d9c5}main{padding:24px 4%}button,input,select{font:inherit;padding:10px;border:1px solid #39465a;border-radius:7px;background:#222b39;color:inherit}button{cursor:pointer;background:#246b68}input:not([type=checkbox]),select{width:100%;margin:5px 0}details,aside,article,#login{background:#191f2b;border-radius:12px;padding:18px}.forms,.layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.layout{grid-template-columns:minmax(230px,1fr) 2fr;margin-top:20px}#list{height:55vh;overflow:auto}.channel{display:flex;width:100%;text-align:left;gap:10px;align-items:center;background:#222b39;margin:5px 0}.channel img{width:32px;height:32px;object-fit:contain}video{width:100%;background:black;aspect-ratio:16/9}#status{white-space:pre-wrap;color:#f4c782}#login{max-width:420px;margin:auto}[hidden]{display:none!important}@media(max-width:750px){.layout,.forms{grid-template-columns:1fr}#list{height:30vh}}

#catalogNav{
display:flex;
gap:12px;
margin-top:20px;
}
#catalogNav button{
flex:1;
padding:16px 8px;
background:#222b39;
font-weight:bold;
}
#catalogNav button.active{
background:#246b68;
border-color:#61d9c5;
color:#fff;
}
#list.posters{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(115px,1fr));
gap:12px;
align-content:start;
}
#list.posters .channel{
flex-direction:column;
text-align:center;
font-size:13px;
overflow:hidden;
margin:0;
}
#list.posters .channel img{
width:100%;
height:auto;
aspect-ratio:2/3;
object-fit:cover;
border-radius:6px;
}

#video:fullscreen{
    width:100vw!important;
    height:100vh!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain;
    background:#000;
}
#video:-webkit-full-screen{
    width:100%!important;
    height:100%!important;
    object-fit:contain;
}
#fullscreen{
    margin:5px;
    background:#246b68;
    border-color:#61d9c5;
}

#list.posters{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(115px,1fr));
    grid-auto-rows:max-content;
    align-content:start;
    align-items:start;
    gap:12px;
    overflow-y:auto;
    overflow-x:hidden;
    height:65vh;
    padding:5px;
}

#list.posters .channel{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    height:auto;
    min-height:0;
    padding:6px;
    margin:0;
    gap:8px;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    line-height:1.4;
    font-size:13px;
}

#list.posters .channel img{
    display:block;
    flex-shrink:0;
    width:100%;
    height:auto;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:6px;
}

#list.posters .channel:hover{
    border-color:#61d9c5;
    background:#30404f;
}

@media(max-width:750px){
    #list.posters{
        grid-template-columns:repeat(3,minmax(0,1fr));
        height:55vh;
    }
}

#backSeries{
    width:100%;
    margin:10px 0;
    padding:14px;
    font-weight:bold;
    border-color:#61d9c5;
}

#group{
    padding:14px;
    font-weight:500;
}

#list:not(.posters) .channel{
    min-height:48px;
    white-space:normal;
    overflow-wrap:anywhere;
}

#list:not(.posters) .channel:hover{
    background:#30404f;
    border-color:#61d9c5;
}

/* FENECSTREAM PREMIUM DESIGN */

:root {
    color-scheme: dark;
    --bg: #080d16;
    --panel: #111a28;
    --accent: #2dd4bf;
    --border: #243246;
    --text: #edf4ff;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #34465c #101722;
}

body {
    margin: 0;
    background: radial-gradient(
        ellipse at top right,
        #142b3b 0%, #080d16 55%
    );
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #0b121eee;
    border-bottom: 1px solid var(--border);
}

header strong {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

header strong span {
    color: var(--accent);
}

main {
    max-width: 1800px;
    margin: auto;
    padding: 20px;
}

button, input, select {
    font: inherit;
    border-radius: 10px;
}

button {
    background: #1a293b;
    color: #edf4ff;
    border: 1px solid #304259;
    padding: 11px 16px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

button:hover {
    background: #244358;
    border-color: var(--accent);
}

input:not([type="checkbox"]):not([type="range"]),
select {
    background: #0b1320;
    border: 1px solid #2b3c51;
    color: #edf4ff;
    padding: 12px;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent);
}

input[type="checkbox"],
input[type="range"] {
    accent-color: var(--accent);
}

details {
    background: #111a28;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: #aabbd0;
}

#catalogNav {
    display: flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #101927;
}

#catalogNav button {
    flex: 1;
    padding: 15px 10px;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 700;
}

#catalogNav button.active {
    background: linear-gradient(
        135deg, #0f766e, #115e59
    );
    border-color: #2dd4bf55;
    color: #ffffff;
}

.layout {
    gap: 18px;
}

aside, article {
    background: #111a28;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    min-width: 0;
}

#video {
    width: 100%;
    background: #000;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 8px 25px #0005;
}

#now {
    font-size: 21px;
    font-weight: 700;
    margin: 18px 0;
}

#list {
    scrollbar-width: thin;
}

#list .channel {
    border-radius: 10px;
    background: #172335;
    border: 1px solid #26364a;
    transition: border-color .18s,
        background .18s;
}

#list .channel:hover {
    background: #20364a;
    border-color: var(--accent);
}

#list.posters {
    gap: 12px;
    grid-auto-rows: max-content;
    align-items: start;
}

#list.posters .channel {
    overflow: hidden;
    padding: 7px;
}

#list.posters .channel img {
    border-radius: 8px;
    aspect-ratio: 2/3;
    object-fit: cover;
    flex-shrink: 0;
}

#count, #status {
    color: #94a9bf;
    font-size: 13px;
}

#episodeControls {
    gap: 8px;
}

#vodTimeline {
    background: #0c1522;
    border-radius: 12px;
    padding: 12px !important;
    margin: 12px 0;
}

#vodElapsed, #vodTotal {
    font-variant-numeric: tabular-nums;
    color: #b6cce0;
    font-weight: 600;
}

#fullscreen, #xt, #enter {
    background: #0f766e;
    border-color: #2dd4bf55;
    color: #fff;
}

#login {
    max-width: 420px;
    margin: 12vh auto;
    padding: 35px;
    background: #111a28;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 20px 70px #0006;
}

#login input, #login button {
    width: 100%;
    margin-top: 12px;
}

#diagnostic, #diagnosticResult,
[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    header {
        padding: 15px;
    }

    header strong {
        font-size: 19px;
        letter-spacing: 1px;
    }

    main {
        padding: 10px;
    }

    .layout {
        display: flex;
        flex-direction: column;
    }

    article {
        order: -1;
    }

    aside, article {
        padding: 10px;
    }

    #catalogNav {
        gap: 4px;
    }

    #catalogNav button {
        font-size: 13px;
        padding: 12px 5px;
    }

    #episodeControls button {
        font-size: 12px;
        padding: 9px;
    }
}

/* END FENECSTREAM PREMIUM */


/* FENECSTREAM CINEMA */

#homePage {
    padding-bottom: 30px;
}

.homeHero {
    padding: 65px 40px;
    min-height: 300px;
    border-radius: 20px;
    border: 1px solid #294456;
    background:
        radial-gradient(ellipse at right,#175b60,transparent 65%),
        linear-gradient(120deg,#101a2a,#080d16);
    margin-bottom: 30px;
}

.homeHero small {
    color: #2dd4bf;
    letter-spacing: 4px;
    font-weight: 800;
}

.homeHero h1 {
    font-size: clamp(30px,5vw,58px);
    color: white;
    margin: 20px 0 10px;
}

.homeHero p {
    color: #a8bbce;
    font-size: 17px;
}

.homeActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.homeActions button:first-child {
    background: #0f766e;
}

.homeSection {
    margin: 30px 0;
}

.homeHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.homeHeading h2 {
    font-size: 23px;
    margin: 0;
}

.homeHeading button {
    background: transparent;
    border: none;
    color: #2dd4bf;
}

.homeRail {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 8px 2px 18px;
    scroll-snap-type: x proximity;
}

.homePoster {
    flex: 0 0 165px;
    width: 165px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #111a28;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform .18s,border-color .18s;
}

.homePoster:hover {
    transform: translateY(-4px);
    border-color: #2dd4bf;
}

.homePoster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.homePoster span {
    padding: 12px 8px;
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
}

@media(max-width:760px) {
    .homeHero {
        padding: 30px 20px;
        min-height: 240px;
    }

    .homePoster {
        flex-basis: 125px;
        width: 125px;
    }

    .homeHeading h2 {
        font-size: 18px;
    }

    #catalogNav {
        flex-wrap: wrap;
    }

    #catalogNav button {
        min-width: 85px;
    }
}

/* END FENECSTREAM CINEMA */
