/* Front-end visual layer for views/web. Loaded after theme.css. */

:root {
    --wc-bg: #eef2f6;
    --wc-ink: #152033;
    --wc-muted: #667085;
    --wc-line: #e4e9f0;
    --wc-card: #ffffff;
    --wc-navy: #0c1424;
    --wc-navy-2: #16233a;
    --wc-accent: #14b8a6;
    --wc-accent-2: #22d3ee;
    --wc-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--wc-bg);
    color: var(--wc-ink);
    font-family: "Open Sans", "Segoe UI", sans-serif;
}

main#content {
    padding-top: 8px;
    padding-bottom: 28px;
}

/* Header */
.header .header-section {
    background: linear-gradient(180deg, var(--wc-navy) 0%, var(--wc-navy-2) 100%);
    box-shadow: 0 8px 24px rgba(8, 15, 30, 0.28);
}

.header .navbar {
    min-height: 68px;
}

.header .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 1.15rem;
}

.header .navbar-brand::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22);
    vertical-align: 1px;
}

.header .nav-link,
.header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 600;
}

.header .nav-link:hover,
.header .nav-link:focus {
    color: #fff !important;
}

.header .navbar-toggler,
.header .btn-ghost-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1199.98px) {
    .header .navbar {
        min-height: 58px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header .navbar-toggler {
        width: 40px;
        height: 40px;
        margin-right: 12px !important;
        padding: 0;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    .header .navbar-toggler:hover,
    .header .navbar-toggler:focus {
        background: rgba(255, 255, 255, 0.16) !important;
        outline: none;
    }

    .header .navbar-brand {
        font-size: 15px;
        margin-right: auto !important;
    }

    .header .navbar-brand::before {
        width: 7px;
        height: 7px;
        margin-right: 6px;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
}

.header .navbar-toggler svg,
.header .btn-ghost-secondary svg,
.header .hs-unfold svg {
    fill: #fff !important;
}

.header .search-form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff;
    height: 42px;
    box-shadow: none;
}

.header .search-form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.header .search-form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28);
}

.header .dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    margin-top: 10px;
}

#pagesSubLgMenu.lang-menu {
    width: 320px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px);
    padding: 8px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.lang-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.lang-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px;
    background: #f3f6fa;
    color: var(--wc-ink) !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.lang-item:hover {
    background: #e7f7f4 !important;
    color: #0f766e !important;
}

.lang-item.is-active {
    background: var(--wc-navy) !important;
    color: #fff !important;
}

.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 5px;
    border-radius: 6px;
    background: rgba(12, 20, 36, 0.08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.lang-item.is-active .lang-code {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media (min-width: 1200px) {
    .header .country-drop,
    .header .category-drop {
        position: relative;
    }

    #pagesSubCountryMenu.nav-panel,
    #pagesSubCateMenu.nav-panel {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        margin-top: 8px !important;
    }
}

#pagesSubCountryMenu.nav-panel,
#pagesSubCateMenu.nav-panel {
    width: 440px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 8px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.nav-panel-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.nav-panel-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border-radius: 8px;
    color: var(--wc-ink) !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.nav-panel-item:hover {
    background: #e7f7f4 !important;
    color: #0f766e !important;
}

.nav-panel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-panel-count {
    flex: none;
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef2f6;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.nav-panel-item:hover .nav-panel-count {
    background: #fff;
    color: #0f766e;
}

@media (max-width: 575.98px) {
    #pagesSubCountryMenu.nav-panel {
        width: 100% !important;
    }

    .nav-panel-list {
        grid-template-columns: 1fr;
    }
}

.header .dropdown-item {
    border-radius: 8px;
    color: var(--wc-ink);
}

.header .dropdown-item:hover {
    background: #f0fdfa;
    color: #0f766e;
}

/* Sidebar */
main .bg-gray-1000 {
    background: transparent !important;
}

main .bg-gray-1000 .position-relative,
main .col-lg-auto .position-relative.h-100 {
    background: var(--wc-card);
    border: 1px solid var(--wc-line);
    border-radius: 18px;
    box-shadow: var(--wc-shadow);
    padding: 18px 8px 8px !important;
    margin-top: 24px;
}

main .bg-gray-1000 h2,
main .bg-gray-1000 h6,
main .col-lg-auto h6 {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wc-muted) !important;
    border: 0 !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
}

main .bg-gray-1000 .border-bottom,
main .col-lg-auto .border-bottom {
    border: 0 !important;
}

main .bg-gray-1000 br {
    display: none;
}

main .bg-gray-1000 li,
main .col-lg-auto .h-bg-1 li {
    border-radius: 10px;
    margin-bottom: 2px !important;
    padding: 7px 12px !important;
}

main .bg-gray-1000 li:hover,
main .col-lg-auto .h-bg-1 li:hover {
    background: #f0fdfa;
}

main .bg-gray-1000 a,
main .col-lg-auto .h-bg-1 a {
    color: var(--wc-ink) !important;
    text-decoration: none;
}

main .bg-gray-1000 a:hover,
main .col-lg-auto .h-bg-1 a:hover {
    color: #0f766e !important;
}

/* Section titles */
.home-section header {
    align-items: flex-end;
}

.home-section h1,
.home-section h2,
main#content h1.font-size-24,
main#content h2.font-size-24,
main#content h2.font-size-18 {
    color: var(--wc-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.home-section h1,
.home-section h2 {
    position: relative;
    padding-left: 12px;
}

.home-section h1::before,
.home-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--wc-accent), var(--wc-accent-2));
}

.home-section a {
    text-decoration: none;
}

.home-section a:hover h2 {
    color: #0f766e !important;
}

