#my-video {
  position:relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.video-responsive {
  position: relative;
  padding-bottom: 177%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* or contain */
}
.error {
    background-color: red;
}
.notification-badge {
    position: relative;
    display: inline-block;
}

.badge-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    padding: 0 5px;
    background: #dc3545;
    color: white;
}

/* ===== Transferred from base.html inline styles ===== */
:root {
            --primary-color: #3498db;
            --secondary-color: #2ecc71;
            --accent-color: #e74c3c;
            --light-bg: #f8f9fa;
            --dark-bg: #343a40;
        }
        html, body {
            width: 100%;
            min-width: 100%;
            overflow-x: hidden;
        }
        
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
            background-color: var(--light-bg);
            color: #333;
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        .navbar {
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 0.6rem 1rem;
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-right: 1.5rem;
        }
        
        /* 瀵艰埅鏍忔洿绱у噾鐨勬牱寮?*/
        .nav-link {
            font-weight: 500;
            padding: 0.4rem 0.7rem;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .nav-link:hover {
            color: var(--primary-color);
        }
        
        .dropdown-menu {
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-radius: 0.5rem;
            min-width: 10rem;
        }
        
        .dropdown-item {
            padding: 0.5rem 1rem;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        
        .dropdown-item:hover {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }
        
        /* 涓诲鑸皟鏁翠负绱у噾鍨?*/
        .main-nav .nav-item {
            margin-right: 0.2rem;
        }
        
        /* 璋冩暣鎼滅储妗嗗搴?*/
        .search-form input {
            width: 160px;
        }
        
        .hero-carousel {
            margin-bottom: 2rem;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        }
        
        .hero-carousel .carousel-item img {
            height: 400px;
            object-fit: cover;
            width: 100%;
        }
        
        .carousel-control-prev,
        .carousel-control-next {
            width: 40px;
            height: 40px;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
        }
        
        .carousel-control-prev {
            left: 10px;
        }
        
        .carousel-control-next {
            right: 10px;
        }
        
        .card {
            border: none;
            border-radius: 0.5rem;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border: none;
            border-radius: 0.4rem;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
        }
        
        .btn-primary:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .badge-cart {
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 0.7rem;
        }
        
        .search-form {
            position: relative;
            margin-right: 0.5rem;
        }
        
        .search-form input {
            border-radius: 2rem;
            padding-right: 2.5rem;
            border: 1px solid #e0e0e0;
            font-size: 0.9rem;
        }
        
        .search-form button {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            border: none;
            background: transparent;
            padding: 0 0.75rem;
        }
        
        /* 鐢ㄦ埛鎺т欢璋冩暣 */
        .user-controls {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        
        .user-controls .user-greeting {
            font-size: 0.9rem;
            margin-right: 0.5rem;
        }
        
        .user-controls .btn {
            padding: 0.375rem 0.75rem;
            font-size: 0.875rem;
        }
        
        footer {
            background-color: var(--dark-bg);
            color: #fff;
            padding: 3rem 0;
            margin-top: 3rem;
        }
        
        .footer-links h5 {
            color: #fff;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }
        
        .footer-links ul {
            list-style: none;
            padding-left: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-links a:hover {
            color: #fff;
        }
        
        .social-icons a {
            margin-right: 1rem;
            color: rgba(255,255,255,0.7);
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            color: #fff;
            transform: translateY(-3px);
        }
        
        .copyright {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 1.5rem;
            margin-top: 2rem;
        }
        
        /* 鍝嶅簲寮忚皟鏁?*/
        @media (max-width: 1199px) {
            .nav-link {
                padding: 0.4rem 0.5rem;
                font-size: 0.9rem;
            }
        }
        
        @media (min-width: 992px) and (max-width: 1199px) {
            .search-form input {
                width: 120px;
            }
        }
        
        /* 骞虫澘璁惧鍝嶅簲寮?*/
        @media (max-width: 991px) {
            .hero-carousel .carousel-item img {
                height: 300px;
            }
            
            .search-form {
                margin-right: 0;
                margin-bottom: 0.5rem;
            }
            
            .search-form input {
                width: 100%;
            }
            
            .user-controls {
                flex-wrap: wrap;
                justify-content: flex-start;
            }
            
            .user-controls .user-greeting {
                width: 100%;
                margin-bottom: 0.5rem;
                margin-right: 0;
            }
            
            .navbar-brand {
                font-size: 1.3rem;
            }
        }
        
        /* 鎵嬫満绔搷搴斿紡 */
        @media (max-width: 767px) {
            .navbar {
                padding: 0.5rem 0.75rem;
            }
            
            .navbar-brand {
                font-size: 1.2rem;
                margin-right: 0.5rem;
            }
            
            .nav-link {
                padding: 0.5rem 0.75rem;
                font-size: 0.9rem;
            }
            
            .dropdown-menu {
                border-radius: 0.3rem;
                margin-top: 0.25rem;
            }
            
            .hero-carousel {
                margin-bottom: 1.5rem;
                border-radius: 0.3rem;
            }
            
            .hero-carousel .carousel-item img {
                height: 200px;
            }
            
            .carousel-control-prev,
            .carousel-control-next {
                width: 30px;
                height: 30px;
            }
            
            .carousel-control-prev {
                left: 5px;
            }
            
            .carousel-control-next {
                right: 5px;
            }
            
            .container {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
            }
            
            .navbar-collapse {
                margin-top: 0.75rem;
            }
            
            .navbar-collapse .d-flex {
                flex-direction: column;
                width: 100%;
            }
            
            .search-form {
                width: 100%;
                margin-right: 0;
                margin-bottom: 0.75rem;
            }
            
            .search-form input {
                width: 100%;
                font-size: 0.875rem;
            }
            
            .user-controls {
                width: 100%;
                flex-direction: column;
                align-items: stretch;
            }
            
            .user-controls .user-greeting {
                width: 100%;
                margin-bottom: 0.5rem;
                margin-right: 0;
                font-size: 0.85rem;
                text-align: center;
                display: block;
            }
            
            .user-controls .btn {
                width: 100%;
                margin-bottom: 0.5rem;
                margin-right: 0 !important;
            }
            
            .user-controls .btn:last-child {
                margin-bottom: 0;
            }
            
            .main-nav {
                margin-bottom: 0.5rem;
            }
            
            footer {
                padding: 2rem 0;
                margin-top: 2rem;
            }
            
            footer .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .footer-links h5 {
                font-size: 1rem;
                margin-bottom: 1rem;
            }
            
            .footer-links ul {
                margin-bottom: 1.5rem;
            }
            
            .copyright {
                padding-top: 1rem;
                margin-top: 1.5rem;
            }
        }
        
        /* 灏忓睆鎵嬫満鍝嶅簲寮?*/
        @media (max-width: 575px) {
            .navbar-brand {
                font-size: 1.1rem;
            }
            
            .hero-carousel .carousel-item img {
                height: 180px;
            }
            
            .carousel-control-prev,
            .carousel-control-next {
                width: 25px;
                height: 25px;
            }
            
            .nav-link {
                font-size: 0.85rem;
                padding: 0.4rem 0.6rem;
            }
            
            .dropdown-item {
                font-size: 0.85rem;
                padding: 0.4rem 0.75rem;
            }
            
            .container {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
            
            footer .container {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
            }
        }
        
        /* 瓒呭皬灞忔墜鏈哄搷搴斿紡 */
        @media (max-width: 375px) {
            .navbar-brand {
                font-size: 1rem;
            }
            
            .hero-carousel .carousel-item img {
                height: 150px;
            }
            
            .carousel-control-prev,
            .carousel-control-next {
                width: 20px;
                height: 20px;
            }
            
            .nav-link {
                font-size: 0.8rem;
                padding: 0.35rem 0.5rem;
            }
        }
        
        /* 娑堟伅閫氱煡鐩稿叧鏍峰紡 */
        .message-notification {
            font-size: 1rem;
            color: #0d6efd;
            transition: all 0.2s;
        }
        
        .message-notification:hover {
            color: #0a58ca;
            transform: scale(1.1);
        }
        
        .message-count {
            font-size: 0.65rem;
            font-weight: bold;
            padding: 0.15rem 0.35rem;
            min-width: 1rem;
            height: 1rem;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-greeting {
            margin-right: 0.5rem;
            display: inline-flex;
            align-items: center;
        }

