/* Doraemon Custom Media Player Styles */
:root {
    --doraemon-blue: #3B82F6;
    --doraemon-red: #EF4444;
    --doraemon-yellow: #F59E0B;
    --doraemon-white: #FFFFFF;
}

.custom-player-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 70vh;
}

.custom-player-container video {
    width: 100%;
    display: block;
}

/* Controls Overlay */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(59, 130, 246, 0.9));
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100%);
    pointer-events: none;
}

.custom-player-container.show-ui .player-controls,
.custom-player-container.show-ui .player-header,
.embed-container.show-ui .player-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header Overlay */
.player-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s;
    color: white;
    pointer-events: none;
}

.player-header .title-group h1 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.player-header .title-group p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.player-header .back-link {
    font-size: 1.5rem;
    color: white;
    margin-right: 15px;
    transition: color 0.2s;
}

.player-header .back-link:hover {
    color: var(--doraemon-yellow);
}

.player-header .actions {
    display: flex;
    gap: 10px;
}

/* Progress Bar */
.progress-area {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--doraemon-red);
    border-radius: 3px;
    position: relative;
    width: 0%;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -5px;
    width: 16px;
    height: 16px;
    background: var(--doraemon-yellow);
    border: 2px solid var(--doraemon-white);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Control Buttons */
.controls-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-pause-btn {
    background: var(--doraemon-yellow);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

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

.play-pause-btn i {
    font-size: 1.2rem;
}

/* Bell Icon for Play Button */
.play-pause-btn.bell-btn {
    position: relative;
}

.play-pause-btn.bell-btn::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    bottom: 8px;
}

/* Volume Slider */
.volume-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--doraemon-white);
    border-radius: 50%;
    cursor: pointer;
}

/* Time display */
.time-display {
    font-size: 0.85rem;
    font-family: 'monospace';
}

/* Embed Container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}