/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1570px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-bottom: 2px solid #dc2626;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(220, 38, 38, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo a {
    color: white;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.main-nav a.active {
    background: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #dc2626;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 2px solid #dc2626;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li {
    border-bottom: 1px solid #333;
}

.mobile-nav a {
    display: block;
    padding: 15px 10px;
    color: #e0e0e0;
    font-weight: 500;
    position: relative;
}

.mobile-nav a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.mobile-nav a.active {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    font-weight: 600;
}

.mobile-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #dc2626;
    border-radius: 0 4px 4px 0;
}

/* Main Content */
.site-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 2px solid #dc2626;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 10px;
    text-align: center;
}

.hero-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #e0e0e0;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 2px;
}

/* Section Header (Title + Button) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
    flex: 1;
}

/* Advertisement Section */
.ads-section {
    margin: 0 0 10px 0;
}

.ads-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
}

.ad-item {
    display: block;
    width: 100%;
    position: relative;
    line-height: 0;
}

.ad-item img {
    width: 100%;
    height: 55px;
    display: block;
}


/* Thomo Section (Main Stream + Chat) */
.thomo-section {
    margin-bottom: 50px;
}

/* Stream Navigation */
.stream-nav {
    display: flex; /* Show stream nav */
}

.stream-nav-link {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid #dc2626;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.stream-nav-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5);
}

.thomo-container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 5px;
    margin-bottom: 30px;
}

.thomo-player {
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    display: flex;
    flex-direction: column;
    height: 700px;
}

.thomo-player .stream-nav {
    display: flex;
    background: #0a0a0a;
    border-bottom: 2px solid #dc2626;
    flex-shrink: 0;
    padding: 4px;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.thomo-player .stream-nav::-webkit-scrollbar {
    display: none;
}

.thomo-player .stream-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.thomo-player .stream-nav .stream-nav-link {
    flex: 0 0 auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.thomo-player .stream-nav .stream-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(220, 38, 38, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thomo-player .stream-nav .stream-nav-link:hover {
    color: #dc2626;
    border-color: #dc2626;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.thomo-player .stream-nav .stream-nav-link:hover::before {
    opacity: 1;
}

.thomo-player .stream-nav .stream-nav-link.active {
    color: white;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: #dc2626;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.thomo-player .stream-nav .stream-nav-link.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
}

.thomo-player .stream-nav .stream-nav-link.active::after {
    display: none;
}

.player-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    background: #000;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-wrapper .no-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stream-info {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
}

.stream-info h3 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.stream-info p {
    color: #999;
    line-height: 1.6;
}

.thomo-chat {
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    display: flex;
    flex-direction: column;
    height: 700px;
}

/* Chat Tabs Wrapper */
.chat-tabs-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 2px solid #dc2626;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Chat Tabs Container */
.chat-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 8px 6px 8px;
}

.chat-tabs::-webkit-scrollbar {
    height: 4px;
}

.chat-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.chat-tabs::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 2px;
}

.chat-tabs::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

/* Chat Tab Buttons & Links */
.chat-tab {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

/* Individual Tab Backgrounds */
.chat-tab:nth-child(1) {
    background: linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(58, 21, 21, 0.9) 100%);
}

.chat-tab:nth-child(2) {
    background: linear-gradient(135deg, rgba(10, 26, 10, 0.9) 0%, rgba(21, 58, 21, 0.9) 100%);
}

.chat-tab:nth-child(3) {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.9) 0%, rgba(21, 21, 58, 0.9) 100%);
}

.chat-tab:nth-child(4) {
    background: linear-gradient(135deg, rgba(26, 10, 26, 0.9) 0%, rgba(58, 21, 58, 0.9) 100%);
}

.chat-tab:nth-child(5) {
    background: linear-gradient(135deg, rgba(10, 26, 26, 0.9) 0%, rgba(21, 58, 58, 0.9) 100%);
}

/* Tab Icon & Label */
.chat-tab .tab-icon {
    display: none; /* Hide icons */
}

.chat-tab .tab-label {
    font-size: 13px;
    font-weight: 600;
}

/* Hover Effects */
.chat-tab:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(153, 27, 27, 0.3) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: #fff;
}

/* Active State */
.chat-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

.chat-tab.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Link Tab Specific (Tải App, Telegram) */
.chat-tab-link:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4) 0%, rgba(153, 27, 27, 0.4) 100%);
}

/* Chat Tab Content */
.chat-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.chat-tab-content.active {
    display: flex;
    flex-direction: column;
}

.chat-tab-content iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    display: block;
    border: none;
}

.chat-tab-content .no-chat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* Posts List in Chat Tabs */
.posts-list {
    padding: 15px;
    background: #1a1a1a;
    flex: 1;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.posts-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-item:hover {
    background: #2a2a2a;
    border-color: #dc2626;
    transform: translateX(5px);
}

.post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.post-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-item-content h4 {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item-content .post-date {
    font-size: 12px;
    color: #999;
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.thomo-chat iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
}

.thomo-chat .no-chat {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* Grid Layouts */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Stream Card */
.stream-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.stream-card-content {
    padding: 20px;
}

.stream-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.stream-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stream-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Post Card */
.post-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 15px;
}

.post-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.post-card-meta {
    display: none;
}

.post-card-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-badge {
    display: none;
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.6);
}

/* Stream Description Section */
.stream-description-section {
    margin-bottom: 50px;
}

.stream-description {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
    line-height: 1.8;
    color: #e0e0e0;
}

.stream-description h1,
.stream-description h2,
.stream-description h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.stream-description p {
    margin-bottom: 15px;
}

.stream-description ul,
.stream-description ol {
    margin: 15px 0;
    padding-left: 30px;
}

.stream-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    padding: 8px 14px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #2a2a2a;
    border-color: #dc2626;
    color: #dc2626;
}

