:root {
    --color-orange: #f05a00;
    --color-dark: #151515;
    --color-text: #202020;
    --color-light: #f7f7f7;
    --header-height: 96px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--color-text);
    background: #fff;
}

.site-container {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}

.main-page {
    overflow: hidden;
}





/* ======================================
HEADER
====================================== */

.header{
    height:70px;
    background:#fff;
    border-bottom:1px solid #ececec;
    position:sticky;
    top:0;
    z-index:1000;
}

.site-container{
    width:80%;
    max-width:1600px;
    margin:0 auto;
}

.header__inner{
    height:70px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.header__logo img{
    height:62px;
    width:auto;
}

/* ==========================
MENU
========================== */

.header__nav{
    display:flex;
    gap:48px;
}

.header__link{
    position:relative;

    font-size:18px;
    font-weight:700;
    text-decoration:none;

    color:#1f1f1f;

    transition:.2s;
}

.header__link:hover{
    color:#f05a00;
}

.header__link.active,
.header__link.here{
    color:#f05a00;
}

.header__link.active:after,
.header__link.here:after{
    content:"";

    position:absolute;
    left:0;
    right:0;
    bottom:-12px;

    height:3px;

    background:#f05a00;
    border-radius:10px;
}

/* ==========================
RIGHT BLOCK
========================== */

.header__user{
    display:flex;
    align-items:center;
    gap:20px;
}

/* ==========================
BUTTONS
========================== */

.btn-orange{
    height:52px;

    padding:0 28px;

    display:flex;
    align-items:center;

    background:#f05a00;
    color:#fff;

    border-radius:12px;

    text-decoration:none;
    font-weight:700;
}

.btn-orange:hover{
    color:#fff;
    background:#d95000;
}

.btn-outline-orange{
    height:52px;

    padding:0 28px;

    display:flex;
    align-items:center;

    border:2px solid #f05a00;
    color:#f05a00;

    border-radius:12px;

    text-decoration:none;
    font-weight:700;
}

/* ==========================
MESSAGES
========================== */

.header__messages{
    width:44px;
    height:44px;

    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;
}

.header__messages svg{
    width:24px;
    height:24px;
    fill:#333;
}

.header__badge{
    position:absolute;

    top:-3px;
    right:-3px;

    width:18px;
    height:18px;

    border-radius:50%;

    background:#f05a00;
    color:#fff;

    font-size:11px;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* ==========================
AVATAR
========================== */

.header__avatar img{
    width:48px;
    height:48px;

    border-radius:50%;
    object-fit:cover;

    border:2px solid #f05a00;
}










/* HERO */

.hero {
    min-height: 630px;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 35%, rgba(255,255,255,.25) 58%, rgba(255,255,255,0) 100%),
        url('/assets/templates/basketball/img/hero-arena.jpg') center right / cover no-repeat;
    overflow: hidden;
}

.hero__inner {
    min-height: 609px;
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    position: relative;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 0px;
}

.hero__label {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1f1f1f;
    margin-bottom: 24px;
}

.hero__label::first-letter {
    color: #f05a00;
}

.hero__title {
    font-size: clamp(64px, 7vw, 105px);
    line-height: .9;
    font-weight: 900;
    text-transform: uppercase;
    color: #161616;
    margin: 0;
}

.hero__title span {
    color: #f05a00;
}

.hero__line {
    width: 72px;
    height: 5px;
    background: #f05a00;
    margin: 32px 0 28px;
}

.hero__text {
    max-width: 660px;
    font-size: 20px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 36px;
}

.hero__buttons {
    display: flex;
    gap: 18px;
    
}

.btn-light-outline {
    height: 54px;
    padding: 0 30px;
    border: 2px solid #f05a00;
    color: #1f1f1f;
    background: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    text-decoration: none;
}

.btn-light-outline:hover {
    color: #f05a00;
}

.hero__media {
    position: absolute;
    right: 0%;
    bottom: 0;
    width: 68%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}








.header__burger{
    width:42px;
    height:42px;

    border:none;
    background:none;

    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
}

.header__burger span{
    width:28px;
    height:3px;

    background:#202020;
    border-radius:5px;
}

.mobile-logo{
    height:48px;
}

.mobile-menu{
    display:flex;
    flex-direction:column;
}

.mobile-menu a{
    padding:18px 0;

    border-bottom:1px solid #ececec;

    text-decoration:none;

    color:#202020;

    font-size:18px;
    font-weight:700;

    text-transform:uppercase;
}

.mobile-user{
    margin-top:30px;
}

.offcanvas{
    width:320px;
}





/* =========================
   HERO MOBILE LIGHT
========================= */

@media (max-width: 768px) {

.site-container{
    width:95%;
}

.header__logo img {
    height:40px;
    width:auto;
}



  .hero {
    background: #ffffff;
    color: #111;
    padding-bottom: 40px;
    overflow: hidden;
 min-height: auto;
  }

    .hero .site-container {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }


  .hero__inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0;
min-height: auto;
  }

  .hero__media {
    position: relative;
    width: calc(100% + 0px);
    margin-left: 0px;
    margin-right: -18px;
    margin-bottom: -90px;
    z-index: 1;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 48%;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.78) 45%,
      #ffffff 100%
    );
    pointer-events: none;
  }

  .hero__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

    .hero__content {
        padding-left: 18px;
        padding-right: 18px;
    }

  .hero__label {
    display: none;
  }

  .hero__title {
    margin: 0 0 18px;
    font-size: 58px;
    line-height: 0.92;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    letter-spacing: -1.5px;
  }

  .hero__title span {
    color: #ff5a00;
  }

  .hero__line {
    display: none;
  }

  .hero__text {
    margin: 0 0 26px;
    font-size: 18px;
    line-height: 1.45;
    color: #222;
  }

  .hero__buttons {
    display: flex;
    
    gap: 14px;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    min-height: 58px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-orange {
    background: #ff5a00;
    color: #fff;
    border: 2px solid #ff5a00;
    box-shadow: 0 10px 24px rgba(255, 90, 0, 0.25);
  }

  .btn-light-outline {
    background: #fff;
    color: #222;
    border: 2px solid #ff5a00;
  }


    .home-cards .site-container,
    .player-intro .site-container,
    .news-section .site-container,
    .video-section .site-container {
        width: 100%;
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
    }
}


