/**
 * Public styles for TRT Live Articles
 */

/* Main container */
.trt-live-article {
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.trt-live-article-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 20px;
}

.trt-live-article-status-banner {
    background-color: #121212;
    color: #fff;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trt-live-article-status-banner.active {
    background-color: #d31c1c;
}

.trt-live-article-status-banner.draft {
    background-color: #777;
}

.trt-live-article-status-banner.closed {
    background-color: #121212;
}

.trt-live-article-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 15px;
}

.trt-live-article-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.trt-live-article-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Video layout */
.trt-live-article-with-video {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Side-by-side layout */
.trt-live-article-with-video.side-by-side {
    flex-direction: row;
    align-items: flex-start;
}

.trt-live-article-with-video.side-by-side .trt-live-article-video-container {
    flex: 0 0 60%;
    position: sticky;
    top: 20px;
}

.trt-live-article-with-video.side-by-side .trt-live-article-feed-container {
    flex: 0 0 40%;
    max-height: none;
    overflow-y: visible;
    border-left: 1px solid #e2e2e2;
    padding-left: 30px;
}

.trt-live-article-video-container {
    min-width: 500px;
    margin-bottom: 20px;
}

.trt-live-article-feed-container {
    min-width: 300px;
}

.trt-live-article-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.trt-live-article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trt-live-article-video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Video header styling */
.trt-live-article-feed-header.video-header {
    margin-bottom: 15px;
}

/* Feed container */
.trt-live-updates-container {
    position: relative;
}

.trt-live-article-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
}

.trt-live-article-feed-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.trt-live-updates-notification {
    display: none;
    position: fixed;
    padding: 15px;
    background-color: #fff;
    border-left: 4px solid #d31c1c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    transition: all 0.3s ease;
}

.trt-live-updates-notification.bottom-right {
    bottom: 20px;
    right: 20px;
}

.trt-live-updates-notification.bottom-left {
    bottom: 20px;
    left: 20px;
}

.trt-live-updates-notification.top-right {
    top: 20px;
    right: 20px;
}

.trt-live-updates-notification.top-left {
    top: 20px;
    left: 20px;
}

.trt-notification-icon {
    margin-right: 10px;
    color: #d31c1c;
}

.trt-notification-message {
    font-weight: 600;
}

.trt-live-updates-list {
    position: relative;
    margin-top: 20px;
}

.trt-live-update {
    margin-bottom: 17px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
}

.trt-live-update:last-child {
    border-bottom: none;
}

.trt-live-update.pinned {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #d31c1c;
    margin-bottom: 30px;
}

.trt-live-update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.trt-live-update-author {
    display: flex;
    align-items: flex-start;
}

.trt-live-update-author-avatar {
    margin-right: 10px;
    flex-shrink: 0;
}

.trt-live-update-author-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
}

.trt-live-update-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from space-between to allow manual positioning */
    height: 35px; /* Match new avatar height */
}

.trt-live-update-timestamp {
    font-size: 11px;
    display: flex;
    align-items: center;
    margin-top: 0px; /* Brought up by 4px from 4px */
}

.trt-live-update-time, 
.trt-time-updated {
    color: #d31c1c !important;
    font-weight: 700;
}

.trt-live-update-author-name {
    font-weight: normal;
    font-size: 12px;
    color: #333;
    margin-top: -3px; /* Brought up by another 1px from -2px */
    margin-bottom: 1px;
}

.trt-live-update-permalink {
    flex-shrink: 0;
    position: relative;
}

.trt-live-update-permalink a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trt-live-update-permalink a:hover {
    color: #d31c1c;
}

/* Permalink tooltip */
.trt-permalink-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 0.3s ease-in-out;
    z-index: 100;
}

.trt-permalink-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #333 transparent transparent;
}

/* Copy link menu */
.trt-copy-menu {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 8px;
    z-index: 100;
    display: none;
    width: 150px;
}

.trt-copy-menu:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.1));
}

.trt-copy-menu-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.trt-copy-option {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 3px;
    margin: 3px 0;
    font-size: 13px;
    transition: background-color 0.2s;
}