.pagination-number.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-color: transparent;
}

/* Page Title */
.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-align: center;
}

/* Filter Section */
.filter-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.filter-input::placeholder {
    color: #666;
}

.filter-select {
    cursor: pointer;
    background: #0a0a0a;
}

.filter-group .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-group .btn:not(.btn-secondary) {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.filter-group .btn:not(.btn-secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5);
}

.filter-group .btn-secondary {
    background: #1a1a1a;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.filter-group .btn-secondary:hover {
    background: #2a2a2a;
}

.filter-group .btn-secondary:hover {
    background: #2a2a2a;
}

.filter-info {
    margin-top: 20px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 14px;
    color: #999;
}

.filter-info strong {
    color: #dc2626;
}

/* Footer */
.site-footer {
    background: #000000;
    border-top: 2px solid #dc2626;
    color: white;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #dc2626;
    font-weight: 700;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #dc2626;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #dc2626;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-disclaimer {
    color: #ff4444 !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Ads Mobile - 1 column no gap */
    .ads-container {
        grid-template-columns: 1fr;
        gap: 0;
        
    }
    .ad-item img {
    height: 45px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-section h2 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    /* Filter Form Mobile */
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-group .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Thomo responsive - 1 column on mobile */
    .thomo-container {
        grid-template-columns: 1fr;
    }
    
    .thomo-player {
        height: auto;
    }
    
    .player-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
        flex: none;
    }
    
    .player-wrapper iframe,
    .player-wrapper .no-stream {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .thomo-player .stream-nav {
        padding: 8px;
        gap: 6px;
    }
    
    .thomo-player .stream-nav .stream-nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .thomo-chat {
        height: 600px;
    }
    
    .thomo-chat iframe {
        height: 100%;
    }
    
    .thomo-chat .no-chat {
        height: 100%;
    }
    
    /* Chat Tabs Mobile */
    .chat-tabs {
        padding: 6px 6px 4px 6px;
        gap: 3px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .chat-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .chat-tab {
        min-width: 85px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .chat-tab .tab-icon {
        display: none; /* Hide icons on mobile */
    }
    
    .chat-tab .tab-label {
        font-size: 11px;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-card-img {
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-content {
        padding: 20px 0;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    .ad-item img {
    height: 45px;
    }
}

/* Post Detail Page */
.post-detail {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #dc2626;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #991b1b;
}

.breadcrumb .current {
    color: #e0e0e0;
    font-weight: 500;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.category-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-header h1 {
    font-size: 36px;
    color: #e0e0e0;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 12px;
    /* flex-wrap: wrap; */
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 30px 0 15px;
    color: #e0e0e0;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 32px;
}

.post-content h2 {
    font-size: 28px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content h4 {
    font-size: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid #dc2626;
    padding: 15px 20px;
    margin: 20px 0;
    background: #0a0a0a;
    font-style: italic;
    color: #999;
}

.post-content code {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #dc2626;
}

.post-content a {
    color: #dc2626;
    text-decoration: underline;
}

.post-content a:hover {
    color: #991b1b;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #333;
}

/* Video Section */
.video-section {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
    line-height: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.episodes-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
}

.episodes-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scroll-behavior: smooth;
    grid-auto-rows: min-content;
}

.episodes-grid::-webkit-scrollbar {
    width: 8px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

.episodes-grid::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

.episode-btn {
    padding: 14px 18px;
    background: linear-gradient(135deg, #1f1f1f 0%, #151515 100%);
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 10px;
}

.episode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.episode-btn:hover::before {
    opacity: 1;
}

.episode-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.episode-btn.active::before {
    opacity: 0;
}

/* Responsive for Post Detail */
@media (max-width: 768px) {
    .post-detail {
        padding: 25px 20px;
    }
    
    .post-header h1 {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h1 {
        font-size: 26px;
    }
    
    .post-content h2 {
        font-size: 22px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    /* Video Section Mobile */
    .video-section {
        margin: 20px 0;
        grid-template-columns: 1fr;
    }
    
    .video-player {
        border-radius: 8px;
    }
    
    .episodes-section {
        padding: 18px;
        border-radius: 8px;
    }
    
    .episodes-title {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
        max-height: 200px;
    }
    
    .episode-btn {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .episode-btn:hover {
        transform: translateY(-2px);
    }
}

/* Desktop: 70/30 layout for video section */
@media (min-width: 769px) {
    .video-section {
        display: flex;
        gap: 25px;
        align-items: stretch;
    }
    
    .video-player {
        flex: 0 0 70%;
    }
    
    .episodes-section {
        flex: 0 0 calc(30% - 25px);
        display: flex;
        flex-direction: column;
    }
    
    .episodes-title {
        flex-shrink: 0;
    }
    
    .episodes-grid {
        flex: 1;
        overflow-y: auto;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: min-content;
        min-height: 0;
    }
}