@media (max-width: 480px) {

  .hero {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__text {
    font-size: 16px;
  }
}


@media (max-width: 380px) {

  .hero__title {
    font-size: 42px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__buttons .btn {
    min-height: 54px;
    font-size: 15px;
  }
}







.header__user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 46px;
    display: block;
    border: 2px solid #ff4d00;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.header-message {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

.header-message__count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: #ff4d00;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}














/* ==========================
HOME CARDS
========================== */

.home-cards {
    margin-top: -42px;
    padding-bottom: 60px;
    position: relative;
    z-index: 5;
}

.home-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0,0,0,.08);
    overflow: hidden;
}

.home-card__head {
    padding: 22px 28px 16px;
    border-bottom: 1px solid #e7e7e7;
    background-color: #ff5a00;
}

.home-card__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
}

.home-card__body {
    padding: 8px 28px;
    min-height: 210px;
}

.home-card__footer {
    padding: 18px 28px 24px;
    text-align: center;
}

.home-card__btn {
    min-width: 190px;
    height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
}

.home-card__btn:hover {
    color: #f05a00;
    border-color: #f05a00;
}

.home-empty {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b8b8b;
    font-size: 15px;
    text-align: center;
}

/* RESULTS */

.result-row {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #ededed;
}

.result-row__text {
    font-size: 18px;
    line-height: 1.25;
    color: #222;
}

.result-row__text strong {
    font-weight: 900;
}

.result-row__text span {
    color: #777;
    margin: 0 4px;
}

.result-row__text em {
    color: #f05a00;
    font-style: normal;
    font-weight: 800;
}

.result-row__score {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 900;
    color: #111;
}

/* TOP PLAYERS */

.top-player-row {
    min-height: 90px;
    display: grid;
    grid-template-columns: 30px 74px 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #ededed;
    text-decoration: none;
    color: #111;
}

.top-player-row:hover .top-player-row__name {
    color: #f05a00;
}

.top-player-row__place {
    font-size: 22px;
    font-weight: 900;
    color: #f05a00;
}

.top-player-row__photo img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

