.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 40rem;
    display: flex;
    align-items: center;
}
.hero-content {
    padding-top: 8rem;
}
.hero-stats .stat-item span {
    color: white;
    padding-bottom: 1rem;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.episode-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    margin-top: 15rem !important;
}
form.filter-form div.input-group span {
    padding: .5rem 1rem;
}
.input-group-text {
    height: 50px;
}
div.view-controls div.btn-group button {
    height: 50px;
    padding: .5rem 1.5rem;
    position: relative;
}
div.view-controls div.btn-group {
    position: relative;
    left: 10rem;
}
.stats-grid .stat-item {
    padding: .2rem;
    cursor: pointer;
}
.stat-content span {
    font-size: .6rem !important;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stats .stat-item {
    text-align: center;
    color: white;
}
.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-content-section {
    padding: 4rem 0;
    background: #f8f9fa;
}
.forum-controls {
    margin-bottom: 2rem;
}
.controls-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.filter-form .input-group {
    border-radius: 12px;
    overflow: hidden;
}
.filter-form .input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
}
.filter-form .form-select {
    border: 2px solid #e9ecef;
    border-left: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
}
.filter-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
.view-controls .btn-group {
    border-radius: 12px;
    overflow: hidden;
}
.view-controls .btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}
.view-controls .btn:hover,
.view-controls .btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}
.forum-topics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.forum-topic-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.forum-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.forum-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.topic-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.topic-avatar {
    flex-shrink: 0;
}
.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}
.topic-info {
    flex: 1;
}
.topic-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.topic-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.topic-title a:hover {
    color: #667eea;
}
.topic-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.topic-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}
.meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}
.topic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.stat-group {
    display: flex;
    gap: 1.5rem;
}
.stat-group .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}
.stat-group .stat-item i {
    color: #667eea;
}
.topic-participants {
    display: flex;
    align-items: center;
}
.participants-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    position: relative;
}
.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-initial {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}
.participant-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.empty-state-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}
.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}
.forum-sidebar {
    position: sticky;
    top: 2rem;
}
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.sidebar-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}
.sidebar-card .card-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stats-grid .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.stats-grid .stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.stat-content {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.latest-topic {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.latest-topic:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.topic-thumb {
    flex-shrink: 0;
}
.thumb-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.topic-content {
    flex: 1;
    min-width: 0;
}
.topic-content .topic-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.topic-content .topic-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.topic-content .topic-title a:hover {
    color: #667eea;
}
.topic-date {
    font-size: 0.75rem;
    color: #6c757d;
}
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.action-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}
.action-btn i {
    width: 20px;
    text-align: center;
}
.communities-section {
    padding: 4rem 0;
    background: white;
}
.section-header {
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.community-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.community-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.community-avatar {
    flex-shrink: 0;
}
.community-avatar .avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}
.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.community-info {
    flex: 1;
}
.community-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.community-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}
.community-title a:hover {
    color: #667eea;
}
.community-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.community-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.community-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}
.community-meta .meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}
.community-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}
.community-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}
.community-stats .stat-item i {
    color: #667eea;
}
.community-stats .stat-item small {
    font-size: 0.75rem;
    opacity: 0.7;
}
.community-actions {
    display: flex;
    gap: 0.75rem;
}
.community-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.community-controls {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.community-controls .form-control,
.community-controls .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}
.community-controls .form-control:focus,
.community-controls .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
.community-controls .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid #e9ecef;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
}
.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}
@media (max-width: 991px) {
    .hero-stats {
        gap: 1rem;
    }
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    .topic-header {
        flex-direction: column;
        text-align: center;
    }
    .topic-avatar {
        align-self: center;
    }
    .topic-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .forum-sidebar {
        position: static;
        margin-top: 2rem;
    }
}
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .controls-card {
        padding: 1rem;
    }
    .view-controls .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .forum-topic-card {
        padding: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .communities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .community-card {
        padding: 1rem;
    }
    .community-header {
        flex-direction: column;
        text-align: center;
    }
    .community-avatar {
        align-self: center;
    }
    .community-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .community-actions {
        flex-direction: column;
    }
    .community-controls {
        padding: 1rem;
    }
    .community-controls .row {
        gap: 1rem;
    }
}
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #c4afd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.forum-topic-card {
    animation: fadeInUp 0.6s ease forwards;
}
.forum-topic-card:nth-child(1) {
    animation-delay: 0.1s;
}
.forum-topic-card:nth-child(2) {
    animation-delay: 0.2s;
}
.forum-topic-card:nth-child(3) {
    animation-delay: 0.3s;
}
.forum-topic-card:nth-child(4) {
    animation-delay: 0.4s;
}
.forum-topic-card:nth-child(5) {
    animation-delay: 0.5s;
}
.filter-form .form-select,
.filter-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.filter-form .form-select:focus,
.filter-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
.filter-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.filter-form .form-check {
    margin-bottom: 0.5rem;
}
.filter-form .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
}
.filter-form .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}
.filter-form .form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
}
.filter-form .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.filter-form .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}
.sidebar-card {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.sidebar-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1rem 1.25rem;
}
.sidebar-card .card-title {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}
.sidebar-card .card-body {
    padding: 1.25rem !important;
}
#loading-indicator {
    position: relative;
    z-index: 1000;
}
#loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}
#forum-topics-container {
    transition: opacity 0.3s ease;
}
.forum-topic-card {
    transition: all 0.3s ease;
}
.ajax-filter:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
.ajax-search:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
.ajax-filter:disabled,
.ajax-search:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.filter-success {
    animation: filterSuccess 0.5s ease;
}
@keyframes filterSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
@media (max-width:1199px){
.hero-section{min-height:36rem}
.hero-content{padding-top:6rem}
.section-title{font-size:2.2rem}
.section-subtitle{font-size:1rem}
}
@media (max-width:991px){
.hero-section{min-height:32rem}
.hero-title{font-size:2.2rem}
.hero-subtitle{font-size:1.05rem}
.hero-stats{gap:1rem}
.hero-stats .stat-number{font-size:1.6rem}
.forum-controls .controls-card{padding:1.25rem}
.topic-title{font-size:1.1rem}
.community-title{font-size:1.1rem}
.section-title{font-size:2rem}
.communities-grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}
}
@media (max-width:768px){
.hero-section{min-height:28rem}
.hero-content{padding-top:4.5rem}
.hero-title{font-size:1.9rem}
.hero-subtitle{font-size:1rem}
.hero-actions .btn{width:100%;margin:0 0 .5rem 0}
.topic-header{flex-direction:column;text-align:center}
.topic-title{font-size:1.05rem}
.topic-excerpt{font-size:.9rem}
.stat-group{gap:.75rem}
.section-title{font-size:1.8rem}
.section-subtitle{font-size:.98rem}
.communities-grid{grid-template-columns:1fr}
.community-description{font-size:.92rem}
}
@media (max-width:575px){
.hero-section{min-height:26rem}
.hero-title{font-size:1.7rem}
.hero-subtitle{font-size:.95rem}
.hero-stats .stat-number{font-size:1.4rem}
.hero-stats .stat-label{font-size:.8rem}
.controls-card{padding:1rem}
.topic-title{font-size:1rem}
.community-title{font-size:1rem}
.section-title{font-size:1.6rem}
.section-subtitle{font-size:.9rem}
.pagination-wrapper{margin-top:1.25rem}
}
@media (max-width:400px){
.hero-title{font-size:1.5rem}
.hero-subtitle{font-size:.9rem}
.section-title{font-size:1.45rem}
.section-subtitle{font-size:.88rem}
.topic-title{font-size:.95rem}
.community-title{font-size:.95rem}
}