body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#app-container {
    width: 100%;
    max-width: 1400px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 2rem;
    box-sizing: border-box;
}

header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

header h1 {
    color: #58a6ff;
    margin: 0;
}

header p {
    color: #bbb;
}

nav#main-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.nav-btn {
    flex-grow: 1;
    padding: 12px 20px;
    font-size: 1.1rem;
    background-color: #333;
    color: #bbb;
    border: 1px solid #555;
    font-weight: 700;
    cursor: pointer;
}

.nav-btn.active {
    background-color: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

#video-title, #aspect-ratio-select, #video-category, #creator-style, .modal-content select, .modal-content input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.input-mode-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#mode-selector {
    display: flex;
    border: 1px solid #555;
    border-radius: 8px;
    overflow: hidden;
}

.mode-btn {
    flex-grow: 1;
    padding: 10px;
    border: none;
    background-color: #333;
    color: #bbb;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0;
}

.mode-btn.active {
    background-color: #58a6ff;
    color: white;
    font-weight: 700;
}

.mode-btn:not(.active):hover {
    background-color: #444;
}

#prompt-helper-text {
    font-size: 0.85rem;
    color: #aaa;
    margin: -0.5rem 0 0.5rem 0;
    text-align: center;
}

main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

#input-section, #output-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h2 {
    color: #e0e0e0;
    border-bottom: 2px solid #58a6ff;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
    background-color: #252525;
    color: #e0e0e0;
}

button {
    background-color: #58a6ff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.1s;
}

button:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #4a90e2;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

#generate-btn {
    background-color: #2ea043;
}

#generate-btn:hover:not(:disabled) {
    background-color: #2a8e3c;
}

#publish-btn {
    background-color: #ff8c00;
}

#publish-btn:hover:not(:disabled) {
    background-color: #e67e00;
}

#publish-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.player-controls {
    display: flex;
    gap: 0.5rem;
}

#play-pause-btn, #replay-btn, #publish-btn,
#watch-play-pause-btn, #watch-replay-btn, #close-watch-player-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

#play-pause-btn:disabled, #replay-btn:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
}

#video-player-container {
    position: relative;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h2 {
    margin-bottom: 0;
    flex-shrink: 0;
    color: #e0e0e0;
}

#video-player, #watch-video-player {
    max-width: 100%;
    margin: 0 auto; /* Center the player horizontally */
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

/* Aspect Ratio Specific Styles */
#video-player.aspect-16-9, #watch-video-player.aspect-16-9 {
    width: 100%; /* Keep landscape full-width */
    aspect-ratio: 16 / 9;
}
#video-player.aspect-9-16, #watch-video-player.aspect-9-16 {
    max-height: 70vh; /* Constrain height for portrait */
    aspect-ratio: 9 / 16;
}
#video-player.aspect-1-1, #watch-video-player.aspect-1-1 {
    max-height: 70vh; /* Constrain height for square */
    aspect-ratio: 1 / 1;
}
#video-player.aspect-4-3, #watch-video-player.aspect-4-3 {
    width: 100%;
    aspect-ratio: 4 / 3;
}
#video-player.aspect-3-2, #watch-video-player.aspect-3-2 {
    width: 100%;
    aspect-ratio: 3 / 2;
}
#video-player.aspect-21-9, #watch-video-player.aspect-21-9 {
    width: 100%;
    aspect-ratio: 21 / 9;
}

#player-image, #watch-player-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    opacity: 1; /* Default state for animation */
}

#player-video, #watch-player-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

#player-caption, #watch-player-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: block;
}

#video-player.captions-on #player-caption,
#watch-video-player.captions-on #watch-player-caption {
    transform: translateY(0);
}

#video-player.captions-off #player-caption,
#watch-video-player.captions-off #watch-player-caption {
    display: none;
}

#video-player:not(.captions-on):not(.captions-off):hover #player-caption,
#watch-video-player:not(.captions-on):not(.captions-off):hover #watch-player-caption {
    transform: translateY(0);
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

#loading-overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#timeline {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #252525;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: #2c2c2c;
    border-radius: 8px;
    border: 1px solid #444;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    align-items: center;
}

.timeline-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: #58a6ff;
}

.timeline-item.active {
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px #58a6ff;
}

.timeline-item img {
    width: 100px;
    height: 56.25px;
    object-fit: cover;
    border-radius: 4px;
}

.timeline-item .info {
    flex-grow: 1;
}
.timeline-item .info p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.timeline-item .info strong {
    color: #e0e0e0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #2c2c2c;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #555;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close-btn {
    color: #aaa;
    align-self: flex-end;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-content label {
    font-weight: bold;
    margin-top: 0.5rem;
    color: #e0e0e0;
}

.modal-content textarea, .modal-content input, .modal-content select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #252525;
    color: #e0e0e0;
}

