* {
    box-sizing: border-box !important;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: Roboto, "Helvetica Neue", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    background: white;
    color: var(--text-color);
    overflow-x: hidden;
    transition: all 0.3s ease;
    letter-spacing: normal;
}
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.sidenav-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.large-screen-min-height {
    min-height: calc(-64px + 100vh);
}
@media (max-width: 768px) {
    .large-screen-min-height {
        min-height: auto;
    }
}
.sidenav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--menu-backdrop);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidenav-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Sidenav */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 170px;
    height: 100%;
    background: white;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidenav.open {
    transform: translateX(0);
}

.sidenav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidenav-header {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.sidenav-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-close-btn{
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
}

.logo-btn {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 0;
    overflow: visible;
    color: inherit;
    background: transparent;
}

.logo-icon {
    width: 80px;
    height: auto;
}

.sidenav-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

.sidenav-menu {
    flex: 1;
    padding: 0;
}

.menu-item {
    padding: 0;
    margin: 0;
}

.menu-button {
  
    font-size: 14px;
    font-weight: 500;
    color: #000;
    position: relative;
    width: 100%;
    background: transparent;
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    overflow: visible;
    margin-bottom: 15px;
}

.menu-item.active .menu-button {
    background: transparent;
    color: #ffc107;
    border-left: none;
    transform: none;
}

.menu-button .material-icons {
    margin-right: 10px;
    color: #000;
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.menu-item.active .menu-button .material-icons {
    color: #ffc107;
}

/* ==========================================================================
   Tooltips
   ========================================================================== */

.nav-btn, .menu-button {
    position: relative;
}
.nav-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.nav-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Tooltips for Sidenav Menu Buttons */
.menu-button::after {
    content: attr(title);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(97, 97, 97, 0.9);
    color: white;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms cubic-bezier(0, 0, 0.2, 1), transform 200ms cubic-bezier(0, 0, 0.2, 1), visibility 200ms;
    z-index: 1000;
    pointer-events: none;
}

.menu-button::before {
    content: '';
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(97, 97, 97, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms cubic-bezier(0, 0, 0.2, 1), transform 200ms cubic-bezier(0, 0, 0.2, 1), visibility 200ms;
    z-index: 1000;
    pointer-events: none;
}

.menu-button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.menu-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
.nav-btn.signin-btn{
    border: 1px solid rgba(0,0,0,.12);
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: inherit;
}

.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a.nav-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

/* Sidenav Menu List Styles - Keep same appearance as buttons */
ul.sidenav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

ul.sidenav-menu li.menu-item {
    margin: 0;
    padding: 0;
    display: block;
}

ul.sidenav-menu a.menu-button {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
    position: relative;
}


/* ==========================================================================
  Search 
   ========================================================================== */
   /* Search Modal Styles */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    z-index: 99999999;
}

.search-modal {
    position: fixed;
    top: 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 85%;
    background: var(--content-bg) !important;
    border-radius: 0;
    transition: transform 0.4s ease;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Fix for WordPress admin bar */
.admin-bar .search-modal {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .search-modal {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.search-modal-overlay.show .search-modal {
    transform: translateX(-50%) translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:10px 24px 0;
    border-bottom: 1px solid #e0e0e0;
    background: var(--navbar-bg) !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

.search-close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-modal-content {
    padding: 0 24px 24px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Fix content height for admin bar */
.admin-bar .search-modal-content {
    height: calc(100vh - 112px);
}

@media screen and (max-width: 782px) {
    .admin-bar .search-modal-content {
        height: calc(100vh - 126px);
    }
}

/* Search Categories */
.search-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.search-category-btn {
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    padding: 8px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    
}

.search-category-btn:hover {
    background: #e0e0e0;
}

.search-category-btn.active {
    background: #6B46C1;
    color: #ffffff;
    border-color: #6B46C1;
}

/* Search Input */
.search-input-container {
    position: relative;
    padding-bottom: 15px;
    width: 100%;
}

.search-input {
    width: 100%;
    border: none !important;
    padding: 16px 20px;
    border-bottom: 1px solid #ffffff !important;
    font-size: 20px;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}
.search-input-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B46C1;
    font-size: 20px;
}
.search-input::placeholder {
    color: #ffffff;
    font-size: 20px;
}
/* Popular Searches */
.popular-searches h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-align: left;
    padding-left: 8px;
}


/* ==========================================================================
  Post Block Card
   ========================================================================== */

   .explore-grid ,.popular-grid,.search-results-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    align-items: stretch;
    margin-bottom: 20px;
}


.post-block-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 4px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    height: 100%;
}
.post-block-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-block-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-block-info {
    background: #ffffff; 
    color: #333333;
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.post-block-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color:#333333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

        /* Loading Indicator */
        #loading-indicator {
            opacity: 0.8;
        }
        
        #loading-indicator .spinner-border {
            width: 2rem;
            height: 2rem;
        }
        
        #end-indicator {
            opacity: 0.6;
            font-style: italic;
        }
/* Responsive */
@media (max-width: 480px) {
    .explore-grid,.popular-grid,.search-results-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .post-block-card img {
        height: 160px;
    }
    .explore-main-page {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .explore-grid,.popular-grid,.search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .explore-main-page {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .explore-grid,.popular-grid ,.search-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        
    }
    .explore-main-page {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 1201px) {
    .explore-grid,.popular-grid ,.search-results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}
 
 /* ==========================================================================
   Explore Page Styles
   ========================================================================== */
   
/* Explore Main Page */
.explore-main-page {
    min-height: 100vh;
    margin-right: 3rem;
    margin-left: 3rem;
}

/* Filter Styles */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Loading Indicator */
#loading-indicator {
    opacity: 0.8;
}

#loading-indicator .spinner-border {
    width: 2rem;
    height: 2rem;
}

#end-indicator {
    opacity: 0.6;
    font-style: italic;
}

/* Theme-specific styles */
body.pink-bluegrey-theme .explore-main-page,
body.purple-green-theme .explore-main-page {
    background: var(--content-bg);
}

body.pink-bluegrey-theme .explore-card,
body.purple-green-theme .explore-card {
    background: #424242;
}

body.pink-bluegrey-theme .explore-card-title a,
body.purple-green-theme .explore-card-title a {
    color: #ffffff;
}