.border-gray-3600 {
    border-color: #d7dee8 !important;
    opacity: 0.9;
}

/* Cards */
#content .product {
    background: var(--wc-card);
    border: 1px solid var(--wc-line);
    border-radius: 16px;
    padding: 8px 8px 12px;
    height: calc(100% - 1.25rem);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#content .product:hover {
    transform: translateY(-3px);
    box-shadow: var(--wc-shadow);
}

#content .product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #dbe3ee;
    margin-bottom: 10px !important;
}

#content .product-image img,
#content .product-image .img-fluid {
    width: 100% !important;
    min-width: 0 !important;
    height: 168px !important;
    object-fit: cover;
    display: block !important;
    border-radius: 12px !important;
    transition: transform 0.35s ease;
}

#content .product:hover .product-image img {
    transform: scale(1.04);
}

#content .product-image::before {
    content: "LIVE";
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.5;
    pointer-events: none;
}

#content .product-image::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 20, 36, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7.5v9l8-4.5z'/%3E%3C/svg%3E") center / 18px no-repeat;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

#content .product:hover .product-image::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#content .product-title,
#content .product_title {
    display: block !important;
    width: 100%;
    margin: 0 0 6px !important;
    padding: 0 4px;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35;
}

#content .product-title a,
#content .product_title a {
    color: var(--wc-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

#content .product-title a:hover,
#content .product_title a:hover {
    color: #0f766e;
}

#content .product .font-size-14,
#content .product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    color: var(--wc-muted) !important;
    font-size: 12px !important;
    padding: 0 4px !important;
}

#content .product-comment,
#content .product-meta span {
    color: var(--wc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail */
#content .breadcrumb {
    background: transparent;
    padding: 16px 0 8px;
    margin-bottom: 8px;
}

#content .breadcrumb-item,
#content .breadcrumb a {
    color: var(--wc-muted);
    font-size: 14px;
}

#content .breadcrumb a:hover {
    color: #0f766e;
    text-decoration: none;
}

#player-div,
.detail-player {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    height: auto;
    border-radius: 16px !important;
    overflow: hidden;
    background: #070b14 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

#player-div iframe,
.detail-player iframe {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.detail-info {
    margin-top: 16px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--wc-line);
    border-radius: 16px;
}

.detail-title {
    margin: 0 0 12px;
    color: var(--wc-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    white-space: normal;
}

.detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-date {
    color: var(--wc-muted);
    font-size: 13px;
}

.detail-subtitle {
    margin: 0 0 8px;
    color: var(--wc-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.detail-desc {
    color: #3d4a60;
    font-size: 14px;
    line-height: 1.7;
}

.detail-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.detail-side-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--wc-line);
    border-radius: 12px;
    text-decoration: none;
}

.detail-side-item:hover {
    border-color: #99f6e4;
    text-decoration: none;
}

.detail-side-thumb {
    position: relative;
    flex: none;
    width: 112px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #dbe3ee;
}

.detail-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-side-thumb::after {
    content: "LIVE";
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.detail-side-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-side-title {
    color: var(--wc-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-side-item:hover .detail-side-title {
    color: #0f766e;
}

.detail-side-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--wc-muted);
    font-size: 12px;
    line-height: 1.4;
}

.detail-side-nav {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-side-nav a {
    display: inline;
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.detail-side-nav a:hover {
    text-decoration: underline;
}

.detail-related-head {
    margin: 8px 0 16px;
}

.detail-related-head h2 {
    margin: 0;
    padding-left: 12px;
    position: relative;
    color: var(--wc-ink);
    font-size: 20px;
    font-weight: 800;
}

.detail-related-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--wc-accent), var(--wc-accent-2));
}

#sidebarContent {
    background: #fff;
}

#sidebarContent .navbar-brand {
    color: var(--wc-navy) !important;
    font-weight: 800;
    font-size: 15px;
}

#sidebarContent .navbar-brand::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

#sidebarContent .dropdown-nav-link {
    margin: 12px 12px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f6fa;
    color: var(--wc-ink);
    font-weight: 700;
}

.side-country-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px 24px;
}

#sidebarContent .sidebar-body {
    overflow: auto;
}

.show-more-arrow {
    color: #0f766e;
    font-weight: 700;
}

.a2a_kit {
    margin: 12px 0 4px;
}

/* Static pages */
main#content .mb-6 h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

main#content .mb-6 p {
    color: #3d4a60;
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */
footer .bg-gray-6820 {
    background: var(--wc-navy) !important;
}

footer a,
footer .nav-link,
footer .text-gray-6600,
footer .text-gray-6800,
footer p {
    color: rgba(255, 255, 255, 0.72) !important;
}

footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

footer .nav-link {
    font-weight: 600;
}

.go-to {
    background: var(--wc-navy) !important;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: var(--wc-shadow);
}

@media (max-width: 767.98px) {
    main#content .row.mx-n2 > .col-md-4,
    main#content .row.mx-n2 > .col-md,
    main#content .row.mx-n2 > .col-lg-3,
    main#content .row.row-cols-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #content .product-image img,
    #content .product-image .img-fluid {
        height: 118px !important;
    }

    #content .product {
        padding: 6px 6px 10px;
    }

    #content .product-title,
    #content .product_title {
        font-size: 13px !important;
    }

    .header .navbar-collapse {
        background: #101a2e;
        border-radius: 14px;
        padding: 8px 12px 14px;
        margin-top: 8px;
    }
}

@media (min-width: 1200px) {
    #content .product-image img,
    #content .product-image .img-fluid {
        height: 156px !important;
    }
}