.trt-copy-option:hover {
    background-color: #f0f0f0;
    color: #d31c1c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Permalink highlight when loaded from URL */
.trt-live-update.permalink-highlight {
    position: relative;
}

/* Regular update highlight */
.trt-live-update.permalink-highlight:before {
    content: "";
    position: absolute;
    top: -17px; /* Extend up to the bottom of the previous update */
    left: -8px;
    right: -8px;
    bottom: -1px;
    background-color: rgba(200, 200, 200, 0.3);
    z-index: -1;
    animation: permalink-highlight-fade 2s 1 forwards;
}

/* First update highlight that extends to the feed header */
.trt-live-update.permalink-highlight-first {
    position: relative;
}

.trt-live-update.permalink-highlight-first:before {
    content: "";
    position: absolute;
    top: -20px; /* Extend up to the feed header */
    left: -8px;
    right: -8px;
    bottom: -1px;
    background-color: rgba(200, 200, 200, 0.3);
    z-index: -1;
    animation: permalink-highlight-fade 2s 1 forwards;
}

@keyframes permalink-highlight-fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.trt-live-update-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: -12px;
    margin-bottom: 15px;
    color: #333;
}

.trt-live-update-content {
    font-size: 1.25rem;
    line-height: 1.6;
}

.trt-live-update-content p {
    margin-top: -8px;
    margin-bottom: 10px;
}

.trt-live-update-content-preview,
.trt-live-update-content-full {
    overflow: hidden;
    font-size: 1.25rem;
}

.trt-live-update-content-preview img,
.trt-live-update-content-preview .wp-caption,
.trt-live-update-content-preview figure {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin-bottom: 0;
}

.trt-live-show-more,
.trt-live-show-less {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 15px 0 5px 0;
    display: inline-block;
    clear: both;
}

.trt-live-show-more:hover,
.trt-live-show-less:hover {
    background-color: #e0e0e0;
}

.trt-live-update-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

/* Image with caption styling */
.trt-live-update-content figure.wp-caption,
.trt-live-update-content div.wp-caption {
    max-width: 100% !important;
    margin: 0;
    box-sizing: border-box;
}

.trt-live-update-content figure.wp-caption img,
.trt-live-update-content div.wp-caption img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

.trt-live-update-content figure.wp-caption figcaption,
.trt-live-update-content div.wp-caption .wp-caption-text {
    padding-top: 12px;
    padding-bottom: 6px;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
    color: #333;
    font-style: normal;
    text-align: left;
    border-bottom: none;
    display: block !important;
    visibility: visible !important;
    background-color: transparent;
    position: relative;
    top: 11px;
}

.trt-live-update-content figure.wp-caption .image-credit,
.trt-live-update-content div.wp-caption .image-credit {
    display: block;
    font-size: 0.8rem;
    color: #777;
    font-style: normal;
    margin-top: 4px;
}

.trt-live-update-content .image-caption {
    display: block;
    padding: 10px 0 4px 0; /* Increased top padding by 6px from 4px to 10px */
    font-size: 0.92rem;
    line-height: 1.4;
    border-bottom: none;
    margin-bottom: 0;
    font-style: normal;
}

.trt-live-update-content .image-credit {
    display: block;
    font-size: 0.8rem;
    color: #777;
    font-style: normal;
    margin-top: -5px;
    margin-bottom: 0;
}

/* Alignment classes for captions */
.trt-live-update-content .alignnone {
    margin: 0;
}