/* ==========================================================================
  Footer Navigation
   ========================================================================== */

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list .menu-item {
    margin: 0;
}

.footer-nav-list .menu-item a {
    display: inline-block;
    padding-left: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-list .menu-item a:hover {
    opacity: 0.8;
}

.footer-nav-list .menu-item a small {
    font-size: 14px;
    color: inherit;
}

/* ==========================================================================
  Tooltips
   ========================================================================== */

/* Tooltip container */
[data-tooltip] {
    position: relative;
}

/* Tooltip content - Same as sidenav menu-button */
[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(97, 97, 97, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    line-height: 1.5;
    min-height: 24px;
    display: flex;
    align-items: center;
}

/* Show tooltip on hover - Same as sidenav menu-button */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    [data-tooltip]:before {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    [data-tooltip]:after {
        border-width: 4px;
    }
}

/* ==========================================================================
  Page Template Styles
   ========================================================================== */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-content-wrapper {
    width: 100%;
}
.page-content-body *, .page-content-body h1, .page-content-body h2, .page-content-body h3, .page-content-body h4, .page-content-body h5, .page-content-body h6 {
    color: #333333 !important;
}
.page-content-body {
    padding: 20px;
    line-height: 1.6;
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5,
.page-content-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-text-color);
}

.page-content-body p {
    margin-bottom: 15px;
}

.page-content-body ul,
.page-content-body ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.page-content-body li {
    margin-bottom: 8px;
}

.page-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.page-content-body blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 0 8px 8px 0;
}

.page-content-body code {
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.page-content-body pre {
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.page-content-body pre code {
    background: none;
    padding: 0;
}

.comments-section {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

/* Responsive adjustments for page content */
@media screen and (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .page-content-body {
        padding: 15px;
    }
    
    .page-content-body ul,
    .page-content-body ol {
        padding-left: 20px;
    }
}

/* ==========================================================================
  Login Menu
   ========================================================================== */
   .header-user-avatar{
        width: 40px; 
        height: 40px; 
        border-radius: 50%; 
        background: '.$avatar_color.';
        display: flex; 
        align-items: center; 
        justify-content: center; 
        color: white; 
        font-weight: 600; 
        font-size: 16px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
   }
   .user-avatar-letter{
        width: 40px; 
        height: 40px; 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        color: white; 
        font-weight: 600; 
        font-size: 14px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
   }
   .custom-menu-content.user-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 112px;
    max-width: 280px;
}
.user-info-section {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}
.user-avatar {
    margin-right: 15px;
}
.user-details {
    flex: 1;
}
.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0;
}
.user-menu-items {
    padding: 0;
    background: white;
}
.custom-menu-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: background-color 0.2s ease;
}
.custom-menu-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
}
.custom-menu-item:last-child {
    border-bottom: none;
}
.logout-item {
    color: #666 !important;
}
.logout-item:hover {
    background: #f8f9fa !important;
    color: #666 !important;
}
.custom-menu-item .custom-icons {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    width: 24px;
    height: 24px;
    justify-content: center;
}
.custom-menu-item .custom-icons i {
    font-size: 20px;
    color: #666;
}

/* ==========================================================================
   Material Button Effects
   ========================================================================== */

.mat-button-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    color: #000;
}

.mat-button-ripple, .mat-button-focus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
}

.mat-button-focus-overlay {
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.35, 0, 0.25, 1), background-color 200ms cubic-bezier(0.35, 0, 0.25, 1);
    background-color: rgba(0, 0, 0, 0.04);
}

.menu-button:hover .mat-button-focus-overlay {
    opacity: 0.04;
}

.menu-button:focus .mat-button-focus-overlay {
    opacity: 0.12;
}

.mat-ripple {
    overflow: hidden;
}

.mat-button-ripple:not(:empty) {
    transform: translateZ(0);
}

