#homePage {
    transition: background-color 0.25s ease, color 0.25s ease;
}

.home-hero {
    height: 400px;
    position: relative;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 22, 35, 0.35) 0%, rgba(14, 22, 35, 0.7) 100%);
    pointer-events: none;
}

.home-hero-controls {
    position: relative;
    z-index: 2;
    width: min(92vw, 760px);
    display: flex;
    align-items: center;
    gap: 0;
}

#homeSearchForm {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

#homeSearchForm .tm-search-input {
    width: 100%;
    flex: 1;
    border-radius: 10px;
    color: #253245;
    font-weight: 500;
}

#homeSearchForm .tm-search-input::placeholder {
    color: #5c6673;
}

.home-empty-state {
    border: 1px dashed #cad2de;
    border-radius: 12px;
    padding: 32px 14px;
    margin-top: -40px;
    margin-bottom: 50px;
    text-align: center;
    background: #f8fbff;
    color: #4f5f73;
}

.home-empty-state i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.home-empty-state p {
    margin: 0;
    color: inherit;
}

.page-home .tm-container-content {
    background: #ffffff;
    border-radius: 20px;
    padding-top: 24px;
}

.page-home .tm-footer {
    border-top: 1px solid #eceff4;
}

body[data-theme="dark"] {
    background: #0f1724;
    color: #d4dbe6;
}

body[data-theme="dark"] .navbar {
    background: #131f31 !important;
    border-bottom: 1px solid #203048;
}

body[data-theme="dark"] .navbar .nav-link {
    color: #c9d5e6;
}

body[data-theme="dark"] .tm-container-content,
body[data-theme="dark"] .tm-footer,
body[data-theme="dark"] .home-empty-state {
    background: #111b2b;
}

body[data-theme="dark"] .tm-text-primary {
    color: #ff786d;
}

body[data-theme="dark"] .tm-text-gray,
body[data-theme="dark"] p {
    color: #aeb8c8;
}

body[data-theme="dark"] .video-card-title {
    color: #edf2fa;
}

body[data-theme="dark"] .video-card-description {
    color: #9fb0c8;
}

body[data-theme="dark"] .tm-paging-link {
    background: #1d2d46;
    color: #cad5e6;
}

body[data-theme="dark"] .tm-paging-link:hover,
body[data-theme="dark"] .tm-paging-link.active {
    background-color: #ff6255;
    color: #fff;
}

body[data-theme="dark"] #homeSearchForm {
    background: rgba(20, 31, 49, 0.95);
    box-shadow: 0 12px 28px rgba(1, 7, 19, 0.55);
}

body[data-theme="dark"] #homeSearchForm .tm-search-input {
    background: #0e1827;
    color: #d5e0f1;
}

body[data-theme="dark"] #homeSearchForm .tm-search-input::placeholder {
    color: #8ea2be;
}

body[data-theme="dark"] .home-empty-state {
    border-color: #2f425f;
    color: #b8c4d6;
}

@media (max-width: 768px) {
    .home-hero-controls {
        width: min(92vw, 580px);
    }
}
