/* 
* Main Stylesheet - Updated for new layout
* Website: Livestream Cockfighting
*/

/* ======= GLOBAL STYLES ======= */
:root {
    --primary-color: #ff0000;
    --secondary-color: #ffcc00;
    --dark-color: #1a1a1a;
    --light-color: #f1f1f1;
    --text-color: #333333;
    --link-color: #ff0000;
    --header-bg: #000;
    --footer-bg: #1a1a1a;
    --purple-color: #8e44ad;
    --green-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #111;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.share-btn.copy-link {
    background-color: #6c757d; /* Màu xám trung tính */
    color: #ffffff;
    transition: background-color 0.2s ease-in-out; /* Thêm hiệu ứng chuyển màu mượt mà */
}

/* Hiệu ứng khi di chuột vào */
.share-btn.copy-link:hover {
    background-color: #5a6268; /* Màu xám đậm hơn */
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
}

p {
    margin-bottom: 20px;
    color: #ffffff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
    font-size: 24px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

/* ======= TOP BAR ======= */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.top-bar p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

/* ======= HEADER STYLES ======= */
.site-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    max-width: 200px;
}

.logo a {
    display: block;
}

.logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.header-buttons {
    display: flex;
}

.header-buttons .btn {
    margin-left: 10px;
}

.zalo-btn {
    background-color: #0068ff;
    color: #fff;
}

