@font-face {
    font-family: "Roboto";
    font-weight: 700;
    src: url("../fonts/Roboto-Black.ttf");
}

@font-face {
    font-family: "Roboto";
    font-weight: 500;
    src: url("../fonts/Roboto-Regular.ttf");
}

@font-face {
    font-family: "Roboto";
    font-weight: 600;
    src: url("../fonts/Roboto-Medium.ttf");
}

@font-face {
    font-family: "Roboto";
    font-weight: bold;
    src: url("../fonts/Roboto-Bold.ttf");
}



html {
    scrollbar-gutter: stable;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body,
ul,
p {
    margin: 0;
}

a {
    color: white;
    text-decoration: none;
}

img {
    -webkit-user-drag: none;
}

:root {
    --color-theme-white: #ffff;
    --color-theme-black: #000000;
    --color-text-primary: #FFFFFF;
    --color-bg-primary: #232C3E;
    --color-bg-secondary: #2B354B;
}

body {
    overflow-x: hidden;
    font-family: "Roboto", sans-serif;
    background-color: var(--color-bg-primary);
}

ul {
    list-style: none;
}

main {
    margin-top: 30px;
    margin-inline: 60px;
    min-height: 100vh;
}

.logo-title {
    display: flex;
    margin-right: 45px;
}

.logo-title img {
    width: 170px;
    object-fit: contain;
}

.logo-title.logo-phone {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;

}

.menu-top {
    width: 100%;
    height: 70px;
    padding-inline: 40px;
    color: white;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 99;
    position: -webkit-sticky;
    position: sticky;
    background: linear-gradient(to bottom, #2B354B, transparent)
}

.menu-top ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.menu-top ul a li {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.1px;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-top ul a li::after {
    content: "";
    width: 110%;
    height: 4px;
    bottom: -7px;
    border-radius: 5rem;
    transition: 0.3s ease background-color;
    position: absolute;
    background-color: transparent;
}

.menu-top ul a li:hover::after {
    background-color: #6f6f6f;
}

.menu-top ul a li.active::after {

    background-color: #5672A8;
}



/* Channels List */

.channels-list {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.channel-item {
    width: 245px;
    height: 140px;
    transition: 0.3s ease border;
    border: 3.5px solid #5D6D8D;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    -webkit-animation: Move 0.4s ease forwards;
    animation: Move 0.4s ease forwards;
    background-color: var(--color-bg-secondary);
}


@-webkit-keyframes Move {
    from {
        transform: translateX(5px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }

}


@keyframes Move {
    from {
        transform: translateX(5px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }

}

.channel-item:hover {
    border-color: #7a90bb;
}

.channel-item:hover img {
    transform: scale(1.05);
}

.channel-item img {
    width: 100%;
    height: 100%;
    transition: 0.3s ease transform;
    -o-object-fit: contain;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}


/* Search */
.search-container {
    width: 250px;
    height: 40px;
    margin-left: auto;
}

.search-container input {
    width: 100%;
    height: 100%;
    padding-inline: 15px;
    border: none;
    outline: none;
    color: white;
    border-radius: 6px;
    border: 2px solid #566483;
    background-color: #2B354B;
}

.search-container input::-webkit-input-placeholder {
    color: #525C6E;
}

.search-container input::-moz-placeholder {
    color: #525C6E;
}

.search-container input:-ms-input-placeholder {
    color: #525C6E;
}

.search-container input::-ms-input-placeholder {
    color: #525C6E;
}

.search-container input::placeholder {
    color: #525C6E;
}

/* Player */

.player-container {
    width: 65%;
    /*width: 850px;*/
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    overflow: hidden;
    border-radius: 10px;
    background-color: #2B364B;
}

.player-container > img {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.content-container {
    display: flex;
    gap: 20px;
}

/* Others */

.menu-extra {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.button-primary {
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease background;
    background: #37435C;
    border: 2px solid #5D6D8D;
    position: relative;
}

.button-primary:hover {
    background: #445271;
}

.button-primary.button-energeek:hover {
    background-clip: 50px;
}

.button-primary.button-energeek {
    border: transparent;
    background-size: 120%;
    background: linear-gradient(to right, #AE4872, #CB0D46);
}

.button-primary.button-energeek::after {
    content: "";
    top: -1px;
    left: -1.5px;
    right: -2px;
    bottom: -1.2px;
    position: absolute;
    z-index: -99;
    background: linear-gradient(to right, #DF80A8, #FF588A);
    border-radius: 4px;
}

.more-channels {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    padding: 7px 40px;
    margin: auto;
    margin-top: 25px;
    cursor: pointer;
    transition: 0.3s ease background-color;
    border: 1px solid #5D6D8D;
    background-color: #2B354B;
    border-radius: 5rem;
}

.more-channels p {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
}


.more-channels:hover {
    background-color: #3b4967;
}

.msg-important {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #2B354B;
}

.msg-important p {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #ffff;
}

.title {
    width: 100%;
}

.title p {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.unit-margin {
    width: fit-content;
    margin: 90px;
    display: block;
}

.more-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-container {
    width: 250px;
    height: 78px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    cursor: pointer;
    transition: 0.3s ease background-color, 0.3s ease box-shadow;
    border-radius: 9px;
    background-color: #2B354B;
}

.android-container:hover {
    box-shadow: 0px 0px 0px 2px #697eac;
    background-color: #3b4967;
}

.googleplay-logo {
    width: 35px;
}

.googleplay-logo svg {
    width: 100%;
    height: 100%;
}


.android-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.android-app span {
    color: #ffff;
    font-weight: 600;
}

.android-app p {
    color: #CDCDCD;
}

.content-title {
    width: 100%;
    padding: 50px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.content-title.tag-error {
    margin-top: 140px;
}

.content-title.post-legal ol {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.content-title.post-legal ol li {
    color: #BABABA;
    text-wrap: balance;
}

.content-title span {
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 600;
}

.content-title img {
    position: absolute;
    z-index: -99;
    margin-right: 14rem;
}


.content-title p {
    color: #BABABA;
}

.message-terms {
    border-radius: 5px;
    border: 2px solid #5D6D8D;
    background-color: #313D57;
    left: 0;
    bottom: 0;
    display: none;
    padding: 10px 20px;
    margin: 40px;
    position: fixed;
    z-index: 99;
}

.message-terms p {
    color: #FFFFFF;

}

.message-terms p span {
    color: #6A98FF;
    text-decoration: underline;
    -webkit-text-decoration-color: #6A98FF;
    text-decoration-color: #6A98FF;
}

.message-terms p span:hover {
    color: #5175c3;
    -webkit-text-decoration-color: #5175c3;
    text-decoration-color: #5175c3;
}

.message-terms.terms-active {
    display: block;
}

.terms-flex {
    display: flex;
    gap: 10px;
}

.terms-button {
    width: fit-content;
    padding: 5px 15px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s ease background-color, 0.3s ease border;
    border: 2px solid transparent;
}

.terms-button.terms-accept {
    background-color: rgb(2 111 194);
}

.terms-button.terms-accept:hover {
    border: 2px solid #209aeb;
    background-color: rgb(3, 95, 165);
}

.terms-button.terms-cancel {
    background-color: rgb(189, 4, 47);
}

.terms-button.terms-cancel:hover {
    border: 2px solid #e44f73;
    background-color: rgb(165, 3, 41);
}

.terms-button span {
    color: #fff;
}

/* Recommends channels */

.recommend-channels {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0px;
    position: relative;
}

.recommend-channels::after {
    content: "";
    width: 119%;
    height: 100%;
    left: -60px;
    right: 0;
    bottom: 0;
    top: 0;
    position: absolute;
    background-color: #2B364B;
    z-index: -99;
}

/* Footer */

footer {
    width: 100%;
    margin-top: 70px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-inline: 70px;
    background-color: #2B364B;
}

.footer-info {
    padding: 10px;
    border-top: 2px solid #405075;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-info span {
    color: #7286AC;
}

.other-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
}

.menu-info {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
    justify-content: flex-end;
}

.menu-info.left-flex {
    align-items: flex-start;
}

.menu-info.right-flex {
    align-items: flex-end;
}

.menu-info p {
    color: #A4A4A4;
}

.menu-info span {
    color: #FFFFFF;
    font-weight: 600;
}

.menu-info p:hover {
    color: #6A98FF;
    text-decoration: underline;
    -webkit-text-decoration-color: #6A98FF;
    text-decoration-color: #6A98FF;
    text-underline-offset: 1px;
}

.menu-info.link p {
    color: #6A98FF;
    text-decoration: underline;
    -webkit-text-decoration-color: #6A98FF;
    text-decoration-color: #6A98FF;
    text-underline-offset: 1px;
}

.menu-info.link p:hover {
    color: #5175c3;
    -webkit-text-decoration-color: #5175c3;
    text-decoration-color: #5175c3;
}

/* Info channel */

.info-container {
    width: 400px;
    height: 100%;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    background-color: #2B364B;
    border-radius: 10px;
    position: relative;
}


.info-logo {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #232C3E;
}

.info-logo img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.title-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding-left: 15px;
    position: relative;
    color: #ffff;
    font-size: 13ps;
}

.title-info::after {
    content: "";
    width: 6px;
    height: 18px;
    left: 0;
    position: absolute;
    border-radius: 5rem;
    background-color: #232C3E;
}

.title-name p {
    color: #ffff;
    font-size: 14px;
    font-weight: 500;
    margin-left: 15px;
    text-wrap: balance;
}

.title-name.channel-name {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 5rem;
    padding: 5px 30px;
    margin-left: 15px;
    background-color: #303B54;
}

.title-name.channel-name p {
    font-weight: 600;
}

.title-name a {
    margin-left: 15px;
    color: #8CB3FF;
    text-decoration: underline;
    text-underline-offset: 1.5px;
    -webkit-text-decoration-color: #8CB3FF;
    text-decoration-color: #8CB3FF;
}

.menu-bottom-phone {
    width: 100%;
    height: 80px;
    bottom: 0;
    position: fixed;
    border-radius: 10px 10px 0px 0px;
    background-color: #2f3c55;
    display: none;
    z-index: 99;
}

.menu-bottom-phone ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    width: 100%;
    padding: 0;
}

.menu-bottom-phone ul li {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-bottom-phone ul li.active::after {
    content: "";
    width: 115%;
    height: 4px;
    bottom: -22px;
    border-radius: 5rem;
    background-color: #209aeb;
    position: absolute;
}

.menu-bottom-phone ul li svg {
    width: 100%;
    height: 100%;
    stroke: #7a92bf;
}


.menu-bottom-phone ul img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.warn-title {
    color: #d6d6d6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.breadcrumb a {
    text-decoration: underline;
    text-decoration-color: #9db7e9;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.breadcrumb p {
    color: #9db7e9;
}

.breadcrumb span {
    font-size: 17px;
    font-weight: 600;
    color: #209aeb;
}

/* Share icon*/

.share-title {
    top: 0;
    right: 0;
    font-size: 14px;
    font-weight: 500;
    margin: 10px;
    color: #FFFFFF;
    position: absolute;
}

.share-container {
    top: 0;
    right: 0;
    margin: 40px 20px;
    display: flex;
    gap: 10px;
    padding: 5px 15px;
    position: absolute;
    background-color: #232C3E;
    border-radius: 5rem;
}

.share-icon {
    width: 25px;
    height: 25px;
}

.share-icon svg {
    width: 100%;
    height: 100%;
}

.share-icon.share-twitter svg {
    stroke: transparent;
    fill: #5D6D8D;
}

.share-icon.share-facebook svg #path29 {
    stroke: transparent;
    fill: #5D6D8D;
}

/**/

@media screen and (max-width:870px) {
    .menu-top {
        display: none;
    }

    .menu-bottom-phone {
        display: block;
    }

    main {
        margin-inline: 10px;
    }

    footer {
        margin-bottom: 80px;
        padding-inline: 30px;
    }

    .content-container {
        flex-direction: column;
    }

    .player-container {
        width: 100%;
    }

    .info-container {
        width: 100%;
    }

    .unit-margin {
        margin: auto;
        margin-top: 60px;
    }

    .channels-list {
        align-items: center;
        justify-content: center;
    }

    .message-terms {
        bottom: 50px;
    }

    .logo-title.logo-phone {
        display: flex;
    }

    .breadcrumb {
        justify-content: center;
        align-items: center;
    }
}

/* NeoTV visual refresh */
:root {
    --color-bg-primary: #0b1220;
    --color-bg-secondary: #141f33;
    --color-surface: rgba(22, 33, 54, 0.82);
    --color-surface-strong: #192642;
    --color-border: rgba(135, 162, 211, 0.26);
    --color-accent: #58b7ff;
    --color-accent-soft: #8b7cff;
    --color-text-muted: #aab9d0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--color-text-primary);
    background:
        radial-gradient(circle at 8% -10%, rgba(75, 157, 255, 0.24), transparent 31rem),
        radial-gradient(circle at 92% 15%, rgba(139, 124, 255, 0.16), transparent 28rem),
        var(--color-bg-primary);
}

.menu-top {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 14px auto 0;
    padding: 0 24px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: rgba(13, 22, 39, 0.76);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.logo-title {
    margin-right: 36px;
}

.logo-title img {
    width: 154px;
}

.menu-top ul {
    gap: 26px;
}

.menu-top ul a li {
    color: #dbe8ff;
}

.menu-top ul a li::after {
    width: 100%;
    height: 3px;
    bottom: -9px;
    background-color: transparent;
}

.menu-top ul a li:hover::after,
.menu-top ul a li.active::after {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
}

.menu-extra {
    gap: 10px;
}

.button-primary {
    min-height: 36px;
    padding: 6px 13px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: rgba(49, 67, 96, 0.72);
}

.button-primary:hover {
    border-color: rgba(143, 197, 255, 0.65);
    background: rgba(72, 96, 136, 0.88);
}

main {
    width: min(1180px, calc(100% - 48px));
    min-height: auto;
    margin: 46px auto 0;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #91d5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7b7;
    box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.12);
    content: "";
}

.catalog-heading h1 {
    max-width: 680px;
    margin: 0;
    color: #f5f8ff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.catalog-heading p {
    max-width: 610px;
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.msg-important {
    width: min(1180px, calc(100% - 48px));
    min-height: 42px;
    margin: 18px auto 0;
    padding: 10px 18px;
    border: 1px solid rgba(116, 194, 255, 0.21);
    border-radius: 12px;
    background: rgba(31, 72, 112, 0.34);
}

.msg-important p {
    color: #c9e8ff;
    font-size: 14px;
}

.search-container {
    width: min(100%, 380px);
    height: 48px;
    margin: 0 0 26px;
    position: relative;
}

.search-container::before {
    top: 50%;
    left: 16px;
    z-index: 1;
    color: #86a5d4;
    font-size: 21px;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    transform: translateY(-54%);
    content: "⌕";
}

.search-container input {
    padding: 0 16px 0 45px;
    border: 1px solid var(--color-border);
    border-radius: 13px;
    background: rgba(20, 31, 51, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-container input:focus {
    border-color: var(--color-accent);
    background: rgba(24, 39, 65, 0.95);
    box-shadow: 0 0 0 4px rgba(88, 183, 255, 0.14);
}

.search-container input::placeholder {
    color: #8392ad;
}

.channels-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
    margin-top: 0;
}

.channels-list > a {
    min-width: 0;
}

.channel-item {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(50, 73, 109, 0.78), rgba(19, 30, 49, 0.92));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.channel-item::after {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(104, 201, 255, 0.16), transparent 58%);
    transition: opacity 0.24s ease;
    pointer-events: none;
    content: "";
}

.channel-item:hover {
    border-color: rgba(127, 207, 255, 0.8);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(88, 183, 255, 0.09);
    transform: translateY(-5px);
}

.channel-item:hover::after {
    opacity: 1;
}

.channel-item img {
    position: relative;
    z-index: 1;
    padding: 14px;
}

.more-channels {
    margin-top: 28px;
    padding: 10px 24px;
    border-color: var(--color-border);
    background: rgba(33, 49, 78, 0.72);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.recommend-channels {
    margin-top: 52px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: rgba(23, 35, 58, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.recommend-channels::after {
    display: none;
}

.title p {
    margin-bottom: 20px;
    color: #edf4ff;
    font-size: 20px;
}

.unit-margin {
    margin: 64px auto;
}

.android-container {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgba(22, 34, 56, 0.88);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.android-container:hover {
    border-color: rgba(117, 194, 255, 0.7);
    background: rgba(33, 50, 80, 0.96);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

footer {
    height: auto;
    min-height: 200px;
    margin-top: 84px;
    padding: 42px max(32px, calc((100% - 1100px) / 2)) 16px;
    border-top: 1px solid var(--color-border);
    background: rgba(8, 15, 27, 0.82);
}

.footer-info {
    margin-top: 20px;
    border-top-color: rgba(125, 149, 193, 0.28);
}

.message-terms {
    max-width: calc(100% - 32px);
    border-color: rgba(125, 194, 255, 0.45);
    border-radius: 14px;
    background: rgba(20, 32, 54, 0.95);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.player-container,
.info-container {
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

@media screen and (max-width:870px) {
    main {
        width: min(100% - 28px, 620px);
        margin-top: 28px;
    }

    .logo-title.logo-phone {
        padding: 16px 10px 4px;
    }

    .logo-title.logo-phone img {
        width: 160px;
    }

    .msg-important {
        width: calc(100% - 28px);
        margin-top: 14px;
    }

    .catalog-heading {
        margin-bottom: 24px;
    }

    .catalog-heading h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .catalog-heading p {
        font-size: 15px;
    }

    .search-container {
        width: 100%;
    }

    .channels-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .channel-item img {
        padding: 10px;
    }

    .recommend-channels {
        margin-top: 38px;
        padding: 18px 14px;
        border-radius: 16px;
    }

    footer {
        padding: 34px 24px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .channel-item,
    .channel-item::after,
    .channel-item img {
        transition: none;
        animation: none;
    }
}

/* Legal and privacy page */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: rgba(20, 31, 51, 0.74);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.legal-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content h1,
.legal-content h2 {
    color: #f5f8ff;
}

.legal-content h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.legal-content h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.3;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.legal-content p + p {
    margin-top: 14px;
}

.legal-content section {
    margin-top: 30px;
}

.legal-content ul {
    margin: 14px 0 0;
    padding-left: 21px;
    list-style: disc;
}

.legal-content li + li {
    margin-top: 6px;
}

.legal-content a {
    color: #91d5ff;
    text-decoration: underline;
    text-decoration-color: rgba(145, 213, 255, 0.55);
    text-underline-offset: 3px;
}

.legal-updated {
    margin-top: 18px;
    color: #c9e8ff !important;
}

@media screen and (max-width:870px) {
    .legal-content {
        padding: 24px 18px;
        border-radius: 16px;
    }
}