.trt-live-update-content .aligncenter {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Remove spacing between images and following paragraphs */
.trt-live-update-content figure + p,
.trt-live-update-content img + p,
.trt-live-update-content .wp-caption + p {
    margin-top: -14px;
}

/* Remove spacing between images and any element */
.trt-live-update-content figure,
.trt-live-update-content img,
.trt-live-update-content .wp-caption {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.trt-live-update-content .alignright {
    float: right;
    margin: 0 0 0 10px;
}

.trt-live-update-content .alignleft {
    float: left;
    margin: 0 10px 0 0;
}

/* Quote styling */
.trt-live-quotes {
    margin: 20px 0;
}

.trt-live-quote {
    margin: 15px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 3px solid #d31c1c;
    position: relative;
}

.trt-live-quote-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.trt-live-quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    margin-right: 10px;
}

.trt-live-quote-author strong {
    position: relative;
    margin-right: 8px;
}

/* Add white colon after author name */
.trt-live-quote-author strong::after {
    content: ":";
    position: absolute;
    right: -8px;
    color: #f5f5f5;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.trt-live-quote-content {
    font-style: italic;
    line-height: 1.6;
    margin-top: 5px;
}

/* Load more button */
.trt-live-load-more {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.trt-live-load-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f7f7f7;
    border: 1px solid #e2e2e2;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trt-live-load-more-button:hover {
    background-color: #e2e2e2;
}

/* Frontend update form */
.trt-live-frontend-update-form {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
}

/* Special styling for update form in video layout */
.trt-live-article-with-video.side-by-side .trt-live-frontend-update-form {
    margin-top: 5px;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.trt-live-frontend-update-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.trt-live-update-form-title {
    margin-bottom: 15px;
}

.trt-live-update-form-title label,
.trt-live-update-form-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.trt-live-update-form-title input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.trt-live-update-form-content {
    margin-bottom: 15px;
}

.trt-live-update-form-content .description {
    font-size: 13px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Set a sensible max height for TinyMCE in video layout */
.trt-live-article-with-video.side-by-side .wp-editor-container {
    max-height: 250px;
}

.trt-live-article-with-video.side-by-side .mce-edit-area iframe {
    min-height: 120px !important;
}

.trt-live-frontend-update-form button {
    padding: 10px 20px;
    background-color: #d31c1c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.trt-live-frontend-update-form button:hover {
    background-color: #c01616;
}

.trt-live-frontend-update-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Form messages */
.trt-live-form-message {
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.trt-live-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.trt-live-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Real-time update animation */
.trt-live-update.new-update {
    transition: background-color 0.5s ease;
}

.trt-live-update.highlight {
    position: relative;
}

/* Special positioning for the first update to extend up to the list top */
.trt-live-updates-list > .trt-live-update.highlight:first-child:before {
    content: "";
    position: absolute;
    top: -20px; /* Extend up to the start of trt-live-updates-list */
    left: -8px;
    right: -8px;
    bottom: -1px; /* Extend to cover the border-bottom */
    background-color: rgba(211, 28, 28, 0.3);
    border-radius: 0;
    z-index: -1;
    animation: highlight-pulse 2s 1 forwards;
}

/* Regular positioning for non-first updates */
.trt-live-update.highlight:not(:first-child):before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    right: -8px;
    bottom: -1px; /* Extend to cover the border-bottom */
    background-color: rgba(211, 28, 28, 0.3);
    border-radius: 0;
    z-index: -1;
    animation: highlight-pulse 2s 1 forwards;
}

@keyframes highlight-pulse {
    0% { opacity: 0.9; }
    25% { opacity: 0.7; }
    75% { opacity: 0.5; }
    100% { opacity: 0; }
}

/* Ghost update styling */
.ghost-update {
    position: relative;
    opacity: 0.7;
    background-color: #f9f9f9 !important;
    border-left: 3px solid #d3d3d3 !important;
    transition: all 0.3s ease;
    animation: ghost-appear 0.5s ease-in-out;
    z-index: 10; /* Ensure ghost updates appear on top */
}

@keyframes ghost-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 0.7; transform: translateY(0); }
}

.ghost-update:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 10px,
        rgba(220, 220, 220, 0.1) 10px,
        rgba(220, 220, 220, 0.1) 20px
    );
    pointer-events: none;
    animation: pattern-fade 2s infinite linear;
}

@keyframes pattern-fade {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Styles for persistent ghost updates */
.ghost-update.ghost-persistent:before {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 8px,
        rgba(211, 28, 28, 0.05) 8px,
        rgba(211, 28, 28, 0.05) 16px
    );
}

/* Transition style for when ghost is being replaced */
.ghost-update.ghost-transitioning {
    opacity: 0.4;
    border-left: 3px solid #4CAF50 !important;
    transition: all 0.4s ease-out;
}

.ghost-update-status {
    font-style: normal;
    color: #777;
    font-size: 0.8rem;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #ddd;
    animation: pulse 1.5s infinite;
}

.ghost-update-status a.ghost-refresh {
    color: #d31c1c;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 5px;
}