.top-player-row__name {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.top-player-row__rating {
    font-size: 16px;
    font-weight: 900;
    color: #111;
}

/* MOBILE */

@media (max-width: 991px) {
    .home-cards {
        margin-top: 24px;
        padding-bottom: 36px;
    }

    .home-cards__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-card__head {
        padding: 20px 22px 14px;
    }

    .home-card__head h2 {
        font-size: 22px;
    }

    .home-card__body {
        padding: 6px 22px;
        min-height: auto;
    }
}


.result-row__player {
    text-decoration: none;
    transition: .2s;
}

.result-row__player--winner {
    font-weight: 900;
    color: #111;
}

.result-row__player--loser {
    font-weight: 800;
    color: #f05a00;
}

.result-row__player:hover {
    color: #f05a00;
}






@media (max-width: 991px) {

    .header__mobile-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header__mobile-actions .header-message {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__mobile-actions .header-avatar {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .header__mobile-actions .header-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .header__burger {
        margin-left: 2px;
    }
}








/* ==========================
FOOTER
========================== */

.site-footer {
    position: relative;
    margin-top: 70px;
    background: #fff;
    border-top: 1px solid #ececec;
    overflow: hidden;
}

.site-footer__top-line {
    height: 3px;
    background: #f05a00;
}

.site-footer .site-container {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}

.site-footer__panel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #fff;
}

.site-footer__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.98) 34%,
            rgba(255,255,255,.86) 54%,
            rgba(255,255,255,.38) 100%
        ),
        url('/assets/img/footer-basketball-bg.jpg') right center / auto 100% no-repeat;
}

.site-footer__content {
    position: relative;
    z-index: 2;
    min-height: 360px;
    display: grid;
    grid-template-columns: 270px 150px 520px 130px;
    gap: 34px;
    align-items: center;
}

.site-footer__brand {
    padding-right: 24px;
    border-right: 1px solid rgba(0,0,0,.1);
}

.site-footer__logo {
    display: inline-flex;
    text-decoration: none;
}

.site-footer__logo img {
    width: 220px;
    height: auto;
    display: block;
}

.site-footer__tagline {
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.3;
    color: #777;
    font-weight: 500;
}

.site-footer__nav {
    padding-right: 24px;
    border-right: 1px solid rgba(0,0,0,.1);
}

.site-footer__title {
    margin-bottom: 28px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    color: #111;
}

.site-footer__title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    background: #f05a00;
    border-radius: 10px;
}

.site-footer__nav a {
    position: relative;
    display: block;
    padding: 0 24px 0 0;
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: .2s ease;
}

.site-footer__nav a::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #111;
    font-size: 24px;
    line-height: 1;
}

.site-footer__nav a:hover {
    color: #f05a00;
}

.site-footer__auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.footer-auth-card {
    min-height: 250px;
    padding: 22px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.footer-auth-card__title {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    color: #111;
}

.footer-auth-card__subtitle {
    margin-bottom: 18px;
    font-size: 16px;
    color: #777;
}

.footer-auth-card input {
    width: 100%;
    height: 44px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.footer-auth-card input:focus {
    border-color: #f05a00;
}

.footer-auth-card button {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: 2px solid #f05a00;
    border-radius: 10px;
    background: #f05a00;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.footer-auth-card button:hover {
    background: #d95000;
    border-color: #d95000;
}

.footer-auth-card--login button {
    margin-top: 52px;
    background: #fff;
    color: #f05a00;
}

.footer-auth-card--login button:hover {
    background: #fff2ea;
    color: #f05a00;
    border-color: #f05a00;
}

.site-footer__stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__stat-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    color: #f05a00;
    font-size: 28px;
    font-weight: 900;
}

.site-footer__stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #111;
}

.site-footer__stat span {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    color: #555;
}

.site-footer__bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(0,0,0,.1);
}

.site-footer__copy {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-footer__links a {
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    border-left: 1px solid rgba(0,0,0,.16);
    transition: .2s ease;
}

.site-footer__links a:hover {
    color: #f05a00;
}


/* ==========================
FOOTER — AUTHORIZED USER
========================== */

.site-footer--logged .site-footer__auth {
    display: none;
}

.site-footer--logged .site-footer__content {
    grid-template-columns: 270px 150px 130px 1fr;
}

.site-footer--logged .site-footer__stat {
    grid-column: 3;
}

.site-footer--logged .site-footer__bg {
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.98) 32%,
            rgba(255,255,255,.76) 50%,
            rgba(255,255,255,.28) 100%
        ),
        url('/assets/img/footer-basketball-bg.jpg') right center / auto 100% no-repeat;
}


/* ==========================
FOOTER TABLET
========================== */

