/* TCT Course Protector - TikTok Style */

.tct-course-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    font-family: 'Poppins', sans-serif;
}

@media (min-width: 768px) {
    .tct-course-wrapper {
        max-width: 960px;
    }
}

/* --- Course Cards (TikTok Gradient) --- */
.tct-course-card {
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(254, 44, 85, 0.3);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.tct-top-card {
    background: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);
}

.tct-bottom-card {
    background: linear-gradient(135deg, #FE2C55 0%, #25F4EE 100%);
}

.tct-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
}

.tct-blur-cyan {
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: #25F4EE;
}

.tct-blur-pink {
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: #FE2C55;
}

.tct-card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tct-card-emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.tct-card-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tct-card-desc {
    font-size: 12px;
    opacity: 0.95;
    line-height: 1.5;
}

/* --- Password Form --- */
.tct-password-form-wrapper {
    margin-bottom: 16px;
}

.tct-password-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tct-password-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tct-password-input:focus {
    border-color: #FE2C55;
}

.tct-unlock-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FE2C55 0%, #FF6B8A 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.tct-unlock-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}

.tct-unlock-btn:active {
    transform: scale(0.98);
}

.tct-password-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* --- Video Grid --- */
.tct-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .tct-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tct-video-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.tct-video-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 0 4px;
    word-break: break-word;
    line-height: 1.4;
    min-height: 2.8em;
}

.tct-video-player {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tct-video-player iframe,
.tct-video-player video,
.tct-video-player .bunny-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* --- Loading State --- */
.tct-unlock-btn.tct-loading {
    opacity: 0.7;
    pointer-events: none;
}

.tct-unlock-btn.tct-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tct-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes tct-spin {
    to { transform: rotate(360deg); }
}