.phone-btn {
    background-color: var(--primary-color);
    color: #fff;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 100;
    margin: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

/* Mobile Spacer for layout */
.mobile-spacer {
    display: none;
    width: 30px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-close span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 50%;
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav {
    padding: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav ul li {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav ul li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav ul li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav ul li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

/* ======= MAIN CONTENT ======= */
.main-content {
    padding: 0 0;
}

/* ======= LIVESTREAM SECTION ======= */
.livestream-container {
    display: flex;
    margin-bottom: 30px;
    background-color: var(--dark-color);
    border-radius: 5px;
    overflow: hidden;
}

.video-player {
    flex: 2;
    position: relative;
}

.live-chat {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======= LIVESTREAM OFFLINE STYLES ======= */
.livestream-offline {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #000;
}

.offline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.offline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.offline-overlay h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: -18px;
}

.countdown-container {
    margin-bottom: 5px;
}

.offline-message {
    font-size: 16px;
    color: #fff;
}

/* ======= RECORDING CONTROLS ======= */
.livestream-wrapper {
    position: relative;
}

.record-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.record-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.record-start {
    background-color: rgba(255, 0, 0, 0.7);
}

.record-start:hover {
    background-color: rgba(255, 0, 0, 0.9);
}

.record-stop {
    background-color: rgba(0, 0, 0, 0.7);
}

.record-stop:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.record-start i {
    color: #ff0000;
}

.record-stop i {
    color: #fff;
}

/* ======= ACCOUNT INFO SECTION ======= */
.account-info-section {
    padding: 30px 0;
    background-color: #111;
}

.account-details {
    display: flex;
    justify-content: space-around;
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: 5px;
}

/* ======= VIDEOS SECTION ======= */
.videos-section {
    padding: 30px 0;
    background-color: #111;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-item {
    background-color: var(--dark-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-item .thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-item .thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .video-info {
    padding: 15px;
}

.video-item .video-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.video-item .video-date {
    font-size: 12px;
    color: #aaa;
}

/* ======= ABOUT SECTION ======= */
.about-section {
    padding: 40px 0;
    background-color: var(--dark-color);
    color: #fff;
}

.about-info h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 20px;
}

.map-section {
    margin-top: 20px;
    text-align: center;
}

.map-button {
    display: inline-block;
    background-color: var(--green-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}

.map-button i {
    margin-right: 10px;
}

.social-section {
    margin-top: 20px;
    text-align: center;
}

.tiktok-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    border: 1px solid #fff;
}

.tiktok-button i {
    margin-right: 10px;
}

/* ======= FOOTER STYLES ======= */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 30px 0 15px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    margin-right: 30px;
    font-size: 15px !important;
    font-weight: 500;
}

.footer-logo img {
    max-width: 250px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 18px;
    color: var(--secondary-color);
}

.footer-info {
    flex: 2;
    display: flex;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.footer-section p {
    font-size: 15px;
    color: #fff;
    font-weight: 400;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 5px;
    color: #aaa;
}

.footer-credit p {
    color: #666;
}

/* ======= MOBILE BOTTOM NAVIGATION ======= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
}

.mobile-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 10px;
}

.mobile-nav-item i,
.mobile-nav-item img {
    font-size: 18px;
    height: 20px;
    margin-bottom: 5px;
    display: block;
}

/* ======= SINGLE VIDEO PAGE ======= */
.video-single {
    background-color: var(--dark-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-single .video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-single .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-single .video-info {
    padding: 20px;
}

.video-single .video-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-single .video-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
}

.video-single .video-meta .date {
    margin-right: 20px;
}

.video-single .video-meta .views i {
    margin-right: 5px;
}

.video-single .video-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.share-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn i {
    margin-right: 5px;
}

.related-videos {
    margin-bottom: 30px;
}

.related-videos h2 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.related-videos h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.video-cta {
    background-color: var(--dark-color);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 30px;
}

.video-cta h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.video-cta .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    font-weight: 700;
}

/* ======= PAGINATION ======= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 3px;
    background-color: var(--dark-color);
    color: #fff;
    font-size: 14px;
}

.pagination a.active {
    background-color: var(--primary-color);
}

.pagination .page-dots {
    background-color: transparent;
}

.pagination .page-nav {
    background-color: var(--primary-color);
}

.pagination .page-nav i {
    margin-right: 5px;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header & Logo adjustment - FIX FOR TOGGLE VERTICAL ALIGNMENT */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0;
        flex-wrap: nowrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        height: 40px;  /* Fixed height */
        min-width: 30px; /* Ensures minimum width */
        order: 0;
        margin: 0;
    }
    
    .mobile-spacer {
        display: block;
        min-width: 30px; /* Match toggle width */
        order: 2;
    }
    
    .logo {
        order: 1;
        flex: 1;
        text-align: center;
        margin: 0 auto;
        padding: 0;
    }
    
    .logo img {
        margin: 0 auto;
        max-height: 50px;
    }
    
    /* General layout adjustments */
    .livestream-container {
        flex-direction: column;
    }
    
    .video-player, .live-chat {
        width: 100%;
    }
    
    .account-details {
        flex-direction: column;
    }
    
    .account-item {
        margin-bottom: 15px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo, .footer-info {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-info {
        flex-direction: column;
    }
    
    .footer-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to bottom for mobile nav */
    body {
        padding-bottom: 60px;
    }
    
    .offline-overlay h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .offline-overlay h2 {
        font-size: 16px;
    }
    
    .offline-message {
        font-size: 14px;
    }
}

.livestream-start-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

@media (max-width: 576px) {
    .livestream-start-text {
        font-size: 14px;
        padding: 0 15px;
        line-height: 1.4;
    }
}

/* CSS mới cho phần hình ảnh liên kết */
.social-links-section {
    padding: 20px 0;
    background-color: #111;
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa các liên kết trên desktop */
    margin: 0 auto;
}

.social-link {
    display: block;
    transition: transform 0.3s ease;
}

.social-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: scale(1.05);
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .social-links-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-link {
        width: auto; /* Kích thước cố định trên mobile */
    }
}

.sdt {
    font-size:23px;
    font-weight: 700;
    color:#ffcc00;
}
.container-ft {
    margin: 30px;
}
/* Style cho bộ đếm người xem */
.viewer-counter {
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.viewer-counter i {
    margin-right: 5px;
    color: #ff0000;
}
.chat-container {
    width: 33%;
}
@media (max-width: 1024px) {
    .chat-container {
        width: 100%;
    }
}