.modal-content input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #58a6ff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.modal-content input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #444;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 4px;
    margin-bottom: 1rem; /* Add margin like other inputs */
}

.modal-content input[type="range"]:hover {
    opacity: 1;
}

.modal-content input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #58a6ff;
    cursor: pointer;
    border-radius: 50%;
}

.video-description {
    background: #252525;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: #ccc;
    font-size: 0.95rem;
    border: 1px solid #444;
}

.reference-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #252525;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #555;
    flex-wrap: wrap;
}

#edit-media-preview-image, #edit-media-preview-video {
    max-height: 80px;
    max-width: 150px;
    display: none;
    border-radius: 4px;
}

#remove-media-btn {
    background: #c93c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

#set-as-media-btn {
    background-color: #2ea043;
    padding: 6px 10px;
    font-size: 0.8rem;
}

#upload-media-btn {
    flex-grow: 1;
}

.voice-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.music-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.music-controls select {
    flex-grow: 1;
}

#upload-music-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

#play-voice-sample-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.modal-content textarea {
    height: 100px;
    resize: vertical;
}

.placeholder-text {
    color: #888;
    text-align: center;
    margin: auto;
}

.caption-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.caption-controls span {
    color: #bbb;
}

.caption-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #333;
    color: #ccc;
    border: 1px solid #555;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.caption-btn.active {
    background-color: #58a6ff;
    color: white;
    border-color: #58a6ff;
    font-weight: bold;
}

.caption-btn:not(.active):hover {
    background-color: #444;
    border-color: #777;
}

/* Watch View Styles */
#watch-view, #admin-view {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#watch-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
}

.watch-nav-btn {
    flex-grow: 1;
    padding: 10px 18px;
    font-size: 1rem;
    background-color: #333;
    color: #bbb;
    border: 1px solid #555;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.watch-nav-btn.active {
    background-color: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

#watch-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#video-search-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 1rem;
}

#video-search-btn {
    padding: 10px 20px;
}

#video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: #2c2c2c;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.video-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #222;
}

.video-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-card-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.video-card-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: #bbb;
}

.video-card-creator img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

#profile-header {
    background-color: #2c2c2c;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #444;
}

#profile-header .profile-info-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#profile-header .profile-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#profile-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #58a6ff;
}

#profile-header h2 {
    border-bottom: none;
    margin: 0;
}

#back-to-gallery-btn {
    background-color: #444;
}

#back-to-gallery-btn:hover {
    background-color: #555;
}

.video-card-creator, #watch-creator-info, .short-creator-info {
    cursor: pointer;
    transition: opacity 0.2s;
}

.video-card-creator:hover, #watch-creator-info:hover, .short-creator-info:hover {
    opacity: 0.8;
}

#watch-player-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.watch-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#watch-creator-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#watch-creator-info > div {
    display: flex;
    flex-direction: column;
}

#watch-creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#watch-creator-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e0e0e0;
}

#subscribe-btn {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 0.9rem;
    background-color: #3b82f6; /* A different blue */
}

#subscribe-btn.subscribed {
    background-color: #444;
    color: #ccc;
}

#subscribe-btn.subscribed:hover {
    background-color: #555;
}

#watch-reactions button {
    background: #444;
    color: #e0e0e0;
    border: 1px solid #666;
    font-size: 1rem;
    padding: 8px 12px;
}
#watch-reactions button:hover {
    background: #555;
}
#watch-reactions button.user-reacted {
    background-color: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

#report-btn {
    background-color: #c93c3c;
}
#report-btn:hover {
    background-color: #a53030;
}

#ban-screen {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
}

#ban-screen .modal-content {
    text-align: center;
}

#ban-screen h2 {
    color: #c93c3c;
    border-bottom-color: #c93c3c;
}

#comments-section {
    background-color: #252525;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
}

#comments-section h3 {
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

#comment-form-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#comment-input {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    resize: vertical;
}

#submit-comment-btn {
    align-self: flex-end;
    background-color: #58a6ff;
}

#comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    background-color: #2c2c2c;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #58a6ff;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.comment-author strong {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.comment-text {
    margin: 0;
    color: #ccc;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-reactions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.comment-reaction-btn {
    background: #3a3a3a;
    color: #ccc;
    border: 1px solid #555;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-reaction-btn.user-reacted.like {
    background-color: #58a6ff;
    color: white;
    border-color: #58a6ff;
}

.comment-reaction-btn.user-reacted.dislike {
    background-color: #c93c3c;
    color: white;
    border-color: #c93c3c;
}

.comment-reaction-btn:hover:not(:disabled) {
    border-color: #777;
}

