/* Shorts Page Styles */
.shorts-page {
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
}

/* Header Section */
.shorts-header {
    position: initial;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.icon-btn {
    background-color: #ffffff;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shorts-title {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    margin: 0;
    font-family: sans-serif;
}

/* Advertisement Section */
.ad-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 336px;
    height: 280px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000000;
    font-family: sans-serif;
}

/* Video Titles Section */
.video-titles-section {
    background-color: #4b22b3;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 20px;
    font-family: sans-serif;
    line-height: 1.8;
    border-radius: 5px;
    font-weight: bold;
}

/* Main Content Section */
.main-content {
    margin-bottom: 20px;
    background-color: #faf9fd;
    padding: 15px;
    border-radius: 4px;
    position: relative;
    overflow: visible;
    margin-top: 110px;
}

.thumbnail-placeholder {
    float: left;
    width: 200px;
    height: 280px;
    background-color: #cdcdcd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    font-family: sans-serif;
    margin-right: 15px;
    margin-bottom: 15px;
    margin-top: 0;
    margin-left: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.thumbnail-placeholder img{
    width: 100%;
}

.text-paragraph {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 0;
    font-family: sans-serif;
    text-align: justify;
    overflow: visible;
    white-space: pre-wrap;
}

.text-paragraph:last-child {
    margin-bottom: 0;
}

/* Free to Watch Button */
.watch-button-section {
    margin-bottom: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.free-watch-btn {
    background-color: #ff0000;
    border: none;
    border-radius: 50px;
    padding: 8px 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.free-watch-btn:hover {
    background-color: #e60000;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 0, 0, 0.5), 0 0 0 8px rgba(255, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    }
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
}

.play-icon svg {
    width: 20px;
    height: 20px;
}

.btn-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: 0.5px;
}

/* Tags Section */
.tags-section {
    margin-bottom: 30px;
    padding: 0 10px;
}

.tags-label {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    font-family: sans-serif;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.tag {
    background-color: #faf9fd;
    padding: 5px 30px;
    border-radius: 15px;
    font-size: 15px;
    color: #333333;
    font-family: sans-serif;
    display: inline-block;
}

/* Tag layout: first two on same line, third centered below on its own line */
.tags-container .tag:nth-child(1),
.tags-container .tag:nth-child(2) {
    flex: 0 0 auto;
}

.tags-container .tag:nth-child(3) {
    text-align: center;
    display: block;
    width: 50%;
}

/* Responsive Design */
@media (min-width: 768px) {
    .thumbnail-placeholder {
        width: 150px;
        height: 200px;
        margin-top: -105px;
        margin-left: -14px;
    }
}

@media (max-width: 767px) {
    .shorts-title {
        font-size: 24px;
    }
    
    .ad-placeholder {
        width: 100%;
        max-width: 336px;
        height: auto;
        min-height: 200px;
    }
    
    .thumbnail-placeholder {
        width: 150px;
        height: 200px;
        margin-top: -105px;
        margin-left: -14px;
    }
    
    .main-content {
        overflow: visible;
        margin-top: 110px;
    }
}

/* Footer Styles */
.tt-footer {
    background-color: #ffffff;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.tt-footer-copy {
    text-align: center;
}

.tt-footer-copy .container {
    max-width: 100%;
    padding: 0 2px;
}

.tt-footer-copy p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 22px;
    color: #666666;
    font-family: sans-serif;
}

.tt-footer-copy a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s;
}

.tt-footer-copy a:hover {
    color: #000000;
}

.ft-p-left {
    margin-bottom: 10px;
}

.ft-p-right {
    margin-top: 5px;
}

.ft-p-right a {
    margin: 0 8px;
}

.tt-footer p{
    text-align: left;
}

/* Video Detail Page Styles */
.video-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    overflow: hidden;
}

.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000000;
}

/* Video Overlay Controls */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.back-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Video Info Overlay */
.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-family: sans-serif;
}

.video-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: sans-serif;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.video-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-btn {
    background-color: transparent;
    border: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn span {
    font-size: 12px;
    font-family: sans-serif;
}

.action-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive adjustments */
@media (orientation: landscape) {
    .vertical-video-player {
        width: auto;
        height: 100%;
    }
}

@media (orientation: portrait) {
    .vertical-video-player {
        width: 100%;
        height: auto;
        max-height: 100vh;
    }
}

/* Download App Overlay */
.download-app-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-app-content {
    padding: 10px;
    width: 90%;
    max-width: 500px;
}

.download-app-btn {
    display: block;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px 16px;
    border-radius: 50px;
    font-family: sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    animation: pulseDownload 2s infinite;
}

.download-app-btn:hover {
    background-color: #e60000;
    /*transform: scale(1.05);*/
    /*box-shadow: 0 6px 30px rgba(255, 0, 0, 0.6);*/
    color: #ffffff;
}

.download-app-btn:active {
    transform: scale(0.98);
}

@keyframes pulseDownload {
    0% {
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 0, 0, 0.6), 0 0 0 10px rgba(255, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    }
}