/* ============================
   GLOBAL RESET & BASE
============================ */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: Arial, Tahoma, sans-serif;
    background: #f2f2f2;
    margin: 0;
    color: #222;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================
   LAYOUT
============================ */
.homecontainer {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 0 40px;
}

/* ============================
   SECTION TITLE
============================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    font-size: 19px;
    font-weight: bold;
    color: #111;
    border-right: 4px solid #fc0f3b;
    padding-right: 12px;
}
.section-title .icon { font-size: 20px; }

/* ============================
   VIDEO GRID
============================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 6px;
}

/* ============================
   VIDEO CARD
============================ */
.video-card-link { display: block; color: inherit; text-decoration: none; }
.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    position: relative;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* Thumbnail */
.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    position: relative;
    overflow: hidden;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.video-card:hover .thumbnail img { transform: scale(1.04); }

/* Play icon */
.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #fff;
    background: rgba(0,0,0,.28);
    opacity: 0;
    transition: opacity .25s;
}
.video-card:hover .play-icon { opacity: 1; }

/* Views badge */
.view-count {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pinned badge */
.pinned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fc0f3b;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}

/* Video info */
.video-info { padding: 12px; }

.vidtitle {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111;
}

.categories-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    gap: 6px;
}
.cat-label {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* ============================
   PINNED SECTION
============================ */
.pinned-section {
    background: linear-gradient(135deg, #fff5f6, #fff);
    border: 1px solid #ffd0d8;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 8px;
}

/* ============================
   FEATURED CATEGORIES
============================ */
.featured-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 24px;
}
.cat-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: .2s;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.cat-pill:hover {
    background: #fc0f3b;
    color: #fff;
    border-color: #fc0f3b;
}
.cat-pill span { font-size: 11px; color: inherit; opacity: .7; margin-right: 4px; }

/* ============================
   TRENDING GRID
============================ */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

/* ============================
   SWIPER
============================ */
.swiper { padding-bottom: 36px !important; }

/* ============================
   PAGINATION
============================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: .2s;
    color: #333;
}
.pagination a:hover { background: #fc0f3b; color: #fff; border-color: #fc0f3b; }
.pagination a.active { background: #fc0f3b; color: #fff; border-color: #fc0f3b; font-weight: bold; }
.pagination .dots { background: transparent; border-color: transparent; color: #999; }

/* ============================
   BREADCRUMB
============================ */
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 12px; }
.breadcrumb a { color: #fc0f3b; }
.breadcrumb span { margin: 0 5px; }

/* ============================
   SITE DESCRIPTION
============================ */
.sitedescription {
    margin: 40px 0 0;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    line-height: 1.8;
    border: 1px solid #eee;
}
.sitedescription h2 { font-size: 20px; margin-bottom: 10px; color: #111; }
.sitedescription h3 { font-size: 16px; margin: 18px 0 8px; color: #222; }
.sitedescription p  { font-size: 14px; color: #555; }

/* ============================
   SEARCH HERO
============================ */
.search-hero {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 28px;
    border-radius: 14px;
    margin-bottom: 28px;
    text-align: center;
}
.search-hero h2 { color: #fff; margin: 0 0 16px; font-size: 20px; }
.search-hero form { display: flex; gap: 8px; max-width: 500px; margin: auto; }
.search-hero input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    outline: none;
}
.search-hero button {
    padding: 12px 24px;
    background: #fc0f3b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}
.search-hero button:hover { background: #e0082a; }

/* Search suggestions */
.suggest-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 99;
    text-align: right;
}
.suggest-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: .15s;
}
.suggest-item:hover { background: #fc0f3b; color: #fff; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 16px; }
    .vidtitle { font-size: 13px; }
}

@media (max-width: 480px) {
    /*.video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }*/
    .featured-categories { gap: 7px; }
    .cat-pill { font-size: 12px; padding: 5px 12px; }
}
