.student-preview-dialog {
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.student-preview-dialog-content {
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
}

.student-preview-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.student-phone-frame {
    width: 402px;
    height: 844px;
    border-radius: 38px;
    background: #111;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    position: relative;
}

.student-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.student-preview-close {
    position: absolute;
    right: -14px;
    top: -14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
    z-index: 20;
}

.student-player-root {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    background: #fff;
}

.student-player-topbar {
    flex-shrink: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.student-player-content {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 16px;
    background: #fff;
}

.student-player-bottomnav {
    flex-shrink: 0;
    z-index: 2;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.player-topbar-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 10px 12px;
}

.player-back-button {
    border: none;
    background: transparent;
    color: #1f2937;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-topbar-texts {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.player-lesson-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

.player-package-progress {
    margin-top: 4px;
    font-size: 13px;
    color: #000;
    line-height: 1.2;
}

.student-player-card {
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--student-card-shadow);
}

.student-player-card-body {
    padding: 14px;
}

.station-card-header {
    margin-bottom: 12px;
}

.station-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.station-type-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: #334155;
}

.player-bottomnav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
}

.player-bottomnav-button {
    min-height: 46px;
    border-radius: var(--student-radius-sm);
    flex: 1 1 0;
    font-weight: 700;
}

.player-bottomnav-button-hidden {
    visibility: hidden;
}

@media (max-height: 950px) {
    .student-phone-frame {
        transform: scale(0.92);
        transform-origin: center center;
    }
}

@media (max-height: 860px) {
    .student-phone-frame {
        transform: scale(0.82);
    }
}

@media (max-width: 520px) {
    .student-phone-frame {
        width: 360px;
        height: 780px;
    }
}
