/**
 * Planning Center Sermon Series - Main Styles
 */

/* Current Series Display */
.pco-current-series {
    /* padding: 60px 40px; */
    border-radius: 12px;
    margin: 40px 0;
}

.pco-current-series-inner {
    display: flex;
    align-items: center;
    /* gap: 60px; */
    max-width: 1200px;
    margin: 0 auto;
}

.pco-series-content {
    flex: 1;
}

.pco-series-label {
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0px 0px calc(var(--kit-widget-spacing, 0px) + -40px) 0px;
}

.pco-series-title {
    text-transform: uppercase;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: -10px;
    color: #FFFFFF;
}

.pco-series-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: -10px;
}

.pco-explore-button {
    display: inline-block;
    background: #FFFFFF;
    color: #237781;
    padding: 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pco-explore-button:hover {
    background: #ffffff;
    color: #237781;
}

.pco-series-artwork {
    flex: 0 0 550px;
}

.pco-series-artwork img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Sermon Archive Grid */
.pco-sermon-archive {
    padding: 20px 0;
}

.pco-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.pco-series-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pco-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pco-series-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pco-series-card-image {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.pco-series-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pco-series-card-content {
    padding: 20px;
}

.pco-series-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.pco-series-card-description {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

.pco-series-card-date {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Series Detail Page */
.pco-series-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Series Information Section */
.pco-series-info-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.pco-series-info-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pco-series-info-image {
    flex: 0 0 300px;
}

.pco-series-info-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pco-series-info-content {
    flex: 1;
}

.pco-series-info-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.2;
}

.pco-series-info-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Latest Episode Section */
.pco-latest-episode-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.pco-latest-episode-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.pco-episode-player {
    margin-bottom: 30px;
}

.pco-episode-details {
    margin-top: 30px;
}

.pco-episode-details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pco-episode-thumbnail {
    flex: 0 0 150px;
}

.pco-episode-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.pco-episode-meta {
    flex: 1;
}

.pco-episode-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.pco-episode-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.pco-episode-title a:hover {
    color: #2563eb;
}

.pco-episode-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 16px;
}

.pco-episode-separator {
    color: #ccc;
}

.pco-episode-speaker {
    font-weight: 600;
}

.pco-episode-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Resources Section */
.pco-episode-resources {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.pco-episode-resources h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pco-resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pco-resource-item {
    margin-bottom: 12px;
}

.pco-resource-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pco-resource-item a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateX(5px);
}

.pco-resource-icon {
    font-size: 20px;
}

.pco-no-episodes-message {
    background: #fff3cd;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

/* Other Episodes Section */
.pco-other-episodes-section {
    margin-top: 40px;
}

.pco-other-episodes-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.pco-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pco-episode-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pco-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pco-episode-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pco-episode-card-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.pco-episode-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pco-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2563eb;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.pco-episode-card:hover .pco-play-icon {
    opacity: 1;
}

.pco-episode-card-content {
    padding: 20px;
}

.pco-episode-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.pco-episode-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.pco-episode-card-speaker {
    font-weight: 600;
}

/* Sermon Detail Page */
.pco-sermon-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pco-sermon-series-bar {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pco-series-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.pco-series-info {
    flex: 1;
}

.pco-series-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.pco-sermon-header {
    text-align: center;
    margin-bottom: 40px;
}

.pco-sermon-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.2;
}

.pco-sermon-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.pco-sermon-speaker {
    font-weight: 600;
    color: #2563eb;
}

.pco-sermon-date {
    color: #666;
}

.pco-meta-separator {
    color: #ccc;
}

.pco-sermon-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.pco-sermon-main {
    min-width: 0;
}

.pco-sermon-player {
    margin-bottom: 40px;
}

.pco-sermon-about {
    margin-bottom: 40px;
}

.pco-sermon-about h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.pco-sermon-series-messages {
    margin-top: 40px;
}

.pco-sermon-series-messages h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.pco-series-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pco-series-episode-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pco-series-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pco-series-episode-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pco-episode-card-image {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.pco-episode-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pco-episode-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2563eb;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.pco-series-episode-card h4 {
    padding: 15px;
    font-size: 15px;
    margin: 0;
    color: #1a1a1a;
}

.pco-sermon-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.pco-sermon-share {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.pco-sermon-share h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pco-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pco-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pco-share-facebook {
    background: #1877f2;
    color: #fff;
}

.pco-share-facebook:hover {
    background: #145dbf;
}

.pco-share-twitter {
    background: #1da1f2;
    color: #fff;
}

.pco-share-twitter:hover {
    background: #0c85d0;
}

.pco-share-copy {
    background: #6c757d;
    color: #fff;
}

.pco-share-copy:hover {
    background: #5a6268;
}

.pco-recent-messages {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.pco-recent-messages h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pco-recent-message-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.pco-recent-message-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pco-recent-message-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.pco-recent-message-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pco-recent-message-info {
    flex: 1;
    min-width: 0;
}

.pco-recent-message-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pco-recent-message-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.pco-recent-message-title a:hover {
    color: #2563eb;
}

.pco-recent-message-meta {
    font-size: 12px;
    color: #666;
}

.pco-next-steps {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.pco-next-steps h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pco-next-step-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pco-next-step-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.pco-next-step-button:last-child {
    margin-bottom: 0;
}

/* Settings Page */
.pco-settings-wrap {
    max-width: 900px;
    margin: 40px 0;
}

.pco-settings-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.pco-settings-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.pco-form-group {
    margin-bottom: 25px;
}

.pco-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.pco-form-group input[type="text"],
.pco-form-group input[type="password"],
.pco-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pco-form-group input[type="text"]:focus,
.pco-form-group input[type="password"]:focus,
.pco-form-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pco-form-help {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.pco-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.pco-status-success {
    background: #d1fae5;
    color: #065f46;
}

.pco-status-error {
    background: #fee2e2;
    color: #991b1b;
}

.pco-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.pco-test-connection-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pco-test-connection-btn:hover {
    background: #1d4ed8;
}

.pco-cache-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pco-cache-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.pco-cache-stat:last-child {
    border-bottom: none;
}

.pco-cache-stat-label {
    font-weight: 600;
    color: #1a1a1a;
}

.pco-cache-stat-value {
    color: #666;
}

.pco-clear-cache-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pco-clear-cache-btn:hover {
    background: #b91c1c;
}

/* Loading States */
.pco-loading {
    text-align: center;
    padding: 60px 20px;
}

.pco-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pco-loading-text {
    color: #666;
    font-size: 16px;
}

/* Error States */
.pco-error {
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.pco-error h3 {
    color: #991b1b;
    font-size: 20px;
    margin-bottom: 10px;
}

.pco-error p {
    color: #7f1d1d;
    margin-bottom: 0;
}

/* Empty States */
.pco-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.pco-empty-state-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.pco-empty-state h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pco-empty-state p {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pco-sermon-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .pco-sermon-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) {
    .pco-current-series-inner {
        flex-direction: column;
    }
    
    .pco-series-artwork {
        flex: 1 1 auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .pco-series-title {
        font-size: 32px;
    }
    
    .pco-sermon-title {
        font-size: 32px;
    }
    
    .pco-series-grid {
        grid-template-columns: 1fr;
    }
    
    .pco-episode-link {
        flex-direction: column;
    }
    
    .pco-episode-thumbnail {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ===== New Horizontal Layout Styles ===== */

/* Archive Title */
.pco-archive-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

/* Series Detail - Horizontal Layout */
.pco-series-info-section-horizontal {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.pco-series-info-image-horizontal {
    flex: 0 0 50%;
    max-width: 50%;
}

.pco-series-info-image-horizontal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pco-series-info-content-horizontal {
    flex: 1;
}

.pco-series-info-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.2;
}

.pco-series-info-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* ===== VERTICAL EPISODE LAYOUT - Messages in This Series ===== */
/* Episodes Horizontal Section */
.pco-episodes-horizontal-section {
    margin-top: 40px;
}

.pco-episodes-horizontal-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Override to Stack Vertically */
.pco-episodes-horizontal-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Episode Card - Horizontal Layout (Image Left, Info Right) */
.pco-episode-horizontal-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

.pco-episode-horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Episode Thumbnail - Fixed Width on Left */
.pco-episode-horizontal-card .pco-episode-thumbnail {
    flex: 0 0 300px;
    width: 300px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.pco-episode-horizontal-card .pco-episode-thumbnail::before {
    content: '';
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.pco-episode-horizontal-card .pco-episode-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Overlay on Thumbnail */
.pco-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.pco-episode-horizontal-card:hover .pco-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.pco-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
}

.pco-episode-horizontal-card:hover .pco-play-icon {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Episode Info - Takes Remaining Space */
.pco-episode-horizontal-info {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

/* Episode Title - Larger */
.pco-episode-horizontal-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
}

.pco-episode-horizontal-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pco-episode-horizontal-title a:hover,
.pco-episode-horizontal-card:hover .pco-episode-horizontal-title {
    color: #237781;
}

/* Episode Meta - Stack Vertically */
.pco-episode-horizontal-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

/* Hide the separator bullet */
.pco-episode-horizontal-meta .pco-meta-separator {
    display: none;
}

/* Speaker Name */
.pco-episode-speaker {
    font-size: 1rem;
    font-weight: 600;
    color: #237781;
    display: block;
    width: 100%;
}

/* Date */
.pco-episode-date {
    font-size: 0.95rem;
    color: #666666;
    display: block;
    width: 100%;
}

/* Episode Description */
.pco-episode-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== END VERTICAL EPISODE LAYOUT ===== */

.pco-episode-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.pco-episode-video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pco-no-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
}

.pco-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.pco-error-message h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ===== Video Player 16:9 Responsive ===== */

.pco-video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.pco-video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== More Series Section ===== */

.pco-more-series-section {
    margin-top: 60px;
    margin-bottom: 50px;
}

.pco-more-series-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* More Series Grid - 3 Columns */
.pco-more-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* More Series Card */
.pco-more-series-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.pco-more-series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pco-more-series-card a {
    text-decoration: none;
    display: block;
}

/* More Series Image */
.pco-more-series-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative; /* Added for badge positioning */
}

.pco-more-series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.pco-more-series-card:hover .pco-more-series-image img {
    transform: scale(1.05);
}

/* Coming Soon Badge - Red Corner Ribbon Style */
.pco-coming-soon-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.pco-coming-soon-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, 
        #E63946 0%, 
        #E63946 47%, 
        #C92A35 47%, 
        #C92A35 53%,
        #E63946 53%,
        #E63946 100%);
    transform: rotate(-45deg) translate(-30%, -70%);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.pco-coming-soon-badge span {
    position: absolute;
    top: 24px;
    left: -6px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-transform: uppercase;
    transform: rotate(-45deg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    z-index: 2;
}

/* More Series Title */
.pco-more-series-title {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px;
    line-height: 1.4;
    margin: 0;
}

/* ===== Responsive for Horizontal and Vertical Layouts ===== */

@media (max-width: 1024px) {
    .pco-series-info-section-horizontal {
        flex-direction: column;
    }
    
    .pco-series-info-image-horizontal {
        flex: 1 1 auto;
        max-width: 400px;
    }
    
    /* Vertical Episode Layout - Tablet */
    .pco-episode-horizontal-card .pco-episode-thumbnail {
        flex: 0 0 250px;
        width: 250px;
    }
    
    .pco-episode-horizontal-info {
        padding: 15px 20px;
    }
    
    .pco-episode-horizontal-title {
        font-size: 1.3rem;
    }
    
    /* More Series - 2 Columns on Tablet */
    .pco-more-series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pco-archive-title,
    .pco-series-info-title {
        font-size: 32px;
    }
    
    .pco-episodes-horizontal-section h2 {
        font-size: 28px;
    }
    
    .pco-series-info-section-horizontal {
        padding: 20px;
    }
    
    /* Vertical Episode Layout - Mobile (Stack) */
    .pco-episode-horizontal-card {
        flex-direction: column;
    }
    
    .pco-episode-horizontal-card .pco-episode-thumbnail {
        flex: none;
        width: 100%;
    }
    
    .pco-episode-horizontal-info {
        padding: 20px;
    }
    
    .pco-episode-horizontal-title {
        font-size: 1.2rem;
    }
    
    /* More Series - 1 Column on Mobile */
    .pco-more-series-grid {
        grid-template-columns: 1fr;
    }
    
    .pco-more-series-section h2 {
        font-size: 1.5rem;
    }
}
