html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; padding: 0; font-family: 'Source Sans Pro', sans-serif; font-size: 18px; line-height: 2em; overflow-x: hidden; background: #111; color: #d8d8d8; }
a { transition: all 0.3s ease; color: #c7c7c7; }
a:hover { color: #7dd3fc; text-decoration: none; }
h1, h2, h3, p, li { color: #d8d8d8; }

.tm-site-header {
    position: absolute;
    z-index: 1000;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 40px;
}

.tm-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    width: auto;
    height: auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
}

.tm-brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    vertical-align: middle;
}


.tm-site-logo {
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
    display: inline-block;
    color: #ffffff;
}

.tm-site-name {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    color: #ffffff;
}

#tm-video-container { max-height: 350px; overflow: hidden; background-color: #000; }
#tm-hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.tm-bg-black { background-color: rgba(0,0,0,0.65); color: white; }
.tm-bg-gray { background-color: #1b1b1b; }
.tm-text-primary { color: #9ad7ff; }
.tm-text-secondary { color: #78d7d1; }

.tm-nav-link { color: white; font-size: 1.4rem; }
#tm-main-nav .nav-item .nav-link { border-bottom: 1px solid transparent; }
#tm-main-nav .nav-item.active .nav-link,
#tm-main-nav .nav-item:hover .nav-link { border-bottom: 1px solid white; color: white; }

.navbar-collapse {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    padding: 0;
}

.tm-welcome-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
}

.tm-welcome-container-inner {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.35);
    padding: 14px 18px;
    border-radius: 0;
    display: inline-block;
}

.tm-welcome-text { font-size: 1.6rem; color: #f0f0f0; }

.tm-search-box {
    max-width: 560px;
    width: calc(100% - 40px);
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    margin: 60px auto 0;
}

@media (max-width: 640px) {
    .tm-search-box {
        margin-top: 15px;
    }
}

.tm-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tm-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #333;
    background: #101010;
    color: #fff;
    border-radius: 8px;
}

.tm-search-input::placeholder { color: #8a8a8a; }

.tm-search-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn { padding: 15px 60px; font-size: 1.6rem; border: none; cursor: pointer; }
.btn-primary { background-color: #2b6cb0; }
.btn-primary:hover { background-color: #1d4f80; }

.tm-btn-animate { position: relative; overflow: hidden; backface-visibility: hidden; transition: all 0.3s ease; }
.tm-btn-animate:before { left: 0; top: -100%; position: absolute; height: 100%; width: 100%; transition: all 0.3s; font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 900; line-height: 1; }
.tm-btn-animate:after { content: ''; position: absolute; z-index: -1; transition: all 0.3s; }
.tm-btn-animate:hover:before { top: 13px; }
.tm-btn-animate span { display: inline-block; width: 100%; height: 100%; transition: all 0.3s; backface-visibility: hidden; }
.tm-btn-animate:hover span { transform: translateY(300%); }
.tm-btn-cta { color: white; background-color: rgba(0,0,0,0.35); }
.tm-btn-cta:before { font-size: 180%; }
.tm-icon-down:before { content: '\f078'; }
.tm-btn-cta:hover { color: white; }
.tm-btn-small { padding: 10.5px 35px; font-size: 1.2rem; }

#tm-video-control-button { position: absolute; bottom: 20px; right: 20px; z-index: 1000; color: #fff; }

.tm-content-container { max-width: 1422px; padding-top: 40px; padding-bottom: 35px; }
.tm-page-title { font-size: 2.5rem; color: #f2f2f2; }
.tm-catalog-item-list { justify-content: center; }
.tm-catalog-item { max-width: 220px; display: flex; flex-direction: column; margin: 0 18px 34px; align-items: center; }
.tm-thumbnail-container { overflow: hidden; }
.tm-thumbnail-container img { transition: all 0.3s ease; }
.tm-thumbnail-container:hover img { transform: scale(1.2) rotate(5deg); }

.tm-embed-container { width: 100%; max-width: 220px; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin: 0 auto 10px; }
.tm-embed-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.tm-catalog-item-description {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    flex: 1;
    font-size: 0.9rem;
    background: #1b1b1b;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
}

.tm-catalog-item-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.4rem !important;
    color: #f2f2f2;
    text-align: center;
}

.tm-catalog-item-text {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #cfcfcf;
    text-align: center;
}

.tm-catalog-item-description p { margin-bottom: 0; }

.tm-categories-container { display: flex; align-items: center; }
.tm-categories-text { margin-right: 16px; }
.tm-category-list { font-size: 1.75rem; }
.tm-category-item { margin: 16px; }
.tm-category-link { color: #9ad7ff; padding: 10px; border-bottom: 3px solid transparent; }
.tm-category-link.active,
.tm-category-link:hover { border-bottom: 3px solid #9ad7ff; color: #9ad7ff; }

.tm-paging-link {
    background-color: #1b1b1b;
    color: #d8d8d8;
    margin-right: 12px;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.nav-item.active > .tm-paging-link,
.nav-item:hover > .tm-paging-link { background-color: #333; color: #fff; }

.tm-subscribe-form { display: flex; align-items: center; }
.tm-subscribe-form > input { padding: 12px 15px; margin-right: 20px; flex: 1; max-width: 382px; background: #101010; color: #fff; border: 1px solid #333; border-radius: 8px; }
.tm-subscribe-form > input::placeholder { color: #8a8a8a; }
.tm-footer-links > li { margin-bottom: 10px; }
.tm-footer-links a { color: #c7c7c7; }
.tm-footer-links a:hover { color: #7dd3fc; }

video { width: 100%; height: auto; }

@media (min-width: 992px) {
    #tm-main-nav .nav-item { margin: 20px 40px; }
    .navbar-expand-lg .navbar-nav .nav-link { padding: 8px 0px; }
    .navbar-expand-lg .navbar-collapse { justify-content: flex-end; }
}

@media (max-width: 1419px) {
    .tm-catalog-item { margin-bottom: 30px; }
}

@media (max-width: 991px) {
    .navbar { max-width: 220px; position: absolute; top: 0; right: 0; padding: 0; }
    .navbar-collapse { background-color: rgba(0,0,0,0.35); border-radius: 0; padding: 10px 15px; }
    .nav-item { margin-bottom: 10px; }
    .navbar-toggler { border-bottom-left-radius: 0; border-bottom-right-radius: 0; width: 52px; height: 40px; }
    .navbar-toggler.collapsed { border-bottom-left-radius: .25rem; border-bottom-right-radius: .25rem; }
    .navbar-toggler i.tm-menu-opened-icon { display: block; }
    .navbar-toggler i.tm-menu-closed-icon { display: none; }
    .navbar-toggler.collapsed i.tm-menu-opened-icon { display: none; }
    .navbar-toggler.collapsed i.tm-menu-closed-icon { display: block; }
    .tm-welcome-container-inner { margin-top: 30px; }
    .tm-welcome-text { font-size: 1.4rem; }
    #tm-video-container { max-height: 250px; }
    .tm-logo-container { padding: 10px 12px; }
    .tm-brand-inline { gap: 5px; }
    .tm-site-logo { font-size: 1rem; margin: 0; }
    .tm-site-name { font-size: 1.15rem; }
    .tm-site-header { padding: 15px 40px; }
    .tm-catalog-item-list { max-width: 924px; }
    .tm-embed-container { max-width: 200px; }
    .tm-catalog-item-description { max-width: 200px; }
    .tm-catalog-item-title { font-size: 0.98rem; }
    .tm-catalog-item-text { font-size: 0.82rem; }
}

@media (max-width: 879px) {
    .tm-categories-container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .tm-search-form { flex-direction: column; align-items: stretch; }
    .tm-search-button { width: 100%; }

    .tm-subscribe-form { flex-direction: column; align-items: stretch; }
    .tm-subscribe-form > input { max-width: 100%; }
    .tm-subscribe-form input { margin-right: 0; margin-bottom: 15px; }
    .tm-embed-container { max-width: 180px; }
    .tm-catalog-item-description { max-width: 180px; }
    .tm-catalog-item-title { font-size: 0.92rem; }
    .tm-catalog-item-text { font-size: 0.78rem; }
}
/* ===== 2026 OPTIMIZATION ===== */

/* Logo */
.tm-logo-container{
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(4px);
    border-radius:4px;
}

/* Menu */
@media (min-width:992px){

    .navbar-expand-lg .navbar-collapse{
        justify-content:flex-end;
        flex-grow:0;
    }

    .navbar-collapse{
        background:rgba(0,0,0,.35);
        backdrop-filter:blur(4px);
        padding:0 20px;
    }

    #tm-main-nav .nav-item{
        margin:20px 22px;
    }
}

/* Search */
.tm-search-box{
    max-width:460px;
    padding:8px 12px;
    background:rgba(0,0,0,.25);
    border-radius:4px;
}

.tm-search-input{
    padding:10px 14px;
    font-size:.95rem;
}

.tm-search-button{
    padding:8px 16px;
    font-size:.85rem;
}

/* Video cards */
.tm-catalog-item{
    margin:0 10px 20px;
}

.tm-embed-container{
    margin-bottom:0;
}

.tm-catalog-item-description{
    margin-top:0;
    border-top-left-radius:0;
    border-top-right-radius:0;
    padding-top:12px;
    padding-bottom:12px;
}

.tm-embed-container iframe{
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}

.tm-page-title{
    margin-bottom:20px !important;
}

/* Mobile */
@media (max-width:640px){

    .tm-search-box{
        max-width:95%;
    }

    .tm-search-input{
        font-size:.9rem;
    }
}
.tm-catalog-item-list {
    margin-left: -10px;
    margin-right: -10px;
}

.tm-catalog-item {
    margin-left: 1px;
    margin-right: 1px;
}