/* --- RESET CSS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f1014;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: left;
}

a {
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- HEADER --- */
header {
    background-color: #1a1c22;
    height: 60px;
    /* Giảm nhẹ chiều cao cho gọn */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #2d2f36;
}

/* Container bên trái chứa: Hamburger + Logo + Menu Desktop */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Button (Mặc định ẩn trên Desktop) */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 5px;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 800;
    color: #ff6d00;
    letter-spacing: -1px;
    z-index: 1001;
    /* Để luôn nổi lên trên */
}

.logo span {
    color: #fff;
}

/* Navigation Menu (Desktop) */
.nav-menu {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    padding: 10px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ff6d00;
}

/* Header Right Side */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    background-color: #2a2c33;
    border: none;
    padding: 6px 30px 6px 12px;
    border-radius: 18px;
    color: #fff;
    outline: none;
    width: 220px;
    font-size: 13px;
}

.search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
}

/* Buttons */
.btn-login {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.btn-login:hover {
    color: #ff6d00;
}

.btn-package {
    background: linear-gradient(90deg, #ff9800, #ff6d00);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.btn-package:hover {
    opacity: 0.9;
}

/* Icon search mobile (ẩn trên desktop) */
.mobile-search-icon {
    display: none;
    font-size: 18px;
    cursor: pointer;
}

/* --- CONTENT PLACEHOLDER --- */
.main-content {
    margin-top: 60px;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center; 
    padding: 20px;
}

.placeholder-box {
    border: 2px dashed #333;
    padding: 40px;
    border-radius: 8px;
    color: #555;
}

/* --- FOOTER --- */
footer {
    background-color: #0b0c0f;
    padding: 40px 20px 20px;
    border-top: 1px solid #1f2128;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #888;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #ff6d00;
}

.company-info p {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background-color: #2a2c33;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.app-download {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-btn {
    background-color: #2a2c33;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid #3e4049;
}

.app-text {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    color: #ccc;
}

.app-text span {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1f2128;
    padding-top: 15px;
    text-align: center;
    color: #444;
    font-size: 12px;
}

/* --- MOBILE & TABLET RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }

    .search-box input {
        width: 160px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
    }

    /* Hiện nút hamburger */

    /* Chuyển menu thành sidebar */
    .nav-menu {
        position: fixed;
        left: -100%;
        /* Ẩn sang trái */
        top: 60px;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #1a1c22;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        margin: 0;
        transition: 0.3s ease-in-out;
        border-top: 1px solid #333;
        gap: 0;
    }

    /* Class 'active' để hiện menu */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #2a2c33;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #fff;
    }

    /* Ẩn search box desktop, hiện icon search */
    .search-box {
        display: none;
    }

    .mobile-search-icon {
        display: block;
    }

    /* Điều chỉnh Footer thành 1 cột hoặc 2 cột */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-package {
        display: none;
    }

    /* Ẩn nút mua gói nếu màn hình quá nhỏ */
}


/* Watermark
.yt-watermark {
  position: absolute;
  top: 85%;
  right: -2%;

  /* KÍCH THƯỚC LOGO */
  /* width: 15%; */
  height: 60px;
  /* aspect-ratio: 4 / 1; /* auto scaling, đổi theo logo của bạn */
  /* background-image: url("/media/logo/SXTV.png"); */ */
  /* background-size: contain; */
  /* background-position: center; */
  /* background-repeat: no-repeat; */
 /* opacity: 1; */
  /* KHÔNG ẢNH HƯỞNG CLICK */
  /* pointer-events: none; */
  /* user-select: none; */

  /* z-index:999999999999999999999; */

} */
/* Khung chứa tổng */
#tv-show__live {
    background: #000;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quan trọng: Fix video luôn nằm gọn trong khung */
#myVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Giữ tỉ lệ video, tạo dải đen nếu màn hình quá dài */
}

/* WATERMARK - Cấu hình lại hoàn toàn */
.yt-watermark {
    position: absolute;
    /* width:50px; */
    /* Tạo một khung ảo 16:9 nằm giữa màn hình */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    
    /* Khung này sẽ có kích thước bằng hệt với vùng hiển thị video */
    width: 100%;
    height: 100%;
    max-width: calc(100vh * 16 / 9); 
    max-height: calc(100vw * 9 / 16);

    /* Đưa logo vào góc dưới bên phải của KHUNG ẢO này */
    background-image: url("/media/logo/SXTV.png");
    background-size: 12%; /* Kích thước logo tính theo % chiều rộng video */
    background-position: 97% 90%; /* Cách phải 3%, cách dưới 10% */
    background-repeat: no-repeat;
    
    opacity: 1;
    pointer-events: none;
    user-select: none;

    /* Z-index cực cao để không bị Shaka UI đè */
    z-index: 1; 
}


/* container gốc của Shaka */
.shaka-video-container {
    border-radius: 14px !important;
}

/* vùng controls dưới */
.shaka-controls-container {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
    padding: 8px 14px !important;
}

/* panel nút chính */
.shaka-controls-button-panel {
    display: flex !important;
    gap: 8px !important;
}

/* nút play/pause */
.shaka-play-pause-button .material-icons {
    font-size: 20px !important;
    padding: calc(10% / 2) !important;
}

/* tua 10s */
.shaka-rewind-button .material-icons,
.shaka-fast-forward-button .material-icons {
    font-size: 26px !important;
}

/* thanh progress */
.shaka-seek-bar-container {
    height: 4px !important;
}

.shaka-seek-bar {
    background: rgba(255,255,255,0.25) !important;
}

.shaka-seek-bar .shaka-range-bar {
    background: #ff3b3b !important;
}

/* nút volume */
.shaka-volume-button .material-icons {
    font-size: 26px !important;
}

/* menu chất lượng */
.shaka-overflow-menu {
    background: #fff !important;
    border-radius: 8px !important;
}

.shaka-overflow-menu button {
    color: #fff !important;
    font-size: 14px !important;
}

.shaka-settings-menu span {
    /* color: #fff !important; */
}

/* danh sách audio track */
.shaka-audio-languages,
.shaka-text-languages {
    background: #fff !important;
    border-radius: 6px;
}

/* loading spinner */
.shaka-spinner circle {
    stroke: #ff3b3b !important;
}

/* tooltip thời gian */
.shaka-time-and-duration {
    font-size: 14px !important;
}

