.shorts-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
height: 100dvh;
background: #000;
overflow: hidden;
z-index: 102;
}

.shorts-close-btn {
position: absolute;
top: 20px;
inset-inline-end: 20px;
width: 44px;
height: 44px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 1001;
transition: all 0.2s ease;
text-decoration: none;
}

.shorts-close-btn:hover {
background: rgba(255, 255, 255, 0.1);
transform: scale(1.1);
}

.shorts-close-btn svg {
color: #fff;
width:24px;
height: 24px;
}

.shorts-track {
position: relative;
width: 100%;
height: 100%;
}

.shorts-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
height: 100dvh;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
transition: transform 0.3s ease-out;
user-select: none;
-webkit-tap-highlight-color: transparent;
}

.shorts-video-wrapper {
position: relative;
height: 100%;
width: fit-content;
max-width: 500px;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
.shorts-video-wrapper.loading {
width: 100%;
}
.shorts-video {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.shorts-player {
position: relative;
height: 100%;
width: auto;
max-width: 100%;
border-radius: 15px;
background-color: #000;
overflow: hidden;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}


.shorts-video-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.shorts-video video,
.shorts-video-element {
width: 100%;
height: 100%;
object-fit: contain;
background-color: #000;
max-width: min(100%, 56.25vh);
margin: 0 auto;
display: block;
}

.article_video_figure {
width: 100%;
height: 100%;
margin: 0;
}

.shorts-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20px;
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
z-index: 10;
}
.shorts-info {
opacity: 1;
transition: opacity 0.25s;
}

.hide_animate {
opacity: 0;
}
.shorts-details {
color: #fff;
padding-inline-end: 60px;
}

.shorts-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.shorts-description {
font-size: 14px;
margin-bottom: 8px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.shorts-tags {
display: flex;
flex-wrap: wrap;
gap: 5px;
}

.shorts-tag {
background: rgba(255,255,255,0.2);
color: #fff;
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
backdrop-filter: blur(10px);
}

.shorts-controls {
position: absolute;
inset-inline-end: 10px;
bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
z-index: 20;
}

.shorts-profile {
position: relative;
width: 44px;
height: 44px;
margin-bottom: 10px;
}

.profile-link {
display: block;
width: 44px;
height: 44px;
}

.profile-link img {
width: 100%;
height: 100%;
border-radius: 50%;
border: 2px solid #fff;
object-fit: cover;
}

.profile-follow-btn {
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 24px;
height: 24px;
background: var(--color-e60000);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.profile-follow-btn svg {
width: 14px;
height: 14px;
color: #fff;
}

.profile-follow-btn.following {
background: var(--color-2196f3);
}

.control-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
cursor: pointer;
}

.control-icon {
width: 44px;
height: 44px;
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}

.control-icon:hover {
background: rgba(255,255,255,0.2);
transform: scale(1.1);
}

.control-icon svg {
width: 24px;
height: 24px;
color: #fff;
}

.control-count {
color: #fff;
font-size: 12px;
font-weight: 500;
text-shadow: 0 1px 4px #000, 0 0 8px #111;
}

.shorts-like {
position: relative;
transition: transform 0.2s ease;
}

.shorts-like.active .control-icon {
background: rgba(230,0,0,0.3);
}

.shorts-like.active .control-icon svg {
fill: var(--color-e60000);
}

.pulse {
animation: pulse 0.3s ease;
}

.shorts-save.active .control-icon {
background: rgba(255,193,7,0.3);
}

.shorts-save.active .control-icon svg {
color: #ffc107;
}

@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}

.shorts-play-pause-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
pointer-events: none;
z-index: 25;
}

.shorts-play-pause-overlay.animate {
animation: playPausePulse 0.8s ease-out forwards;
}

@keyframes playPausePulse {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.8);
}
30% {
opacity: 1;
transform: translate(-50%, -50%) scale(1.1);
}
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(1);
}
}

.shorts-play-icon,
.shorts-pause-icon {
width: 80px;
height: 80px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.shorts-play-icon svg,
.shorts-pause-icon svg {
width: 40px;
height: 40px;
fill: currentColor;
}

.shorts-play-icon.hidden,
.shorts-pause-icon.hidden {
display: none;
}

.shorts-progress-container {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 4px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 2px;
cursor: pointer;
transition: height 0.3s ease;
z-index: 25;
}

.shorts-progress-container:hover {
height: 8px;
}
.shorts-progress-bar {
height: 100%;
width: 0;
background-color: var(--color-2196f3);
border-radius: 2px;
position: relative;
}

.shorts-progress-handle {
position: absolute;
top: 50%;
inset-inline-end: -6px;
width: 12px;
height: 12px;
background-color: #fff;
border-radius: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease, opacity 0.3s ease;
opacity: 0;
}

.shorts-progress-container:hover .shorts-progress-handle,
.shorts-progress-handle.dragging {
opacity: 1;
transform: translateY(-50%) scale(1.3);
}
.shorts-nav-arrows {
position: absolute;
top: 50%;
inset-inline-end: 0;
transform: translateY(-50%);
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
pointer-events: none;
z-index: 30;
padding: 0 20px;
}

.shorts-nav-arrow {
width: 48px;
height: 48px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
pointer-events: all;
transition: all 0.2s ease;
}


.shorts-nav-arrow:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
}