/* Admin View */
#admin-view {
    gap: 1rem;
}

#reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-left: 4px solid #c93c3c;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.report-card-meta {
    font-size: 0.9rem;
    color: #bbb;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    word-break: break-all;
}

.report-card-meta span {
    font-weight: bold;
    color: #e0e0e0;
}

.report-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.report-card-actions button {
    font-size: 0.9rem;
    padding: 6px 12px;
}

.watch-btn-admin {
    background-color: #58a6ff;
}
.watch-btn-admin:hover {
    background-color: #4a90e2;
}

.delete-btn-admin {
    background-color: #c93c3c;
}
.delete-btn-admin:hover {
    background-color: #a53030;
}

.ban-btn-admin {
    background-color: #e6a800;
}
.ban-btn-admin:hover {
    background-color: #c48f00;
}

.dismiss-btn-admin {
    background-color: #2ea043;
}
.dismiss-btn-admin:hover {
    background-color: #2a8e3c;
}

.appeal-card {
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-left: 4px solid #e6a800; /* Gold color for appeals */
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appeal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.appeal-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.appeal-card-meta {
    font-size: 0.9rem;
    color: #bbb;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    word-break: break-all;
}

.appeal-card-meta span {
    font-weight: bold;
    color: #e0e0e0;
}

.appeal-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.appeal-card-actions button {
    font-size: 0.9rem;
    padding: 6px 12px;
}

.approve-btn-admin {
    background-color: #2ea043;
}
.approve-btn-admin:hover {
    background-color: #2a8e3c;
}

.reject-btn-admin {
    background-color: #c93c3c;
}
.reject-btn-admin:hover {
    background-color: #a53030;
}

.warning-text {
    background-color: #4d3d19;
    border: 1px solid #b48c2c;
    color: #f0e6d2;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.effect-fade_in {
    animation-name: fadeInEffect;
    animation-timing-function: ease-in;
}

.effect-fade_out {
    animation-name: fadeOutEffect;
    animation-timing-function: ease-out;
}

.effect-fade_in_out {
    animation-name: fadeInOutEffect;
    animation-timing-function: ease-in-out;
}

.effect-slide_in_left { animation-name: slideInLeft; animation-timing-function: ease-out; }
.effect-slide_in_right { animation-name: slideInRight; animation-timing-function: ease-out; }
.effect-slide_in_top { animation-name: slideInTop; animation-timing-function: ease-out; }
.effect-slide_in_bottom { animation-name: slideInBottom; animation-timing-function: ease-out; }

.effect-slide_out_left { animation-name: slideOutLeft; animation-timing-function: ease-in; }
.effect-slide_out_right { animation-name: slideOutRight; animation-timing-function: ease-in; }
.effect-slide_out_top { animation-name: slideOutTop; animation-timing-function: ease-in; }
.effect-slide_out_bottom { animation-name: slideOutBottom; animation-timing-function: ease-in; }

/* Shorts View Styles */
#shorts-view-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#shorts-feed-container {
    width: 100%;
    max-width: 450px; /* Typical portrait phone width */
    height: 75vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    border-radius: 12px;
    background-color: #000;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#shorts-feed-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.short-item {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.short-item .short-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-item .short-player-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.short-item:hover .short-player-caption {
     transform: translateY(0);
}

.short-ui-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    color: white;
    z-index: 1;
}

.short-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-end;
    align-self: stretch;
}

.short-info h3 {
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.short-creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.short-creator-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #fff;
}

.short-creator-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.short-creator-name {
    font-weight: bold;
    font-size: 1rem;
}

.short-creator-subs {
    font-size: 0.8rem;
    color: #ddd;
}

.short-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.short-actions button {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.short-actions button:hover {
    transform: scale(1.1);
}

.short-actions .action-label {
    font-size: 0.8rem;
    font-weight: bold;
}

.short-actions button.user-reacted {
    color: #58a6ff;
}

.short-actions button.subscribed {
    color: #ff8c00;
}

/* Channel View Styles */
#channel-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#channel-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.analytic-card {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
}

.analytic-card .analytic-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #58a6ff;
    margin: 0;
}

.analytic-card .analytic-label {
    font-size: 1rem;
    color: #bbb;
    margin: 0.5rem 0 0 0;
}

#my-videos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-video-item {
    background-color: #2c2c2c;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #444;
}

.my-video-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.my-video-info {
    flex-grow: 1;
}

.my-video-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.my-video-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.my-video-actions button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.delete-my-video-btn {
    background-color: #c93c3c;
}

.delete-my-video-btn:hover {
    background-color: #a53030;
}

#my-subscribers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.subscriber-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #2c2c2c;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #444;
}

.subscriber-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}