/* ============================
   БАЗОВЫЕ СТИЛИ
============================ */
body {
    margin: 0;
    background: #008080;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* ============================
   ШАПКА
============================ */
#site-header {
    width: 100%;
    background: #004040;
    padding: 10px 0;
}

.header-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ЛОГОТИП */
.header-left {
    display: flex;
    justify-content: center;
}

.site-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* ПРЕВЬЮ */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-thumb {
    width: 380px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.preview-title {
    margin-top: 8px;
    font-size: 14px;
    color: #fac115;
}


/* ============================
   МЕНЮ
============================ */
.right-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-menu a {
    color: #007f80;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.right-menu a:hover {
    color: #fac115;
}

.menu-knob {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
}

.right-menu li:hover .menu-knob {
    transform: rotate(180deg);
}


/* ============================
   СЕТКА ВИДЕО
============================ */
#video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
}

.video-card {
    background: #004040;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    /* overflow: hidden;  УБРАТЬ */
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.video-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-title {
    padding: 12px 14px;
    font-size: 15px;
    color: #fac115;
    background: #004040;
}


/* ============================
   РЕКЛАМА
============================ */
.ad-card {
    background: #004040;
    border-radius: 14px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.ad-box ins {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}


/* ============================
   ПОСТ
============================ */
.post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e6c27a;
}

.post-date {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 25px;
}

.post-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.after-show-more-ad {
    width: 100%;
    text-align: center; /* центрирует рекламу */
    margin: 20px 0;
}


/* ============================
   ПОДВАЛ
============================ */
.footer {
    background: #003f40;
    width: 100%;
    color: #ccc;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-center a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-center a:hover {
    color: #fff;
}


/* ============================
   СТРАНИЦА ПРОСМОТРА
============================ */
.video-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.player-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.video-player-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-title-page {
    font-size: 26px;
    margin-bottom: 10px;
}

.video-description {
    white-space: pre-line;
    color: #ccc;
    margin-bottom: 20px;
}

/* ============================
      СОЦИАЛЬНЫЕ СЕТИ (HEADER)
   ============================ */

.header-social {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.header-social .social-icon img {
    width: 28px;
    height: 28px;
    transition: 0.3s;
}

.header-social .social-icon img:hover {
    transform: rotate(15deg) scale(1.1);
    opacity: 0.85;
}

/* ============================
   КНОПКИ ПОД ПЛЕЕРОМ
============================ */
.action-panel {
    margin-top: 2px;
    width: 100%;
    max-width: 720px;
    display: flex;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #001a1a;
}

.panel-section {
    flex: 1;
    padding: 4px 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    transition: background 0.2s, opacity 0.2s;
}

.rating-section {
    background: #002222;
}

.comment-section {
    background: #e6c27a;
    color: #001f1f;
    font-weight: bold;
}

.private-section {
    background: #001f1f;
    color: #e6c27a;
}

.panel-section:hover {
    opacity: 0.8;
}


/* ============================
   ПОХОЖИЕ ВИДЕО
============================ */
#related-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}
.related-title-text {
    padding: 10px;
    font-size: 15px;
    color: #fac115;
    background: #111;
}

/* ============================
   КНОПКА "ПОКАЗАТЬ БОЛЬШЕ"
============================ */
#show-more {
    display: block;
    margin: 0 auto;
    padding: 8px 18px;
    background: #003f40;
    color: #fff;
    border: 1px solid #666;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all .25s ease;
}

#show-more:hover {
    border-color: #fac115;
    color: #fac115;
    transform: translateY(-2px);
}


/* ============================
   КОММЕНТАРИИ
============================ */
.mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #004040;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    height: 100px;
}

.mini-logo {
    height: 100px;
    max-width: 120px;
    object-fit: contain;
}

.comments-container {
    max-width: 700px;
    margin: auto;
    padding: 20px;
}

.comment-item {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}


/* ============================
   АДАПТИВ 768px
============================ */
@media (max-width: 768px) {

    .header-row {
        flex-direction: column;
        gap: 20px;
    }

    .site-logo {
        width: 150px;
        height: 150px;
    }

    .preview-thumb {
        width: 300px;
        height: 130px;
    }

    .video-thumb {
        height: 140px;
    }

    .ad-card {
        height: 200px;
    }
}


/* ============================
   АДАПТИВ 600px — КЛАССИЧЕСКИЙ МОБИЛЬНЫЙ
============================ */
@media (max-width: 600px) {

    /* скрываем превью */
    .header-preview,
    .preview-thumb,
    .preview-title {
        display: none;
    }

    /* перестраиваем шапку */
    .header-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* логотип */
    .site-logo {
        width: 160px;
        height: 160px;
    }

    /* меню */
    .right-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    /* видео */
    .video-thumb {
        height: 120px;
    }

    /* реклама */
    .ad-card {
        height: 160px;
    }

    /* посты */
    .post-container {
        padding: 0 15px;
    }
}


/* ============================
   ТВ 1800px+
============================ */
@media (min-width: 1800px) {

    html {
        font-size: 22px;
    }

    .header-row {
        max-width: 1800px;
        gap: 40px;
    }

    .site-logo {
        width: 18vw;
        height: 18vw;
    }

    .preview-thumb {
        width: 30vw;
        height: 14vw;
    }

    #video-list {
        max-width: 1800px;
        grid-template-columns: repeat(auto-fill, minmax(18vw, 1fr));
        gap: 2vw;
    }

    .video-thumb {
        height: 12vw;
    }
}
/* rebuild */