.shorts-nav-arrow svg {
width: 24px;
height: 24px;
color: #fff;
}

.shorts-nav-arrow.disabled {
opacity: 0.3;
cursor: not-allowed;
pointer-events: none;
}

.shorts-loader {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: none;
z-index: 35;
}

.shorts-loader.active {
display: block;
}

.shorts-loader-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.shorts-end-message {
position: absolute;
bottom: 50%;
left: 50%;
transform: translate(-50%, 50%);
color: #fff;
background: rgba(0, 0, 0, 0.8);
padding: 15px 30px;
border-radius: 8px;
display: none;
z-index: 35;
}

.shorts-end-message.active {
display: block;
}

.shorts-video-element {
width: 100%;
height: 100%;
object-fit: cover;
background-color: #000;
transition: opacity 0.3s ease;
}
.shorts-fixed-time {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
font-size: 28px;
font-weight: 700;
color: #fff;
pointer-events: none;
z-index: 30;
white-space: nowrap;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.shorts-details-content {
position: relative;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
transition: all 0.3s ease;
}

.shorts-details-content.expanded {
-webkit-line-clamp: unset;
display: block;
}

.shorts-expand-btn {
color: #ddd;
font-weight: 600;
opacity: 0.8;
font-size: 14px;
margin-top: 5px;
transition: opacity 0.2s ease;
}

.shorts-expand-btn:hover {
opacity: 1;
}
.shorts-video-loader {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}

.shorts-video-loader-spinner {
width: 70px;
height: 70px;
border: 3px solid #555;
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

.shorts-video-element {
opacity: 0;
transition: opacity 0.3s ease;
}

.shorts-video-element.loaded {
opacity: 1;
}
.double-tap-heart {
position: absolute;
width: 100px;
height: 100px;
pointer-events: none;
z-index: 100;
transform: translate(-50%, -50%);
animation: doubleTapHeart 1s ease-out forwards;
}

.double-tap-heart svg {
width: 100%;
height: 100%;
color: var(--color-e60000);
}

@keyframes doubleTapHeart {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(0);
}
15% {
opacity: 1;
transform: translate(-50%, -50%) scale(1.2);
}
30% {
transform: translate(-50%, -50%) scale(0.95);
}
45%, 80% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(1);
}
}
@media (max-width: 768px) {
.control-item svg {
filter: drop-shadow(0 1.5px 6px rgba(0,0,0,0.25));
}
 .shorts-details-content {
-webkit-line-clamp: 2;
}
.shorts-expand-btn {
font-size: 13px;
}
 .shorts-play-pause-overlay.visible:not(.animate) {
opacity: 1;
}
.shorts-play-pause-overlay.animate.play-action {
display: none;
}
.shorts-play-pause-overlay {
opacity: 0;
}

.shorts-play-pause-overlay.visible {
opacity: 1;
}
.shorts-player {
border-radius: unset;
}
.shorts-slide {
padding: unset;
}
.shorts-close-btn {
top: 15px;
inset-inline-end: 15px;
width: 40px;
height: 40px;
background: rgba(0, 0, 0, 0.7);
}

.shorts-info {
padding: 15px 15px 20px 15px;
}

.shorts-details {
padding-inline-end: 70px;
}

.shorts-title {
font-size: 14px;
}

.shorts-description {
font-size: 13px;
}

.shorts-controls {
inset-inline-end: 8px;
bottom: 20px;
gap: 10px;
}

.shorts-like.active .control-icon {
background: unset;
}
.shorts-save.active .control-icon {
background: unset;
}
.control-icon svg {
width: 34px;
height: 34px;
color: #fff;
}
.control-icon {
width: 40px;
height: 40px;
background: none;
backdrop-filter: none;
}

.control-icon:hover {
background: none;
transform: scale(1.1);
}

.shorts-profile {
width: 40px;
height: 40px;
}

.profile-link {
width: 40px;
height: 40px;
}

.profile-follow-btn {
width: 22px;
height: 22px;
}

.profile-follow-btn svg {
width: 12px;
height: 12px;
}

.shorts-play-icon,
.shorts-pause-icon {
width: 70px;
height: 70px;
}

.shorts-play-icon svg,
.shorts-pause-icon svg {
width: 35px;
height: 35px;
}

.shorts-progress-container {
 bottom: 10px;
margin: 0 15px;
height: 5px;
}
.shorts-progress-container:hover {
height: 6px;
}
.shorts-progress-bar {
background-color: #fff;
}
.shorts-nav-arrows {
display: none;
}
}