@media (max-width: 1199px) {

    .site-footer .site-container {
        width: 90%;
    }

    .site-footer__content {
        grid-template-columns: 220px 130px 1fr;
        gap: 22px;
    }

    .site-footer__logo img {
        width: 190px;
    }

    .site-footer__stat {
        display: none;
    }

    .site-footer--logged .site-footer__content {
        grid-template-columns: 220px 130px 1fr;
    }

    .site-footer--logged .site-footer__stat {
        display: flex;
        grid-column: 3;
    }
}


/* ==========================
FOOTER MOBILE
========================== */

@media (max-width: 991px) {

    .site-footer {
        margin-top: 42px;
        overflow: hidden;
    }

    .site-footer .site-container {
        width: 95%;
        max-width: none;
    }

    .site-footer__panel {
        min-height: auto;
        padding: 26px 0 22px;
        overflow: hidden;
    }

    .site-footer__bg {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.98) 0%,
                rgba(255,255,255,.96) 58%,
                rgba(255,255,255,1) 100%
            ),
            url('/assets/img/footer-basketball-bg.jpg') right bottom / auto 46% no-repeat;
        opacity: 1;
    }

    .site-footer__content,
    .site-footer--logged .site-footer__content {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .site-footer__brand,
    .site-footer__nav {
        padding-right: 0;
        border-right: 0;
    }

    .site-footer__brand {
        text-align: left;
    }

    .site-footer__logo img {
        width: 154px;
    }

    .site-footer__tagline {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.3;
    }

    .site-footer__nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
    }

    .site-footer__title {
        margin-bottom: 4px;
        font-size: 20px;
    }

    .site-footer__title::after {
        width: 34px;
        height: 3px;
        margin-top: 8px;
    }

    .site-footer__nav a {
        width: 100%;
        margin-bottom: 0;
        padding: 12px 40px 12px 14px;
        border: 1px solid #e7e7e7;
        border-radius: 10px;
        background: rgba(255,255,255,.9);
        font-size: 15px;
        font-weight: 800;
        box-sizing: border-box;
    }

    .site-footer__nav a::after {
        right: 14px;
    }

    .site-footer__auth {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .footer-auth-card {
        width: 100%;
        min-height: auto;
        padding: 18px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .footer-auth-card__title {
        font-size: 19px;
    }

    .footer-auth-card__subtitle {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .footer-auth-card input {
        height: 46px;
        font-size: 15px;
    }

    .footer-auth-card button {
        height: 48px;
    }

    .footer-auth-card--login button {
        margin-top: 4px;
    }

    .site-footer__stat,
    .site-footer--logged .site-footer__stat {
        display: none;
    }

    .site-footer__bottom {
        min-height: auto;
        padding: 16px 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer__copy {
        font-size: 14px;
    }

    .site-footer__links {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-footer__links a {
        padding: 0;
        border-left: 0;
        font-size: 14px;
    }
}


/* ==========================
FOOTER SMALL MOBILE
========================== */

@media (max-width: 480px) {

    .site-footer .site-container {
        width: 95%;
    }

    .site-footer__panel {
        padding: 24px 0 20px;
    }

    .site-footer__bg {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.99) 0%,
                rgba(255,255,255,.97) 70%,
                rgba(255,255,255,1) 100%
            ),
            url('/assets/img/footer-basketball-bg.jpg') right bottom / auto 34% no-repeat;
    }

    .site-footer__content,
    .site-footer--logged .site-footer__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer__logo img {
        width: 148px;
    }

    .site-footer__title {
        font-size: 19px;
    }

    .footer-auth-card {
        padding: 16px;
    }
}




/* ==========================
MOBILE HEADER USER
========================== */

.header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.header__mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* В верхней мобильной шапке у авторизованного скрываем "Вызвать на дуэль" */
.header__mobile-user .btn-light-outline,
.header__mobile-user .header__duel {
    display: none !important;
}

/* Кнопка "Присоединиться" для гостя */
.header__mobile-user .btn-orange {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

/* Сообщения в мобильной шапке */
.header__mobile-user .header-message {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
}

.header__mobile-user .header-message__count {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: #ff4d00;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Аватар в мобильной шапке */
.header__mobile-user .header-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff4d00;
    display: block;
}

.header__mobile-user .header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================
MOBILE OFFCANVAS USER
========================== */

.mobile-user {
    margin-top: 26px;
}

/* В открытом меню показываем кнопку "Вызвать на дуэль" */
.mobile-user .btn-light-outline,
.mobile-user .header__duel {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* В открытом меню скрываем сообщения и аватар */
.mobile-user .header-message,
.mobile-user .header-avatar {
    display: none !important;
}

/* Если гость — показываем "Присоединиться" */
.mobile-user .btn-orange {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}






/* ==========================
VIDEO SECTION
========================== */

.video-section {
    padding: 18px 0 76px;
    background: #fff;
    overflow: hidden;
}

.video-section__head {
    margin-bottom: 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.video-section__title {
    margin: 0;

    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;

    text-transform: uppercase;

    color: #111;
}

.video-section__all {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #f05a00;

    font-size: 16px;
    font-weight: 900;

    text-decoration: none;
}

.video-section__all span {
    font-size: 24px;
    line-height: 1;
}

.video-section__all:hover {
    color: #d95000;
}

.video-section__scroller {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.video-card {
    display: block;
    min-width: 0;

    color: #111;
    text-decoration: none;
}

.video-card__thumb {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 14px;

    background: #f2f2f2;
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.video-card__thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.video-card:hover .video-card__thumb img {
    transform: scale(1.045);
}

.video-card__thumb::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 45%,
        rgba(0,0,0,.35) 100%
    );

    pointer-events: none;
}

.video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;

    width: 58px;
    height: 58px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}

.video-card__play::before {
    content: "";

    position: absolute;
    left: 23px;
    top: 17px;

    width: 0;
    height: 0;

    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.video-card__duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;

    padding: 5px 8px;

    border-radius: 6px;

    background: rgba(0,0,0,.78);
    color: #fff;

    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.video-card__body {
    padding-top: 14px;
}

.video-card__title {
    margin: 0 0 8px;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;

    color: #111;

    transition: color .2s ease;
}

.video-card:hover .video-card__title {
    color: #f05a00;
}

.video-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    color: #777;

    font-size: 14px;
    line-height: 1.3;
}

.video-card__meta span:not(:last-child)::after {
    content: "•";
    margin-left: 7px;
    color: #b5b5b5;
}

.video-section__dots {
    display: none;
}


/* ==========================
VIDEO SECTION MOBILE
========================== */

@media (max-width: 768px) {

    .video-section {
        padding: 10px 0 44px;
        overflow: hidden;
    }

    .video-section .site-container {
        width: 100%;
        max-width: none;
        padding-left: 16px;
        padding-right: 0;
    }

    .video-section__head {
        margin-bottom: 16px;
        padding-right: 16px;
        gap: 12px;
    }

    .video-section__title {
        font-size: 22px;
    }

    .video-section__all {
        flex: 0 0 auto;

        font-size: 14px;
        white-space: nowrap;
    }

    .video-section__all span {
        font-size: 22px;
    }

    .video-section__scroller {
        display: flex;
        gap: 14px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-right: 16px;
        padding-bottom: 12px;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .video-section__scroller::-webkit-scrollbar {
        display: none;
    }

    .video-card {
        flex: 0 0 74%;
        scroll-snap-align: start;
    }

    .video-card__thumb {
        border-radius: 13px;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .video-card__play {
        width: 52px;
        height: 52px;
    }

    .video-card__play::before {
        left: 21px;
        top: 15px;

        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 17px;
    }

    .video-card__duration {
        right: 8px;
        bottom: 8px;

        padding: 5px 7px;

        font-size: 12px;
    }

    .video-card__body {
        padding-top: 12px;
    }

    .video-card__title {
        margin-bottom: 7px;

        font-size: 16px;
        line-height: 1.25;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    .video-card__meta {
        flex-wrap: nowrap;
        overflow: hidden;

        font-size: 13px;
        white-space: nowrap;
    }

    .video-card__meta span {
        flex: 0 0 auto;
    }

    .video-section__dots {
        margin-top: 2px;
        padding-right: 16px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

    .video-section__dots span {
        width: 9px;
        height: 9px;

        border-radius: 50%;

        background: #d7d7d7;
    }

    .video-section__dots span.active {
        background: #f05a00;
    }
}


@media (max-width: 480px) {

    .video-card {
        flex-basis: 76%;
    }

    .video-card__title {
        font-size: 15px;
    }

    .video-card__meta {
        font-size: 12px;
    }
}


@media (max-width: 380px) {

    .video-section__title {
        font-size: 20px;
    }

    .video-section__all {
        font-size: 13px;
    }

    .video-card {
        flex-basis: 78%;
    }
}