﻿.watch-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #050608;
    color: #fff;
}

.watch-header {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #080a0e;
}

.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: #fff;
    cursor: pointer;
}

    .back-button:hover {
        background: rgba(255, 255, 255, .08);
    }

.watch-title {
    min-width: 0;
}

    .watch-title span {
        display: block;
        margin-bottom: 2px;
        color: #ff4f6b;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .watch-title h1 {
        margin: 0;
        overflow: hidden;
        color: #fff;
        font-size: 16px;
        font-weight: 650;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.watch-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.movie-player {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.watch-info {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 4px 0;
    box-sizing: border-box;
}

    .watch-info > div {
        min-width: 0;
        flex: 1;
    }

    .watch-info h2 {
        margin: 0;
        color: #f1f2f4;
        font-size: 20px;
    }

    .watch-info p {
        max-width: 850px;
        margin: 8px 0 0;
        color: #747b86;
        font-size: 11px;
        line-height: 1.7;
    }

.details-button {
    min-height: 38px;
    flex-shrink: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    background: rgba(255, 255, 255, .03);
    color: #aeb3bc;
    font-size: 9px;
    cursor: pointer;
}

    .details-button:hover {
        background: rgba(255, 255, 255, .07);
        color: #fff;
    }

.video-unavailable {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #686f79;
    text-align: center;
}

    .video-unavailable i {
        margin-bottom: 12px;
        color: #ff506b;
        font-size: 34px;
    }

    .video-unavailable h2 {
        margin: 0;
        color: #dfe2e7;
        font-size: 18px;
    }

    .video-unavailable p {
        margin: 7px 0 0;
        font-size: 10px;
    }

.watch-loading {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #050608;
    color: #656c77;
    font-size: 10px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .08);
    border-top-color: #ff3158;
    border-radius: 50%;
    animation: watchSpin .8s linear infinite;
}

@keyframes watchSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    .watch-header {
        height: 64px;
        padding: 0 15px;
    }

    .watch-main {
        padding: 15px;
    }

    .video-wrapper {
        border-radius: 10px;
    }

    .watch-info {
        flex-direction: column;
        gap: 15px;
        padding-top: 16px;
    }

    .details-button {
        width: 100%;
    }
}