.ghost-update-status a.ghost-refresh:hover {
    text-decoration: none;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* User submitted update highlight */
.user-submitted-update {
    position: relative;
    z-index: 20; /* Ensure real updates appear above ghost updates */
}

.trt-live-update.highlight-strong {
    position: relative;
}

/* Special positioning for the first update to extend up to the list top */
.trt-live-updates-list > .trt-live-update.highlight-strong:first-child:before {
    content: "";
    position: absolute;
    top: -20px; /* Extend up to the start of trt-live-updates-list */
    left: -8px;
    right: -8px;
    bottom: -1px; /* Extend to cover the border-bottom */
    background-color: rgba(76, 175, 80, 0.3);
    border-radius: 0;
    z-index: -1;
    animation: highlight-pulse-strong 2.5s 1 forwards;
}

/* Regular positioning for non-first updates */
.trt-live-update.highlight-strong:not(:first-child):before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    right: -8px;
    bottom: -1px; /* Extend to cover the border-bottom */
    background-color: rgba(76, 175, 80, 0.3);
    border-radius: 0;
    z-index: -1;
    animation: highlight-pulse-strong 2.5s 1 forwards;
}

@keyframes highlight-pulse-strong {
    0% { opacity: 1; }
    25% { opacity: 0.8; }
    75% { opacity: 0.4; }
    100% { opacity: 0; }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .trt-live-article-with-video.side-by-side {
        flex-direction: column;
    }
    
    .trt-live-article-with-video.side-by-side .trt-live-article-video-container,
    .trt-live-article-with-video.side-by-side .trt-live-article-feed-container {
        flex: 1 0 100%;
        width: 100%;
    }
    
    .trt-live-article-with-video.side-by-side .trt-live-article-video-container {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .trt-live-article-with-video.side-by-side .trt-live-article-feed-container {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e2e2;
        padding-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .trt-live-article-title {
        font-size: 24px;
    }
    
    .trt-live-article-description {
        font-size: 16px;
    }
    
    .trt-live-article-with-video {
        flex-direction: column;
    }
    
    .trt-live-update-author {
        margin-bottom: 10px;
    }
}

/* TRT Plyr Video Player Styles */
#trt-video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#trt-video-player {
    width: 100%;
    height: auto;
    display: block;
}

.trt-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10;
}

/* Video title bar (contains live indicator and title) */
.trt-video-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Ensure title bar stays on top in Plyr */
.plyr .trt-video-title-bar {
    z-index: 10;
}

/* Live indicator */
.trt-live-indicator {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    flex-shrink: 0;
}

/* Video title */
.trt-video-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    max-width: 500px;
}

/* Hide title bar when controls are hidden */
.plyr--hide-controls .trt-video-title-bar {
    opacity: 0;
}

/* Fullscreen title bar (no badge, just title) */
.trt-fullscreen-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Ensure title shows in Plyr video wrapper */
.plyr__video-wrapper .trt-fullscreen-title-bar {
    z-index: 10;
}

/* Force visibility in fullscreen */
.plyr--fullscreen .trt-fullscreen-title-bar {
    display: block !important;
}

.trt-fullscreen-title {
    color: white;
    font-size: 38px; /* 20px larger than normal 18px */
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    display: block;
}

/* Hide fullscreen title when controls are hidden */
.plyr--hide-controls .trt-fullscreen-title-bar {
    opacity: 0;
}

/* Ensure normal title bar is never shown in fullscreen */
.plyr--fullscreen .trt-video-title-bar {
    display: none !important;
}

/* Ensure Plyr controls are visible */
.plyr {
    border-radius: 8px;
}

.plyr__video-wrapper {
    background: #000;
}

/* Hide progress bar for live streams */
.plyr--live .plyr__progress {
    display: none;
}

.plyr--live .plyr__time {
    display: none;
}

/* Style live stream differently */
.plyr--live .plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Error message styling */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

/* Responsive video container */
@media screen and (max-width: 768px) {
    #trt-video-player-wrapper {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .trt-live-indicator {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Fullscreen update notifications */
.trt-fullscreen-notifications {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.trt-fullscreen-notifications::-webkit-scrollbar {
    width: 6px;
}

.trt-fullscreen-notifications::-webkit-scrollbar-track {
    background: transparent;
}

.trt-fullscreen-notifications::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.trt-update-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keep notifications visible even when controls are hidden */
.plyr--hide-controls .trt-fullscreen-notifications {
    opacity: 1;
    /* Notifications stay visible during inactivity */
}

/* Read More link styling */
.trt-read-more-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.trt-read-more-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Ensure link is clickable with proper z-index */
.trt-update-notification .trt-read-more-link {
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
}

/* Ensure notifications container is above everything */
.trt-fullscreen-notifications {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.trt-update-notification {
    pointer-events: auto !important;
    cursor: default;
}