/* Ripple animation */
@keyframes mat-ripple-fade-in {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

@keyframes mat-ripple-fade-out {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.mat-ripple-element {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: mat-ripple-fade-in 0.45s, mat-ripple-fade-out 0.4s 0.45s;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Toolbar */
.top-toolbar {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
    transition: background-color 0.3s ease;
}

.toolbar-row {
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-height: 64px;
    width: 100%;
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 40px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toolbar-logo-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

.toolbar-spacer {
    flex: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.13s ease;
    white-space: nowrap;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    min-width: 64px;
    min-height: 36px;
}

.nav-btn:hover {
    background: rgba(0,0,0,.1);
}

.nav-btn.active {
    color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn .material-icons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    flex: 1;
    min-height: calc(100vh - 64px);
    position: relative;
    overflow: hidden;
}

.home-page {
    min-height: calc(100vh - 96px);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */

.app-loading {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.app-loading .spinner {
    height: 200px;
    width: 200px;
    animation: rotate 2s linear infinite;
    transform-origin: center center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.app-loading .spinner .path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
    stroke: #ddd;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* Hide content initially */
.main-content {
    display: none;
}

.main-content.loaded {
    display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-nav {
        display: flex;
    }

    .nav-btn {
        display: none;
        padding: 0 8px;
        min-width: 40px;
    }
    
    /* Hide all nav items except search and signin */
    .nav-list li:not(.search-li):not(.signin-li) {
        display: none;
    }
    
    .nav-btn:nth-child(6),
    .nav-btn:nth-child(7) {
        display: flex;
    }
    .nav-btn:nth-child(7) {
        padding: 0 12px;
        min-width: auto;
    }

    .nav-btn:nth-child(7) span {
        display: inline;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-btn {
        display: none;
    }
    
    .nav-btn:nth-last-child(1),
    .nav-btn:nth-last-child(2) {
        display: flex;
        padding: 0 8px;
        min-width: 40px;
    }
    .nav-btn:nth-last-child(1) {
        padding: 0 12px;
        min-width: auto;
    }
    
    .nav-btn:nth-last-child(1) span {
        display: inline;
    }
}

@media (min-width: 1025px) {
    .nav-btn span {
        display: inline;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.app-footer {
    color: white;
}
.app-footer .mat-toolbar {
    color: white;
    min-height: auto !important;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: inherit;
    font-weight: 500;
    font-family: Roboto, "Helvetica Neue", sans-serif;
}

.mat-toolbar-single-row {
    display: flex;
    box-sizing: border-box;
    padding: 0 16px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}

.justify-content-around {
    justify-content: space-around !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.h-auto {
    height: auto !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.d-flex {
    display: flex !important;
}

.align-middle {
    align-items: center !important;
}


.bct {
    color: white;
    text-decoration: none;
}

.bct:hover {
    opacity: 0.8;
}

/* Footer Links Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.row.px-3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.row.px-3 a:hover {
    opacity: 0.7;
}

.row.px-3 small {
    font-size: 0.775rem;
    font-weight: 400;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
}


/* ==========================================================================
   Sign In Menu Styles
   ========================================================================== */
   .custom-menu-content {
    background: white;
    border-radius: 4px;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
                0px 4px 5px 0px rgba(0, 0, 0, 0.14),
                0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    position: absolute;
    top: 85%;
    right: 20px;
    z-index: 1000;
    padding: 8px 0;
}

.custom-menu-item {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    line-height: 48px;
    padding: 0 16px;
    position: relative;
    text-align: left;
    width: 100%;
    min-height: 48px;
    transition: background-color 0.2s ease;
}

.custom-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.custom-menu-item:focus {
    background-color: rgba(0, 0, 0, 0.04);
    outline: none;
}

.custom-icons {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.custom-icons svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Anime Section Styles
   ========================================================================== */

.drama-card {
    position: relative;
    width: 100%;
}

.main-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.mat-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    background: white;
    color: rgba(0,0,0,.87);
    transition: box-shadow 280ms cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    /* Margin handled by Bootstrap classes in HTML */
}

.mat-card:hover {
    box-shadow: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px 0 rgba(0,0,0,.14), 0 1px 8px 0 rgba(0,0,0,.12);
}

.mat-card-content {
    display: block;
    padding: 0;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

/* Loading placeholder styling */
.aspect-ratio-box img.loading-placeholder {
    width: 200px !important;
    height: 200px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0.6;
    border-radius: 50%;
    padding: 10px;
}

/* Remove loading placeholder styling when image loads */
.aspect-ratio-box img.imgLoaded {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    opacity: 1;
    background: none;
    border-radius: 4px 4px 0 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.episode-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
}
.episode-right {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}
.ribbon-left {
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    margin-right: auto;
}

.drama-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: rgba(0,0,0,.87);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landscape-title {
    font-size: 18px !important;
}

.scrollbar-hidden {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    cursor: grab;
}
/* Episodes Pagination */
.video-poster {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.youtube-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.youtube-play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-play-button svg {
        width: 56px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .youtube-play-button svg {
        width: 48px;
        height: 34px;
    }
}
.episodes-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
    padding: 0 12px;
}

.episodes-header-left {
    display: flex;
    flex-direction: column;
}

.episodes-header-left .custom-card-title {
    color: rgba(0, 0, 0, 0.87);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.episodes-header-left .custom-card-subtitle {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 400;
}

.mat-paginator-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 56px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.87);
}

.mat-paginator-page-size {
    display: flex;
    align-items: center;
    margin-right: 32px;
}

.mat-paginator-page-size-label {
    margin: 0 4px 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.mat-dropdown-container {
    position: relative;
    display: inline-block;
}

.mat-dropdown-trigger {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.87);
    font-size: 12px;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    cursor: pointer;
    padding: 8px 24px 8px 0;
    min-width: 48px;
    position: relative;
    outline: none;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-dropdown-trigger:hover {
    border-bottom-color: rgba(0, 0, 0, 0.6);
}

.mat-dropdown-trigger:focus {
    border-bottom-color: #3f51b5;
}

.mat-dropdown-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: rgba(0, 0, 0, 0.6);
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-dropdown-trigger.active .mat-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mat-dropdown-panel {
    position: absolute;
    top:-60%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
    max-height: 256px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    pointer-events: none;
}

.mat-dropdown-panel.show {
    display: block;
    pointer-events: auto;
}

.mat-dropdown-option {
    width: 100%;
    height: 40px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    text-align: center;
    line-height: 40px;
}

.mat-dropdown-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mat-dropdown-option-selected {
    background-color: rgba(63, 81, 181, 0.12);
    color: #3f51b5;
    font-weight: 500;
}

.mat-dropdown-option:first-child {
    border-radius: 4px 4px 0 0;
}

.mat-dropdown-option:last-child {
    border-radius: 0 0 4px 4px;
}

.mat-paginator-range-actions {
    display: flex;
    align-items: center;
}

.mat-paginator-range-label {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    margin-right: 16px;
    white-space: nowrap;
}

.mat-paginator-navigation-previous,
.mat-paginator-navigation-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}


.mat-paginator-navigation-previous:disabled {
    cursor: default;
    opacity: 0.26;
    pointer-events: none;
}

.mat-paginator-navigation-next:disabled {
    cursor: default;
    opacity: 0.26;
    pointer-events: none;
}

.mat-paginator-icon {
    width: 24px;
    height: 24px;
    fill: rgba(0, 0, 0, 0.54);
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-paginator-navigation-previous:disabled .mat-paginator-icon,
.mat-paginator-navigation-next:disabled .mat-paginator-icon {
    fill: rgba(0, 0, 0, 0.26);
}
.custom-card-subtitle{
    margin-top: 5px !important;
}
.episodes-container {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 8px 0;
    margin: 0 auto;
    display: block;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .episodes-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mat-paginator-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .mat-paginator-page-size {
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .episodes-header-container {
        padding: 0 4px;
    }
    
    .mat-paginator-page-size-label {
        font-size: 11px;
    }
    
    .mat-paginator-range-label {
        font-size: 11px;
    }
    
    .mat-dropdown-trigger {
        font-size: 11px;
    }
    
    .mat-dropdown-option {
        font-size: 12px;
        min-height: 40px;
    }
}
/* End of Scrollbar Hidden */
.scrollbar-hidden:active {
    cursor: grabbing;
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

.landscape {
    display: flex;
    flex-flow: nowrap;
    overflow-x: auto;
    align-items: center;
    gap: 14px; /* Even larger spacing between cards to match original */
}

.col-d-5, .col-md-d-4, .col-xl-d-3 {
    flex: 0 0 auto;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.mat-icon-button {
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.mat-icon-button:hover {
    background: rgba(0,0,0,0.04);
}

.mat-icon-button .material-icons {
    font-size: 24px;
}

.btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    height: 36px;
    border-radius: 4px;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: inherit; /* Match original */
    font-weight: 500;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
}

.btn:hover {
    background: rgba(0,0,0,0.04);
}



/* Mat Card Title */
.mat-card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    margin: 0;
    color: inherit;
}

/* Material Icon Inline */
.mat-icon-inline {
    vertical-align: middle;
    margin-left: 4px;
}

/* Custom Icon Button Styles */
.custom-icon-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    position: relative;
    transition: background-color 0.2s ease;
    color: inherit;
}

.custom-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.custom-icon-button:focus {
    background-color: rgba(0, 0, 0, 0.04);
    outline: none;
}

.custom-icon-button .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Custom Card Styles */
.custom-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
                0px 1px 1px 0px rgba(0, 0, 0, 0.14),
                0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
                0px 3px 4px 0px rgba(0, 0, 0, 0.14),
                0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

.custom-card:focus {
    outline: none;
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
                0px 3px 4px 0px rgba(0, 0, 0, 0.14),
                0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

.custom-card-content {
    padding: 0;
    display: block;
}

.custom-card-title {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: rgba(0, 0, 0, 0.87);
}




/* ==========================================================================
   FAQ Page Styles
   ========================================================================== */

.faq-main-page {
    min-height: 100vh;
    padding: 0;
    background: #fff;
}

.faq-wrapper {
    display: flex;
    justify-content: center;
}

.faq-inner-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 100%;
}

.faq-social-section {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.faq-main-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: rgba(0, 0, 0, 0.87);
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    color: #333333 !important;
    margin: 10px 0;
}

/* FAQ Questions Container */
.faq-questions-list {
    display: block;
    padding-top: 20px;
}

.faq-question-item {
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    margin-bottom: 1px;
}

.faq-question-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 24px;
    border-radius: inherit;
    transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: Roboto, "Helvetica Neue", sans-serif;
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: left;
    color: rgba(0, 0, 0, 0.87);
    min-height: 48px;
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
}

.faq-question-header:hover {
    background: rgba(0, 0, 0, 0.04);
}

.faq-question-text-wrapper {
    display: flex;
    flex: 1;
    flex-direction: row;
    overflow: hidden;
}

.faq-question-text {
    color: rgba(0, 0, 0, 0.87);
    font-weight: 400;
    line-height: 1.4;
    font-size: 15px;
    letter-spacing: normal;
    flex: 1;
    padding-right: 20px;
    white-space: normal;
    word-wrap: break-word;
}

.faq-expand-arrow {
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: '';
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle;
    transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0, 0, 0, 0.54);
    margin-left: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.faq-question-item.active .faq-expand-arrow {
    transform: rotate(225deg);
}

.faq-answer-wrapper {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

.faq-question-item.active .faq-answer-wrapper {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 24px 16px;
    color: rgba(0, 0, 0, 0.87);
    font-size: 14px;
    line-height: 1.4;
}

.faq-answer-content p {
    margin: 16px 0;
}

.faq-answer-content h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 16px 0 8px 0;
    color: rgba(0, 0, 0, 0.87);
}

.faq-answer-content ol,
.faq-answer-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.faq-answer-content li {
    margin: 4px 0;
    line-height: 1.5;
}

.faq-answer-content strong {
    font-weight: 600;
}

.faq-answer-content iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* FAQ Action Buttons */
.faq-action-button {
    background: none;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 4px;
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.54);
}

.faq-action-button:hover {
    background: rgba(0, 0, 0, 0.04);
}

.faq-action-button.primary-color {
    color: #673ab7;
}

.faq-action-button i {
    font-size: 18px;
}

/* Facebook Contact Button */
.faq-facebook-button {
    padding: 0 16px;
    border-radius: 4px;
    overflow: hidden;
    outline: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 64px;
    line-height: 36px;
    vertical-align: middle;
    text-decoration: none;
    background: #4267b2;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-facebook-button:hover {
    background: #365899;
    color: white;
    text-decoration: none;
}

.faq-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-button-content svg {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.full-width {
    width: 100% !important;
}
/* ==========================================================================
   Simplified and Organized CSS Classes
   ========================================================================== */

/* Episode Buttons - Simplified */
.episode-btn {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition: background .4s cubic-bezier(.25, .8, .25, 1), box-shadow 280ms cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    color: rgba(0, 0, 0, .87);
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.episode-btn:hover {
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

.episode-btn .material-icons {
    font-size: 18px;
}
.episode-btn i {
    position: absolute;
    top: 2px;
    right: 2px;
}
/* Flex utilities - replaces multiple Bootstrap classes */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-start {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Spacing utilities - replaces Bootstrap margin/padding classes */
.no-margin { margin: 0; }
.no-padding { padding: 0; }

.spacing-sm { padding: 4px 8px; }
.spacing-md { padding: 8px 16px; }
.spacing-lg { padding: 16px 24px; }

/* Common button styles - simplified */
.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.2s ease;
    color: inherit;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.btn-icon:focus {
    background-color: rgba(0, 0, 0, 0.04);
    outline: none;
}

/* ==========================================================================
   Simplified Drama Card Classes
   ========================================================================== */

/* Simplified drama section container */
.drama-section {
    margin-top: 1rem;
}

/* Simplified section title */
.section-title {
    margin: 0 0 0.25rem 0;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    font-size:22px;
    padding:0 0 0 20px;
}

.section-title .title-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 25px;
    height: 36px;
    border-radius: 4px;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: inherit;
    font-weight: 500;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
    position: relative;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    overflow: visible;
}

.section-title .title-btn:hover {
    background: rgba(0,0,0,0.04);
}

.section-title .title-btn .btn-content {
    display: flex;
    align-items: center;
    width: 100%;
    color: #000;
}

.section-title .title-btn .btn-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
}

.section-title .title-btn .btn-focus {
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.35, 0, 0.25, 1), background-color 200ms cubic-bezier(0.35, 0, 0.25, 1);
    background-color: rgba(0, 0, 0, 0.04);
}

.section-title .title-btn:hover .btn-focus {
    opacity: 0.04;
}

.section-title .title-btn:focus .btn-focus {
    opacity: 0.12;
}

.section-title .title-btn .icon-inline {
    vertical-align: middle;
    margin-left: 4px;
}

/* Simplified drama cards container */
.drama-cards-container {
    position: relative;
    width: 100%;
}

/* Simplified flex container for cards and buttons */
.cards-flex-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Simplified navigation buttons */
.nav-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.2s ease;
    color: inherit;
    visibility: visible;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-arrow:focus {
    background-color: rgba(0, 0, 0, 0.04);
    outline: none;
}

/* Simplified cards scroll container */
.cards-scroll-container {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    cursor: grab;
    display: flex;
    flex-flow: nowrap;
    overflow-x: auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 70vw;
}

.cards-scroll-container:active {
    cursor: grabbing;
}

.cards-scroll-container::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   Simplified Drama Card Classes
   ========================================================================== */

/* Main drama card container - replaces long class list */
.drama-card-item {
    align-self: stretch;
    display: flex;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    flex: 0 0 auto;
}

/* Drama card wrapper - replaces custom-card with positioning */
.drama-card-wrapper {
    width: 100%;
    margin: 4px 4px 4px 4px;
    padding: 0;
    tabindex: 0;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
                0px 1px 1px 0px rgba(0, 0, 0, 0.14),
                0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drama-card-wrapper:hover {
    box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
                0px 3px 4px 0px rgba(0, 0, 0, 0.14),
                0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

 .drama-card-content {
    padding: 0;
    display: block;
    margin: 0;
}

 .drama-card-title-area {
    padding: 12px 16px 12px 16px;
    height: 50px;  
    display: flex;
    align-items: center;  
    overflow: hidden;  
}

@media (min-width: 768px) {
    .drama-card-title-area {
        padding: 12px 16px 12px 16px;
        height: 50px;  
    }
}

 .drama-card-title {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.15px;
    color: rgba(0, 0, 0, 0.87);
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    width: 100%;
    min-height: calc(1.3em * 2); 
    padding: 5px 0
}

@media (min-width: 768px) {
    .drama-card-title {
        font-size: 18px;
        line-height: 1.4;
        min-height: calc(1.4em * 2);
    }
}

/* Responsive column widths for drama cards */
@media (max-width: 768px) {
    .drama-card-item {
        flex: 0 0 45.666667%;
        max-width: 51.666667%;
    }
    
    /* Reduce gap between cards on mobile */
    .landscape {
        gap: 8px !important;
    }
}

@media (min-width: 768px) {
    .drama-card-item {
        flex: 0 0 30.333333%;
        max-width: 30.333333%;
    }
}

@media (min-width: 1200px) {
    .drama-card-item {
        flex: 0 0 23%;
        max-width: 23%;
    }
}

/* Drama Page */
.custom-drawer-container {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    display: block;
    overflow:hidden
}

.custom-drawer-backdrop {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    display: block;
    z-index: 3;
    visibility:hidden
}

.custom-drawer-content {
    position: relative;
    z-index: 1;
    display: block
}
@media screen and (min-width: 600px), screen and(min-width: 960px), screen and(min-width: 1280px), screen and(min-width: 1920px), screen and(min-width: 1920px) and(max-width: 4999.98px), screen and(max-width: 1919.98px), screen and(min-width: 1280px) and(max-width: 1919.98px), screen and(max-width: 1279.98px), screen and(min-width: 960px) and(max-width: 1279.98px), screen and(max-width: 959.98px), screen and(min-width: 600px) and(max-width: 959.98px), screen and(max-width: 599.98px), screen and(min-width: 0px) and(max-width: 599.98px), print {
}
.custom-list {
    padding-top: 8px;
    -webkit-tap-highlight-color:transparent
}

.custom-list .custom-list-item {
    display: block;
    -webkit-tap-highlight-color:transparent
}

.custom-list-base .custom-list-item .custom-list-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    padding: 0 16px;
    position: relative;
    height:inherit
}

.custom-list-base .custom-list-item .custom-list-item-ripple {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    pointer-events:none
}

@media (hover: none) {
}
.custom-button {
    opacity:0
}

.custom-icon-button {
    opacity: 1;
}

.custom-button:hover:not(.custom-button-disabled) , .custom-stroked-button:hover:not(.custom-button-disabled)  {
    opacity:.04
}

@media (hover: none) {
    .custom-button:hover:not(.custom-button-disabled) , .custom-stroked-button:hover:not(.custom-button-disabled)  {
        opacity:0
    }
}

.custom-button, .custom-icon-button {
    box-sizing: border-box;
        position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    overflow:visible
}

.custom-icon-button.custom-button-disabled {
    cursor:default
}

.custom-raised-button {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)
}

.custom-mini-fab {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    line-height: 36px;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink:0
}

.custom-mini-fab .custom-button-wrapper {
    padding: 8px 0;
    display: inline-block;
    line-height:24px;
    font-weight: 600;
    font-size: 14px;
   
}

.custom-icon-button {
    padding: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 40px;
    border-radius:50%
}

.custom-icon-button .custom-icon {
    line-height:24px
}

.custom-button-ripple.custom-ripple{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    pointer-events: none;
    border-radius:inherit
}

.custom-button-ripple.custom-ripple:not(:empty) {
    transform:translateZ(0)
}
.custom-button-ripple-round {
    z-index:1
}

.custom-button .custom-button-wrapper > *, .custom-raised-button .custom-button-wrapper > *, .custom-icon-button .custom-button-wrapper > * {
    vertical-align: middle
}
.custom-icon {
    -webkit-user-select: none;
    user-select: none;
    background-repeat: no-repeat;
    display: inline-block;
    fill: currentColor;
    height: 24px;
    width: 24px;
    margin-right: 0;
}
.custom-divider {
    display: block;
    margin: 0;
    border-top-width: 1px;
    border-top-style:solid
}

.custom-divider.custom-divider-vertical {
    border-top: 0;
    border-right-width: 1px;
    border-right-style: solid
}
.custom-toolbar-row, .custom-toolbar-single-row {
    display: flex;
    box-sizing: border-box;
    padding: 0 16px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    white-space:nowrap
}

.custom-toolbar-multiple-rows {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    width: 100%
}
@media (hover: none) {
}
@media only screen and (max-width: 768px) {
}
@keyframes custom-progress-spinner-linear-rotate {
    0% {
        transform:rotate(0deg)
    }

    100% {
        transform:rotate(360deg)
    }
}

@keyframes custom-progress-spinner-stroke-rotate-100 {
    0% {
        stroke-dashoffset: 268.606171575px;
        transform:rotate(0)
    }

    12.5% {
        stroke-dashoffset: 56.5486677px;
        transform:rotate(0)
    }

    12.5001% {
        stroke-dashoffset: 56.5486677px;
        transform:rotateX(180deg) rotate(72.5deg)
    }

    25% {
        stroke-dashoffset: 268.606171575px;
        transform:rotateX(180deg) rotate(72.5deg)
    }

    25.0001% {
        stroke-dashoffset: 268.606171575px;
        transform:rotate(270deg)
    }

    37.5% {
        stroke-dashoffset: 56.5486677px;
        transform:rotate(270deg)
    }

    37.5001% {
        stroke-dashoffset: 56.5486677px;
        transform:rotateX(180deg) rotate(161.5deg)
    }

    50% {
        stroke-dashoffset: 268.606171575px;
        transform:rotateX(180deg) rotate(161.5deg)
    }

    50.0001% {
        stroke-dashoffset: 268.606171575px;
        transform:rotate(180deg)
    }

    62.5% {
        stroke-dashoffset: 56.5486677px;
        transform:rotate(180deg)
    }

    62.5001% {
        stroke-dashoffset: 56.5486677px;
        transform:rotateX(180deg) rotate(251.5deg)
    }

    75% {
        stroke-dashoffset: 268.606171575px;
        transform:rotateX(180deg) rotate(251.5deg)
    }

    75.0001% {
        stroke-dashoffset: 268.606171575px;
        transform:rotate(90deg)
    }

    87.5% {
        stroke-dashoffset: 56.5486677px;
        transform:rotate(90deg)
    }

    87.5001% {
        stroke-dashoffset: 56.5486677px;
        transform:rotateX(180deg) rotate(341.5deg)
    }

    100% {
        stroke-dashoffset: 268.606171575px;
        transform: rotateX(180deg) rotate(341.5deg)
    }
}
@media only screen and (max-width: 410px) {
}
@media (max-width: 768px) {
}

@media (min-width: 768px) {
    }

@media (min-width: 1024px) {
}

@media (min-width: 1200px) {
}
@media (max-width: 768px) {
}

@media (min-width: 768px) {
}
.custom-card {
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    padding:16px
}

.custom-card-actions, .custom-card-subtitle, .custom-card-content {
    display: block;
    margin-bottom:16px
}

.custom-card-title {
    display:block
}

.custom-card-actions {
    margin-left: -8px;
    margin-right: -8px;
    padding:8px 0
}

.custom-card-footer {
    display: block;
    margin:0-16px -16px -16px
}

.custom-card-header {
    display: flex;
    flex-direction:row
}

.custom-card-header .custom-card-title {
    margin-bottom:12px;
    font-size: 20px;
    font-weight: 500;
}

.custom-card-header-text {
    margin:0 16px
}

@media (max-width: 599px) {
}

.custom-card > :first-child, .custom-card-content > :first-child {
    margin-top:0
}

.custom-card > :last-child:not(.custom-card-footer), .custom-card-content > :last-child:not(.custom-card-footer) {
    margin-bottom:0
}

.custom-card > .custom-card-actions:last-child {
    margin-bottom: -8px;
    padding-bottom:0
}

.custom-card-title:not(:first-child), .custom-card-subtitle:not(:first-child) {
    margin-top:-4px
}

.custom-card-header .custom-card-subtitle:not(:first-child) {
    margin-top: -8px
}
.bgs-c[_ngcontent-qvo-c122] {
    background-size: cover
}
.drama-text-center {
    text-align:center
}

.drama-action-btn {
    width: 60px;
    height: 60px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Action button styling - match original design */
.drama-action-btn .custom-button-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

.drama-action-btn .custom-button-wrapper > * {
    vertical-align: middle !important;
}

.drama-action-btn .custom-icon {
    display: block !important;
    margin-bottom: 4px !important;
}

.drama-action-btn small {
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    display: block !important;
}

.drama-action-btn .custom-button-wrapper div {
    display: block !important;
    text-align: center !important;
}

.drama-action-btn:focus {
    background-color: rgba(0, 0, 0, 0.04);
    outline: none;
}

.drama-cc-icon {
    height: 14px;
    width: 14px;
    font-size: smaller;
    position: absolute;
    right: 2px;
    top:2px
}

.drama-list-item {
    font-size: small;
    padding: 0;
    height: 16px;
    width: auto
}
.custom-expansion-panel {
    box-sizing: content-box;
    display: block;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    position:relative
}

.custom-accordion .custom-expansion-panel:not(.custom-expanded), .custom-accordion .custom-expansion-panel:not(.custom-expansion-panel-spacing) {
    border-radius:0
}

.custom-accordion .custom-expansion-panel:first-of-type {
    border-top-right-radius: 4px;
    border-top-left-radius:4px
}

.custom-accordion .custom-expansion-panel:last-of-type {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius:4px
}

.custom-expansion-panel-content {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.custom-expansion-panel-content[style*="display: block"] {
    display: block !important;
}

.custom-expansion-panel-content[style*="display: none"] {
    display: none !important;
}

.custom-expansion-panel-content[style * "visibility: hidden"] * {
    visibility:hidden !important
}

.custom-expansion-panel-body {
    padding: 0 24px 16px
}
.custom-expansion-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
    border-radius: inherit;
    transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)
}
.custom-expansion-panel-header:not([aria-disabled=true]) {
    cursor:pointer
}

.custom-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    overflow:hidden
}

.custom-expansion-indicator::after {
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle
}
.videoplayer {
    font-family: Roboto, Helvetica Neue, sans-serif;
    background-color: #000;
    position: relative;
    width: 100%;
    height:100%
}
.video{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.d-none.d-xl-block {
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 0;
    z-index: 2;
}

.header {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 14px 0;
    width: 100%;
    z-index: 1;
    background-image:linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .65))
}

.video {
    display: block;
    width: 100%;
    height: 100%;
    z-index:0
}

.visible {
    visibility: visible;
    opacity: 1;
    transition:opacity .5s linear
}

.show-mouse {
    cursor:default
}

video::-webkit-media-controls {
    display:none !important
}

video::-webkit-media-controls-enclosure {
    display:none !important
}


.sf-hidden {
    display: none !important
}

/* Clean video/image container styles */
.drama-container {
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.video-container .custom-button-wrapper {
    color: #fff !important;
}   
.video-spinner {
    position: absolute;
    left: calc(50% - 32px);
    top: calc(50% - 32px);
    z-index: 1;
    display: none;
}
@media (max-width: 1200px) {
    .video-container {
        min-height: 300px !important;
    }
}
.caption-button {
    display: inline-block;
}

/* Custom component styles to replace Angular Material */
.custom-icon-button {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex-shrink: 0;
    line-height: 40px;
    border-radius: 50%;
    background: transparent;
    font-weight: 600;
}

.custom-icon-button.custom-button-disabled {
    cursor: default;
    opacity: 0.38;
}

.custom-button-wrapper {
    display: inline-block;
    line-height: 24px;
    vertical-align: middle;
    font-size: 14px;
}

.custom-icon {
    -webkit-user-select: none;
    user-select: none;
    background-repeat: no-repeat;
    display: inline-block;
    fill: currentColor;
    height: 24px;
    width: 24px;
    margin-right: 0;
}

.custom-raised-button {
    box-sizing: border-box;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    color: rgba(0,0,0,.87);
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}

.custom-raised-button:hover {
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

.custom-list {
    padding-top: 8px;
    -webkit-tap-highlight-color: transparent;
}

.custom-list-item {
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.custom-list-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    padding: 0 16px;
    position: relative;
    height: inherit;
}

.custom-divider {
    display: block;
    margin: 0;
    border-top-width: 1px;
    border-top-style: solid;
}

.custom-divider-vertical {
    border-top: 0;
    border-right-width: 1px;
    border-right-style: solid;
}

.custom-expansion-panel {
    box-sizing: content-box;
    display: block;
    margin: 0;
    border-radius: 4px;
    overflow: visible;
    transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    min-height: 48px;
}

.custom-expansion-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
    border-radius: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
    user-select: none;
    height: 48px;
    min-height: 48px;
}
.custom-expansion-panel-header:focus,
.custom-expansion-panel-header:hover {
    outline: none;
}

.custom-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    overflow: hidden;
}

.custom-expansion-panel-header-title {
    display: flex;
    flex-grow: 1;
    margin-right: 16px;
    align-items: center;
    line-height: 48px;
    font-size: 14px;
}

.custom-expansion-indicator::after {
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle;
}

.custom-expansion-indicator {
    transition: transform 0.3s ease;
    display: inline-block;
}

.custom-expansion-panel-content {
    overflow: hidden;
    animation-duration: 0.3s;
    animation-timing-function: ease;
}

.custom-expansion-panel-body h2 p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.custom-expansion-panel-body p:last-child {
    margin-bottom: 0;
}

/* Report Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.bottom-sheet {
    align-items: flex-end;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: 4px;
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
    width: 330px;
    min-height: auto;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    position: relative;
    padding: 20px 24px 0px 24px;
    border-bottom: none;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close i {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.54);
}

.modal-content {
    padding: 0px 24px 16px 24px;
}

.modal-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    line-height: 1.5;
}

.modal-link-section {
    margin: 8px 0;
}

.modal-link-button {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.38);
    border-radius: 4px;
    background: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-height: 36px;
}

.modal-link-button:hover {
    border-color: rgba(0, 0, 0, 0.38);
    background-color: rgba(0, 0, 0, 0.04);
}

.link-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    font-family: Roboto, sans-serif;
}

.link-content i {
    color: rgba(0, 0, 0, 0.54);
    font-size: 20px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    padding: 0px 24px 24px 24px;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.modal-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}
.facebook-btn {
    background-color: #3b5998;
}
.messenger-btn {
    background-color: #0078ff;
}
.modal-button i {
    font-size: 25px;
}

/* Notification Styles */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: #323232;
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    z-index: 10000;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-family: Roboto, sans-serif;
    min-width: 288px;
    max-width: 568px;
    opacity: 0;
    transition: all 0.15s cubic-bezier(0.4, 0, 1, 1);
    display: flex;
    align-items: left;
    justify-content: left;
    text-align: left;
}

.copy-notification i.material-icons {
    font-size: 20px;
    margin-right: 8px;
    opacity: 0.9;
}

.copy-notification.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.copy-notification.hide {
    transform: translateX(-50%) scale(0);
    opacity: 0;
}

/* Loading Bar Styles */
.loading-bar-container {
    width: 100%;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 4px;
    animation: loadingProgress 0.4s ease-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 50%;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for highlighting sign in button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
        transform: scale(1);
    }
}

/* Social Share Container Styles */
.social-share-container {
    padding: 16px 0;
}

.share-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.share-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.share-fab-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    margin-bottom: 8px;
    text-decoration: none;
}

.share-fab-button:hover {
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.copy-btn {
    background-color: #607D8B;
}

.more-btn {
    background-color: var(--primary-color, #2196F3);
}

.share-action-label {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.87);
    margin-top: 4px;
    white-space: nowrap;
}

.share-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 16px 0;
}

.share-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    align-items: flex-start;
}

.share-platforms .share-action-item {
    flex: 0 0 auto;
}

/* Social Media Platform Colors */
.facebook-share-btn {
    background-color: #4267B2;
}

.messenger-share-btn {
    background-color: #0080FF;
}

.twitter-share-btn {
    background-color: #00acee;
}

.reddit-share-btn {
    background-color: #FF4006;
}

.telegram-share-btn {
    background-color: #0088cc;
}

.whatsapp-share-btn {
    background-color: #25D366;
}

.email-share-btn {
    background-color: #FF961C;
}

.pinterest-share-btn {
    background-color: #BD091D;
}

.sms-share-btn {
    background-color: #20c16c;
}

.line-share-btn {
    background-color: #00b900;
}

/* Responsive Design for Share Buttons */
@media (max-width: 768px) {
    .share-actions {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .share-fab-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .share-action-label {
        font-size: 11px;
    }
    
    .share-platforms {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .share-actions {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .share-fab-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .share-action-label {
        font-size: 10px;
    }
    
    .share-platforms {
        gap: 8px;
    }
}

/* Share Modal Styles */
.share-modal-container {
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0px -8px 10px -5px rgba(0, 0, 0, 0.2), 0px -16px 24px 2px rgba(0, 0, 0, 0.14), 0px -6px 30px 5px rgba(0, 0, 0, 0.12);
    min-width: 512px;
    max-width: calc(100vw - 256px);
    max-height: 80vh;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal-container.show {
    transform: translateX(-50%) translateY(0);
}

.share-modal-header {
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87) !important;
}

.share-modal-content {
    padding: 16px 24px 32px 24px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.share-top-actions {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.share-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
}

.share-fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    margin-bottom: 8px;
}

.share-fab-button:hover {
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.copy-link-btn {
    background-color: #607D8B;
}

.more-btn {
    background-color: var(--primary-color, #2196F3);
}

.share-action-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    margin-top: 8px;
}

.share-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 16px 0;
}

.share-platforms {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.share-platforms::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .share-platforms {
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 8px 4px;
        gap: 12px;
        scrollbar-width: thin !important;
        -ms-overflow-style: scrollbar !important;
    }
    
    .share-platforms::-webkit-scrollbar {
        display: block !important;
        height: 6px !important;
        width: 6px !important;
    }
    
    .share-platforms::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 3px;
    }
    
    .share-platforms::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4) !important;
        border-radius: 3px;
    }
    
    .share-platforms::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Force minimum width for share items to ensure scroll */
    .share-platforms .share-action-item {
        min-width: 100px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Force container to always have scroll if content overflows */
    .share-platforms {
        max-width: 280px !important; /* Force container to be smaller than content */
    }
}

.share-platforms .share-action-item {
    flex: 0 0 auto;
    min-width: 80px;
}

@media (max-width: 768px) {
    .share-modal-container {
        min-width: 320px;
        max-width: calc(100vw - 32px);
    }
    .share-platforms > * {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .share-modal-container {
        min-width: 300px;
        max-width: calc(100vw - 16px);
    }
}

.facebook-share-btn {
    background-color: #4267B2;
}

.messenger-share-btn {
    background-color: #0080FF;
}

.twitter-share-btn {
    background-color: #00acee;
}

.reddit-share-btn {
    background-color: #FF4006;
}

.telegram-share-btn {
    background-color: #0088cc;
}

.whatsapp-share-btn {
    background-color: #25D366;
}

.email-share-btn {
    background-color: #FF961C;
}

.pinterest-share-btn {
    background-color: #BD091D;
}

.sms-share-btn {
    background-color: #20c16c;
}

.line-share-btn {
    background-color: #00b900;
}
/* 404 Page Styles */
.error-page-404 {
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 200px 20px 500px 20px;
 }

.error-404-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-404-content {
    padding: 0;
}

.error-404-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    line-height: 1.2;
}

.error-404-subtitle {
    font-size: 14px;
    color: #cccccc;
    font-weight: 400;
    margin: 0;
}

.error-404-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-404-text {
    font-size: 1rem;
    color: #cccccc;
}

.error-404-icon {
    font-size: 1.5rem;
    filter: hue-rotate(320deg) saturate(1.5);
}

.error-404-home-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #555555;
    padding:8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}
/* Responsive Design */
@media (max-width: 768px) {
    .error-404-title {
        font-size: 2.5rem;
    }
    
    .error-404-subtitle {
        font-size: 1rem;
    }
    
    .error-404-content {
        padding: 20px 15px;
    }
    
    .error-404-home-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-404-title {
        font-size: 2rem;
    }
    
    .error-404-message {
        flex-direction: column;
        gap: 5px;
    }
}
@media (max-width: 768px) {
    .drama-card-title,.post-block-info h3{
        font-size: 14px !important;
    }
}

.favorites-loading {
    text-align: center;
    margin-top: 2rem;
    display: none;
}

.favorites-loading-text {
    margin-top: 0.5rem;
}
.favorites-more-container {
    display: none;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

.favorites-more-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorites-more-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.favorites-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.favorites-end-message,
.favorites-empty-message {
    text-align: center;
    margin-top: 2rem;
    display: none;
}

.favorites-end-text,
.favorites-empty-text {
    color: #666;
    margin: 0;
    font-size: 16px;
}
.favorites-data {
    display: none;
}
.favorites-more-container[data-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.favorites-more-hidden {
    display: none !important;
    visibility: hidden !important;
}
.favorites-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.favorites-title-row {
    text-align: center;
    margin-bottom: 1rem;
}

.favorites-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.favorites-controls-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.12);
    padding-bottom: 10px;
}
.favorites-edit-btn {
    background: #ffc107 !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.favorites-edit-btn:hover {
    background: #ffcd3c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

.favorites-edit-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.favorites-cancel-btn {
    background: transparent !important;
    color: #666 !important;
    border: none !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorites-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #888 !important;
}

.favorites-delete-btn {
    background: #e9ecef !important;
    color: #adb5bd !important;
    border: none !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.favorites-delete-btn:not(:disabled) {
    background: #ffc107 !important;
    color: #000 !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.favorites-delete-btn:not(:disabled):hover {
    background: #ffcd3c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

.favorites-delete-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.edit-mode .post-block-card {
    position: relative;
    transition: all 0.3s ease;
}

.edit-mode .post-block-card:hover {
    transform: scale(0.98);
}

.favorite-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.edit-mode .favorite-checkbox {
    opacity: 1;
    transform: scale(1);
}

.favorite-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    accent-color: #ffc107;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

.favorite-checkbox input[type="checkbox"]:checked {
    background: #ffc107;
    border-color: #ffc107;
}
.favorites-title {
    color: #333333 !important;
}
.favorite-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

/* Selected Cards */
.edit-mode .post-block-card.selected {
    opacity: 0.8;
    border: 2px solid #ffc107;
    border-radius: 12px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .favorites-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .favorites-title-row {
        margin-bottom: 0.75rem;
    }
    
    .favorites-title {
        font-size: 1.5rem;
    }
    
    .favorites-controls-row {
        justify-content: center;
    }
    
    .favorites-edit-btn,
    .favorites-cancel-btn,
    .favorites-delete-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .favorites-more-btn {
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .favorites-header {
        padding-bottom: 0.75rem;
    }
    
    .favorites-title {
        font-size: 1.25rem;
    }
    
    .favorites-edit-controls {
        gap: 8px;
    }
    
    .favorites-edit-btn,
    .favorites-cancel-btn,
    .favorites-delete-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .favorites-more-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}